| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- // Package cloudhsm provides a client for Amazon CloudHSM.
- package cloudhsm
- import (
- "fmt"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- )
- const opAddTagsToResource = "AddTagsToResource"
- // AddTagsToResourceRequest generates a "aws/request.Request" representing the
- // client's request for the AddTagsToResource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AddTagsToResource method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the AddTagsToResourceRequest method.
- // req, resp := client.AddTagsToResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) {
- op := &request.Operation{
- Name: opAddTagsToResource,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddTagsToResourceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AddTagsToResourceOutput{}
- req.Data = output
- return
- }
- // Adds or overwrites one or more tags for the specified AWS CloudHSM resource.
- //
- // Each tag consists of a key and a value. Tag keys must be unique to each
- // resource.
- func (c *CloudHSM) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) {
- req, out := c.AddTagsToResourceRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateHapg = "CreateHapg"
- // CreateHapgRequest generates a "aws/request.Request" representing the
- // client's request for the CreateHapg operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateHapg method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateHapgRequest method.
- // req, resp := client.CreateHapgRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) CreateHapgRequest(input *CreateHapgInput) (req *request.Request, output *CreateHapgOutput) {
- op := &request.Operation{
- Name: opCreateHapg,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateHapgInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateHapgOutput{}
- req.Data = output
- return
- }
- // Creates a high-availability partition group. A high-availability partition
- // group is a group of partitions that spans multiple physical HSMs.
- func (c *CloudHSM) CreateHapg(input *CreateHapgInput) (*CreateHapgOutput, error) {
- req, out := c.CreateHapgRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateHsm = "CreateHsm"
- // CreateHsmRequest generates a "aws/request.Request" representing the
- // client's request for the CreateHsm operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateHsm method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateHsmRequest method.
- // req, resp := client.CreateHsmRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) CreateHsmRequest(input *CreateHsmInput) (req *request.Request, output *CreateHsmOutput) {
- op := &request.Operation{
- Name: opCreateHsm,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateHsmInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateHsmOutput{}
- req.Data = output
- return
- }
- // Creates an uninitialized HSM instance.
- //
- // There is an upfront fee charged for each HSM instance that you create with
- // the CreateHsm operation. If you accidentally provision an HSM and want to
- // request a refund, delete the instance using the DeleteHsm operation, go to
- // the AWS Support Center (https://console.aws.amazon.com/support/home#/), create
- // a new case, and select Account and Billing Support.
- //
- // It can take up to 20 minutes to create and provision an HSM. You can monitor
- // the status of the HSM with the DescribeHsm operation. The HSM is ready to
- // be initialized when the status changes to RUNNING.
- func (c *CloudHSM) CreateHsm(input *CreateHsmInput) (*CreateHsmOutput, error) {
- req, out := c.CreateHsmRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateLunaClient = "CreateLunaClient"
- // CreateLunaClientRequest generates a "aws/request.Request" representing the
- // client's request for the CreateLunaClient operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateLunaClient method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateLunaClientRequest method.
- // req, resp := client.CreateLunaClientRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) CreateLunaClientRequest(input *CreateLunaClientInput) (req *request.Request, output *CreateLunaClientOutput) {
- op := &request.Operation{
- Name: opCreateLunaClient,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateLunaClientInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateLunaClientOutput{}
- req.Data = output
- return
- }
- // Creates an HSM client.
- func (c *CloudHSM) CreateLunaClient(input *CreateLunaClientInput) (*CreateLunaClientOutput, error) {
- req, out := c.CreateLunaClientRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteHapg = "DeleteHapg"
- // DeleteHapgRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteHapg operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteHapg method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteHapgRequest method.
- // req, resp := client.DeleteHapgRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) DeleteHapgRequest(input *DeleteHapgInput) (req *request.Request, output *DeleteHapgOutput) {
- op := &request.Operation{
- Name: opDeleteHapg,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteHapgInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteHapgOutput{}
- req.Data = output
- return
- }
- // Deletes a high-availability partition group.
- func (c *CloudHSM) DeleteHapg(input *DeleteHapgInput) (*DeleteHapgOutput, error) {
- req, out := c.DeleteHapgRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteHsm = "DeleteHsm"
- // DeleteHsmRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteHsm operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteHsm method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteHsmRequest method.
- // req, resp := client.DeleteHsmRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) DeleteHsmRequest(input *DeleteHsmInput) (req *request.Request, output *DeleteHsmOutput) {
- op := &request.Operation{
- Name: opDeleteHsm,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteHsmInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteHsmOutput{}
- req.Data = output
- return
- }
- // Deletes an HSM. After completion, this operation cannot be undone and your
- // key material cannot be recovered.
- func (c *CloudHSM) DeleteHsm(input *DeleteHsmInput) (*DeleteHsmOutput, error) {
- req, out := c.DeleteHsmRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteLunaClient = "DeleteLunaClient"
- // DeleteLunaClientRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteLunaClient operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteLunaClient method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteLunaClientRequest method.
- // req, resp := client.DeleteLunaClientRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) DeleteLunaClientRequest(input *DeleteLunaClientInput) (req *request.Request, output *DeleteLunaClientOutput) {
- op := &request.Operation{
- Name: opDeleteLunaClient,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteLunaClientInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteLunaClientOutput{}
- req.Data = output
- return
- }
- // Deletes a client.
- func (c *CloudHSM) DeleteLunaClient(input *DeleteLunaClientInput) (*DeleteLunaClientOutput, error) {
- req, out := c.DeleteLunaClientRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeHapg = "DescribeHapg"
- // DescribeHapgRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeHapg operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeHapg method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeHapgRequest method.
- // req, resp := client.DescribeHapgRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) DescribeHapgRequest(input *DescribeHapgInput) (req *request.Request, output *DescribeHapgOutput) {
- op := &request.Operation{
- Name: opDescribeHapg,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeHapgInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeHapgOutput{}
- req.Data = output
- return
- }
- // Retrieves information about a high-availability partition group.
- func (c *CloudHSM) DescribeHapg(input *DescribeHapgInput) (*DescribeHapgOutput, error) {
- req, out := c.DescribeHapgRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeHsm = "DescribeHsm"
- // DescribeHsmRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeHsm operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeHsm method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeHsmRequest method.
- // req, resp := client.DescribeHsmRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) DescribeHsmRequest(input *DescribeHsmInput) (req *request.Request, output *DescribeHsmOutput) {
- op := &request.Operation{
- Name: opDescribeHsm,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeHsmInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeHsmOutput{}
- req.Data = output
- return
- }
- // Retrieves information about an HSM. You can identify the HSM by its ARN or
- // its serial number.
- func (c *CloudHSM) DescribeHsm(input *DescribeHsmInput) (*DescribeHsmOutput, error) {
- req, out := c.DescribeHsmRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeLunaClient = "DescribeLunaClient"
- // DescribeLunaClientRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeLunaClient operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeLunaClient method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeLunaClientRequest method.
- // req, resp := client.DescribeLunaClientRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) DescribeLunaClientRequest(input *DescribeLunaClientInput) (req *request.Request, output *DescribeLunaClientOutput) {
- op := &request.Operation{
- Name: opDescribeLunaClient,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeLunaClientInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeLunaClientOutput{}
- req.Data = output
- return
- }
- // Retrieves information about an HSM client.
- func (c *CloudHSM) DescribeLunaClient(input *DescribeLunaClientInput) (*DescribeLunaClientOutput, error) {
- req, out := c.DescribeLunaClientRequest(input)
- err := req.Send()
- return out, err
- }
- const opGetConfig = "GetConfig"
- // GetConfigRequest generates a "aws/request.Request" representing the
- // client's request for the GetConfig operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the GetConfig method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the GetConfigRequest method.
- // req, resp := client.GetConfigRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) GetConfigRequest(input *GetConfigInput) (req *request.Request, output *GetConfigOutput) {
- op := &request.Operation{
- Name: opGetConfig,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetConfigInput{}
- }
- req = c.newRequest(op, input, output)
- output = &GetConfigOutput{}
- req.Data = output
- return
- }
- // Gets the configuration files necessary to connect to all high availability
- // partition groups the client is associated with.
- func (c *CloudHSM) GetConfig(input *GetConfigInput) (*GetConfigOutput, error) {
- req, out := c.GetConfigRequest(input)
- err := req.Send()
- return out, err
- }
- const opListAvailableZones = "ListAvailableZones"
- // ListAvailableZonesRequest generates a "aws/request.Request" representing the
- // client's request for the ListAvailableZones operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListAvailableZones method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListAvailableZonesRequest method.
- // req, resp := client.ListAvailableZonesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) ListAvailableZonesRequest(input *ListAvailableZonesInput) (req *request.Request, output *ListAvailableZonesOutput) {
- op := &request.Operation{
- Name: opListAvailableZones,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListAvailableZonesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListAvailableZonesOutput{}
- req.Data = output
- return
- }
- // Lists the Availability Zones that have available AWS CloudHSM capacity.
- func (c *CloudHSM) ListAvailableZones(input *ListAvailableZonesInput) (*ListAvailableZonesOutput, error) {
- req, out := c.ListAvailableZonesRequest(input)
- err := req.Send()
- return out, err
- }
- const opListHapgs = "ListHapgs"
- // ListHapgsRequest generates a "aws/request.Request" representing the
- // client's request for the ListHapgs operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListHapgs method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListHapgsRequest method.
- // req, resp := client.ListHapgsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) ListHapgsRequest(input *ListHapgsInput) (req *request.Request, output *ListHapgsOutput) {
- op := &request.Operation{
- Name: opListHapgs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListHapgsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListHapgsOutput{}
- req.Data = output
- return
- }
- // Lists the high-availability partition groups for the account.
- //
- // This operation supports pagination with the use of the NextToken member.
- // If more results are available, the NextToken member of the response contains
- // a token that you pass in the next call to ListHapgs to retrieve the next
- // set of items.
- func (c *CloudHSM) ListHapgs(input *ListHapgsInput) (*ListHapgsOutput, error) {
- req, out := c.ListHapgsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListHsms = "ListHsms"
- // ListHsmsRequest generates a "aws/request.Request" representing the
- // client's request for the ListHsms operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListHsms method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListHsmsRequest method.
- // req, resp := client.ListHsmsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) ListHsmsRequest(input *ListHsmsInput) (req *request.Request, output *ListHsmsOutput) {
- op := &request.Operation{
- Name: opListHsms,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListHsmsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListHsmsOutput{}
- req.Data = output
- return
- }
- // Retrieves the identifiers of all of the HSMs provisioned for the current
- // customer.
- //
- // This operation supports pagination with the use of the NextToken member.
- // If more results are available, the NextToken member of the response contains
- // a token that you pass in the next call to ListHsms to retrieve the next set
- // of items.
- func (c *CloudHSM) ListHsms(input *ListHsmsInput) (*ListHsmsOutput, error) {
- req, out := c.ListHsmsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListLunaClients = "ListLunaClients"
- // ListLunaClientsRequest generates a "aws/request.Request" representing the
- // client's request for the ListLunaClients operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListLunaClients method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListLunaClientsRequest method.
- // req, resp := client.ListLunaClientsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) ListLunaClientsRequest(input *ListLunaClientsInput) (req *request.Request, output *ListLunaClientsOutput) {
- op := &request.Operation{
- Name: opListLunaClients,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListLunaClientsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListLunaClientsOutput{}
- req.Data = output
- return
- }
- // Lists all of the clients.
- //
- // This operation supports pagination with the use of the NextToken member.
- // If more results are available, the NextToken member of the response contains
- // a token that you pass in the next call to ListLunaClients to retrieve the
- // next set of items.
- func (c *CloudHSM) ListLunaClients(input *ListLunaClientsInput) (*ListLunaClientsOutput, error) {
- req, out := c.ListLunaClientsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListTagsForResource = "ListTagsForResource"
- // ListTagsForResourceRequest generates a "aws/request.Request" representing the
- // client's request for the ListTagsForResource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListTagsForResource method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListTagsForResourceRequest method.
- // req, resp := client.ListTagsForResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
- op := &request.Operation{
- Name: opListTagsForResource,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListTagsForResourceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListTagsForResourceOutput{}
- req.Data = output
- return
- }
- // Returns a list of all tags for the specified AWS CloudHSM resource.
- func (c *CloudHSM) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
- req, out := c.ListTagsForResourceRequest(input)
- err := req.Send()
- return out, err
- }
- const opModifyHapg = "ModifyHapg"
- // ModifyHapgRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyHapg operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ModifyHapg method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ModifyHapgRequest method.
- // req, resp := client.ModifyHapgRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) ModifyHapgRequest(input *ModifyHapgInput) (req *request.Request, output *ModifyHapgOutput) {
- op := &request.Operation{
- Name: opModifyHapg,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyHapgInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ModifyHapgOutput{}
- req.Data = output
- return
- }
- // Modifies an existing high-availability partition group.
- func (c *CloudHSM) ModifyHapg(input *ModifyHapgInput) (*ModifyHapgOutput, error) {
- req, out := c.ModifyHapgRequest(input)
- err := req.Send()
- return out, err
- }
- const opModifyHsm = "ModifyHsm"
- // ModifyHsmRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyHsm operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ModifyHsm method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ModifyHsmRequest method.
- // req, resp := client.ModifyHsmRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) ModifyHsmRequest(input *ModifyHsmInput) (req *request.Request, output *ModifyHsmOutput) {
- op := &request.Operation{
- Name: opModifyHsm,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyHsmInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ModifyHsmOutput{}
- req.Data = output
- return
- }
- // Modifies an HSM.
- //
- // This operation can result in the HSM being offline for up to 15 minutes
- // while the AWS CloudHSM service is reconfigured. If you are modifying a production
- // HSM, you should ensure that your AWS CloudHSM service is configured for high
- // availability, and consider executing this operation during a maintenance
- // window.
- func (c *CloudHSM) ModifyHsm(input *ModifyHsmInput) (*ModifyHsmOutput, error) {
- req, out := c.ModifyHsmRequest(input)
- err := req.Send()
- return out, err
- }
- const opModifyLunaClient = "ModifyLunaClient"
- // ModifyLunaClientRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyLunaClient operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ModifyLunaClient method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ModifyLunaClientRequest method.
- // req, resp := client.ModifyLunaClientRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) ModifyLunaClientRequest(input *ModifyLunaClientInput) (req *request.Request, output *ModifyLunaClientOutput) {
- op := &request.Operation{
- Name: opModifyLunaClient,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyLunaClientInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ModifyLunaClientOutput{}
- req.Data = output
- return
- }
- // Modifies the certificate used by the client.
- //
- // This action can potentially start a workflow to install the new certificate
- // on the client's HSMs.
- func (c *CloudHSM) ModifyLunaClient(input *ModifyLunaClientInput) (*ModifyLunaClientOutput, error) {
- req, out := c.ModifyLunaClientRequest(input)
- err := req.Send()
- return out, err
- }
- const opRemoveTagsFromResource = "RemoveTagsFromResource"
- // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the
- // client's request for the RemoveTagsFromResource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the RemoveTagsFromResource method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the RemoveTagsFromResourceRequest method.
- // req, resp := client.RemoveTagsFromResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudHSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) {
- op := &request.Operation{
- Name: opRemoveTagsFromResource,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RemoveTagsFromResourceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RemoveTagsFromResourceOutput{}
- req.Data = output
- return
- }
- // Removes one or more tags from the specified AWS CloudHSM resource.
- //
- // To remove a tag, specify only the tag key to remove (not the value). To
- // overwrite the value for an existing tag, use AddTagsToResource.
- func (c *CloudHSM) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) {
- req, out := c.RemoveTagsFromResourceRequest(input)
- err := req.Send()
- return out, err
- }
- type AddTagsToResourceInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.
- ResourceArn *string `type:"string" required:"true"`
- // One or more tags.
- TagList []*Tag `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s AddTagsToResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddTagsToResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddTagsToResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"}
- if s.ResourceArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
- }
- if s.TagList == nil {
- invalidParams.Add(request.NewErrParamRequired("TagList"))
- }
- if s.TagList != nil {
- for i, v := range s.TagList {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagList", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type AddTagsToResourceOutput struct {
- _ struct{} `type:"structure"`
- // The status of the operation.
- Status *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AddTagsToResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddTagsToResourceOutput) GoString() string {
- return s.String()
- }
- // Contains the inputs for the CreateHapgRequest action.
- type CreateHapgInput struct {
- _ struct{} `type:"structure"`
- // The label of the new high-availability partition group.
- Label *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateHapgInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateHapgInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateHapgInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateHapgInput"}
- if s.Label == nil {
- invalidParams.Add(request.NewErrParamRequired("Label"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of the CreateHAPartitionGroup action.
- type CreateHapgOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the high-availability partition group.
- HapgArn *string `type:"string"`
- }
- // String returns the string representation
- func (s CreateHapgOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateHapgOutput) GoString() string {
- return s.String()
- }
- // Contains the inputs for the CreateHsm operation.
- type CreateHsmInput struct {
- _ struct{} `locationName:"CreateHsmRequest" type:"structure"`
- // A user-defined token to ensure idempotence. Subsequent calls to this operation
- // with the same token will be ignored.
- ClientToken *string `locationName:"ClientToken" type:"string"`
- // The IP address to assign to the HSM's ENI.
- //
- // If an IP address is not specified, an IP address will be randomly chosen
- // from the CIDR range of the subnet.
- EniIp *string `locationName:"EniIp" type:"string"`
- // The external ID from IamRoleArn, if present.
- ExternalId *string `locationName:"ExternalId" type:"string"`
- // The ARN of an IAM role to enable the AWS CloudHSM service to allocate an
- // ENI on your behalf.
- IamRoleArn *string `locationName:"IamRoleArn" type:"string" required:"true"`
- // The SSH public key to install on the HSM.
- SshKey *string `locationName:"SshKey" type:"string" required:"true"`
- // The identifier of the subnet in your VPC in which to place the HSM.
- SubnetId *string `locationName:"SubnetId" type:"string" required:"true"`
- // Specifies the type of subscription for the HSM.
- //
- // PRODUCTION - The HSM is being used in a production environment. TRIAL -
- // The HSM is being used in a product trial.
- SubscriptionType *string `locationName:"SubscriptionType" type:"string" required:"true" enum:"SubscriptionType"`
- // The IP address for the syslog monitoring server. The AWS CloudHSM service
- // only supports one syslog monitoring server.
- SyslogIp *string `locationName:"SyslogIp" type:"string"`
- }
- // String returns the string representation
- func (s CreateHsmInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateHsmInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateHsmInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateHsmInput"}
- if s.IamRoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("IamRoleArn"))
- }
- if s.SshKey == nil {
- invalidParams.Add(request.NewErrParamRequired("SshKey"))
- }
- if s.SubnetId == nil {
- invalidParams.Add(request.NewErrParamRequired("SubnetId"))
- }
- if s.SubscriptionType == nil {
- invalidParams.Add(request.NewErrParamRequired("SubscriptionType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of the CreateHsm operation.
- type CreateHsmOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the HSM.
- HsmArn *string `type:"string"`
- }
- // String returns the string representation
- func (s CreateHsmOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateHsmOutput) GoString() string {
- return s.String()
- }
- // Contains the inputs for the CreateLunaClient action.
- type CreateLunaClientInput struct {
- _ struct{} `type:"structure"`
- // The contents of a Base64-Encoded X.509 v3 certificate to be installed on
- // the HSMs used by this client.
- Certificate *string `min:"600" type:"string" required:"true"`
- // The label for the client.
- Label *string `type:"string"`
- }
- // String returns the string representation
- func (s CreateLunaClientInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLunaClientInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateLunaClientInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateLunaClientInput"}
- if s.Certificate == nil {
- invalidParams.Add(request.NewErrParamRequired("Certificate"))
- }
- if s.Certificate != nil && len(*s.Certificate) < 600 {
- invalidParams.Add(request.NewErrParamMinLen("Certificate", 600))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of the CreateLunaClient action.
- type CreateLunaClientOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the client.
- ClientArn *string `type:"string"`
- }
- // String returns the string representation
- func (s CreateLunaClientOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateLunaClientOutput) GoString() string {
- return s.String()
- }
- // Contains the inputs for the DeleteHapg action.
- type DeleteHapgInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the high-availability partition group to delete.
- HapgArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteHapgInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteHapgInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteHapgInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteHapgInput"}
- if s.HapgArn == nil {
- invalidParams.Add(request.NewErrParamRequired("HapgArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of the DeleteHapg action.
- type DeleteHapgOutput struct {
- _ struct{} `type:"structure"`
- // The status of the action.
- Status *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteHapgOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteHapgOutput) GoString() string {
- return s.String()
- }
- // Contains the inputs for the DeleteHsm operation.
- type DeleteHsmInput struct {
- _ struct{} `locationName:"DeleteHsmRequest" type:"structure"`
- // The ARN of the HSM to delete.
- HsmArn *string `locationName:"HsmArn" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteHsmInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteHsmInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteHsmInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteHsmInput"}
- if s.HsmArn == nil {
- invalidParams.Add(request.NewErrParamRequired("HsmArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of the DeleteHsm operation.
- type DeleteHsmOutput struct {
- _ struct{} `type:"structure"`
- // The status of the operation.
- Status *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteHsmOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteHsmOutput) GoString() string {
- return s.String()
- }
- type DeleteLunaClientInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the client to delete.
- ClientArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteLunaClientInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteLunaClientInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteLunaClientInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteLunaClientInput"}
- if s.ClientArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteLunaClientOutput struct {
- _ struct{} `type:"structure"`
- // The status of the action.
- Status *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteLunaClientOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteLunaClientOutput) GoString() string {
- return s.String()
- }
- // Contains the inputs for the DescribeHapg action.
- type DescribeHapgInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the high-availability partition group to describe.
- HapgArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeHapgInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeHapgInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeHapgInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeHapgInput"}
- if s.HapgArn == nil {
- invalidParams.Add(request.NewErrParamRequired("HapgArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of the DescribeHapg action.
- type DescribeHapgOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the high-availability partition group.
- HapgArn *string `type:"string"`
- // The serial number of the high-availability partition group.
- HapgSerial *string `type:"string"`
- // Contains a list of ARNs that identify the HSMs.
- HsmsLastActionFailed []*string `type:"list"`
- // Contains a list of ARNs that identify the HSMs.
- HsmsPendingDeletion []*string `type:"list"`
- // Contains a list of ARNs that identify the HSMs.
- HsmsPendingRegistration []*string `type:"list"`
- // The label for the high-availability partition group.
- Label *string `type:"string"`
- // The date and time the high-availability partition group was last modified.
- LastModifiedTimestamp *string `type:"string"`
- // The list of partition serial numbers that belong to the high-availability
- // partition group.
- PartitionSerialList []*string `type:"list"`
- // The state of the high-availability partition group.
- State *string `type:"string" enum:"CloudHsmObjectState"`
- }
- // String returns the string representation
- func (s DescribeHapgOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeHapgOutput) GoString() string {
- return s.String()
- }
- // Contains the inputs for the DescribeHsm operation.
- type DescribeHsmInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the HSM. Either the HsmArn or the SerialNumber parameter must
- // be specified.
- HsmArn *string `type:"string"`
- // The serial number of the HSM. Either the HsmArn or the HsmSerialNumber parameter
- // must be specified.
- HsmSerialNumber *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeHsmInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeHsmInput) GoString() string {
- return s.String()
- }
- // Contains the output of the DescribeHsm operation.
- type DescribeHsmOutput struct {
- _ struct{} `type:"structure"`
- // The Availability Zone that the HSM is in.
- AvailabilityZone *string `type:"string"`
- // The identifier of the elastic network interface (ENI) attached to the HSM.
- EniId *string `type:"string"`
- // The IP address assigned to the HSM's ENI.
- EniIp *string `type:"string"`
- // The ARN of the HSM.
- HsmArn *string `type:"string"`
- // The HSM model type.
- HsmType *string `type:"string"`
- // The ARN of the IAM role assigned to the HSM.
- IamRoleArn *string `type:"string"`
- // The list of partitions on the HSM.
- Partitions []*string `type:"list"`
- // The serial number of the HSM.
- SerialNumber *string `type:"string"`
- // The date and time that the server certificate was last updated.
- ServerCertLastUpdated *string `type:"string"`
- // The URI of the certificate server.
- ServerCertUri *string `type:"string"`
- // The HSM software version.
- SoftwareVersion *string `type:"string"`
- // The date and time that the SSH key was last updated.
- SshKeyLastUpdated *string `type:"string"`
- // The public SSH key.
- SshPublicKey *string `type:"string"`
- // The status of the HSM.
- Status *string `type:"string" enum:"HsmStatus"`
- // Contains additional information about the status of the HSM.
- StatusDetails *string `type:"string"`
- // The identifier of the subnet that the HSM is in.
- SubnetId *string `type:"string"`
- // The subscription end date.
- SubscriptionEndDate *string `type:"string"`
- // The subscription start date.
- SubscriptionStartDate *string `type:"string"`
- // Specifies the type of subscription for the HSM.
- //
- // PRODUCTION - The HSM is being used in a production environment. TRIAL -
- // The HSM is being used in a product trial.
- SubscriptionType *string `type:"string" enum:"SubscriptionType"`
- // The name of the HSM vendor.
- VendorName *string `type:"string"`
- // The identifier of the VPC that the HSM is in.
- VpcId *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeHsmOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeHsmOutput) GoString() string {
- return s.String()
- }
- type DescribeLunaClientInput struct {
- _ struct{} `type:"structure"`
- // The certificate fingerprint.
- CertificateFingerprint *string `type:"string"`
- // The ARN of the client.
- ClientArn *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeLunaClientInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLunaClientInput) GoString() string {
- return s.String()
- }
- type DescribeLunaClientOutput struct {
- _ struct{} `type:"structure"`
- // The certificate installed on the HSMs used by this client.
- Certificate *string `min:"600" type:"string"`
- // The certificate fingerprint.
- CertificateFingerprint *string `type:"string"`
- // The ARN of the client.
- ClientArn *string `type:"string"`
- // The label of the client.
- Label *string `type:"string"`
- // The date and time the client was last modified.
- LastModifiedTimestamp *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeLunaClientOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLunaClientOutput) GoString() string {
- return s.String()
- }
- type GetConfigInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the client.
- ClientArn *string `type:"string" required:"true"`
- // The client version.
- ClientVersion *string `type:"string" required:"true" enum:"ClientVersion"`
- // A list of ARNs that identify the high-availability partition groups that
- // are associated with the client.
- HapgList []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s GetConfigInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetConfigInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetConfigInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetConfigInput"}
- if s.ClientArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientArn"))
- }
- if s.ClientVersion == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientVersion"))
- }
- if s.HapgList == nil {
- invalidParams.Add(request.NewErrParamRequired("HapgList"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type GetConfigOutput struct {
- _ struct{} `type:"structure"`
- // The certificate file containing the server.pem files of the HSMs.
- ConfigCred *string `type:"string"`
- // The chrystoki.conf configuration file.
- ConfigFile *string `type:"string"`
- // The type of credentials.
- ConfigType *string `type:"string"`
- }
- // String returns the string representation
- func (s GetConfigOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetConfigOutput) GoString() string {
- return s.String()
- }
- // Contains the inputs for the ListAvailableZones action.
- type ListAvailableZonesInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ListAvailableZonesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAvailableZonesInput) GoString() string {
- return s.String()
- }
- type ListAvailableZonesOutput struct {
- _ struct{} `type:"structure"`
- // The list of Availability Zones that have available AWS CloudHSM capacity.
- AZList []*string `type:"list"`
- }
- // String returns the string representation
- func (s ListAvailableZonesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAvailableZonesOutput) GoString() string {
- return s.String()
- }
- type ListHapgsInput struct {
- _ struct{} `type:"structure"`
- // The NextToken value from a previous call to ListHapgs. Pass null if this
- // is the first call.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListHapgsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListHapgsInput) GoString() string {
- return s.String()
- }
- type ListHapgsOutput struct {
- _ struct{} `type:"structure"`
- // The list of high-availability partition groups.
- HapgList []*string `type:"list" required:"true"`
- // If not null, more results are available. Pass this value to ListHapgs to
- // retrieve the next set of items.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListHapgsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListHapgsOutput) GoString() string {
- return s.String()
- }
- type ListHsmsInput struct {
- _ struct{} `type:"structure"`
- // The NextToken value from a previous call to ListHsms. Pass null if this is
- // the first call.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListHsmsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListHsmsInput) GoString() string {
- return s.String()
- }
- // Contains the output of the ListHsms operation.
- type ListHsmsOutput struct {
- _ struct{} `type:"structure"`
- // The list of ARNs that identify the HSMs.
- HsmList []*string `type:"list"`
- // If not null, more results are available. Pass this value to ListHsms to retrieve
- // the next set of items.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListHsmsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListHsmsOutput) GoString() string {
- return s.String()
- }
- type ListLunaClientsInput struct {
- _ struct{} `type:"structure"`
- // The NextToken value from a previous call to ListLunaClients. Pass null if
- // this is the first call.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListLunaClientsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListLunaClientsInput) GoString() string {
- return s.String()
- }
- type ListLunaClientsOutput struct {
- _ struct{} `type:"structure"`
- // The list of clients.
- ClientList []*string `type:"list" required:"true"`
- // If not null, more results are available. Pass this to ListLunaClients to
- // retrieve the next set of items.
- NextToken *string `type:"string"`
- }
- // String returns the string representation
- func (s ListLunaClientsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListLunaClientsOutput) GoString() string {
- return s.String()
- }
- type ListTagsForResourceInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the AWS CloudHSM resource.
- ResourceArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListTagsForResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsForResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTagsForResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
- if s.ResourceArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ListTagsForResourceOutput struct {
- _ struct{} `type:"structure"`
- // One or more tags.
- TagList []*Tag `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ListTagsForResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsForResourceOutput) GoString() string {
- return s.String()
- }
- type ModifyHapgInput struct {
- _ struct{} `type:"structure"`
- // The ARN of the high-availability partition group to modify.
- HapgArn *string `type:"string" required:"true"`
- // The new label for the high-availability partition group.
- Label *string `type:"string"`
- // The list of partition serial numbers to make members of the high-availability
- // partition group.
- PartitionSerialList []*string `type:"list"`
- }
- // String returns the string representation
- func (s ModifyHapgInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyHapgInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyHapgInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyHapgInput"}
- if s.HapgArn == nil {
- invalidParams.Add(request.NewErrParamRequired("HapgArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ModifyHapgOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the high-availability partition group.
- HapgArn *string `type:"string"`
- }
- // String returns the string representation
- func (s ModifyHapgOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyHapgOutput) GoString() string {
- return s.String()
- }
- // Contains the inputs for the ModifyHsm operation.
- type ModifyHsmInput struct {
- _ struct{} `locationName:"ModifyHsmRequest" type:"structure"`
- // The new IP address for the elastic network interface (ENI) attached to the
- // HSM.
- //
- // If the HSM is moved to a different subnet, and an IP address is not specified,
- // an IP address will be randomly chosen from the CIDR range of the new subnet.
- EniIp *string `locationName:"EniIp" type:"string"`
- // The new external ID.
- ExternalId *string `locationName:"ExternalId" type:"string"`
- // The ARN of the HSM to modify.
- HsmArn *string `locationName:"HsmArn" type:"string" required:"true"`
- // The new IAM role ARN.
- IamRoleArn *string `locationName:"IamRoleArn" type:"string"`
- // The new identifier of the subnet that the HSM is in. The new subnet must
- // be in the same Availability Zone as the current subnet.
- SubnetId *string `locationName:"SubnetId" type:"string"`
- // The new IP address for the syslog monitoring server. The AWS CloudHSM service
- // only supports one syslog monitoring server.
- SyslogIp *string `locationName:"SyslogIp" type:"string"`
- }
- // String returns the string representation
- func (s ModifyHsmInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyHsmInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyHsmInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyHsmInput"}
- if s.HsmArn == nil {
- invalidParams.Add(request.NewErrParamRequired("HsmArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Contains the output of the ModifyHsm operation.
- type ModifyHsmOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the HSM.
- HsmArn *string `type:"string"`
- }
- // String returns the string representation
- func (s ModifyHsmOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyHsmOutput) GoString() string {
- return s.String()
- }
- type ModifyLunaClientInput struct {
- _ struct{} `type:"structure"`
- // The new certificate for the client.
- Certificate *string `min:"600" type:"string" required:"true"`
- // The ARN of the client.
- ClientArn *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ModifyLunaClientInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyLunaClientInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyLunaClientInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyLunaClientInput"}
- if s.Certificate == nil {
- invalidParams.Add(request.NewErrParamRequired("Certificate"))
- }
- if s.Certificate != nil && len(*s.Certificate) < 600 {
- invalidParams.Add(request.NewErrParamMinLen("Certificate", 600))
- }
- if s.ClientArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientArn"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ModifyLunaClientOutput struct {
- _ struct{} `type:"structure"`
- // The ARN of the client.
- ClientArn *string `type:"string"`
- }
- // String returns the string representation
- func (s ModifyLunaClientOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyLunaClientOutput) GoString() string {
- return s.String()
- }
- type RemoveTagsFromResourceInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the AWS CloudHSM resource.
- ResourceArn *string `type:"string" required:"true"`
- // The tag key or keys to remove.
- //
- // Specify only the tag key to remove (not the value). To overwrite the value
- // for an existing tag, use AddTagsToResource.
- TagKeyList []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s RemoveTagsFromResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveTagsFromResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RemoveTagsFromResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"}
- if s.ResourceArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
- }
- if s.TagKeyList == nil {
- invalidParams.Add(request.NewErrParamRequired("TagKeyList"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type RemoveTagsFromResourceOutput struct {
- _ struct{} `type:"structure"`
- // The status of the operation.
- Status *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RemoveTagsFromResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveTagsFromResourceOutput) GoString() string {
- return s.String()
- }
- // A key-value pair that identifies or specifies metadata about an AWS CloudHSM
- // resource.
- type Tag struct {
- _ struct{} `type:"structure"`
- // The key of the tag.
- Key *string `min:"1" type:"string" required:"true"`
- // The value of the tag.
- Value *string `type:"string" required:"true"`
- }
- // 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()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Tag) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Tag"}
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.Key != nil && len(*s.Key) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Key", 1))
- }
- if s.Value == nil {
- invalidParams.Add(request.NewErrParamRequired("Value"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- const (
- // @enum ClientVersion
- ClientVersion51 = "5.1"
- // @enum ClientVersion
- ClientVersion53 = "5.3"
- )
- const (
- // @enum CloudHsmObjectState
- CloudHsmObjectStateReady = "READY"
- // @enum CloudHsmObjectState
- CloudHsmObjectStateUpdating = "UPDATING"
- // @enum CloudHsmObjectState
- CloudHsmObjectStateDegraded = "DEGRADED"
- )
- const (
- // @enum HsmStatus
- HsmStatusPending = "PENDING"
- // @enum HsmStatus
- HsmStatusRunning = "RUNNING"
- // @enum HsmStatus
- HsmStatusUpdating = "UPDATING"
- // @enum HsmStatus
- HsmStatusSuspended = "SUSPENDED"
- // @enum HsmStatus
- HsmStatusTerminating = "TERMINATING"
- // @enum HsmStatus
- HsmStatusTerminated = "TERMINATED"
- // @enum HsmStatus
- HsmStatusDegraded = "DEGRADED"
- )
- // Specifies the type of subscription for the HSM.
- //
- // PRODUCTION - The HSM is being used in a production environment. TRIAL -
- // The HSM is being used in a product trial.
- const (
- // @enum SubscriptionType
- SubscriptionTypeProduction = "PRODUCTION"
- )
|