| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029 |
- // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
- package ram
- import (
- "time"
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/restjson"
- )
- const opAcceptResourceShareInvitation = "AcceptResourceShareInvitation"
- // AcceptResourceShareInvitationRequest generates a "aws/request.Request" representing the
- // client's request for the AcceptResourceShareInvitation operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See AcceptResourceShareInvitation for more information on using the AcceptResourceShareInvitation
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the AcceptResourceShareInvitationRequest method.
- // req, resp := client.AcceptResourceShareInvitationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AcceptResourceShareInvitation
- func (c *RAM) AcceptResourceShareInvitationRequest(input *AcceptResourceShareInvitationInput) (req *request.Request, output *AcceptResourceShareInvitationOutput) {
- op := &request.Operation{
- Name: opAcceptResourceShareInvitation,
- HTTPMethod: "POST",
- HTTPPath: "/acceptresourceshareinvitation",
- }
- if input == nil {
- input = &AcceptResourceShareInvitationInput{}
- }
- output = &AcceptResourceShareInvitationOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // AcceptResourceShareInvitation API operation for AWS Resource Access Manager.
- //
- // Accepts an invitation to a resource share from another AWS account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Resource Access Manager's
- // API operation AcceptResourceShareInvitation for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeMalformedArnException "MalformedArnException"
- // The format of an Amazon Resource Name (ARN) is not valid.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The requested operation is not permitted.
- //
- // * ErrCodeResourceShareInvitationArnNotFoundException "ResourceShareInvitationArnNotFoundException"
- // The Amazon Resource Name (ARN) for an invitation was not found.
- //
- // * ErrCodeResourceShareInvitationAlreadyAcceptedException "ResourceShareInvitationAlreadyAcceptedException"
- // The invitation was already accepted.
- //
- // * ErrCodeResourceShareInvitationAlreadyRejectedException "ResourceShareInvitationAlreadyRejectedException"
- // The invitation was already rejected.
- //
- // * ErrCodeResourceShareInvitationExpiredException "ResourceShareInvitationExpiredException"
- // The invitation is expired.
- //
- // * ErrCodeServerInternalException "ServerInternalException"
- // The service could not respond to the request due to an internal problem.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AcceptResourceShareInvitation
- func (c *RAM) AcceptResourceShareInvitation(input *AcceptResourceShareInvitationInput) (*AcceptResourceShareInvitationOutput, error) {
- req, out := c.AcceptResourceShareInvitationRequest(input)
- return out, req.Send()
- }
- // AcceptResourceShareInvitationWithContext is the same as AcceptResourceShareInvitation with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AcceptResourceShareInvitation for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) AcceptResourceShareInvitationWithContext(ctx aws.Context, input *AcceptResourceShareInvitationInput, opts ...request.Option) (*AcceptResourceShareInvitationOutput, error) {
- req, out := c.AcceptResourceShareInvitationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opAssociateResourceShare = "AssociateResourceShare"
- // AssociateResourceShareRequest generates a "aws/request.Request" representing the
- // client's request for the AssociateResourceShare operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See AssociateResourceShare for more information on using the AssociateResourceShare
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the AssociateResourceShareRequest method.
- // req, resp := client.AssociateResourceShareRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceShare
- func (c *RAM) AssociateResourceShareRequest(input *AssociateResourceShareInput) (req *request.Request, output *AssociateResourceShareOutput) {
- op := &request.Operation{
- Name: opAssociateResourceShare,
- HTTPMethod: "POST",
- HTTPPath: "/associateresourceshare",
- }
- if input == nil {
- input = &AssociateResourceShareInput{}
- }
- output = &AssociateResourceShareOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // AssociateResourceShare API operation for AWS Resource Access Manager.
- //
- // Associates the specified resource share with the specified principals and
- // resources.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Resource Access Manager's
- // API operation AssociateResourceShare for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException"
- // A client token input parameter was reused with an operation, but at least
- // one of the other input parameters is different from the previous call to
- // the operation.
- //
- // * ErrCodeUnknownResourceException "UnknownResourceException"
- // A specified resource was not found.
- //
- // * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException"
- // The requested state transition is not valid.
- //
- // * ErrCodeResourceShareLimitExceededException "ResourceShareLimitExceededException"
- // The requested resource share exceeds the limit for your account.
- //
- // * ErrCodeMalformedArnException "MalformedArnException"
- // The format of an Amazon Resource Name (ARN) is not valid.
- //
- // * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException"
- // The requested state transition is not valid.
- //
- // * ErrCodeInvalidClientTokenException "InvalidClientTokenException"
- // A client token is not valid.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A parameter is not valid.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The requested operation is not permitted.
- //
- // * ErrCodeServerInternalException "ServerInternalException"
- // The service could not respond to the request due to an internal problem.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is not available.
- //
- // * ErrCodeUnknownResourceException "UnknownResourceException"
- // A specified resource was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceShare
- func (c *RAM) AssociateResourceShare(input *AssociateResourceShareInput) (*AssociateResourceShareOutput, error) {
- req, out := c.AssociateResourceShareRequest(input)
- return out, req.Send()
- }
- // AssociateResourceShareWithContext is the same as AssociateResourceShare with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AssociateResourceShare for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) AssociateResourceShareWithContext(ctx aws.Context, input *AssociateResourceShareInput, opts ...request.Option) (*AssociateResourceShareOutput, error) {
- req, out := c.AssociateResourceShareRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateResourceShare = "CreateResourceShare"
- // CreateResourceShareRequest generates a "aws/request.Request" representing the
- // client's request for the CreateResourceShare operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateResourceShare for more information on using the CreateResourceShare
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateResourceShareRequest method.
- // req, resp := client.CreateResourceShareRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/CreateResourceShare
- func (c *RAM) CreateResourceShareRequest(input *CreateResourceShareInput) (req *request.Request, output *CreateResourceShareOutput) {
- op := &request.Operation{
- Name: opCreateResourceShare,
- HTTPMethod: "POST",
- HTTPPath: "/createresourceshare",
- }
- if input == nil {
- input = &CreateResourceShareInput{}
- }
- output = &CreateResourceShareOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateResourceShare API operation for AWS Resource Access Manager.
- //
- // Creates a resource share.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Resource Access Manager's
- // API operation CreateResourceShare for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException"
- // A client token input parameter was reused with an operation, but at least
- // one of the other input parameters is different from the previous call to
- // the operation.
- //
- // * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException"
- // The requested state transition is not valid.
- //
- // * ErrCodeUnknownResourceException "UnknownResourceException"
- // A specified resource was not found.
- //
- // * ErrCodeMalformedArnException "MalformedArnException"
- // The format of an Amazon Resource Name (ARN) is not valid.
- //
- // * ErrCodeInvalidClientTokenException "InvalidClientTokenException"
- // A client token is not valid.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A parameter is not valid.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The requested operation is not permitted.
- //
- // * ErrCodeResourceShareLimitExceededException "ResourceShareLimitExceededException"
- // The requested resource share exceeds the limit for your account.
- //
- // * ErrCodeServerInternalException "ServerInternalException"
- // The service could not respond to the request due to an internal problem.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/CreateResourceShare
- func (c *RAM) CreateResourceShare(input *CreateResourceShareInput) (*CreateResourceShareOutput, error) {
- req, out := c.CreateResourceShareRequest(input)
- return out, req.Send()
- }
- // CreateResourceShareWithContext is the same as CreateResourceShare with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateResourceShare for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) CreateResourceShareWithContext(ctx aws.Context, input *CreateResourceShareInput, opts ...request.Option) (*CreateResourceShareOutput, error) {
- req, out := c.CreateResourceShareRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteResourceShare = "DeleteResourceShare"
- // DeleteResourceShareRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteResourceShare operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteResourceShare for more information on using the DeleteResourceShare
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteResourceShareRequest method.
- // req, resp := client.DeleteResourceShareRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DeleteResourceShare
- func (c *RAM) DeleteResourceShareRequest(input *DeleteResourceShareInput) (req *request.Request, output *DeleteResourceShareOutput) {
- op := &request.Operation{
- Name: opDeleteResourceShare,
- HTTPMethod: "DELETE",
- HTTPPath: "/deleteresourceshare",
- }
- if input == nil {
- input = &DeleteResourceShareInput{}
- }
- output = &DeleteResourceShareOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DeleteResourceShare API operation for AWS Resource Access Manager.
- //
- // Deletes the specified resource share.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Resource Access Manager's
- // API operation DeleteResourceShare for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The requested operation is not permitted.
- //
- // * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException"
- // A client token input parameter was reused with an operation, but at least
- // one of the other input parameters is different from the previous call to
- // the operation.
- //
- // * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException"
- // The requested state transition is not valid.
- //
- // * ErrCodeUnknownResourceException "UnknownResourceException"
- // A specified resource was not found.
- //
- // * ErrCodeMalformedArnException "MalformedArnException"
- // The format of an Amazon Resource Name (ARN) is not valid.
- //
- // * ErrCodeInvalidClientTokenException "InvalidClientTokenException"
- // A client token is not valid.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A parameter is not valid.
- //
- // * ErrCodeServerInternalException "ServerInternalException"
- // The service could not respond to the request due to an internal problem.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DeleteResourceShare
- func (c *RAM) DeleteResourceShare(input *DeleteResourceShareInput) (*DeleteResourceShareOutput, error) {
- req, out := c.DeleteResourceShareRequest(input)
- return out, req.Send()
- }
- // DeleteResourceShareWithContext is the same as DeleteResourceShare with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteResourceShare for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) DeleteResourceShareWithContext(ctx aws.Context, input *DeleteResourceShareInput, opts ...request.Option) (*DeleteResourceShareOutput, error) {
- req, out := c.DeleteResourceShareRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDisassociateResourceShare = "DisassociateResourceShare"
- // DisassociateResourceShareRequest generates a "aws/request.Request" representing the
- // client's request for the DisassociateResourceShare operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DisassociateResourceShare for more information on using the DisassociateResourceShare
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DisassociateResourceShareRequest method.
- // req, resp := client.DisassociateResourceShareRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DisassociateResourceShare
- func (c *RAM) DisassociateResourceShareRequest(input *DisassociateResourceShareInput) (req *request.Request, output *DisassociateResourceShareOutput) {
- op := &request.Operation{
- Name: opDisassociateResourceShare,
- HTTPMethod: "POST",
- HTTPPath: "/disassociateresourceshare",
- }
- if input == nil {
- input = &DisassociateResourceShareInput{}
- }
- output = &DisassociateResourceShareOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DisassociateResourceShare API operation for AWS Resource Access Manager.
- //
- // Disassociates the specified principals or resources from the specified resource
- // share.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Resource Access Manager's
- // API operation DisassociateResourceShare for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException"
- // A client token input parameter was reused with an operation, but at least
- // one of the other input parameters is different from the previous call to
- // the operation.
- //
- // * ErrCodeResourceShareLimitExceededException "ResourceShareLimitExceededException"
- // The requested resource share exceeds the limit for your account.
- //
- // * ErrCodeMalformedArnException "MalformedArnException"
- // The format of an Amazon Resource Name (ARN) is not valid.
- //
- // * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException"
- // The requested state transition is not valid.
- //
- // * ErrCodeInvalidClientTokenException "InvalidClientTokenException"
- // A client token is not valid.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A parameter is not valid.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The requested operation is not permitted.
- //
- // * ErrCodeServerInternalException "ServerInternalException"
- // The service could not respond to the request due to an internal problem.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is not available.
- //
- // * ErrCodeUnknownResourceException "UnknownResourceException"
- // A specified resource was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DisassociateResourceShare
- func (c *RAM) DisassociateResourceShare(input *DisassociateResourceShareInput) (*DisassociateResourceShareOutput, error) {
- req, out := c.DisassociateResourceShareRequest(input)
- return out, req.Send()
- }
- // DisassociateResourceShareWithContext is the same as DisassociateResourceShare with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DisassociateResourceShare for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) DisassociateResourceShareWithContext(ctx aws.Context, input *DisassociateResourceShareInput, opts ...request.Option) (*DisassociateResourceShareOutput, error) {
- req, out := c.DisassociateResourceShareRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opEnableSharingWithAwsOrganization = "EnableSharingWithAwsOrganization"
- // EnableSharingWithAwsOrganizationRequest generates a "aws/request.Request" representing the
- // client's request for the EnableSharingWithAwsOrganization operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See EnableSharingWithAwsOrganization for more information on using the EnableSharingWithAwsOrganization
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the EnableSharingWithAwsOrganizationRequest method.
- // req, resp := client.EnableSharingWithAwsOrganizationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/EnableSharingWithAwsOrganization
- func (c *RAM) EnableSharingWithAwsOrganizationRequest(input *EnableSharingWithAwsOrganizationInput) (req *request.Request, output *EnableSharingWithAwsOrganizationOutput) {
- op := &request.Operation{
- Name: opEnableSharingWithAwsOrganization,
- HTTPMethod: "POST",
- HTTPPath: "/enablesharingwithawsorganization",
- }
- if input == nil {
- input = &EnableSharingWithAwsOrganizationInput{}
- }
- output = &EnableSharingWithAwsOrganizationOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // EnableSharingWithAwsOrganization API operation for AWS Resource Access Manager.
- //
- // Enables resource sharing within your organization.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Resource Access Manager's
- // API operation EnableSharingWithAwsOrganization for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The requested operation is not permitted.
- //
- // * ErrCodeServerInternalException "ServerInternalException"
- // The service could not respond to the request due to an internal problem.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/EnableSharingWithAwsOrganization
- func (c *RAM) EnableSharingWithAwsOrganization(input *EnableSharingWithAwsOrganizationInput) (*EnableSharingWithAwsOrganizationOutput, error) {
- req, out := c.EnableSharingWithAwsOrganizationRequest(input)
- return out, req.Send()
- }
- // EnableSharingWithAwsOrganizationWithContext is the same as EnableSharingWithAwsOrganization with the addition of
- // the ability to pass a context and additional request options.
- //
- // See EnableSharingWithAwsOrganization for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) EnableSharingWithAwsOrganizationWithContext(ctx aws.Context, input *EnableSharingWithAwsOrganizationInput, opts ...request.Option) (*EnableSharingWithAwsOrganizationOutput, error) {
- req, out := c.EnableSharingWithAwsOrganizationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetResourcePolicies = "GetResourcePolicies"
- // GetResourcePoliciesRequest generates a "aws/request.Request" representing the
- // client's request for the GetResourcePolicies operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetResourcePolicies for more information on using the GetResourcePolicies
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetResourcePoliciesRequest method.
- // req, resp := client.GetResourcePoliciesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourcePolicies
- func (c *RAM) GetResourcePoliciesRequest(input *GetResourcePoliciesInput) (req *request.Request, output *GetResourcePoliciesOutput) {
- op := &request.Operation{
- Name: opGetResourcePolicies,
- HTTPMethod: "POST",
- HTTPPath: "/getresourcepolicies",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetResourcePoliciesInput{}
- }
- output = &GetResourcePoliciesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetResourcePolicies API operation for AWS Resource Access Manager.
- //
- // Gets the policies for the specifies resources.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Resource Access Manager's
- // API operation GetResourcePolicies for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeMalformedArnException "MalformedArnException"
- // The format of an Amazon Resource Name (ARN) is not valid.
- //
- // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
- // The specified value for NextToken is not valid.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A parameter is not valid.
- //
- // * ErrCodeServerInternalException "ServerInternalException"
- // The service could not respond to the request due to an internal problem.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourcePolicies
- func (c *RAM) GetResourcePolicies(input *GetResourcePoliciesInput) (*GetResourcePoliciesOutput, error) {
- req, out := c.GetResourcePoliciesRequest(input)
- return out, req.Send()
- }
- // GetResourcePoliciesWithContext is the same as GetResourcePolicies with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetResourcePolicies for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) GetResourcePoliciesWithContext(ctx aws.Context, input *GetResourcePoliciesInput, opts ...request.Option) (*GetResourcePoliciesOutput, error) {
- req, out := c.GetResourcePoliciesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // GetResourcePoliciesPages iterates over the pages of a GetResourcePolicies operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetResourcePolicies method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetResourcePolicies operation.
- // pageNum := 0
- // err := client.GetResourcePoliciesPages(params,
- // func(page *GetResourcePoliciesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *RAM) GetResourcePoliciesPages(input *GetResourcePoliciesInput, fn func(*GetResourcePoliciesOutput, bool) bool) error {
- return c.GetResourcePoliciesPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // GetResourcePoliciesPagesWithContext same as GetResourcePoliciesPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) GetResourcePoliciesPagesWithContext(ctx aws.Context, input *GetResourcePoliciesInput, fn func(*GetResourcePoliciesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *GetResourcePoliciesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.GetResourcePoliciesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*GetResourcePoliciesOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opGetResourceShareAssociations = "GetResourceShareAssociations"
- // GetResourceShareAssociationsRequest generates a "aws/request.Request" representing the
- // client's request for the GetResourceShareAssociations operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetResourceShareAssociations for more information on using the GetResourceShareAssociations
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetResourceShareAssociationsRequest method.
- // req, resp := client.GetResourceShareAssociationsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareAssociations
- func (c *RAM) GetResourceShareAssociationsRequest(input *GetResourceShareAssociationsInput) (req *request.Request, output *GetResourceShareAssociationsOutput) {
- op := &request.Operation{
- Name: opGetResourceShareAssociations,
- HTTPMethod: "POST",
- HTTPPath: "/getresourceshareassociations",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetResourceShareAssociationsInput{}
- }
- output = &GetResourceShareAssociationsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetResourceShareAssociations API operation for AWS Resource Access Manager.
- //
- // Gets the associations for the specified resource share.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Resource Access Manager's
- // API operation GetResourceShareAssociations for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnknownResourceException "UnknownResourceException"
- // A specified resource was not found.
- //
- // * ErrCodeMalformedArnException "MalformedArnException"
- // The format of an Amazon Resource Name (ARN) is not valid.
- //
- // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
- // The specified value for NextToken is not valid.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A parameter is not valid.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The requested operation is not permitted.
- //
- // * ErrCodeServerInternalException "ServerInternalException"
- // The service could not respond to the request due to an internal problem.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareAssociations
- func (c *RAM) GetResourceShareAssociations(input *GetResourceShareAssociationsInput) (*GetResourceShareAssociationsOutput, error) {
- req, out := c.GetResourceShareAssociationsRequest(input)
- return out, req.Send()
- }
- // GetResourceShareAssociationsWithContext is the same as GetResourceShareAssociations with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetResourceShareAssociations for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) GetResourceShareAssociationsWithContext(ctx aws.Context, input *GetResourceShareAssociationsInput, opts ...request.Option) (*GetResourceShareAssociationsOutput, error) {
- req, out := c.GetResourceShareAssociationsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // GetResourceShareAssociationsPages iterates over the pages of a GetResourceShareAssociations operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetResourceShareAssociations method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetResourceShareAssociations operation.
- // pageNum := 0
- // err := client.GetResourceShareAssociationsPages(params,
- // func(page *GetResourceShareAssociationsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *RAM) GetResourceShareAssociationsPages(input *GetResourceShareAssociationsInput, fn func(*GetResourceShareAssociationsOutput, bool) bool) error {
- return c.GetResourceShareAssociationsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // GetResourceShareAssociationsPagesWithContext same as GetResourceShareAssociationsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) GetResourceShareAssociationsPagesWithContext(ctx aws.Context, input *GetResourceShareAssociationsInput, fn func(*GetResourceShareAssociationsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *GetResourceShareAssociationsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.GetResourceShareAssociationsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*GetResourceShareAssociationsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opGetResourceShareInvitations = "GetResourceShareInvitations"
- // GetResourceShareInvitationsRequest generates a "aws/request.Request" representing the
- // client's request for the GetResourceShareInvitations operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetResourceShareInvitations for more information on using the GetResourceShareInvitations
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetResourceShareInvitationsRequest method.
- // req, resp := client.GetResourceShareInvitationsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareInvitations
- func (c *RAM) GetResourceShareInvitationsRequest(input *GetResourceShareInvitationsInput) (req *request.Request, output *GetResourceShareInvitationsOutput) {
- op := &request.Operation{
- Name: opGetResourceShareInvitations,
- HTTPMethod: "POST",
- HTTPPath: "/getresourceshareinvitations",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetResourceShareInvitationsInput{}
- }
- output = &GetResourceShareInvitationsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetResourceShareInvitations API operation for AWS Resource Access Manager.
- //
- // Gets the specified invitations for resource sharing.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Resource Access Manager's
- // API operation GetResourceShareInvitations for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceShareInvitationArnNotFoundException "ResourceShareInvitationArnNotFoundException"
- // The Amazon Resource Name (ARN) for an invitation was not found.
- //
- // * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException"
- // The specified value for MaxResults is not valid.
- //
- // * ErrCodeMalformedArnException "MalformedArnException"
- // The format of an Amazon Resource Name (ARN) is not valid.
- //
- // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
- // The specified value for NextToken is not valid.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A parameter is not valid.
- //
- // * ErrCodeServerInternalException "ServerInternalException"
- // The service could not respond to the request due to an internal problem.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareInvitations
- func (c *RAM) GetResourceShareInvitations(input *GetResourceShareInvitationsInput) (*GetResourceShareInvitationsOutput, error) {
- req, out := c.GetResourceShareInvitationsRequest(input)
- return out, req.Send()
- }
- // GetResourceShareInvitationsWithContext is the same as GetResourceShareInvitations with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetResourceShareInvitations for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) GetResourceShareInvitationsWithContext(ctx aws.Context, input *GetResourceShareInvitationsInput, opts ...request.Option) (*GetResourceShareInvitationsOutput, error) {
- req, out := c.GetResourceShareInvitationsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // GetResourceShareInvitationsPages iterates over the pages of a GetResourceShareInvitations operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetResourceShareInvitations method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetResourceShareInvitations operation.
- // pageNum := 0
- // err := client.GetResourceShareInvitationsPages(params,
- // func(page *GetResourceShareInvitationsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *RAM) GetResourceShareInvitationsPages(input *GetResourceShareInvitationsInput, fn func(*GetResourceShareInvitationsOutput, bool) bool) error {
- return c.GetResourceShareInvitationsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // GetResourceShareInvitationsPagesWithContext same as GetResourceShareInvitationsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) GetResourceShareInvitationsPagesWithContext(ctx aws.Context, input *GetResourceShareInvitationsInput, fn func(*GetResourceShareInvitationsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *GetResourceShareInvitationsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.GetResourceShareInvitationsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*GetResourceShareInvitationsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opGetResourceShares = "GetResourceShares"
- // GetResourceSharesRequest generates a "aws/request.Request" representing the
- // client's request for the GetResourceShares operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetResourceShares for more information on using the GetResourceShares
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetResourceSharesRequest method.
- // req, resp := client.GetResourceSharesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShares
- func (c *RAM) GetResourceSharesRequest(input *GetResourceSharesInput) (req *request.Request, output *GetResourceSharesOutput) {
- op := &request.Operation{
- Name: opGetResourceShares,
- HTTPMethod: "POST",
- HTTPPath: "/getresourceshares",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetResourceSharesInput{}
- }
- output = &GetResourceSharesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetResourceShares API operation for AWS Resource Access Manager.
- //
- // Gets the specified resource shares or all of your resource shares.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Resource Access Manager's
- // API operation GetResourceShares for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnknownResourceException "UnknownResourceException"
- // A specified resource was not found.
- //
- // * ErrCodeMalformedArnException "MalformedArnException"
- // The format of an Amazon Resource Name (ARN) is not valid.
- //
- // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
- // The specified value for NextToken is not valid.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A parameter is not valid.
- //
- // * ErrCodeServerInternalException "ServerInternalException"
- // The service could not respond to the request due to an internal problem.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShares
- func (c *RAM) GetResourceShares(input *GetResourceSharesInput) (*GetResourceSharesOutput, error) {
- req, out := c.GetResourceSharesRequest(input)
- return out, req.Send()
- }
- // GetResourceSharesWithContext is the same as GetResourceShares with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetResourceShares for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) GetResourceSharesWithContext(ctx aws.Context, input *GetResourceSharesInput, opts ...request.Option) (*GetResourceSharesOutput, error) {
- req, out := c.GetResourceSharesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // GetResourceSharesPages iterates over the pages of a GetResourceShares operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetResourceShares method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetResourceShares operation.
- // pageNum := 0
- // err := client.GetResourceSharesPages(params,
- // func(page *GetResourceSharesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *RAM) GetResourceSharesPages(input *GetResourceSharesInput, fn func(*GetResourceSharesOutput, bool) bool) error {
- return c.GetResourceSharesPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // GetResourceSharesPagesWithContext same as GetResourceSharesPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) GetResourceSharesPagesWithContext(ctx aws.Context, input *GetResourceSharesInput, fn func(*GetResourceSharesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *GetResourceSharesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.GetResourceSharesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*GetResourceSharesOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListPrincipals = "ListPrincipals"
- // ListPrincipalsRequest generates a "aws/request.Request" representing the
- // client's request for the ListPrincipals operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListPrincipals for more information on using the ListPrincipals
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListPrincipalsRequest method.
- // req, resp := client.ListPrincipalsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPrincipals
- func (c *RAM) ListPrincipalsRequest(input *ListPrincipalsInput) (req *request.Request, output *ListPrincipalsOutput) {
- op := &request.Operation{
- Name: opListPrincipals,
- HTTPMethod: "POST",
- HTTPPath: "/listprincipals",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListPrincipalsInput{}
- }
- output = &ListPrincipalsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListPrincipals API operation for AWS Resource Access Manager.
- //
- // Lists the principals with access to the specified resource.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Resource Access Manager's
- // API operation ListPrincipals for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeMalformedArnException "MalformedArnException"
- // The format of an Amazon Resource Name (ARN) is not valid.
- //
- // * ErrCodeUnknownResourceException "UnknownResourceException"
- // A specified resource was not found.
- //
- // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
- // The specified value for NextToken is not valid.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A parameter is not valid.
- //
- // * ErrCodeServerInternalException "ServerInternalException"
- // The service could not respond to the request due to an internal problem.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPrincipals
- func (c *RAM) ListPrincipals(input *ListPrincipalsInput) (*ListPrincipalsOutput, error) {
- req, out := c.ListPrincipalsRequest(input)
- return out, req.Send()
- }
- // ListPrincipalsWithContext is the same as ListPrincipals with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListPrincipals for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) ListPrincipalsWithContext(ctx aws.Context, input *ListPrincipalsInput, opts ...request.Option) (*ListPrincipalsOutput, error) {
- req, out := c.ListPrincipalsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListPrincipalsPages iterates over the pages of a ListPrincipals operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListPrincipals method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListPrincipals operation.
- // pageNum := 0
- // err := client.ListPrincipalsPages(params,
- // func(page *ListPrincipalsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *RAM) ListPrincipalsPages(input *ListPrincipalsInput, fn func(*ListPrincipalsOutput, bool) bool) error {
- return c.ListPrincipalsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListPrincipalsPagesWithContext same as ListPrincipalsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) ListPrincipalsPagesWithContext(ctx aws.Context, input *ListPrincipalsInput, fn func(*ListPrincipalsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListPrincipalsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListPrincipalsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListPrincipalsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opListResources = "ListResources"
- // ListResourcesRequest generates a "aws/request.Request" representing the
- // client's request for the ListResources operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListResources for more information on using the ListResources
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListResourcesRequest method.
- // req, resp := client.ListResourcesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResources
- func (c *RAM) ListResourcesRequest(input *ListResourcesInput) (req *request.Request, output *ListResourcesOutput) {
- op := &request.Operation{
- Name: opListResources,
- HTTPMethod: "POST",
- HTTPPath: "/listresources",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListResourcesInput{}
- }
- output = &ListResourcesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListResources API operation for AWS Resource Access Manager.
- //
- // Lists the resources that the specified principal can access.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Resource Access Manager's
- // API operation ListResources for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidResourceTypeException "InvalidResourceTypeException"
- // The specified resource type is not valid.
- //
- // * ErrCodeUnknownResourceException "UnknownResourceException"
- // A specified resource was not found.
- //
- // * ErrCodeMalformedArnException "MalformedArnException"
- // The format of an Amazon Resource Name (ARN) is not valid.
- //
- // * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
- // The specified value for NextToken is not valid.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A parameter is not valid.
- //
- // * ErrCodeServerInternalException "ServerInternalException"
- // The service could not respond to the request due to an internal problem.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResources
- func (c *RAM) ListResources(input *ListResourcesInput) (*ListResourcesOutput, error) {
- req, out := c.ListResourcesRequest(input)
- return out, req.Send()
- }
- // ListResourcesWithContext is the same as ListResources with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListResources for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) ListResourcesWithContext(ctx aws.Context, input *ListResourcesInput, opts ...request.Option) (*ListResourcesOutput, error) {
- req, out := c.ListResourcesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListResourcesPages iterates over the pages of a ListResources operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListResources method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListResources operation.
- // pageNum := 0
- // err := client.ListResourcesPages(params,
- // func(page *ListResourcesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *RAM) ListResourcesPages(input *ListResourcesInput, fn func(*ListResourcesOutput, bool) bool) error {
- return c.ListResourcesPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListResourcesPagesWithContext same as ListResourcesPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) ListResourcesPagesWithContext(ctx aws.Context, input *ListResourcesInput, fn func(*ListResourcesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListResourcesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListResourcesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListResourcesOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opRejectResourceShareInvitation = "RejectResourceShareInvitation"
- // RejectResourceShareInvitationRequest generates a "aws/request.Request" representing the
- // client's request for the RejectResourceShareInvitation operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See RejectResourceShareInvitation for more information on using the RejectResourceShareInvitation
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the RejectResourceShareInvitationRequest method.
- // req, resp := client.RejectResourceShareInvitationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/RejectResourceShareInvitation
- func (c *RAM) RejectResourceShareInvitationRequest(input *RejectResourceShareInvitationInput) (req *request.Request, output *RejectResourceShareInvitationOutput) {
- op := &request.Operation{
- Name: opRejectResourceShareInvitation,
- HTTPMethod: "POST",
- HTTPPath: "/rejectresourceshareinvitation",
- }
- if input == nil {
- input = &RejectResourceShareInvitationInput{}
- }
- output = &RejectResourceShareInvitationOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // RejectResourceShareInvitation API operation for AWS Resource Access Manager.
- //
- // Rejects an invitation to a resource share from another AWS account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Resource Access Manager's
- // API operation RejectResourceShareInvitation for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeMalformedArnException "MalformedArnException"
- // The format of an Amazon Resource Name (ARN) is not valid.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The requested operation is not permitted.
- //
- // * ErrCodeResourceShareInvitationArnNotFoundException "ResourceShareInvitationArnNotFoundException"
- // The Amazon Resource Name (ARN) for an invitation was not found.
- //
- // * ErrCodeResourceShareInvitationAlreadyAcceptedException "ResourceShareInvitationAlreadyAcceptedException"
- // The invitation was already accepted.
- //
- // * ErrCodeResourceShareInvitationAlreadyRejectedException "ResourceShareInvitationAlreadyRejectedException"
- // The invitation was already rejected.
- //
- // * ErrCodeResourceShareInvitationExpiredException "ResourceShareInvitationExpiredException"
- // The invitation is expired.
- //
- // * ErrCodeServerInternalException "ServerInternalException"
- // The service could not respond to the request due to an internal problem.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/RejectResourceShareInvitation
- func (c *RAM) RejectResourceShareInvitation(input *RejectResourceShareInvitationInput) (*RejectResourceShareInvitationOutput, error) {
- req, out := c.RejectResourceShareInvitationRequest(input)
- return out, req.Send()
- }
- // RejectResourceShareInvitationWithContext is the same as RejectResourceShareInvitation with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RejectResourceShareInvitation for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) RejectResourceShareInvitationWithContext(ctx aws.Context, input *RejectResourceShareInvitationInput, opts ...request.Option) (*RejectResourceShareInvitationOutput, error) {
- req, out := c.RejectResourceShareInvitationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opTagResource = "TagResource"
- // TagResourceRequest generates a "aws/request.Request" representing the
- // client's request for the TagResource operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See TagResource for more information on using the TagResource
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the TagResourceRequest method.
- // req, resp := client.TagResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagResource
- func (c *RAM) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
- op := &request.Operation{
- Name: opTagResource,
- HTTPMethod: "POST",
- HTTPPath: "/tagresource",
- }
- if input == nil {
- input = &TagResourceInput{}
- }
- output = &TagResourceOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // TagResource API operation for AWS Resource Access Manager.
- //
- // Adds the specified tags to the specified resource share.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Resource Access Manager's
- // API operation TagResource for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A parameter is not valid.
- //
- // * ErrCodeMalformedArnException "MalformedArnException"
- // The format of an Amazon Resource Name (ARN) is not valid.
- //
- // * ErrCodeTagLimitExceededException "TagLimitExceededException"
- // The requested tags exceed the limit for your account.
- //
- // * ErrCodeResourceArnNotFoundException "ResourceArnNotFoundException"
- // An Amazon Resource Name (ARN) was not found.
- //
- // * ErrCodeServerInternalException "ServerInternalException"
- // The service could not respond to the request due to an internal problem.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagResource
- func (c *RAM) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
- req, out := c.TagResourceRequest(input)
- return out, req.Send()
- }
- // TagResourceWithContext is the same as TagResource with the addition of
- // the ability to pass a context and additional request options.
- //
- // See TagResource for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
- req, out := c.TagResourceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUntagResource = "UntagResource"
- // UntagResourceRequest generates a "aws/request.Request" representing the
- // client's request for the UntagResource operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UntagResource for more information on using the UntagResource
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UntagResourceRequest method.
- // req, resp := client.UntagResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UntagResource
- func (c *RAM) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
- op := &request.Operation{
- Name: opUntagResource,
- HTTPMethod: "POST",
- HTTPPath: "/untagresource",
- }
- if input == nil {
- input = &UntagResourceInput{}
- }
- output = &UntagResourceOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UntagResource API operation for AWS Resource Access Manager.
- //
- // Removes the specified tags from the specified resource share.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Resource Access Manager's
- // API operation UntagResource for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A parameter is not valid.
- //
- // * ErrCodeServerInternalException "ServerInternalException"
- // The service could not respond to the request due to an internal problem.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UntagResource
- func (c *RAM) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
- req, out := c.UntagResourceRequest(input)
- return out, req.Send()
- }
- // UntagResourceWithContext is the same as UntagResource with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UntagResource for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
- req, out := c.UntagResourceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateResourceShare = "UpdateResourceShare"
- // UpdateResourceShareRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateResourceShare operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateResourceShare for more information on using the UpdateResourceShare
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateResourceShareRequest method.
- // req, resp := client.UpdateResourceShareRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UpdateResourceShare
- func (c *RAM) UpdateResourceShareRequest(input *UpdateResourceShareInput) (req *request.Request, output *UpdateResourceShareOutput) {
- op := &request.Operation{
- Name: opUpdateResourceShare,
- HTTPMethod: "POST",
- HTTPPath: "/updateresourceshare",
- }
- if input == nil {
- input = &UpdateResourceShareInput{}
- }
- output = &UpdateResourceShareOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateResourceShare API operation for AWS Resource Access Manager.
- //
- // Updates the specified resource share.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Resource Access Manager's
- // API operation UpdateResourceShare for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException"
- // A client token input parameter was reused with an operation, but at least
- // one of the other input parameters is different from the previous call to
- // the operation.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required input parameter is missing.
- //
- // * ErrCodeUnknownResourceException "UnknownResourceException"
- // A specified resource was not found.
- //
- // * ErrCodeMalformedArnException "MalformedArnException"
- // The format of an Amazon Resource Name (ARN) is not valid.
- //
- // * ErrCodeInvalidClientTokenException "InvalidClientTokenException"
- // A client token is not valid.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A parameter is not valid.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // The requested operation is not permitted.
- //
- // * ErrCodeServerInternalException "ServerInternalException"
- // The service could not respond to the request due to an internal problem.
- //
- // * ErrCodeServiceUnavailableException "ServiceUnavailableException"
- // The service is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UpdateResourceShare
- func (c *RAM) UpdateResourceShare(input *UpdateResourceShareInput) (*UpdateResourceShareOutput, error) {
- req, out := c.UpdateResourceShareRequest(input)
- return out, req.Send()
- }
- // UpdateResourceShareWithContext is the same as UpdateResourceShare with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateResourceShare for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *RAM) UpdateResourceShareWithContext(ctx aws.Context, input *UpdateResourceShareInput, opts ...request.Option) (*UpdateResourceShareOutput, error) {
- req, out := c.UpdateResourceShareRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- type AcceptResourceShareInvitationInput struct {
- _ struct{} `type:"structure"`
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request.
- ClientToken *string `locationName:"clientToken" type:"string"`
- // The Amazon Resource Name (ARN) of the invitation.
- //
- // ResourceShareInvitationArn is a required field
- ResourceShareInvitationArn *string `locationName:"resourceShareInvitationArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AcceptResourceShareInvitationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AcceptResourceShareInvitationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AcceptResourceShareInvitationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AcceptResourceShareInvitationInput"}
- if s.ResourceShareInvitationArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceShareInvitationArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *AcceptResourceShareInvitationInput) SetClientToken(v string) *AcceptResourceShareInvitationInput {
- s.ClientToken = &v
- return s
- }
- // SetResourceShareInvitationArn sets the ResourceShareInvitationArn field's value.
- func (s *AcceptResourceShareInvitationInput) SetResourceShareInvitationArn(v string) *AcceptResourceShareInvitationInput {
- s.ResourceShareInvitationArn = &v
- return s
- }
- type AcceptResourceShareInvitationOutput struct {
- _ struct{} `type:"structure"`
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request.
- ClientToken *string `locationName:"clientToken" type:"string"`
- // Information about the invitation.
- ResourceShareInvitation *ResourceShareInvitation `locationName:"resourceShareInvitation" type:"structure"`
- }
- // String returns the string representation
- func (s AcceptResourceShareInvitationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AcceptResourceShareInvitationOutput) GoString() string {
- return s.String()
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *AcceptResourceShareInvitationOutput) SetClientToken(v string) *AcceptResourceShareInvitationOutput {
- s.ClientToken = &v
- return s
- }
- // SetResourceShareInvitation sets the ResourceShareInvitation field's value.
- func (s *AcceptResourceShareInvitationOutput) SetResourceShareInvitation(v *ResourceShareInvitation) *AcceptResourceShareInvitationOutput {
- s.ResourceShareInvitation = v
- return s
- }
- type AssociateResourceShareInput struct {
- _ struct{} `type:"structure"`
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request.
- ClientToken *string `locationName:"clientToken" type:"string"`
- // The principals.
- Principals []*string `locationName:"principals" type:"list"`
- // The Amazon Resource Names (ARN) of the resources.
- ResourceArns []*string `locationName:"resourceArns" type:"list"`
- // The Amazon Resource Name (ARN) of the resource share.
- //
- // ResourceShareArn is a required field
- ResourceShareArn *string `locationName:"resourceShareArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AssociateResourceShareInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AssociateResourceShareInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AssociateResourceShareInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AssociateResourceShareInput"}
- if s.ResourceShareArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceShareArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *AssociateResourceShareInput) SetClientToken(v string) *AssociateResourceShareInput {
- s.ClientToken = &v
- return s
- }
- // SetPrincipals sets the Principals field's value.
- func (s *AssociateResourceShareInput) SetPrincipals(v []*string) *AssociateResourceShareInput {
- s.Principals = v
- return s
- }
- // SetResourceArns sets the ResourceArns field's value.
- func (s *AssociateResourceShareInput) SetResourceArns(v []*string) *AssociateResourceShareInput {
- s.ResourceArns = v
- return s
- }
- // SetResourceShareArn sets the ResourceShareArn field's value.
- func (s *AssociateResourceShareInput) SetResourceShareArn(v string) *AssociateResourceShareInput {
- s.ResourceShareArn = &v
- return s
- }
- type AssociateResourceShareOutput struct {
- _ struct{} `type:"structure"`
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request.
- ClientToken *string `locationName:"clientToken" type:"string"`
- // Information about the associations.
- ResourceShareAssociations []*ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"`
- }
- // String returns the string representation
- func (s AssociateResourceShareOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AssociateResourceShareOutput) GoString() string {
- return s.String()
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *AssociateResourceShareOutput) SetClientToken(v string) *AssociateResourceShareOutput {
- s.ClientToken = &v
- return s
- }
- // SetResourceShareAssociations sets the ResourceShareAssociations field's value.
- func (s *AssociateResourceShareOutput) SetResourceShareAssociations(v []*ResourceShareAssociation) *AssociateResourceShareOutput {
- s.ResourceShareAssociations = v
- return s
- }
- type CreateResourceShareInput struct {
- _ struct{} `type:"structure"`
- // Indicates whether principals outside your organization can be associated
- // with a resource share.
- AllowExternalPrincipals *bool `locationName:"allowExternalPrincipals" type:"boolean"`
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request.
- ClientToken *string `locationName:"clientToken" type:"string"`
- // The name of the resource share.
- //
- // Name is a required field
- Name *string `locationName:"name" type:"string" required:"true"`
- // The principals to associate with the resource share. The possible values
- // are IDs of AWS accounts, the ARN of an OU or organization from AWS Organizations.
- Principals []*string `locationName:"principals" type:"list"`
- // The Amazon Resource Names (ARN) of the resources to associate with the resource
- // share.
- ResourceArns []*string `locationName:"resourceArns" type:"list"`
- // One or more tags.
- Tags []*Tag `locationName:"tags" type:"list"`
- }
- // String returns the string representation
- func (s CreateResourceShareInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateResourceShareInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateResourceShareInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateResourceShareInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAllowExternalPrincipals sets the AllowExternalPrincipals field's value.
- func (s *CreateResourceShareInput) SetAllowExternalPrincipals(v bool) *CreateResourceShareInput {
- s.AllowExternalPrincipals = &v
- return s
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *CreateResourceShareInput) SetClientToken(v string) *CreateResourceShareInput {
- s.ClientToken = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *CreateResourceShareInput) SetName(v string) *CreateResourceShareInput {
- s.Name = &v
- return s
- }
- // SetPrincipals sets the Principals field's value.
- func (s *CreateResourceShareInput) SetPrincipals(v []*string) *CreateResourceShareInput {
- s.Principals = v
- return s
- }
- // SetResourceArns sets the ResourceArns field's value.
- func (s *CreateResourceShareInput) SetResourceArns(v []*string) *CreateResourceShareInput {
- s.ResourceArns = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateResourceShareInput) SetTags(v []*Tag) *CreateResourceShareInput {
- s.Tags = v
- return s
- }
- type CreateResourceShareOutput struct {
- _ struct{} `type:"structure"`
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request.
- ClientToken *string `locationName:"clientToken" type:"string"`
- // Information about the resource share.
- ResourceShare *ResourceShare `locationName:"resourceShare" type:"structure"`
- }
- // String returns the string representation
- func (s CreateResourceShareOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateResourceShareOutput) GoString() string {
- return s.String()
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *CreateResourceShareOutput) SetClientToken(v string) *CreateResourceShareOutput {
- s.ClientToken = &v
- return s
- }
- // SetResourceShare sets the ResourceShare field's value.
- func (s *CreateResourceShareOutput) SetResourceShare(v *ResourceShare) *CreateResourceShareOutput {
- s.ResourceShare = v
- return s
- }
- type DeleteResourceShareInput struct {
- _ struct{} `type:"structure"`
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request.
- ClientToken *string `location:"querystring" locationName:"clientToken" type:"string"`
- // The Amazon Resource Name (ARN) of the resource share.
- //
- // ResourceShareArn is a required field
- ResourceShareArn *string `location:"querystring" locationName:"resourceShareArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteResourceShareInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteResourceShareInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteResourceShareInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteResourceShareInput"}
- if s.ResourceShareArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceShareArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *DeleteResourceShareInput) SetClientToken(v string) *DeleteResourceShareInput {
- s.ClientToken = &v
- return s
- }
- // SetResourceShareArn sets the ResourceShareArn field's value.
- func (s *DeleteResourceShareInput) SetResourceShareArn(v string) *DeleteResourceShareInput {
- s.ResourceShareArn = &v
- return s
- }
- type DeleteResourceShareOutput struct {
- _ struct{} `type:"structure"`
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request.
- ClientToken *string `locationName:"clientToken" type:"string"`
- // Indicates whether the request succeeded.
- ReturnValue *bool `locationName:"returnValue" type:"boolean"`
- }
- // String returns the string representation
- func (s DeleteResourceShareOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteResourceShareOutput) GoString() string {
- return s.String()
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *DeleteResourceShareOutput) SetClientToken(v string) *DeleteResourceShareOutput {
- s.ClientToken = &v
- return s
- }
- // SetReturnValue sets the ReturnValue field's value.
- func (s *DeleteResourceShareOutput) SetReturnValue(v bool) *DeleteResourceShareOutput {
- s.ReturnValue = &v
- return s
- }
- type DisassociateResourceShareInput struct {
- _ struct{} `type:"structure"`
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request.
- ClientToken *string `locationName:"clientToken" type:"string"`
- // The principals.
- Principals []*string `locationName:"principals" type:"list"`
- // The Amazon Resource Names (ARN) of the resources.
- ResourceArns []*string `locationName:"resourceArns" type:"list"`
- // The Amazon Resource Name (ARN) of the resource share.
- //
- // ResourceShareArn is a required field
- ResourceShareArn *string `locationName:"resourceShareArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DisassociateResourceShareInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisassociateResourceShareInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DisassociateResourceShareInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DisassociateResourceShareInput"}
- if s.ResourceShareArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceShareArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *DisassociateResourceShareInput) SetClientToken(v string) *DisassociateResourceShareInput {
- s.ClientToken = &v
- return s
- }
- // SetPrincipals sets the Principals field's value.
- func (s *DisassociateResourceShareInput) SetPrincipals(v []*string) *DisassociateResourceShareInput {
- s.Principals = v
- return s
- }
- // SetResourceArns sets the ResourceArns field's value.
- func (s *DisassociateResourceShareInput) SetResourceArns(v []*string) *DisassociateResourceShareInput {
- s.ResourceArns = v
- return s
- }
- // SetResourceShareArn sets the ResourceShareArn field's value.
- func (s *DisassociateResourceShareInput) SetResourceShareArn(v string) *DisassociateResourceShareInput {
- s.ResourceShareArn = &v
- return s
- }
- type DisassociateResourceShareOutput struct {
- _ struct{} `type:"structure"`
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request.
- ClientToken *string `locationName:"clientToken" type:"string"`
- // Information about the associations.
- ResourceShareAssociations []*ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"`
- }
- // String returns the string representation
- func (s DisassociateResourceShareOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisassociateResourceShareOutput) GoString() string {
- return s.String()
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *DisassociateResourceShareOutput) SetClientToken(v string) *DisassociateResourceShareOutput {
- s.ClientToken = &v
- return s
- }
- // SetResourceShareAssociations sets the ResourceShareAssociations field's value.
- func (s *DisassociateResourceShareOutput) SetResourceShareAssociations(v []*ResourceShareAssociation) *DisassociateResourceShareOutput {
- s.ResourceShareAssociations = v
- return s
- }
- type EnableSharingWithAwsOrganizationInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s EnableSharingWithAwsOrganizationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableSharingWithAwsOrganizationInput) GoString() string {
- return s.String()
- }
- type EnableSharingWithAwsOrganizationOutput struct {
- _ struct{} `type:"structure"`
- // Indicates whether the request succeeded.
- ReturnValue *bool `locationName:"returnValue" type:"boolean"`
- }
- // String returns the string representation
- func (s EnableSharingWithAwsOrganizationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableSharingWithAwsOrganizationOutput) GoString() string {
- return s.String()
- }
- // SetReturnValue sets the ReturnValue field's value.
- func (s *EnableSharingWithAwsOrganizationOutput) SetReturnValue(v bool) *EnableSharingWithAwsOrganizationOutput {
- s.ReturnValue = &v
- return s
- }
- type GetResourcePoliciesInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
- // The token for the next page of results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The principal.
- Principal *string `locationName:"principal" type:"string"`
- // The Amazon Resource Names (ARN) of the resources.
- //
- // ResourceArns is a required field
- ResourceArns []*string `locationName:"resourceArns" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s GetResourcePoliciesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetResourcePoliciesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetResourcePoliciesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetResourcePoliciesInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.ResourceArns == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArns"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *GetResourcePoliciesInput) SetMaxResults(v int64) *GetResourcePoliciesInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetResourcePoliciesInput) SetNextToken(v string) *GetResourcePoliciesInput {
- s.NextToken = &v
- return s
- }
- // SetPrincipal sets the Principal field's value.
- func (s *GetResourcePoliciesInput) SetPrincipal(v string) *GetResourcePoliciesInput {
- s.Principal = &v
- return s
- }
- // SetResourceArns sets the ResourceArns field's value.
- func (s *GetResourcePoliciesInput) SetResourceArns(v []*string) *GetResourcePoliciesInput {
- s.ResourceArns = v
- return s
- }
- type GetResourcePoliciesOutput struct {
- _ struct{} `type:"structure"`
- // The token to use to retrieve the next page of results. This value is null
- // when there are no more results to return.
- NextToken *string `locationName:"nextToken" type:"string"`
- // A key policy document, in JSON format.
- Policies []*string `locationName:"policies" type:"list"`
- }
- // String returns the string representation
- func (s GetResourcePoliciesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetResourcePoliciesOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetResourcePoliciesOutput) SetNextToken(v string) *GetResourcePoliciesOutput {
- s.NextToken = &v
- return s
- }
- // SetPolicies sets the Policies field's value.
- func (s *GetResourcePoliciesOutput) SetPolicies(v []*string) *GetResourcePoliciesOutput {
- s.Policies = v
- return s
- }
- type GetResourceShareAssociationsInput struct {
- _ struct{} `type:"structure"`
- // The status of the association.
- AssociationStatus *string `locationName:"associationStatus" type:"string" enum:"ResourceShareAssociationStatus"`
- // The association type.
- //
- // AssociationType is a required field
- AssociationType *string `locationName:"associationType" type:"string" required:"true" enum:"ResourceShareAssociationType"`
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
- // The token for the next page of results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The principal.
- Principal *string `locationName:"principal" type:"string"`
- // The Amazon Resource Name (ARN) of the resource.
- ResourceArn *string `locationName:"resourceArn" type:"string"`
- // The Amazon Resource Names (ARN) of the resource shares.
- ResourceShareArns []*string `locationName:"resourceShareArns" type:"list"`
- }
- // String returns the string representation
- func (s GetResourceShareAssociationsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetResourceShareAssociationsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetResourceShareAssociationsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetResourceShareAssociationsInput"}
- if s.AssociationType == nil {
- invalidParams.Add(request.NewErrParamRequired("AssociationType"))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAssociationStatus sets the AssociationStatus field's value.
- func (s *GetResourceShareAssociationsInput) SetAssociationStatus(v string) *GetResourceShareAssociationsInput {
- s.AssociationStatus = &v
- return s
- }
- // SetAssociationType sets the AssociationType field's value.
- func (s *GetResourceShareAssociationsInput) SetAssociationType(v string) *GetResourceShareAssociationsInput {
- s.AssociationType = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *GetResourceShareAssociationsInput) SetMaxResults(v int64) *GetResourceShareAssociationsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetResourceShareAssociationsInput) SetNextToken(v string) *GetResourceShareAssociationsInput {
- s.NextToken = &v
- return s
- }
- // SetPrincipal sets the Principal field's value.
- func (s *GetResourceShareAssociationsInput) SetPrincipal(v string) *GetResourceShareAssociationsInput {
- s.Principal = &v
- return s
- }
- // SetResourceArn sets the ResourceArn field's value.
- func (s *GetResourceShareAssociationsInput) SetResourceArn(v string) *GetResourceShareAssociationsInput {
- s.ResourceArn = &v
- return s
- }
- // SetResourceShareArns sets the ResourceShareArns field's value.
- func (s *GetResourceShareAssociationsInput) SetResourceShareArns(v []*string) *GetResourceShareAssociationsInput {
- s.ResourceShareArns = v
- return s
- }
- type GetResourceShareAssociationsOutput struct {
- _ struct{} `type:"structure"`
- // The token to use to retrieve the next page of results. This value is null
- // when there are no more results to return.
- NextToken *string `locationName:"nextToken" type:"string"`
- // Information about the association.
- ResourceShareAssociations []*ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"`
- }
- // String returns the string representation
- func (s GetResourceShareAssociationsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetResourceShareAssociationsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetResourceShareAssociationsOutput) SetNextToken(v string) *GetResourceShareAssociationsOutput {
- s.NextToken = &v
- return s
- }
- // SetResourceShareAssociations sets the ResourceShareAssociations field's value.
- func (s *GetResourceShareAssociationsOutput) SetResourceShareAssociations(v []*ResourceShareAssociation) *GetResourceShareAssociationsOutput {
- s.ResourceShareAssociations = v
- return s
- }
- type GetResourceShareInvitationsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
- // The token for the next page of results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The Amazon Resource Names (ARN) of the resource shares.
- ResourceShareArns []*string `locationName:"resourceShareArns" type:"list"`
- // The Amazon Resource Names (ARN) of the invitations.
- ResourceShareInvitationArns []*string `locationName:"resourceShareInvitationArns" type:"list"`
- }
- // String returns the string representation
- func (s GetResourceShareInvitationsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetResourceShareInvitationsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetResourceShareInvitationsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetResourceShareInvitationsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *GetResourceShareInvitationsInput) SetMaxResults(v int64) *GetResourceShareInvitationsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetResourceShareInvitationsInput) SetNextToken(v string) *GetResourceShareInvitationsInput {
- s.NextToken = &v
- return s
- }
- // SetResourceShareArns sets the ResourceShareArns field's value.
- func (s *GetResourceShareInvitationsInput) SetResourceShareArns(v []*string) *GetResourceShareInvitationsInput {
- s.ResourceShareArns = v
- return s
- }
- // SetResourceShareInvitationArns sets the ResourceShareInvitationArns field's value.
- func (s *GetResourceShareInvitationsInput) SetResourceShareInvitationArns(v []*string) *GetResourceShareInvitationsInput {
- s.ResourceShareInvitationArns = v
- return s
- }
- type GetResourceShareInvitationsOutput struct {
- _ struct{} `type:"structure"`
- // The token to use to retrieve the next page of results. This value is null
- // when there are no more results to return.
- NextToken *string `locationName:"nextToken" type:"string"`
- // Information about the invitations.
- ResourceShareInvitations []*ResourceShareInvitation `locationName:"resourceShareInvitations" type:"list"`
- }
- // String returns the string representation
- func (s GetResourceShareInvitationsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetResourceShareInvitationsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetResourceShareInvitationsOutput) SetNextToken(v string) *GetResourceShareInvitationsOutput {
- s.NextToken = &v
- return s
- }
- // SetResourceShareInvitations sets the ResourceShareInvitations field's value.
- func (s *GetResourceShareInvitationsOutput) SetResourceShareInvitations(v []*ResourceShareInvitation) *GetResourceShareInvitationsOutput {
- s.ResourceShareInvitations = v
- return s
- }
- type GetResourceSharesInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
- // The name of the resource share.
- Name *string `locationName:"name" type:"string"`
- // The token for the next page of results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The type of owner.
- //
- // ResourceOwner is a required field
- ResourceOwner *string `locationName:"resourceOwner" type:"string" required:"true" enum:"ResourceOwner"`
- // The Amazon Resource Names (ARN) of the resource shares.
- ResourceShareArns []*string `locationName:"resourceShareArns" type:"list"`
- // The status of the resource share.
- ResourceShareStatus *string `locationName:"resourceShareStatus" type:"string" enum:"ResourceShareStatus"`
- // One or more tag filters.
- TagFilters []*TagFilter `locationName:"tagFilters" type:"list"`
- }
- // String returns the string representation
- func (s GetResourceSharesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetResourceSharesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetResourceSharesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetResourceSharesInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.ResourceOwner == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceOwner"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *GetResourceSharesInput) SetMaxResults(v int64) *GetResourceSharesInput {
- s.MaxResults = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *GetResourceSharesInput) SetName(v string) *GetResourceSharesInput {
- s.Name = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetResourceSharesInput) SetNextToken(v string) *GetResourceSharesInput {
- s.NextToken = &v
- return s
- }
- // SetResourceOwner sets the ResourceOwner field's value.
- func (s *GetResourceSharesInput) SetResourceOwner(v string) *GetResourceSharesInput {
- s.ResourceOwner = &v
- return s
- }
- // SetResourceShareArns sets the ResourceShareArns field's value.
- func (s *GetResourceSharesInput) SetResourceShareArns(v []*string) *GetResourceSharesInput {
- s.ResourceShareArns = v
- return s
- }
- // SetResourceShareStatus sets the ResourceShareStatus field's value.
- func (s *GetResourceSharesInput) SetResourceShareStatus(v string) *GetResourceSharesInput {
- s.ResourceShareStatus = &v
- return s
- }
- // SetTagFilters sets the TagFilters field's value.
- func (s *GetResourceSharesInput) SetTagFilters(v []*TagFilter) *GetResourceSharesInput {
- s.TagFilters = v
- return s
- }
- type GetResourceSharesOutput struct {
- _ struct{} `type:"structure"`
- // The token to use to retrieve the next page of results. This value is null
- // when there are no more results to return.
- NextToken *string `locationName:"nextToken" type:"string"`
- // Information about the resource shares.
- ResourceShares []*ResourceShare `locationName:"resourceShares" type:"list"`
- }
- // String returns the string representation
- func (s GetResourceSharesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetResourceSharesOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetResourceSharesOutput) SetNextToken(v string) *GetResourceSharesOutput {
- s.NextToken = &v
- return s
- }
- // SetResourceShares sets the ResourceShares field's value.
- func (s *GetResourceSharesOutput) SetResourceShares(v []*ResourceShare) *GetResourceSharesOutput {
- s.ResourceShares = v
- return s
- }
- type ListPrincipalsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
- // The token for the next page of results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The principals.
- Principals []*string `locationName:"principals" type:"list"`
- // The Amazon Resource Name (ARN) of the resource.
- ResourceArn *string `locationName:"resourceArn" type:"string"`
- // The type of owner.
- //
- // ResourceOwner is a required field
- ResourceOwner *string `locationName:"resourceOwner" type:"string" required:"true" enum:"ResourceOwner"`
- // The Amazon Resource Names (ARN) of the resource shares.
- ResourceShareArns []*string `locationName:"resourceShareArns" type:"list"`
- // The resource type.
- ResourceType *string `locationName:"resourceType" type:"string"`
- }
- // String returns the string representation
- func (s ListPrincipalsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPrincipalsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListPrincipalsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListPrincipalsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.ResourceOwner == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceOwner"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListPrincipalsInput) SetMaxResults(v int64) *ListPrincipalsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListPrincipalsInput) SetNextToken(v string) *ListPrincipalsInput {
- s.NextToken = &v
- return s
- }
- // SetPrincipals sets the Principals field's value.
- func (s *ListPrincipalsInput) SetPrincipals(v []*string) *ListPrincipalsInput {
- s.Principals = v
- return s
- }
- // SetResourceArn sets the ResourceArn field's value.
- func (s *ListPrincipalsInput) SetResourceArn(v string) *ListPrincipalsInput {
- s.ResourceArn = &v
- return s
- }
- // SetResourceOwner sets the ResourceOwner field's value.
- func (s *ListPrincipalsInput) SetResourceOwner(v string) *ListPrincipalsInput {
- s.ResourceOwner = &v
- return s
- }
- // SetResourceShareArns sets the ResourceShareArns field's value.
- func (s *ListPrincipalsInput) SetResourceShareArns(v []*string) *ListPrincipalsInput {
- s.ResourceShareArns = v
- return s
- }
- // SetResourceType sets the ResourceType field's value.
- func (s *ListPrincipalsInput) SetResourceType(v string) *ListPrincipalsInput {
- s.ResourceType = &v
- return s
- }
- type ListPrincipalsOutput struct {
- _ struct{} `type:"structure"`
- // The token to use to retrieve the next page of results. This value is null
- // when there are no more results to return.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The principals.
- Principals []*Principal `locationName:"principals" type:"list"`
- }
- // String returns the string representation
- func (s ListPrincipalsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPrincipalsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListPrincipalsOutput) SetNextToken(v string) *ListPrincipalsOutput {
- s.NextToken = &v
- return s
- }
- // SetPrincipals sets the Principals field's value.
- func (s *ListPrincipalsOutput) SetPrincipals(v []*Principal) *ListPrincipalsOutput {
- s.Principals = v
- return s
- }
- type ListResourcesInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return with a single call. To retrieve the
- // remaining results, make another call with the returned nextToken value.
- MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
- // The token for the next page of results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The principal.
- Principal *string `locationName:"principal" type:"string"`
- // The Amazon Resource Names (ARN) of the resources.
- ResourceArns []*string `locationName:"resourceArns" type:"list"`
- // The type of owner.
- //
- // ResourceOwner is a required field
- ResourceOwner *string `locationName:"resourceOwner" type:"string" required:"true" enum:"ResourceOwner"`
- // The Amazon Resource Names (ARN) of the resource shares.
- ResourceShareArns []*string `locationName:"resourceShareArns" type:"list"`
- // The resource type.
- ResourceType *string `locationName:"resourceType" type:"string"`
- }
- // String returns the string representation
- func (s ListResourcesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListResourcesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListResourcesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListResourcesInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.ResourceOwner == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceOwner"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListResourcesInput) SetMaxResults(v int64) *ListResourcesInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListResourcesInput) SetNextToken(v string) *ListResourcesInput {
- s.NextToken = &v
- return s
- }
- // SetPrincipal sets the Principal field's value.
- func (s *ListResourcesInput) SetPrincipal(v string) *ListResourcesInput {
- s.Principal = &v
- return s
- }
- // SetResourceArns sets the ResourceArns field's value.
- func (s *ListResourcesInput) SetResourceArns(v []*string) *ListResourcesInput {
- s.ResourceArns = v
- return s
- }
- // SetResourceOwner sets the ResourceOwner field's value.
- func (s *ListResourcesInput) SetResourceOwner(v string) *ListResourcesInput {
- s.ResourceOwner = &v
- return s
- }
- // SetResourceShareArns sets the ResourceShareArns field's value.
- func (s *ListResourcesInput) SetResourceShareArns(v []*string) *ListResourcesInput {
- s.ResourceShareArns = v
- return s
- }
- // SetResourceType sets the ResourceType field's value.
- func (s *ListResourcesInput) SetResourceType(v string) *ListResourcesInput {
- s.ResourceType = &v
- return s
- }
- type ListResourcesOutput struct {
- _ struct{} `type:"structure"`
- // The token to use to retrieve the next page of results. This value is null
- // when there are no more results to return.
- NextToken *string `locationName:"nextToken" type:"string"`
- // Information about the resources.
- Resources []*Resource `locationName:"resources" type:"list"`
- }
- // String returns the string representation
- func (s ListResourcesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListResourcesOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListResourcesOutput) SetNextToken(v string) *ListResourcesOutput {
- s.NextToken = &v
- return s
- }
- // SetResources sets the Resources field's value.
- func (s *ListResourcesOutput) SetResources(v []*Resource) *ListResourcesOutput {
- s.Resources = v
- return s
- }
- // Describes a principal for use with AWS Resource Access Manager.
- type Principal struct {
- _ struct{} `type:"structure"`
- // The time when the principal was associated with the resource share.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
- // Indicates whether the principal belongs to the same organization as the AWS
- // account that owns the resource share.
- External *bool `locationName:"external" type:"boolean"`
- // The ID of the principal.
- Id *string `locationName:"id" type:"string"`
- // The time when the association was last updated.
- LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"`
- // The Amazon Resource Name (ARN) of the resource share.
- ResourceShareArn *string `locationName:"resourceShareArn" type:"string"`
- }
- // String returns the string representation
- func (s Principal) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Principal) GoString() string {
- return s.String()
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *Principal) SetCreationTime(v time.Time) *Principal {
- s.CreationTime = &v
- return s
- }
- // SetExternal sets the External field's value.
- func (s *Principal) SetExternal(v bool) *Principal {
- s.External = &v
- return s
- }
- // SetId sets the Id field's value.
- func (s *Principal) SetId(v string) *Principal {
- s.Id = &v
- return s
- }
- // SetLastUpdatedTime sets the LastUpdatedTime field's value.
- func (s *Principal) SetLastUpdatedTime(v time.Time) *Principal {
- s.LastUpdatedTime = &v
- return s
- }
- // SetResourceShareArn sets the ResourceShareArn field's value.
- func (s *Principal) SetResourceShareArn(v string) *Principal {
- s.ResourceShareArn = &v
- return s
- }
- type RejectResourceShareInvitationInput struct {
- _ struct{} `type:"structure"`
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request.
- ClientToken *string `locationName:"clientToken" type:"string"`
- // The Amazon Resource Name (ARN) of the invitation.
- //
- // ResourceShareInvitationArn is a required field
- ResourceShareInvitationArn *string `locationName:"resourceShareInvitationArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RejectResourceShareInvitationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RejectResourceShareInvitationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RejectResourceShareInvitationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RejectResourceShareInvitationInput"}
- if s.ResourceShareInvitationArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceShareInvitationArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *RejectResourceShareInvitationInput) SetClientToken(v string) *RejectResourceShareInvitationInput {
- s.ClientToken = &v
- return s
- }
- // SetResourceShareInvitationArn sets the ResourceShareInvitationArn field's value.
- func (s *RejectResourceShareInvitationInput) SetResourceShareInvitationArn(v string) *RejectResourceShareInvitationInput {
- s.ResourceShareInvitationArn = &v
- return s
- }
- type RejectResourceShareInvitationOutput struct {
- _ struct{} `type:"structure"`
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request.
- ClientToken *string `locationName:"clientToken" type:"string"`
- // Information about the invitation.
- ResourceShareInvitation *ResourceShareInvitation `locationName:"resourceShareInvitation" type:"structure"`
- }
- // String returns the string representation
- func (s RejectResourceShareInvitationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RejectResourceShareInvitationOutput) GoString() string {
- return s.String()
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *RejectResourceShareInvitationOutput) SetClientToken(v string) *RejectResourceShareInvitationOutput {
- s.ClientToken = &v
- return s
- }
- // SetResourceShareInvitation sets the ResourceShareInvitation field's value.
- func (s *RejectResourceShareInvitationOutput) SetResourceShareInvitation(v *ResourceShareInvitation) *RejectResourceShareInvitationOutput {
- s.ResourceShareInvitation = v
- return s
- }
- // Describes a resource associated with a resource share.
- type Resource struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the resource.
- Arn *string `locationName:"arn" type:"string"`
- // The time when the resource was associated with the resource share.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
- // The time when the association was last updated.
- LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"`
- // The Amazon Resource Name (ARN) of the resource share.
- ResourceShareArn *string `locationName:"resourceShareArn" type:"string"`
- // The status of the resource.
- Status *string `locationName:"status" type:"string" enum:"ResourceStatus"`
- // A message about the status of the resource.
- StatusMessage *string `locationName:"statusMessage" type:"string"`
- // The resource type.
- Type *string `locationName:"type" type:"string"`
- }
- // String returns the string representation
- func (s Resource) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Resource) GoString() string {
- return s.String()
- }
- // SetArn sets the Arn field's value.
- func (s *Resource) SetArn(v string) *Resource {
- s.Arn = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *Resource) SetCreationTime(v time.Time) *Resource {
- s.CreationTime = &v
- return s
- }
- // SetLastUpdatedTime sets the LastUpdatedTime field's value.
- func (s *Resource) SetLastUpdatedTime(v time.Time) *Resource {
- s.LastUpdatedTime = &v
- return s
- }
- // SetResourceShareArn sets the ResourceShareArn field's value.
- func (s *Resource) SetResourceShareArn(v string) *Resource {
- s.ResourceShareArn = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *Resource) SetStatus(v string) *Resource {
- s.Status = &v
- return s
- }
- // SetStatusMessage sets the StatusMessage field's value.
- func (s *Resource) SetStatusMessage(v string) *Resource {
- s.StatusMessage = &v
- return s
- }
- // SetType sets the Type field's value.
- func (s *Resource) SetType(v string) *Resource {
- s.Type = &v
- return s
- }
- // Describes a resource share.
- type ResourceShare struct {
- _ struct{} `type:"structure"`
- // Indicates whether principals outside your organization can be associated
- // with a resource share.
- AllowExternalPrincipals *bool `locationName:"allowExternalPrincipals" type:"boolean"`
- // The time when the resource share was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
- // The time when the resource share was last updated.
- LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"`
- // The name of the resource share.
- Name *string `locationName:"name" type:"string"`
- // The ID of the AWS account that owns the resource share.
- OwningAccountId *string `locationName:"owningAccountId" type:"string"`
- // The Amazon Resource Name (ARN) of the resource share.
- ResourceShareArn *string `locationName:"resourceShareArn" type:"string"`
- // The status of the resource share.
- Status *string `locationName:"status" type:"string" enum:"ResourceShareStatus"`
- // A message about the status of the resource share.
- StatusMessage *string `locationName:"statusMessage" type:"string"`
- // The tags for the resource share.
- Tags []*Tag `locationName:"tags" type:"list"`
- }
- // String returns the string representation
- func (s ResourceShare) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResourceShare) GoString() string {
- return s.String()
- }
- // SetAllowExternalPrincipals sets the AllowExternalPrincipals field's value.
- func (s *ResourceShare) SetAllowExternalPrincipals(v bool) *ResourceShare {
- s.AllowExternalPrincipals = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *ResourceShare) SetCreationTime(v time.Time) *ResourceShare {
- s.CreationTime = &v
- return s
- }
- // SetLastUpdatedTime sets the LastUpdatedTime field's value.
- func (s *ResourceShare) SetLastUpdatedTime(v time.Time) *ResourceShare {
- s.LastUpdatedTime = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *ResourceShare) SetName(v string) *ResourceShare {
- s.Name = &v
- return s
- }
- // SetOwningAccountId sets the OwningAccountId field's value.
- func (s *ResourceShare) SetOwningAccountId(v string) *ResourceShare {
- s.OwningAccountId = &v
- return s
- }
- // SetResourceShareArn sets the ResourceShareArn field's value.
- func (s *ResourceShare) SetResourceShareArn(v string) *ResourceShare {
- s.ResourceShareArn = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *ResourceShare) SetStatus(v string) *ResourceShare {
- s.Status = &v
- return s
- }
- // SetStatusMessage sets the StatusMessage field's value.
- func (s *ResourceShare) SetStatusMessage(v string) *ResourceShare {
- s.StatusMessage = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *ResourceShare) SetTags(v []*Tag) *ResourceShare {
- s.Tags = v
- return s
- }
- // Describes an association with a resource share.
- type ResourceShareAssociation struct {
- _ struct{} `type:"structure"`
- // The associated entity. For resource associations, this is the ARN of the
- // resource. For principal associations, this is the ID of an AWS account or
- // the ARN of an OU or organization from AWS Organizations.
- AssociatedEntity *string `locationName:"associatedEntity" type:"string"`
- // The association type.
- AssociationType *string `locationName:"associationType" type:"string" enum:"ResourceShareAssociationType"`
- // The time when the association was created.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
- // Indicates whether the principal belongs to the same organization as the AWS
- // account that owns the resource share.
- External *bool `locationName:"external" type:"boolean"`
- // The time when the association was last updated.
- LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"`
- // The Amazon Resource Name (ARN) of the resource share.
- ResourceShareArn *string `locationName:"resourceShareArn" type:"string"`
- // The status of the association.
- Status *string `locationName:"status" type:"string" enum:"ResourceShareAssociationStatus"`
- // A message about the status of the association.
- StatusMessage *string `locationName:"statusMessage" type:"string"`
- }
- // String returns the string representation
- func (s ResourceShareAssociation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResourceShareAssociation) GoString() string {
- return s.String()
- }
- // SetAssociatedEntity sets the AssociatedEntity field's value.
- func (s *ResourceShareAssociation) SetAssociatedEntity(v string) *ResourceShareAssociation {
- s.AssociatedEntity = &v
- return s
- }
- // SetAssociationType sets the AssociationType field's value.
- func (s *ResourceShareAssociation) SetAssociationType(v string) *ResourceShareAssociation {
- s.AssociationType = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *ResourceShareAssociation) SetCreationTime(v time.Time) *ResourceShareAssociation {
- s.CreationTime = &v
- return s
- }
- // SetExternal sets the External field's value.
- func (s *ResourceShareAssociation) SetExternal(v bool) *ResourceShareAssociation {
- s.External = &v
- return s
- }
- // SetLastUpdatedTime sets the LastUpdatedTime field's value.
- func (s *ResourceShareAssociation) SetLastUpdatedTime(v time.Time) *ResourceShareAssociation {
- s.LastUpdatedTime = &v
- return s
- }
- // SetResourceShareArn sets the ResourceShareArn field's value.
- func (s *ResourceShareAssociation) SetResourceShareArn(v string) *ResourceShareAssociation {
- s.ResourceShareArn = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *ResourceShareAssociation) SetStatus(v string) *ResourceShareAssociation {
- s.Status = &v
- return s
- }
- // SetStatusMessage sets the StatusMessage field's value.
- func (s *ResourceShareAssociation) SetStatusMessage(v string) *ResourceShareAssociation {
- s.StatusMessage = &v
- return s
- }
- // Describes an invitation to join a resource share.
- type ResourceShareInvitation struct {
- _ struct{} `type:"structure"`
- // The date and time when the invitation was sent.
- InvitationTimestamp *time.Time `locationName:"invitationTimestamp" type:"timestamp"`
- // The ID of the AWS account that received the invitation.
- ReceiverAccountId *string `locationName:"receiverAccountId" type:"string"`
- // The Amazon Resource Name (ARN) of the resource share.
- ResourceShareArn *string `locationName:"resourceShareArn" type:"string"`
- // The resources associated with the resource share.
- ResourceShareAssociations []*ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"`
- // The Amazon Resource Name (ARN) of the invitation.
- ResourceShareInvitationArn *string `locationName:"resourceShareInvitationArn" type:"string"`
- // The name of the resource share.
- ResourceShareName *string `locationName:"resourceShareName" type:"string"`
- // The ID of the AWS account that sent the invitation.
- SenderAccountId *string `locationName:"senderAccountId" type:"string"`
- // The status of the invitation.
- Status *string `locationName:"status" type:"string" enum:"ResourceShareInvitationStatus"`
- }
- // String returns the string representation
- func (s ResourceShareInvitation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResourceShareInvitation) GoString() string {
- return s.String()
- }
- // SetInvitationTimestamp sets the InvitationTimestamp field's value.
- func (s *ResourceShareInvitation) SetInvitationTimestamp(v time.Time) *ResourceShareInvitation {
- s.InvitationTimestamp = &v
- return s
- }
- // SetReceiverAccountId sets the ReceiverAccountId field's value.
- func (s *ResourceShareInvitation) SetReceiverAccountId(v string) *ResourceShareInvitation {
- s.ReceiverAccountId = &v
- return s
- }
- // SetResourceShareArn sets the ResourceShareArn field's value.
- func (s *ResourceShareInvitation) SetResourceShareArn(v string) *ResourceShareInvitation {
- s.ResourceShareArn = &v
- return s
- }
- // SetResourceShareAssociations sets the ResourceShareAssociations field's value.
- func (s *ResourceShareInvitation) SetResourceShareAssociations(v []*ResourceShareAssociation) *ResourceShareInvitation {
- s.ResourceShareAssociations = v
- return s
- }
- // SetResourceShareInvitationArn sets the ResourceShareInvitationArn field's value.
- func (s *ResourceShareInvitation) SetResourceShareInvitationArn(v string) *ResourceShareInvitation {
- s.ResourceShareInvitationArn = &v
- return s
- }
- // SetResourceShareName sets the ResourceShareName field's value.
- func (s *ResourceShareInvitation) SetResourceShareName(v string) *ResourceShareInvitation {
- s.ResourceShareName = &v
- return s
- }
- // SetSenderAccountId sets the SenderAccountId field's value.
- func (s *ResourceShareInvitation) SetSenderAccountId(v string) *ResourceShareInvitation {
- s.SenderAccountId = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *ResourceShareInvitation) SetStatus(v string) *ResourceShareInvitation {
- s.Status = &v
- return s
- }
- // Information about a tag.
- type Tag struct {
- _ struct{} `type:"structure"`
- // The key of the tag.
- Key *string `locationName:"key" type:"string"`
- // The value of the tag.
- Value *string `locationName:"value" type:"string"`
- }
- // String returns the string representation
- func (s Tag) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Tag) GoString() string {
- return s.String()
- }
- // SetKey sets the Key field's value.
- func (s *Tag) SetKey(v string) *Tag {
- s.Key = &v
- return s
- }
- // SetValue sets the Value field's value.
- func (s *Tag) SetValue(v string) *Tag {
- s.Value = &v
- return s
- }
- // Used to filter information based on tags.
- type TagFilter struct {
- _ struct{} `type:"structure"`
- // The tag key.
- TagKey *string `locationName:"tagKey" type:"string"`
- // The tag values.
- TagValues []*string `locationName:"tagValues" type:"list"`
- }
- // String returns the string representation
- func (s TagFilter) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TagFilter) GoString() string {
- return s.String()
- }
- // SetTagKey sets the TagKey field's value.
- func (s *TagFilter) SetTagKey(v string) *TagFilter {
- s.TagKey = &v
- return s
- }
- // SetTagValues sets the TagValues field's value.
- func (s *TagFilter) SetTagValues(v []*string) *TagFilter {
- s.TagValues = v
- return s
- }
- type TagResourceInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the resource share.
- //
- // ResourceShareArn is a required field
- ResourceShareArn *string `locationName:"resourceShareArn" type:"string" required:"true"`
- // One or more tags.
- //
- // Tags is a required field
- Tags []*Tag `locationName:"tags" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s TagResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TagResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TagResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
- if s.ResourceShareArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceShareArn"))
- }
- if s.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetResourceShareArn sets the ResourceShareArn field's value.
- func (s *TagResourceInput) SetResourceShareArn(v string) *TagResourceInput {
- s.ResourceShareArn = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput {
- s.Tags = v
- return s
- }
- type TagResourceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s TagResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TagResourceOutput) GoString() string {
- return s.String()
- }
- type UntagResourceInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the resource share.
- //
- // ResourceShareArn is a required field
- ResourceShareArn *string `locationName:"resourceShareArn" type:"string" required:"true"`
- // The tag keys of the tags to remove.
- //
- // TagKeys is a required field
- TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s UntagResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UntagResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UntagResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
- if s.ResourceShareArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceShareArn"))
- }
- if s.TagKeys == nil {
- invalidParams.Add(request.NewErrParamRequired("TagKeys"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetResourceShareArn sets the ResourceShareArn field's value.
- func (s *UntagResourceInput) SetResourceShareArn(v string) *UntagResourceInput {
- s.ResourceShareArn = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
- s.TagKeys = v
- return s
- }
- type UntagResourceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UntagResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UntagResourceOutput) GoString() string {
- return s.String()
- }
- type UpdateResourceShareInput struct {
- _ struct{} `type:"structure"`
- // Indicates whether principals outside your organization can be associated
- // with a resource share.
- AllowExternalPrincipals *bool `locationName:"allowExternalPrincipals" type:"boolean"`
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request.
- ClientToken *string `locationName:"clientToken" type:"string"`
- // The name of the resource share.
- Name *string `locationName:"name" type:"string"`
- // The Amazon Resource Name (ARN) of the resource share.
- //
- // ResourceShareArn is a required field
- ResourceShareArn *string `locationName:"resourceShareArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateResourceShareInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateResourceShareInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateResourceShareInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateResourceShareInput"}
- if s.ResourceShareArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceShareArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAllowExternalPrincipals sets the AllowExternalPrincipals field's value.
- func (s *UpdateResourceShareInput) SetAllowExternalPrincipals(v bool) *UpdateResourceShareInput {
- s.AllowExternalPrincipals = &v
- return s
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *UpdateResourceShareInput) SetClientToken(v string) *UpdateResourceShareInput {
- s.ClientToken = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *UpdateResourceShareInput) SetName(v string) *UpdateResourceShareInput {
- s.Name = &v
- return s
- }
- // SetResourceShareArn sets the ResourceShareArn field's value.
- func (s *UpdateResourceShareInput) SetResourceShareArn(v string) *UpdateResourceShareInput {
- s.ResourceShareArn = &v
- return s
- }
- type UpdateResourceShareOutput struct {
- _ struct{} `type:"structure"`
- // A unique, case-sensitive identifier that you provide to ensure the idempotency
- // of the request.
- ClientToken *string `locationName:"clientToken" type:"string"`
- // Information about the resource share.
- ResourceShare *ResourceShare `locationName:"resourceShare" type:"structure"`
- }
- // String returns the string representation
- func (s UpdateResourceShareOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateResourceShareOutput) GoString() string {
- return s.String()
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *UpdateResourceShareOutput) SetClientToken(v string) *UpdateResourceShareOutput {
- s.ClientToken = &v
- return s
- }
- // SetResourceShare sets the ResourceShare field's value.
- func (s *UpdateResourceShareOutput) SetResourceShare(v *ResourceShare) *UpdateResourceShareOutput {
- s.ResourceShare = v
- return s
- }
- const (
- // ResourceOwnerSelf is a ResourceOwner enum value
- ResourceOwnerSelf = "SELF"
- // ResourceOwnerOtherAccounts is a ResourceOwner enum value
- ResourceOwnerOtherAccounts = "OTHER-ACCOUNTS"
- )
- const (
- // ResourceShareAssociationStatusAssociating is a ResourceShareAssociationStatus enum value
- ResourceShareAssociationStatusAssociating = "ASSOCIATING"
- // ResourceShareAssociationStatusAssociated is a ResourceShareAssociationStatus enum value
- ResourceShareAssociationStatusAssociated = "ASSOCIATED"
- // ResourceShareAssociationStatusFailed is a ResourceShareAssociationStatus enum value
- ResourceShareAssociationStatusFailed = "FAILED"
- // ResourceShareAssociationStatusDisassociating is a ResourceShareAssociationStatus enum value
- ResourceShareAssociationStatusDisassociating = "DISASSOCIATING"
- // ResourceShareAssociationStatusDisassociated is a ResourceShareAssociationStatus enum value
- ResourceShareAssociationStatusDisassociated = "DISASSOCIATED"
- )
- const (
- // ResourceShareAssociationTypePrincipal is a ResourceShareAssociationType enum value
- ResourceShareAssociationTypePrincipal = "PRINCIPAL"
- // ResourceShareAssociationTypeResource is a ResourceShareAssociationType enum value
- ResourceShareAssociationTypeResource = "RESOURCE"
- )
- const (
- // ResourceShareInvitationStatusPending is a ResourceShareInvitationStatus enum value
- ResourceShareInvitationStatusPending = "PENDING"
- // ResourceShareInvitationStatusAccepted is a ResourceShareInvitationStatus enum value
- ResourceShareInvitationStatusAccepted = "ACCEPTED"
- // ResourceShareInvitationStatusRejected is a ResourceShareInvitationStatus enum value
- ResourceShareInvitationStatusRejected = "REJECTED"
- // ResourceShareInvitationStatusExpired is a ResourceShareInvitationStatus enum value
- ResourceShareInvitationStatusExpired = "EXPIRED"
- )
- const (
- // ResourceShareStatusPending is a ResourceShareStatus enum value
- ResourceShareStatusPending = "PENDING"
- // ResourceShareStatusActive is a ResourceShareStatus enum value
- ResourceShareStatusActive = "ACTIVE"
- // ResourceShareStatusFailed is a ResourceShareStatus enum value
- ResourceShareStatusFailed = "FAILED"
- // ResourceShareStatusDeleting is a ResourceShareStatus enum value
- ResourceShareStatusDeleting = "DELETING"
- // ResourceShareStatusDeleted is a ResourceShareStatus enum value
- ResourceShareStatusDeleted = "DELETED"
- )
- const (
- // ResourceStatusAvailable is a ResourceStatus enum value
- ResourceStatusAvailable = "AVAILABLE"
- // ResourceStatusZonalResourceInaccessible is a ResourceStatus enum value
- ResourceStatusZonalResourceInaccessible = "ZONAL_RESOURCE_INACCESSIBLE"
- // ResourceStatusLimitExceeded is a ResourceStatus enum value
- ResourceStatusLimitExceeded = "LIMIT_EXCEEDED"
- // ResourceStatusUnavailable is a ResourceStatus enum value
- ResourceStatusUnavailable = "UNAVAILABLE"
- )
|