api.go 127 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package cloudhsm
  3. import (
  4. "fmt"
  5. "github.com/aws/aws-sdk-go/aws"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. )
  9. const opAddTagsToResource = "AddTagsToResource"
  10. // AddTagsToResourceRequest generates a "aws/request.Request" representing the
  11. // client's request for the AddTagsToResource operation. The "output" return
  12. // value will be populated with the request's response once the request completes
  13. // successfully.
  14. //
  15. // Use "Send" method on the returned Request to send the API call to the service.
  16. // the "output" return value is not valid until after Send returns without error.
  17. //
  18. // See AddTagsToResource for more information on using the AddTagsToResource
  19. // API call, and error handling.
  20. //
  21. // This method is useful when you want to inject custom logic or configuration
  22. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23. //
  24. //
  25. // // Example sending a request using the AddTagsToResourceRequest method.
  26. // req, resp := client.AddTagsToResourceRequest(params)
  27. //
  28. // err := req.Send()
  29. // if err == nil { // resp is now filled
  30. // fmt.Println(resp)
  31. // }
  32. //
  33. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource
  34. func (c *CloudHSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) {
  35. op := &request.Operation{
  36. Name: opAddTagsToResource,
  37. HTTPMethod: "POST",
  38. HTTPPath: "/",
  39. }
  40. if input == nil {
  41. input = &AddTagsToResourceInput{}
  42. }
  43. output = &AddTagsToResourceOutput{}
  44. req = c.newRequest(op, input, output)
  45. return
  46. }
  47. // AddTagsToResource API operation for Amazon CloudHSM.
  48. //
  49. // This is documentation for AWS CloudHSM Classic. For more information, see
  50. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  51. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  52. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  53. //
  54. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  55. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  56. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  57. //
  58. // Adds or overwrites one or more tags for the specified AWS CloudHSM resource.
  59. //
  60. // Each tag consists of a key and a value. Tag keys must be unique to each resource.
  61. //
  62. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  63. // with awserr.Error's Code and Message methods to get detailed information about
  64. // the error.
  65. //
  66. // See the AWS API reference guide for Amazon CloudHSM's
  67. // API operation AddTagsToResource for usage and error information.
  68. //
  69. // Returned Error Codes:
  70. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  71. // Indicates that an exception occurred in the AWS CloudHSM service.
  72. //
  73. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  74. // Indicates that an internal error occurred.
  75. //
  76. // * ErrCodeInvalidRequestException "InvalidRequestException"
  77. // Indicates that one or more of the request parameters are not valid.
  78. //
  79. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource
  80. func (c *CloudHSM) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) {
  81. req, out := c.AddTagsToResourceRequest(input)
  82. return out, req.Send()
  83. }
  84. // AddTagsToResourceWithContext is the same as AddTagsToResource with the addition of
  85. // the ability to pass a context and additional request options.
  86. //
  87. // See AddTagsToResource for details on how to use this API operation.
  88. //
  89. // The context must be non-nil and will be used for request cancellation. If
  90. // the context is nil a panic will occur. In the future the SDK may create
  91. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  92. // for more information on using Contexts.
  93. func (c *CloudHSM) AddTagsToResourceWithContext(ctx aws.Context, input *AddTagsToResourceInput, opts ...request.Option) (*AddTagsToResourceOutput, error) {
  94. req, out := c.AddTagsToResourceRequest(input)
  95. req.SetContext(ctx)
  96. req.ApplyOptions(opts...)
  97. return out, req.Send()
  98. }
  99. const opCreateHapg = "CreateHapg"
  100. // CreateHapgRequest generates a "aws/request.Request" representing the
  101. // client's request for the CreateHapg operation. The "output" return
  102. // value will be populated with the request's response once the request completes
  103. // successfully.
  104. //
  105. // Use "Send" method on the returned Request to send the API call to the service.
  106. // the "output" return value is not valid until after Send returns without error.
  107. //
  108. // See CreateHapg for more information on using the CreateHapg
  109. // API call, and error handling.
  110. //
  111. // This method is useful when you want to inject custom logic or configuration
  112. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  113. //
  114. //
  115. // // Example sending a request using the CreateHapgRequest method.
  116. // req, resp := client.CreateHapgRequest(params)
  117. //
  118. // err := req.Send()
  119. // if err == nil { // resp is now filled
  120. // fmt.Println(resp)
  121. // }
  122. //
  123. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg
  124. func (c *CloudHSM) CreateHapgRequest(input *CreateHapgInput) (req *request.Request, output *CreateHapgOutput) {
  125. op := &request.Operation{
  126. Name: opCreateHapg,
  127. HTTPMethod: "POST",
  128. HTTPPath: "/",
  129. }
  130. if input == nil {
  131. input = &CreateHapgInput{}
  132. }
  133. output = &CreateHapgOutput{}
  134. req = c.newRequest(op, input, output)
  135. return
  136. }
  137. // CreateHapg API operation for Amazon CloudHSM.
  138. //
  139. // This is documentation for AWS CloudHSM Classic. For more information, see
  140. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  141. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  142. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  143. //
  144. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  145. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  146. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  147. //
  148. // Creates a high-availability partition group. A high-availability partition
  149. // group is a group of partitions that spans multiple physical HSMs.
  150. //
  151. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  152. // with awserr.Error's Code and Message methods to get detailed information about
  153. // the error.
  154. //
  155. // See the AWS API reference guide for Amazon CloudHSM's
  156. // API operation CreateHapg for usage and error information.
  157. //
  158. // Returned Error Codes:
  159. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  160. // Indicates that an exception occurred in the AWS CloudHSM service.
  161. //
  162. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  163. // Indicates that an internal error occurred.
  164. //
  165. // * ErrCodeInvalidRequestException "InvalidRequestException"
  166. // Indicates that one or more of the request parameters are not valid.
  167. //
  168. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg
  169. func (c *CloudHSM) CreateHapg(input *CreateHapgInput) (*CreateHapgOutput, error) {
  170. req, out := c.CreateHapgRequest(input)
  171. return out, req.Send()
  172. }
  173. // CreateHapgWithContext is the same as CreateHapg with the addition of
  174. // the ability to pass a context and additional request options.
  175. //
  176. // See CreateHapg for details on how to use this API operation.
  177. //
  178. // The context must be non-nil and will be used for request cancellation. If
  179. // the context is nil a panic will occur. In the future the SDK may create
  180. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  181. // for more information on using Contexts.
  182. func (c *CloudHSM) CreateHapgWithContext(ctx aws.Context, input *CreateHapgInput, opts ...request.Option) (*CreateHapgOutput, error) {
  183. req, out := c.CreateHapgRequest(input)
  184. req.SetContext(ctx)
  185. req.ApplyOptions(opts...)
  186. return out, req.Send()
  187. }
  188. const opCreateHsm = "CreateHsm"
  189. // CreateHsmRequest generates a "aws/request.Request" representing the
  190. // client's request for the CreateHsm operation. The "output" return
  191. // value will be populated with the request's response once the request completes
  192. // successfully.
  193. //
  194. // Use "Send" method on the returned Request to send the API call to the service.
  195. // the "output" return value is not valid until after Send returns without error.
  196. //
  197. // See CreateHsm for more information on using the CreateHsm
  198. // API call, and error handling.
  199. //
  200. // This method is useful when you want to inject custom logic or configuration
  201. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  202. //
  203. //
  204. // // Example sending a request using the CreateHsmRequest method.
  205. // req, resp := client.CreateHsmRequest(params)
  206. //
  207. // err := req.Send()
  208. // if err == nil { // resp is now filled
  209. // fmt.Println(resp)
  210. // }
  211. //
  212. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm
  213. func (c *CloudHSM) CreateHsmRequest(input *CreateHsmInput) (req *request.Request, output *CreateHsmOutput) {
  214. op := &request.Operation{
  215. Name: opCreateHsm,
  216. HTTPMethod: "POST",
  217. HTTPPath: "/",
  218. }
  219. if input == nil {
  220. input = &CreateHsmInput{}
  221. }
  222. output = &CreateHsmOutput{}
  223. req = c.newRequest(op, input, output)
  224. return
  225. }
  226. // CreateHsm API operation for Amazon CloudHSM.
  227. //
  228. // This is documentation for AWS CloudHSM Classic. For more information, see
  229. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  230. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  231. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  232. //
  233. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  234. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  235. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  236. //
  237. // Creates an uninitialized HSM instance.
  238. //
  239. // There is an upfront fee charged for each HSM instance that you create with
  240. // the CreateHsm operation. If you accidentally provision an HSM and want to
  241. // request a refund, delete the instance using the DeleteHsm operation, go to
  242. // the AWS Support Center (https://console.aws.amazon.com/support/home), create
  243. // a new case, and select Account and Billing Support.
  244. //
  245. // It can take up to 20 minutes to create and provision an HSM. You can monitor
  246. // the status of the HSM with the DescribeHsm operation. The HSM is ready to
  247. // be initialized when the status changes to RUNNING.
  248. //
  249. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  250. // with awserr.Error's Code and Message methods to get detailed information about
  251. // the error.
  252. //
  253. // See the AWS API reference guide for Amazon CloudHSM's
  254. // API operation CreateHsm for usage and error information.
  255. //
  256. // Returned Error Codes:
  257. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  258. // Indicates that an exception occurred in the AWS CloudHSM service.
  259. //
  260. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  261. // Indicates that an internal error occurred.
  262. //
  263. // * ErrCodeInvalidRequestException "InvalidRequestException"
  264. // Indicates that one or more of the request parameters are not valid.
  265. //
  266. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm
  267. func (c *CloudHSM) CreateHsm(input *CreateHsmInput) (*CreateHsmOutput, error) {
  268. req, out := c.CreateHsmRequest(input)
  269. return out, req.Send()
  270. }
  271. // CreateHsmWithContext is the same as CreateHsm with the addition of
  272. // the ability to pass a context and additional request options.
  273. //
  274. // See CreateHsm for details on how to use this API operation.
  275. //
  276. // The context must be non-nil and will be used for request cancellation. If
  277. // the context is nil a panic will occur. In the future the SDK may create
  278. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  279. // for more information on using Contexts.
  280. func (c *CloudHSM) CreateHsmWithContext(ctx aws.Context, input *CreateHsmInput, opts ...request.Option) (*CreateHsmOutput, error) {
  281. req, out := c.CreateHsmRequest(input)
  282. req.SetContext(ctx)
  283. req.ApplyOptions(opts...)
  284. return out, req.Send()
  285. }
  286. const opCreateLunaClient = "CreateLunaClient"
  287. // CreateLunaClientRequest generates a "aws/request.Request" representing the
  288. // client's request for the CreateLunaClient operation. The "output" return
  289. // value will be populated with the request's response once the request completes
  290. // successfully.
  291. //
  292. // Use "Send" method on the returned Request to send the API call to the service.
  293. // the "output" return value is not valid until after Send returns without error.
  294. //
  295. // See CreateLunaClient for more information on using the CreateLunaClient
  296. // API call, and error handling.
  297. //
  298. // This method is useful when you want to inject custom logic or configuration
  299. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  300. //
  301. //
  302. // // Example sending a request using the CreateLunaClientRequest method.
  303. // req, resp := client.CreateLunaClientRequest(params)
  304. //
  305. // err := req.Send()
  306. // if err == nil { // resp is now filled
  307. // fmt.Println(resp)
  308. // }
  309. //
  310. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient
  311. func (c *CloudHSM) CreateLunaClientRequest(input *CreateLunaClientInput) (req *request.Request, output *CreateLunaClientOutput) {
  312. op := &request.Operation{
  313. Name: opCreateLunaClient,
  314. HTTPMethod: "POST",
  315. HTTPPath: "/",
  316. }
  317. if input == nil {
  318. input = &CreateLunaClientInput{}
  319. }
  320. output = &CreateLunaClientOutput{}
  321. req = c.newRequest(op, input, output)
  322. return
  323. }
  324. // CreateLunaClient API operation for Amazon CloudHSM.
  325. //
  326. // This is documentation for AWS CloudHSM Classic. For more information, see
  327. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  328. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  329. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  330. //
  331. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  332. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  333. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  334. //
  335. // Creates an HSM client.
  336. //
  337. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  338. // with awserr.Error's Code and Message methods to get detailed information about
  339. // the error.
  340. //
  341. // See the AWS API reference guide for Amazon CloudHSM's
  342. // API operation CreateLunaClient for usage and error information.
  343. //
  344. // Returned Error Codes:
  345. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  346. // Indicates that an exception occurred in the AWS CloudHSM service.
  347. //
  348. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  349. // Indicates that an internal error occurred.
  350. //
  351. // * ErrCodeInvalidRequestException "InvalidRequestException"
  352. // Indicates that one or more of the request parameters are not valid.
  353. //
  354. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient
  355. func (c *CloudHSM) CreateLunaClient(input *CreateLunaClientInput) (*CreateLunaClientOutput, error) {
  356. req, out := c.CreateLunaClientRequest(input)
  357. return out, req.Send()
  358. }
  359. // CreateLunaClientWithContext is the same as CreateLunaClient with the addition of
  360. // the ability to pass a context and additional request options.
  361. //
  362. // See CreateLunaClient for details on how to use this API operation.
  363. //
  364. // The context must be non-nil and will be used for request cancellation. If
  365. // the context is nil a panic will occur. In the future the SDK may create
  366. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  367. // for more information on using Contexts.
  368. func (c *CloudHSM) CreateLunaClientWithContext(ctx aws.Context, input *CreateLunaClientInput, opts ...request.Option) (*CreateLunaClientOutput, error) {
  369. req, out := c.CreateLunaClientRequest(input)
  370. req.SetContext(ctx)
  371. req.ApplyOptions(opts...)
  372. return out, req.Send()
  373. }
  374. const opDeleteHapg = "DeleteHapg"
  375. // DeleteHapgRequest generates a "aws/request.Request" representing the
  376. // client's request for the DeleteHapg operation. The "output" return
  377. // value will be populated with the request's response once the request completes
  378. // successfully.
  379. //
  380. // Use "Send" method on the returned Request to send the API call to the service.
  381. // the "output" return value is not valid until after Send returns without error.
  382. //
  383. // See DeleteHapg for more information on using the DeleteHapg
  384. // API call, and error handling.
  385. //
  386. // This method is useful when you want to inject custom logic or configuration
  387. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  388. //
  389. //
  390. // // Example sending a request using the DeleteHapgRequest method.
  391. // req, resp := client.DeleteHapgRequest(params)
  392. //
  393. // err := req.Send()
  394. // if err == nil { // resp is now filled
  395. // fmt.Println(resp)
  396. // }
  397. //
  398. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg
  399. func (c *CloudHSM) DeleteHapgRequest(input *DeleteHapgInput) (req *request.Request, output *DeleteHapgOutput) {
  400. op := &request.Operation{
  401. Name: opDeleteHapg,
  402. HTTPMethod: "POST",
  403. HTTPPath: "/",
  404. }
  405. if input == nil {
  406. input = &DeleteHapgInput{}
  407. }
  408. output = &DeleteHapgOutput{}
  409. req = c.newRequest(op, input, output)
  410. return
  411. }
  412. // DeleteHapg API operation for Amazon CloudHSM.
  413. //
  414. // This is documentation for AWS CloudHSM Classic. For more information, see
  415. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  416. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  417. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  418. //
  419. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  420. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  421. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  422. //
  423. // Deletes a high-availability partition group.
  424. //
  425. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  426. // with awserr.Error's Code and Message methods to get detailed information about
  427. // the error.
  428. //
  429. // See the AWS API reference guide for Amazon CloudHSM's
  430. // API operation DeleteHapg for usage and error information.
  431. //
  432. // Returned Error Codes:
  433. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  434. // Indicates that an exception occurred in the AWS CloudHSM service.
  435. //
  436. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  437. // Indicates that an internal error occurred.
  438. //
  439. // * ErrCodeInvalidRequestException "InvalidRequestException"
  440. // Indicates that one or more of the request parameters are not valid.
  441. //
  442. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg
  443. func (c *CloudHSM) DeleteHapg(input *DeleteHapgInput) (*DeleteHapgOutput, error) {
  444. req, out := c.DeleteHapgRequest(input)
  445. return out, req.Send()
  446. }
  447. // DeleteHapgWithContext is the same as DeleteHapg with the addition of
  448. // the ability to pass a context and additional request options.
  449. //
  450. // See DeleteHapg for details on how to use this API operation.
  451. //
  452. // The context must be non-nil and will be used for request cancellation. If
  453. // the context is nil a panic will occur. In the future the SDK may create
  454. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  455. // for more information on using Contexts.
  456. func (c *CloudHSM) DeleteHapgWithContext(ctx aws.Context, input *DeleteHapgInput, opts ...request.Option) (*DeleteHapgOutput, error) {
  457. req, out := c.DeleteHapgRequest(input)
  458. req.SetContext(ctx)
  459. req.ApplyOptions(opts...)
  460. return out, req.Send()
  461. }
  462. const opDeleteHsm = "DeleteHsm"
  463. // DeleteHsmRequest generates a "aws/request.Request" representing the
  464. // client's request for the DeleteHsm operation. The "output" return
  465. // value will be populated with the request's response once the request completes
  466. // successfully.
  467. //
  468. // Use "Send" method on the returned Request to send the API call to the service.
  469. // the "output" return value is not valid until after Send returns without error.
  470. //
  471. // See DeleteHsm for more information on using the DeleteHsm
  472. // API call, and error handling.
  473. //
  474. // This method is useful when you want to inject custom logic or configuration
  475. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  476. //
  477. //
  478. // // Example sending a request using the DeleteHsmRequest method.
  479. // req, resp := client.DeleteHsmRequest(params)
  480. //
  481. // err := req.Send()
  482. // if err == nil { // resp is now filled
  483. // fmt.Println(resp)
  484. // }
  485. //
  486. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm
  487. func (c *CloudHSM) DeleteHsmRequest(input *DeleteHsmInput) (req *request.Request, output *DeleteHsmOutput) {
  488. op := &request.Operation{
  489. Name: opDeleteHsm,
  490. HTTPMethod: "POST",
  491. HTTPPath: "/",
  492. }
  493. if input == nil {
  494. input = &DeleteHsmInput{}
  495. }
  496. output = &DeleteHsmOutput{}
  497. req = c.newRequest(op, input, output)
  498. return
  499. }
  500. // DeleteHsm API operation for Amazon CloudHSM.
  501. //
  502. // This is documentation for AWS CloudHSM Classic. For more information, see
  503. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  504. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  505. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  506. //
  507. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  508. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  509. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  510. //
  511. // Deletes an HSM. After completion, this operation cannot be undone and your
  512. // key material cannot be recovered.
  513. //
  514. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  515. // with awserr.Error's Code and Message methods to get detailed information about
  516. // the error.
  517. //
  518. // See the AWS API reference guide for Amazon CloudHSM's
  519. // API operation DeleteHsm for usage and error information.
  520. //
  521. // Returned Error Codes:
  522. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  523. // Indicates that an exception occurred in the AWS CloudHSM service.
  524. //
  525. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  526. // Indicates that an internal error occurred.
  527. //
  528. // * ErrCodeInvalidRequestException "InvalidRequestException"
  529. // Indicates that one or more of the request parameters are not valid.
  530. //
  531. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm
  532. func (c *CloudHSM) DeleteHsm(input *DeleteHsmInput) (*DeleteHsmOutput, error) {
  533. req, out := c.DeleteHsmRequest(input)
  534. return out, req.Send()
  535. }
  536. // DeleteHsmWithContext is the same as DeleteHsm with the addition of
  537. // the ability to pass a context and additional request options.
  538. //
  539. // See DeleteHsm for details on how to use this API operation.
  540. //
  541. // The context must be non-nil and will be used for request cancellation. If
  542. // the context is nil a panic will occur. In the future the SDK may create
  543. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  544. // for more information on using Contexts.
  545. func (c *CloudHSM) DeleteHsmWithContext(ctx aws.Context, input *DeleteHsmInput, opts ...request.Option) (*DeleteHsmOutput, error) {
  546. req, out := c.DeleteHsmRequest(input)
  547. req.SetContext(ctx)
  548. req.ApplyOptions(opts...)
  549. return out, req.Send()
  550. }
  551. const opDeleteLunaClient = "DeleteLunaClient"
  552. // DeleteLunaClientRequest generates a "aws/request.Request" representing the
  553. // client's request for the DeleteLunaClient operation. The "output" return
  554. // value will be populated with the request's response once the request completes
  555. // successfully.
  556. //
  557. // Use "Send" method on the returned Request to send the API call to the service.
  558. // the "output" return value is not valid until after Send returns without error.
  559. //
  560. // See DeleteLunaClient for more information on using the DeleteLunaClient
  561. // API call, and error handling.
  562. //
  563. // This method is useful when you want to inject custom logic or configuration
  564. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  565. //
  566. //
  567. // // Example sending a request using the DeleteLunaClientRequest method.
  568. // req, resp := client.DeleteLunaClientRequest(params)
  569. //
  570. // err := req.Send()
  571. // if err == nil { // resp is now filled
  572. // fmt.Println(resp)
  573. // }
  574. //
  575. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient
  576. func (c *CloudHSM) DeleteLunaClientRequest(input *DeleteLunaClientInput) (req *request.Request, output *DeleteLunaClientOutput) {
  577. op := &request.Operation{
  578. Name: opDeleteLunaClient,
  579. HTTPMethod: "POST",
  580. HTTPPath: "/",
  581. }
  582. if input == nil {
  583. input = &DeleteLunaClientInput{}
  584. }
  585. output = &DeleteLunaClientOutput{}
  586. req = c.newRequest(op, input, output)
  587. return
  588. }
  589. // DeleteLunaClient API operation for Amazon CloudHSM.
  590. //
  591. // This is documentation for AWS CloudHSM Classic. For more information, see
  592. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  593. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  594. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  595. //
  596. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  597. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  598. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  599. //
  600. // Deletes a client.
  601. //
  602. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  603. // with awserr.Error's Code and Message methods to get detailed information about
  604. // the error.
  605. //
  606. // See the AWS API reference guide for Amazon CloudHSM's
  607. // API operation DeleteLunaClient for usage and error information.
  608. //
  609. // Returned Error Codes:
  610. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  611. // Indicates that an exception occurred in the AWS CloudHSM service.
  612. //
  613. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  614. // Indicates that an internal error occurred.
  615. //
  616. // * ErrCodeInvalidRequestException "InvalidRequestException"
  617. // Indicates that one or more of the request parameters are not valid.
  618. //
  619. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient
  620. func (c *CloudHSM) DeleteLunaClient(input *DeleteLunaClientInput) (*DeleteLunaClientOutput, error) {
  621. req, out := c.DeleteLunaClientRequest(input)
  622. return out, req.Send()
  623. }
  624. // DeleteLunaClientWithContext is the same as DeleteLunaClient with the addition of
  625. // the ability to pass a context and additional request options.
  626. //
  627. // See DeleteLunaClient for details on how to use this API operation.
  628. //
  629. // The context must be non-nil and will be used for request cancellation. If
  630. // the context is nil a panic will occur. In the future the SDK may create
  631. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  632. // for more information on using Contexts.
  633. func (c *CloudHSM) DeleteLunaClientWithContext(ctx aws.Context, input *DeleteLunaClientInput, opts ...request.Option) (*DeleteLunaClientOutput, error) {
  634. req, out := c.DeleteLunaClientRequest(input)
  635. req.SetContext(ctx)
  636. req.ApplyOptions(opts...)
  637. return out, req.Send()
  638. }
  639. const opDescribeHapg = "DescribeHapg"
  640. // DescribeHapgRequest generates a "aws/request.Request" representing the
  641. // client's request for the DescribeHapg operation. The "output" return
  642. // value will be populated with the request's response once the request completes
  643. // successfully.
  644. //
  645. // Use "Send" method on the returned Request to send the API call to the service.
  646. // the "output" return value is not valid until after Send returns without error.
  647. //
  648. // See DescribeHapg for more information on using the DescribeHapg
  649. // API call, and error handling.
  650. //
  651. // This method is useful when you want to inject custom logic or configuration
  652. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  653. //
  654. //
  655. // // Example sending a request using the DescribeHapgRequest method.
  656. // req, resp := client.DescribeHapgRequest(params)
  657. //
  658. // err := req.Send()
  659. // if err == nil { // resp is now filled
  660. // fmt.Println(resp)
  661. // }
  662. //
  663. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg
  664. func (c *CloudHSM) DescribeHapgRequest(input *DescribeHapgInput) (req *request.Request, output *DescribeHapgOutput) {
  665. op := &request.Operation{
  666. Name: opDescribeHapg,
  667. HTTPMethod: "POST",
  668. HTTPPath: "/",
  669. }
  670. if input == nil {
  671. input = &DescribeHapgInput{}
  672. }
  673. output = &DescribeHapgOutput{}
  674. req = c.newRequest(op, input, output)
  675. return
  676. }
  677. // DescribeHapg API operation for Amazon CloudHSM.
  678. //
  679. // This is documentation for AWS CloudHSM Classic. For more information, see
  680. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  681. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  682. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  683. //
  684. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  685. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  686. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  687. //
  688. // Retrieves information about a high-availability partition group.
  689. //
  690. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  691. // with awserr.Error's Code and Message methods to get detailed information about
  692. // the error.
  693. //
  694. // See the AWS API reference guide for Amazon CloudHSM's
  695. // API operation DescribeHapg for usage and error information.
  696. //
  697. // Returned Error Codes:
  698. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  699. // Indicates that an exception occurred in the AWS CloudHSM service.
  700. //
  701. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  702. // Indicates that an internal error occurred.
  703. //
  704. // * ErrCodeInvalidRequestException "InvalidRequestException"
  705. // Indicates that one or more of the request parameters are not valid.
  706. //
  707. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg
  708. func (c *CloudHSM) DescribeHapg(input *DescribeHapgInput) (*DescribeHapgOutput, error) {
  709. req, out := c.DescribeHapgRequest(input)
  710. return out, req.Send()
  711. }
  712. // DescribeHapgWithContext is the same as DescribeHapg with the addition of
  713. // the ability to pass a context and additional request options.
  714. //
  715. // See DescribeHapg for details on how to use this API operation.
  716. //
  717. // The context must be non-nil and will be used for request cancellation. If
  718. // the context is nil a panic will occur. In the future the SDK may create
  719. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  720. // for more information on using Contexts.
  721. func (c *CloudHSM) DescribeHapgWithContext(ctx aws.Context, input *DescribeHapgInput, opts ...request.Option) (*DescribeHapgOutput, error) {
  722. req, out := c.DescribeHapgRequest(input)
  723. req.SetContext(ctx)
  724. req.ApplyOptions(opts...)
  725. return out, req.Send()
  726. }
  727. const opDescribeHsm = "DescribeHsm"
  728. // DescribeHsmRequest generates a "aws/request.Request" representing the
  729. // client's request for the DescribeHsm operation. The "output" return
  730. // value will be populated with the request's response once the request completes
  731. // successfully.
  732. //
  733. // Use "Send" method on the returned Request to send the API call to the service.
  734. // the "output" return value is not valid until after Send returns without error.
  735. //
  736. // See DescribeHsm for more information on using the DescribeHsm
  737. // API call, and error handling.
  738. //
  739. // This method is useful when you want to inject custom logic or configuration
  740. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  741. //
  742. //
  743. // // Example sending a request using the DescribeHsmRequest method.
  744. // req, resp := client.DescribeHsmRequest(params)
  745. //
  746. // err := req.Send()
  747. // if err == nil { // resp is now filled
  748. // fmt.Println(resp)
  749. // }
  750. //
  751. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm
  752. func (c *CloudHSM) DescribeHsmRequest(input *DescribeHsmInput) (req *request.Request, output *DescribeHsmOutput) {
  753. op := &request.Operation{
  754. Name: opDescribeHsm,
  755. HTTPMethod: "POST",
  756. HTTPPath: "/",
  757. }
  758. if input == nil {
  759. input = &DescribeHsmInput{}
  760. }
  761. output = &DescribeHsmOutput{}
  762. req = c.newRequest(op, input, output)
  763. return
  764. }
  765. // DescribeHsm API operation for Amazon CloudHSM.
  766. //
  767. // This is documentation for AWS CloudHSM Classic. For more information, see
  768. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  769. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  770. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  771. //
  772. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  773. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  774. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  775. //
  776. // Retrieves information about an HSM. You can identify the HSM by its ARN or
  777. // its serial number.
  778. //
  779. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  780. // with awserr.Error's Code and Message methods to get detailed information about
  781. // the error.
  782. //
  783. // See the AWS API reference guide for Amazon CloudHSM's
  784. // API operation DescribeHsm for usage and error information.
  785. //
  786. // Returned Error Codes:
  787. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  788. // Indicates that an exception occurred in the AWS CloudHSM service.
  789. //
  790. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  791. // Indicates that an internal error occurred.
  792. //
  793. // * ErrCodeInvalidRequestException "InvalidRequestException"
  794. // Indicates that one or more of the request parameters are not valid.
  795. //
  796. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm
  797. func (c *CloudHSM) DescribeHsm(input *DescribeHsmInput) (*DescribeHsmOutput, error) {
  798. req, out := c.DescribeHsmRequest(input)
  799. return out, req.Send()
  800. }
  801. // DescribeHsmWithContext is the same as DescribeHsm with the addition of
  802. // the ability to pass a context and additional request options.
  803. //
  804. // See DescribeHsm for details on how to use this API operation.
  805. //
  806. // The context must be non-nil and will be used for request cancellation. If
  807. // the context is nil a panic will occur. In the future the SDK may create
  808. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  809. // for more information on using Contexts.
  810. func (c *CloudHSM) DescribeHsmWithContext(ctx aws.Context, input *DescribeHsmInput, opts ...request.Option) (*DescribeHsmOutput, error) {
  811. req, out := c.DescribeHsmRequest(input)
  812. req.SetContext(ctx)
  813. req.ApplyOptions(opts...)
  814. return out, req.Send()
  815. }
  816. const opDescribeLunaClient = "DescribeLunaClient"
  817. // DescribeLunaClientRequest generates a "aws/request.Request" representing the
  818. // client's request for the DescribeLunaClient operation. The "output" return
  819. // value will be populated with the request's response once the request completes
  820. // successfully.
  821. //
  822. // Use "Send" method on the returned Request to send the API call to the service.
  823. // the "output" return value is not valid until after Send returns without error.
  824. //
  825. // See DescribeLunaClient for more information on using the DescribeLunaClient
  826. // API call, and error handling.
  827. //
  828. // This method is useful when you want to inject custom logic or configuration
  829. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  830. //
  831. //
  832. // // Example sending a request using the DescribeLunaClientRequest method.
  833. // req, resp := client.DescribeLunaClientRequest(params)
  834. //
  835. // err := req.Send()
  836. // if err == nil { // resp is now filled
  837. // fmt.Println(resp)
  838. // }
  839. //
  840. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient
  841. func (c *CloudHSM) DescribeLunaClientRequest(input *DescribeLunaClientInput) (req *request.Request, output *DescribeLunaClientOutput) {
  842. op := &request.Operation{
  843. Name: opDescribeLunaClient,
  844. HTTPMethod: "POST",
  845. HTTPPath: "/",
  846. }
  847. if input == nil {
  848. input = &DescribeLunaClientInput{}
  849. }
  850. output = &DescribeLunaClientOutput{}
  851. req = c.newRequest(op, input, output)
  852. return
  853. }
  854. // DescribeLunaClient API operation for Amazon CloudHSM.
  855. //
  856. // This is documentation for AWS CloudHSM Classic. For more information, see
  857. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  858. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  859. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  860. //
  861. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  862. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  863. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  864. //
  865. // Retrieves information about an HSM client.
  866. //
  867. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  868. // with awserr.Error's Code and Message methods to get detailed information about
  869. // the error.
  870. //
  871. // See the AWS API reference guide for Amazon CloudHSM's
  872. // API operation DescribeLunaClient for usage and error information.
  873. //
  874. // Returned Error Codes:
  875. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  876. // Indicates that an exception occurred in the AWS CloudHSM service.
  877. //
  878. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  879. // Indicates that an internal error occurred.
  880. //
  881. // * ErrCodeInvalidRequestException "InvalidRequestException"
  882. // Indicates that one or more of the request parameters are not valid.
  883. //
  884. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient
  885. func (c *CloudHSM) DescribeLunaClient(input *DescribeLunaClientInput) (*DescribeLunaClientOutput, error) {
  886. req, out := c.DescribeLunaClientRequest(input)
  887. return out, req.Send()
  888. }
  889. // DescribeLunaClientWithContext is the same as DescribeLunaClient with the addition of
  890. // the ability to pass a context and additional request options.
  891. //
  892. // See DescribeLunaClient for details on how to use this API operation.
  893. //
  894. // The context must be non-nil and will be used for request cancellation. If
  895. // the context is nil a panic will occur. In the future the SDK may create
  896. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  897. // for more information on using Contexts.
  898. func (c *CloudHSM) DescribeLunaClientWithContext(ctx aws.Context, input *DescribeLunaClientInput, opts ...request.Option) (*DescribeLunaClientOutput, error) {
  899. req, out := c.DescribeLunaClientRequest(input)
  900. req.SetContext(ctx)
  901. req.ApplyOptions(opts...)
  902. return out, req.Send()
  903. }
  904. const opGetConfig = "GetConfig"
  905. // GetConfigRequest generates a "aws/request.Request" representing the
  906. // client's request for the GetConfig operation. The "output" return
  907. // value will be populated with the request's response once the request completes
  908. // successfully.
  909. //
  910. // Use "Send" method on the returned Request to send the API call to the service.
  911. // the "output" return value is not valid until after Send returns without error.
  912. //
  913. // See GetConfig for more information on using the GetConfig
  914. // API call, and error handling.
  915. //
  916. // This method is useful when you want to inject custom logic or configuration
  917. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  918. //
  919. //
  920. // // Example sending a request using the GetConfigRequest method.
  921. // req, resp := client.GetConfigRequest(params)
  922. //
  923. // err := req.Send()
  924. // if err == nil { // resp is now filled
  925. // fmt.Println(resp)
  926. // }
  927. //
  928. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig
  929. func (c *CloudHSM) GetConfigRequest(input *GetConfigInput) (req *request.Request, output *GetConfigOutput) {
  930. op := &request.Operation{
  931. Name: opGetConfig,
  932. HTTPMethod: "POST",
  933. HTTPPath: "/",
  934. }
  935. if input == nil {
  936. input = &GetConfigInput{}
  937. }
  938. output = &GetConfigOutput{}
  939. req = c.newRequest(op, input, output)
  940. return
  941. }
  942. // GetConfig API operation for Amazon CloudHSM.
  943. //
  944. // This is documentation for AWS CloudHSM Classic. For more information, see
  945. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  946. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  947. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  948. //
  949. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  950. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  951. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  952. //
  953. // Gets the configuration files necessary to connect to all high availability
  954. // partition groups the client is associated with.
  955. //
  956. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  957. // with awserr.Error's Code and Message methods to get detailed information about
  958. // the error.
  959. //
  960. // See the AWS API reference guide for Amazon CloudHSM's
  961. // API operation GetConfig for usage and error information.
  962. //
  963. // Returned Error Codes:
  964. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  965. // Indicates that an exception occurred in the AWS CloudHSM service.
  966. //
  967. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  968. // Indicates that an internal error occurred.
  969. //
  970. // * ErrCodeInvalidRequestException "InvalidRequestException"
  971. // Indicates that one or more of the request parameters are not valid.
  972. //
  973. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig
  974. func (c *CloudHSM) GetConfig(input *GetConfigInput) (*GetConfigOutput, error) {
  975. req, out := c.GetConfigRequest(input)
  976. return out, req.Send()
  977. }
  978. // GetConfigWithContext is the same as GetConfig with the addition of
  979. // the ability to pass a context and additional request options.
  980. //
  981. // See GetConfig for details on how to use this API operation.
  982. //
  983. // The context must be non-nil and will be used for request cancellation. If
  984. // the context is nil a panic will occur. In the future the SDK may create
  985. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  986. // for more information on using Contexts.
  987. func (c *CloudHSM) GetConfigWithContext(ctx aws.Context, input *GetConfigInput, opts ...request.Option) (*GetConfigOutput, error) {
  988. req, out := c.GetConfigRequest(input)
  989. req.SetContext(ctx)
  990. req.ApplyOptions(opts...)
  991. return out, req.Send()
  992. }
  993. const opListAvailableZones = "ListAvailableZones"
  994. // ListAvailableZonesRequest generates a "aws/request.Request" representing the
  995. // client's request for the ListAvailableZones operation. The "output" return
  996. // value will be populated with the request's response once the request completes
  997. // successfully.
  998. //
  999. // Use "Send" method on the returned Request to send the API call to the service.
  1000. // the "output" return value is not valid until after Send returns without error.
  1001. //
  1002. // See ListAvailableZones for more information on using the ListAvailableZones
  1003. // API call, and error handling.
  1004. //
  1005. // This method is useful when you want to inject custom logic or configuration
  1006. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1007. //
  1008. //
  1009. // // Example sending a request using the ListAvailableZonesRequest method.
  1010. // req, resp := client.ListAvailableZonesRequest(params)
  1011. //
  1012. // err := req.Send()
  1013. // if err == nil { // resp is now filled
  1014. // fmt.Println(resp)
  1015. // }
  1016. //
  1017. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones
  1018. func (c *CloudHSM) ListAvailableZonesRequest(input *ListAvailableZonesInput) (req *request.Request, output *ListAvailableZonesOutput) {
  1019. op := &request.Operation{
  1020. Name: opListAvailableZones,
  1021. HTTPMethod: "POST",
  1022. HTTPPath: "/",
  1023. }
  1024. if input == nil {
  1025. input = &ListAvailableZonesInput{}
  1026. }
  1027. output = &ListAvailableZonesOutput{}
  1028. req = c.newRequest(op, input, output)
  1029. return
  1030. }
  1031. // ListAvailableZones API operation for Amazon CloudHSM.
  1032. //
  1033. // This is documentation for AWS CloudHSM Classic. For more information, see
  1034. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  1035. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  1036. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  1037. //
  1038. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  1039. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  1040. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  1041. //
  1042. // Lists the Availability Zones that have available AWS CloudHSM capacity.
  1043. //
  1044. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1045. // with awserr.Error's Code and Message methods to get detailed information about
  1046. // the error.
  1047. //
  1048. // See the AWS API reference guide for Amazon CloudHSM's
  1049. // API operation ListAvailableZones for usage and error information.
  1050. //
  1051. // Returned Error Codes:
  1052. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  1053. // Indicates that an exception occurred in the AWS CloudHSM service.
  1054. //
  1055. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  1056. // Indicates that an internal error occurred.
  1057. //
  1058. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1059. // Indicates that one or more of the request parameters are not valid.
  1060. //
  1061. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones
  1062. func (c *CloudHSM) ListAvailableZones(input *ListAvailableZonesInput) (*ListAvailableZonesOutput, error) {
  1063. req, out := c.ListAvailableZonesRequest(input)
  1064. return out, req.Send()
  1065. }
  1066. // ListAvailableZonesWithContext is the same as ListAvailableZones with the addition of
  1067. // the ability to pass a context and additional request options.
  1068. //
  1069. // See ListAvailableZones for details on how to use this API operation.
  1070. //
  1071. // The context must be non-nil and will be used for request cancellation. If
  1072. // the context is nil a panic will occur. In the future the SDK may create
  1073. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1074. // for more information on using Contexts.
  1075. func (c *CloudHSM) ListAvailableZonesWithContext(ctx aws.Context, input *ListAvailableZonesInput, opts ...request.Option) (*ListAvailableZonesOutput, error) {
  1076. req, out := c.ListAvailableZonesRequest(input)
  1077. req.SetContext(ctx)
  1078. req.ApplyOptions(opts...)
  1079. return out, req.Send()
  1080. }
  1081. const opListHapgs = "ListHapgs"
  1082. // ListHapgsRequest generates a "aws/request.Request" representing the
  1083. // client's request for the ListHapgs operation. The "output" return
  1084. // value will be populated with the request's response once the request completes
  1085. // successfully.
  1086. //
  1087. // Use "Send" method on the returned Request to send the API call to the service.
  1088. // the "output" return value is not valid until after Send returns without error.
  1089. //
  1090. // See ListHapgs for more information on using the ListHapgs
  1091. // API call, and error handling.
  1092. //
  1093. // This method is useful when you want to inject custom logic or configuration
  1094. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1095. //
  1096. //
  1097. // // Example sending a request using the ListHapgsRequest method.
  1098. // req, resp := client.ListHapgsRequest(params)
  1099. //
  1100. // err := req.Send()
  1101. // if err == nil { // resp is now filled
  1102. // fmt.Println(resp)
  1103. // }
  1104. //
  1105. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs
  1106. func (c *CloudHSM) ListHapgsRequest(input *ListHapgsInput) (req *request.Request, output *ListHapgsOutput) {
  1107. op := &request.Operation{
  1108. Name: opListHapgs,
  1109. HTTPMethod: "POST",
  1110. HTTPPath: "/",
  1111. }
  1112. if input == nil {
  1113. input = &ListHapgsInput{}
  1114. }
  1115. output = &ListHapgsOutput{}
  1116. req = c.newRequest(op, input, output)
  1117. return
  1118. }
  1119. // ListHapgs API operation for Amazon CloudHSM.
  1120. //
  1121. // This is documentation for AWS CloudHSM Classic. For more information, see
  1122. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  1123. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  1124. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  1125. //
  1126. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  1127. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  1128. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  1129. //
  1130. // Lists the high-availability partition groups for the account.
  1131. //
  1132. // This operation supports pagination with the use of the NextToken member.
  1133. // If more results are available, the NextToken member of the response contains
  1134. // a token that you pass in the next call to ListHapgs to retrieve the next
  1135. // set of items.
  1136. //
  1137. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1138. // with awserr.Error's Code and Message methods to get detailed information about
  1139. // the error.
  1140. //
  1141. // See the AWS API reference guide for Amazon CloudHSM's
  1142. // API operation ListHapgs for usage and error information.
  1143. //
  1144. // Returned Error Codes:
  1145. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  1146. // Indicates that an exception occurred in the AWS CloudHSM service.
  1147. //
  1148. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  1149. // Indicates that an internal error occurred.
  1150. //
  1151. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1152. // Indicates that one or more of the request parameters are not valid.
  1153. //
  1154. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs
  1155. func (c *CloudHSM) ListHapgs(input *ListHapgsInput) (*ListHapgsOutput, error) {
  1156. req, out := c.ListHapgsRequest(input)
  1157. return out, req.Send()
  1158. }
  1159. // ListHapgsWithContext is the same as ListHapgs with the addition of
  1160. // the ability to pass a context and additional request options.
  1161. //
  1162. // See ListHapgs for details on how to use this API operation.
  1163. //
  1164. // The context must be non-nil and will be used for request cancellation. If
  1165. // the context is nil a panic will occur. In the future the SDK may create
  1166. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1167. // for more information on using Contexts.
  1168. func (c *CloudHSM) ListHapgsWithContext(ctx aws.Context, input *ListHapgsInput, opts ...request.Option) (*ListHapgsOutput, error) {
  1169. req, out := c.ListHapgsRequest(input)
  1170. req.SetContext(ctx)
  1171. req.ApplyOptions(opts...)
  1172. return out, req.Send()
  1173. }
  1174. const opListHsms = "ListHsms"
  1175. // ListHsmsRequest generates a "aws/request.Request" representing the
  1176. // client's request for the ListHsms operation. The "output" return
  1177. // value will be populated with the request's response once the request completes
  1178. // successfully.
  1179. //
  1180. // Use "Send" method on the returned Request to send the API call to the service.
  1181. // the "output" return value is not valid until after Send returns without error.
  1182. //
  1183. // See ListHsms for more information on using the ListHsms
  1184. // API call, and error handling.
  1185. //
  1186. // This method is useful when you want to inject custom logic or configuration
  1187. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1188. //
  1189. //
  1190. // // Example sending a request using the ListHsmsRequest method.
  1191. // req, resp := client.ListHsmsRequest(params)
  1192. //
  1193. // err := req.Send()
  1194. // if err == nil { // resp is now filled
  1195. // fmt.Println(resp)
  1196. // }
  1197. //
  1198. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms
  1199. func (c *CloudHSM) ListHsmsRequest(input *ListHsmsInput) (req *request.Request, output *ListHsmsOutput) {
  1200. op := &request.Operation{
  1201. Name: opListHsms,
  1202. HTTPMethod: "POST",
  1203. HTTPPath: "/",
  1204. }
  1205. if input == nil {
  1206. input = &ListHsmsInput{}
  1207. }
  1208. output = &ListHsmsOutput{}
  1209. req = c.newRequest(op, input, output)
  1210. return
  1211. }
  1212. // ListHsms API operation for Amazon CloudHSM.
  1213. //
  1214. // This is documentation for AWS CloudHSM Classic. For more information, see
  1215. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  1216. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  1217. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  1218. //
  1219. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  1220. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  1221. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  1222. //
  1223. // Retrieves the identifiers of all of the HSMs provisioned for the current
  1224. // customer.
  1225. //
  1226. // This operation supports pagination with the use of the NextToken member.
  1227. // If more results are available, the NextToken member of the response contains
  1228. // a token that you pass in the next call to ListHsms to retrieve the next set
  1229. // of items.
  1230. //
  1231. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1232. // with awserr.Error's Code and Message methods to get detailed information about
  1233. // the error.
  1234. //
  1235. // See the AWS API reference guide for Amazon CloudHSM's
  1236. // API operation ListHsms for usage and error information.
  1237. //
  1238. // Returned Error Codes:
  1239. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  1240. // Indicates that an exception occurred in the AWS CloudHSM service.
  1241. //
  1242. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  1243. // Indicates that an internal error occurred.
  1244. //
  1245. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1246. // Indicates that one or more of the request parameters are not valid.
  1247. //
  1248. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms
  1249. func (c *CloudHSM) ListHsms(input *ListHsmsInput) (*ListHsmsOutput, error) {
  1250. req, out := c.ListHsmsRequest(input)
  1251. return out, req.Send()
  1252. }
  1253. // ListHsmsWithContext is the same as ListHsms with the addition of
  1254. // the ability to pass a context and additional request options.
  1255. //
  1256. // See ListHsms for details on how to use this API operation.
  1257. //
  1258. // The context must be non-nil and will be used for request cancellation. If
  1259. // the context is nil a panic will occur. In the future the SDK may create
  1260. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1261. // for more information on using Contexts.
  1262. func (c *CloudHSM) ListHsmsWithContext(ctx aws.Context, input *ListHsmsInput, opts ...request.Option) (*ListHsmsOutput, error) {
  1263. req, out := c.ListHsmsRequest(input)
  1264. req.SetContext(ctx)
  1265. req.ApplyOptions(opts...)
  1266. return out, req.Send()
  1267. }
  1268. const opListLunaClients = "ListLunaClients"
  1269. // ListLunaClientsRequest generates a "aws/request.Request" representing the
  1270. // client's request for the ListLunaClients operation. The "output" return
  1271. // value will be populated with the request's response once the request completes
  1272. // successfully.
  1273. //
  1274. // Use "Send" method on the returned Request to send the API call to the service.
  1275. // the "output" return value is not valid until after Send returns without error.
  1276. //
  1277. // See ListLunaClients for more information on using the ListLunaClients
  1278. // API call, and error handling.
  1279. //
  1280. // This method is useful when you want to inject custom logic or configuration
  1281. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1282. //
  1283. //
  1284. // // Example sending a request using the ListLunaClientsRequest method.
  1285. // req, resp := client.ListLunaClientsRequest(params)
  1286. //
  1287. // err := req.Send()
  1288. // if err == nil { // resp is now filled
  1289. // fmt.Println(resp)
  1290. // }
  1291. //
  1292. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients
  1293. func (c *CloudHSM) ListLunaClientsRequest(input *ListLunaClientsInput) (req *request.Request, output *ListLunaClientsOutput) {
  1294. op := &request.Operation{
  1295. Name: opListLunaClients,
  1296. HTTPMethod: "POST",
  1297. HTTPPath: "/",
  1298. }
  1299. if input == nil {
  1300. input = &ListLunaClientsInput{}
  1301. }
  1302. output = &ListLunaClientsOutput{}
  1303. req = c.newRequest(op, input, output)
  1304. return
  1305. }
  1306. // ListLunaClients API operation for Amazon CloudHSM.
  1307. //
  1308. // This is documentation for AWS CloudHSM Classic. For more information, see
  1309. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  1310. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  1311. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  1312. //
  1313. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  1314. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  1315. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  1316. //
  1317. // Lists all of the clients.
  1318. //
  1319. // This operation supports pagination with the use of the NextToken member.
  1320. // If more results are available, the NextToken member of the response contains
  1321. // a token that you pass in the next call to ListLunaClients to retrieve the
  1322. // next set of items.
  1323. //
  1324. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1325. // with awserr.Error's Code and Message methods to get detailed information about
  1326. // the error.
  1327. //
  1328. // See the AWS API reference guide for Amazon CloudHSM's
  1329. // API operation ListLunaClients for usage and error information.
  1330. //
  1331. // Returned Error Codes:
  1332. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  1333. // Indicates that an exception occurred in the AWS CloudHSM service.
  1334. //
  1335. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  1336. // Indicates that an internal error occurred.
  1337. //
  1338. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1339. // Indicates that one or more of the request parameters are not valid.
  1340. //
  1341. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients
  1342. func (c *CloudHSM) ListLunaClients(input *ListLunaClientsInput) (*ListLunaClientsOutput, error) {
  1343. req, out := c.ListLunaClientsRequest(input)
  1344. return out, req.Send()
  1345. }
  1346. // ListLunaClientsWithContext is the same as ListLunaClients with the addition of
  1347. // the ability to pass a context and additional request options.
  1348. //
  1349. // See ListLunaClients for details on how to use this API operation.
  1350. //
  1351. // The context must be non-nil and will be used for request cancellation. If
  1352. // the context is nil a panic will occur. In the future the SDK may create
  1353. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1354. // for more information on using Contexts.
  1355. func (c *CloudHSM) ListLunaClientsWithContext(ctx aws.Context, input *ListLunaClientsInput, opts ...request.Option) (*ListLunaClientsOutput, error) {
  1356. req, out := c.ListLunaClientsRequest(input)
  1357. req.SetContext(ctx)
  1358. req.ApplyOptions(opts...)
  1359. return out, req.Send()
  1360. }
  1361. const opListTagsForResource = "ListTagsForResource"
  1362. // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  1363. // client's request for the ListTagsForResource operation. The "output" return
  1364. // value will be populated with the request's response once the request completes
  1365. // successfully.
  1366. //
  1367. // Use "Send" method on the returned Request to send the API call to the service.
  1368. // the "output" return value is not valid until after Send returns without error.
  1369. //
  1370. // See ListTagsForResource for more information on using the ListTagsForResource
  1371. // API call, and error handling.
  1372. //
  1373. // This method is useful when you want to inject custom logic or configuration
  1374. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1375. //
  1376. //
  1377. // // Example sending a request using the ListTagsForResourceRequest method.
  1378. // req, resp := client.ListTagsForResourceRequest(params)
  1379. //
  1380. // err := req.Send()
  1381. // if err == nil { // resp is now filled
  1382. // fmt.Println(resp)
  1383. // }
  1384. //
  1385. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource
  1386. func (c *CloudHSM) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  1387. op := &request.Operation{
  1388. Name: opListTagsForResource,
  1389. HTTPMethod: "POST",
  1390. HTTPPath: "/",
  1391. }
  1392. if input == nil {
  1393. input = &ListTagsForResourceInput{}
  1394. }
  1395. output = &ListTagsForResourceOutput{}
  1396. req = c.newRequest(op, input, output)
  1397. return
  1398. }
  1399. // ListTagsForResource API operation for Amazon CloudHSM.
  1400. //
  1401. // This is documentation for AWS CloudHSM Classic. For more information, see
  1402. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  1403. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  1404. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  1405. //
  1406. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  1407. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  1408. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  1409. //
  1410. // Returns a list of all tags for the specified AWS CloudHSM resource.
  1411. //
  1412. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1413. // with awserr.Error's Code and Message methods to get detailed information about
  1414. // the error.
  1415. //
  1416. // See the AWS API reference guide for Amazon CloudHSM's
  1417. // API operation ListTagsForResource for usage and error information.
  1418. //
  1419. // Returned Error Codes:
  1420. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  1421. // Indicates that an exception occurred in the AWS CloudHSM service.
  1422. //
  1423. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  1424. // Indicates that an internal error occurred.
  1425. //
  1426. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1427. // Indicates that one or more of the request parameters are not valid.
  1428. //
  1429. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource
  1430. func (c *CloudHSM) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  1431. req, out := c.ListTagsForResourceRequest(input)
  1432. return out, req.Send()
  1433. }
  1434. // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
  1435. // the ability to pass a context and additional request options.
  1436. //
  1437. // See ListTagsForResource for details on how to use this API operation.
  1438. //
  1439. // The context must be non-nil and will be used for request cancellation. If
  1440. // the context is nil a panic will occur. In the future the SDK may create
  1441. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1442. // for more information on using Contexts.
  1443. func (c *CloudHSM) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
  1444. req, out := c.ListTagsForResourceRequest(input)
  1445. req.SetContext(ctx)
  1446. req.ApplyOptions(opts...)
  1447. return out, req.Send()
  1448. }
  1449. const opModifyHapg = "ModifyHapg"
  1450. // ModifyHapgRequest generates a "aws/request.Request" representing the
  1451. // client's request for the ModifyHapg operation. The "output" return
  1452. // value will be populated with the request's response once the request completes
  1453. // successfully.
  1454. //
  1455. // Use "Send" method on the returned Request to send the API call to the service.
  1456. // the "output" return value is not valid until after Send returns without error.
  1457. //
  1458. // See ModifyHapg for more information on using the ModifyHapg
  1459. // API call, and error handling.
  1460. //
  1461. // This method is useful when you want to inject custom logic or configuration
  1462. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1463. //
  1464. //
  1465. // // Example sending a request using the ModifyHapgRequest method.
  1466. // req, resp := client.ModifyHapgRequest(params)
  1467. //
  1468. // err := req.Send()
  1469. // if err == nil { // resp is now filled
  1470. // fmt.Println(resp)
  1471. // }
  1472. //
  1473. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg
  1474. func (c *CloudHSM) ModifyHapgRequest(input *ModifyHapgInput) (req *request.Request, output *ModifyHapgOutput) {
  1475. op := &request.Operation{
  1476. Name: opModifyHapg,
  1477. HTTPMethod: "POST",
  1478. HTTPPath: "/",
  1479. }
  1480. if input == nil {
  1481. input = &ModifyHapgInput{}
  1482. }
  1483. output = &ModifyHapgOutput{}
  1484. req = c.newRequest(op, input, output)
  1485. return
  1486. }
  1487. // ModifyHapg API operation for Amazon CloudHSM.
  1488. //
  1489. // This is documentation for AWS CloudHSM Classic. For more information, see
  1490. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  1491. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  1492. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  1493. //
  1494. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  1495. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  1496. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  1497. //
  1498. // Modifies an existing high-availability partition group.
  1499. //
  1500. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1501. // with awserr.Error's Code and Message methods to get detailed information about
  1502. // the error.
  1503. //
  1504. // See the AWS API reference guide for Amazon CloudHSM's
  1505. // API operation ModifyHapg for usage and error information.
  1506. //
  1507. // Returned Error Codes:
  1508. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  1509. // Indicates that an exception occurred in the AWS CloudHSM service.
  1510. //
  1511. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  1512. // Indicates that an internal error occurred.
  1513. //
  1514. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1515. // Indicates that one or more of the request parameters are not valid.
  1516. //
  1517. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg
  1518. func (c *CloudHSM) ModifyHapg(input *ModifyHapgInput) (*ModifyHapgOutput, error) {
  1519. req, out := c.ModifyHapgRequest(input)
  1520. return out, req.Send()
  1521. }
  1522. // ModifyHapgWithContext is the same as ModifyHapg with the addition of
  1523. // the ability to pass a context and additional request options.
  1524. //
  1525. // See ModifyHapg for details on how to use this API operation.
  1526. //
  1527. // The context must be non-nil and will be used for request cancellation. If
  1528. // the context is nil a panic will occur. In the future the SDK may create
  1529. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1530. // for more information on using Contexts.
  1531. func (c *CloudHSM) ModifyHapgWithContext(ctx aws.Context, input *ModifyHapgInput, opts ...request.Option) (*ModifyHapgOutput, error) {
  1532. req, out := c.ModifyHapgRequest(input)
  1533. req.SetContext(ctx)
  1534. req.ApplyOptions(opts...)
  1535. return out, req.Send()
  1536. }
  1537. const opModifyHsm = "ModifyHsm"
  1538. // ModifyHsmRequest generates a "aws/request.Request" representing the
  1539. // client's request for the ModifyHsm operation. The "output" return
  1540. // value will be populated with the request's response once the request completes
  1541. // successfully.
  1542. //
  1543. // Use "Send" method on the returned Request to send the API call to the service.
  1544. // the "output" return value is not valid until after Send returns without error.
  1545. //
  1546. // See ModifyHsm for more information on using the ModifyHsm
  1547. // API call, and error handling.
  1548. //
  1549. // This method is useful when you want to inject custom logic or configuration
  1550. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1551. //
  1552. //
  1553. // // Example sending a request using the ModifyHsmRequest method.
  1554. // req, resp := client.ModifyHsmRequest(params)
  1555. //
  1556. // err := req.Send()
  1557. // if err == nil { // resp is now filled
  1558. // fmt.Println(resp)
  1559. // }
  1560. //
  1561. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm
  1562. func (c *CloudHSM) ModifyHsmRequest(input *ModifyHsmInput) (req *request.Request, output *ModifyHsmOutput) {
  1563. op := &request.Operation{
  1564. Name: opModifyHsm,
  1565. HTTPMethod: "POST",
  1566. HTTPPath: "/",
  1567. }
  1568. if input == nil {
  1569. input = &ModifyHsmInput{}
  1570. }
  1571. output = &ModifyHsmOutput{}
  1572. req = c.newRequest(op, input, output)
  1573. return
  1574. }
  1575. // ModifyHsm API operation for Amazon CloudHSM.
  1576. //
  1577. // This is documentation for AWS CloudHSM Classic. For more information, see
  1578. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  1579. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  1580. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  1581. //
  1582. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  1583. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  1584. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  1585. //
  1586. // Modifies an HSM.
  1587. //
  1588. // This operation can result in the HSM being offline for up to 15 minutes while
  1589. // the AWS CloudHSM service is reconfigured. If you are modifying a production
  1590. // HSM, you should ensure that your AWS CloudHSM service is configured for high
  1591. // availability, and consider executing this operation during a maintenance
  1592. // window.
  1593. //
  1594. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1595. // with awserr.Error's Code and Message methods to get detailed information about
  1596. // the error.
  1597. //
  1598. // See the AWS API reference guide for Amazon CloudHSM's
  1599. // API operation ModifyHsm for usage and error information.
  1600. //
  1601. // Returned Error Codes:
  1602. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  1603. // Indicates that an exception occurred in the AWS CloudHSM service.
  1604. //
  1605. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  1606. // Indicates that an internal error occurred.
  1607. //
  1608. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1609. // Indicates that one or more of the request parameters are not valid.
  1610. //
  1611. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm
  1612. func (c *CloudHSM) ModifyHsm(input *ModifyHsmInput) (*ModifyHsmOutput, error) {
  1613. req, out := c.ModifyHsmRequest(input)
  1614. return out, req.Send()
  1615. }
  1616. // ModifyHsmWithContext is the same as ModifyHsm with the addition of
  1617. // the ability to pass a context and additional request options.
  1618. //
  1619. // See ModifyHsm for details on how to use this API operation.
  1620. //
  1621. // The context must be non-nil and will be used for request cancellation. If
  1622. // the context is nil a panic will occur. In the future the SDK may create
  1623. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1624. // for more information on using Contexts.
  1625. func (c *CloudHSM) ModifyHsmWithContext(ctx aws.Context, input *ModifyHsmInput, opts ...request.Option) (*ModifyHsmOutput, error) {
  1626. req, out := c.ModifyHsmRequest(input)
  1627. req.SetContext(ctx)
  1628. req.ApplyOptions(opts...)
  1629. return out, req.Send()
  1630. }
  1631. const opModifyLunaClient = "ModifyLunaClient"
  1632. // ModifyLunaClientRequest generates a "aws/request.Request" representing the
  1633. // client's request for the ModifyLunaClient operation. The "output" return
  1634. // value will be populated with the request's response once the request completes
  1635. // successfully.
  1636. //
  1637. // Use "Send" method on the returned Request to send the API call to the service.
  1638. // the "output" return value is not valid until after Send returns without error.
  1639. //
  1640. // See ModifyLunaClient for more information on using the ModifyLunaClient
  1641. // API call, and error handling.
  1642. //
  1643. // This method is useful when you want to inject custom logic or configuration
  1644. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1645. //
  1646. //
  1647. // // Example sending a request using the ModifyLunaClientRequest method.
  1648. // req, resp := client.ModifyLunaClientRequest(params)
  1649. //
  1650. // err := req.Send()
  1651. // if err == nil { // resp is now filled
  1652. // fmt.Println(resp)
  1653. // }
  1654. //
  1655. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient
  1656. func (c *CloudHSM) ModifyLunaClientRequest(input *ModifyLunaClientInput) (req *request.Request, output *ModifyLunaClientOutput) {
  1657. op := &request.Operation{
  1658. Name: opModifyLunaClient,
  1659. HTTPMethod: "POST",
  1660. HTTPPath: "/",
  1661. }
  1662. if input == nil {
  1663. input = &ModifyLunaClientInput{}
  1664. }
  1665. output = &ModifyLunaClientOutput{}
  1666. req = c.newRequest(op, input, output)
  1667. return
  1668. }
  1669. // ModifyLunaClient API operation for Amazon CloudHSM.
  1670. //
  1671. // This is documentation for AWS CloudHSM Classic. For more information, see
  1672. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  1673. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  1674. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  1675. //
  1676. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  1677. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  1678. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  1679. //
  1680. // Modifies the certificate used by the client.
  1681. //
  1682. // This action can potentially start a workflow to install the new certificate
  1683. // on the client's HSMs.
  1684. //
  1685. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1686. // with awserr.Error's Code and Message methods to get detailed information about
  1687. // the error.
  1688. //
  1689. // See the AWS API reference guide for Amazon CloudHSM's
  1690. // API operation ModifyLunaClient for usage and error information.
  1691. //
  1692. // Returned Error Codes:
  1693. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  1694. // Indicates that an exception occurred in the AWS CloudHSM service.
  1695. //
  1696. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient
  1697. func (c *CloudHSM) ModifyLunaClient(input *ModifyLunaClientInput) (*ModifyLunaClientOutput, error) {
  1698. req, out := c.ModifyLunaClientRequest(input)
  1699. return out, req.Send()
  1700. }
  1701. // ModifyLunaClientWithContext is the same as ModifyLunaClient with the addition of
  1702. // the ability to pass a context and additional request options.
  1703. //
  1704. // See ModifyLunaClient for details on how to use this API operation.
  1705. //
  1706. // The context must be non-nil and will be used for request cancellation. If
  1707. // the context is nil a panic will occur. In the future the SDK may create
  1708. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1709. // for more information on using Contexts.
  1710. func (c *CloudHSM) ModifyLunaClientWithContext(ctx aws.Context, input *ModifyLunaClientInput, opts ...request.Option) (*ModifyLunaClientOutput, error) {
  1711. req, out := c.ModifyLunaClientRequest(input)
  1712. req.SetContext(ctx)
  1713. req.ApplyOptions(opts...)
  1714. return out, req.Send()
  1715. }
  1716. const opRemoveTagsFromResource = "RemoveTagsFromResource"
  1717. // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the
  1718. // client's request for the RemoveTagsFromResource operation. The "output" return
  1719. // value will be populated with the request's response once the request completes
  1720. // successfully.
  1721. //
  1722. // Use "Send" method on the returned Request to send the API call to the service.
  1723. // the "output" return value is not valid until after Send returns without error.
  1724. //
  1725. // See RemoveTagsFromResource for more information on using the RemoveTagsFromResource
  1726. // API call, and error handling.
  1727. //
  1728. // This method is useful when you want to inject custom logic or configuration
  1729. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1730. //
  1731. //
  1732. // // Example sending a request using the RemoveTagsFromResourceRequest method.
  1733. // req, resp := client.RemoveTagsFromResourceRequest(params)
  1734. //
  1735. // err := req.Send()
  1736. // if err == nil { // resp is now filled
  1737. // fmt.Println(resp)
  1738. // }
  1739. //
  1740. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource
  1741. func (c *CloudHSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) {
  1742. op := &request.Operation{
  1743. Name: opRemoveTagsFromResource,
  1744. HTTPMethod: "POST",
  1745. HTTPPath: "/",
  1746. }
  1747. if input == nil {
  1748. input = &RemoveTagsFromResourceInput{}
  1749. }
  1750. output = &RemoveTagsFromResourceOutput{}
  1751. req = c.newRequest(op, input, output)
  1752. return
  1753. }
  1754. // RemoveTagsFromResource API operation for Amazon CloudHSM.
  1755. //
  1756. // This is documentation for AWS CloudHSM Classic. For more information, see
  1757. // AWS CloudHSM Classic FAQs (http://aws.amazon.com/cloudhsm/faqs-classic/),
  1758. // the AWS CloudHSM Classic User Guide (http://docs.aws.amazon.com/cloudhsm/classic/userguide/),
  1759. // and the AWS CloudHSM Classic API Reference (http://docs.aws.amazon.com/cloudhsm/classic/APIReference/).
  1760. //
  1761. // For information about the current version of AWS CloudHSM, see AWS CloudHSM
  1762. // (http://aws.amazon.com/cloudhsm/), the AWS CloudHSM User Guide (http://docs.aws.amazon.com/cloudhsm/latest/userguide/),
  1763. // and the AWS CloudHSM API Reference (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/).
  1764. //
  1765. // Removes one or more tags from the specified AWS CloudHSM resource.
  1766. //
  1767. // To remove a tag, specify only the tag key to remove (not the value). To overwrite
  1768. // the value for an existing tag, use AddTagsToResource.
  1769. //
  1770. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1771. // with awserr.Error's Code and Message methods to get detailed information about
  1772. // the error.
  1773. //
  1774. // See the AWS API reference guide for Amazon CloudHSM's
  1775. // API operation RemoveTagsFromResource for usage and error information.
  1776. //
  1777. // Returned Error Codes:
  1778. // * ErrCodeCloudHsmServiceException "CloudHsmServiceException"
  1779. // Indicates that an exception occurred in the AWS CloudHSM service.
  1780. //
  1781. // * ErrCodeCloudHsmInternalException "CloudHsmInternalException"
  1782. // Indicates that an internal error occurred.
  1783. //
  1784. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1785. // Indicates that one or more of the request parameters are not valid.
  1786. //
  1787. // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource
  1788. func (c *CloudHSM) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) {
  1789. req, out := c.RemoveTagsFromResourceRequest(input)
  1790. return out, req.Send()
  1791. }
  1792. // RemoveTagsFromResourceWithContext is the same as RemoveTagsFromResource with the addition of
  1793. // the ability to pass a context and additional request options.
  1794. //
  1795. // See RemoveTagsFromResource for details on how to use this API operation.
  1796. //
  1797. // The context must be non-nil and will be used for request cancellation. If
  1798. // the context is nil a panic will occur. In the future the SDK may create
  1799. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1800. // for more information on using Contexts.
  1801. func (c *CloudHSM) RemoveTagsFromResourceWithContext(ctx aws.Context, input *RemoveTagsFromResourceInput, opts ...request.Option) (*RemoveTagsFromResourceOutput, error) {
  1802. req, out := c.RemoveTagsFromResourceRequest(input)
  1803. req.SetContext(ctx)
  1804. req.ApplyOptions(opts...)
  1805. return out, req.Send()
  1806. }
  1807. type AddTagsToResourceInput struct {
  1808. _ struct{} `type:"structure"`
  1809. // The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.
  1810. //
  1811. // ResourceArn is a required field
  1812. ResourceArn *string `type:"string" required:"true"`
  1813. // One or more tags.
  1814. //
  1815. // TagList is a required field
  1816. TagList []*Tag `type:"list" required:"true"`
  1817. }
  1818. // String returns the string representation
  1819. func (s AddTagsToResourceInput) String() string {
  1820. return awsutil.Prettify(s)
  1821. }
  1822. // GoString returns the string representation
  1823. func (s AddTagsToResourceInput) GoString() string {
  1824. return s.String()
  1825. }
  1826. // Validate inspects the fields of the type to determine if they are valid.
  1827. func (s *AddTagsToResourceInput) Validate() error {
  1828. invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"}
  1829. if s.ResourceArn == nil {
  1830. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  1831. }
  1832. if s.TagList == nil {
  1833. invalidParams.Add(request.NewErrParamRequired("TagList"))
  1834. }
  1835. if s.TagList != nil {
  1836. for i, v := range s.TagList {
  1837. if v == nil {
  1838. continue
  1839. }
  1840. if err := v.Validate(); err != nil {
  1841. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagList", i), err.(request.ErrInvalidParams))
  1842. }
  1843. }
  1844. }
  1845. if invalidParams.Len() > 0 {
  1846. return invalidParams
  1847. }
  1848. return nil
  1849. }
  1850. // SetResourceArn sets the ResourceArn field's value.
  1851. func (s *AddTagsToResourceInput) SetResourceArn(v string) *AddTagsToResourceInput {
  1852. s.ResourceArn = &v
  1853. return s
  1854. }
  1855. // SetTagList sets the TagList field's value.
  1856. func (s *AddTagsToResourceInput) SetTagList(v []*Tag) *AddTagsToResourceInput {
  1857. s.TagList = v
  1858. return s
  1859. }
  1860. type AddTagsToResourceOutput struct {
  1861. _ struct{} `type:"structure"`
  1862. // The status of the operation.
  1863. //
  1864. // Status is a required field
  1865. Status *string `type:"string" required:"true"`
  1866. }
  1867. // String returns the string representation
  1868. func (s AddTagsToResourceOutput) String() string {
  1869. return awsutil.Prettify(s)
  1870. }
  1871. // GoString returns the string representation
  1872. func (s AddTagsToResourceOutput) GoString() string {
  1873. return s.String()
  1874. }
  1875. // SetStatus sets the Status field's value.
  1876. func (s *AddTagsToResourceOutput) SetStatus(v string) *AddTagsToResourceOutput {
  1877. s.Status = &v
  1878. return s
  1879. }
  1880. // Contains the inputs for the CreateHapgRequest action.
  1881. type CreateHapgInput struct {
  1882. _ struct{} `type:"structure"`
  1883. // The label of the new high-availability partition group.
  1884. //
  1885. // Label is a required field
  1886. Label *string `type:"string" required:"true"`
  1887. }
  1888. // String returns the string representation
  1889. func (s CreateHapgInput) String() string {
  1890. return awsutil.Prettify(s)
  1891. }
  1892. // GoString returns the string representation
  1893. func (s CreateHapgInput) GoString() string {
  1894. return s.String()
  1895. }
  1896. // Validate inspects the fields of the type to determine if they are valid.
  1897. func (s *CreateHapgInput) Validate() error {
  1898. invalidParams := request.ErrInvalidParams{Context: "CreateHapgInput"}
  1899. if s.Label == nil {
  1900. invalidParams.Add(request.NewErrParamRequired("Label"))
  1901. }
  1902. if invalidParams.Len() > 0 {
  1903. return invalidParams
  1904. }
  1905. return nil
  1906. }
  1907. // SetLabel sets the Label field's value.
  1908. func (s *CreateHapgInput) SetLabel(v string) *CreateHapgInput {
  1909. s.Label = &v
  1910. return s
  1911. }
  1912. // Contains the output of the CreateHAPartitionGroup action.
  1913. type CreateHapgOutput struct {
  1914. _ struct{} `type:"structure"`
  1915. // The ARN of the high-availability partition group.
  1916. HapgArn *string `type:"string"`
  1917. }
  1918. // String returns the string representation
  1919. func (s CreateHapgOutput) String() string {
  1920. return awsutil.Prettify(s)
  1921. }
  1922. // GoString returns the string representation
  1923. func (s CreateHapgOutput) GoString() string {
  1924. return s.String()
  1925. }
  1926. // SetHapgArn sets the HapgArn field's value.
  1927. func (s *CreateHapgOutput) SetHapgArn(v string) *CreateHapgOutput {
  1928. s.HapgArn = &v
  1929. return s
  1930. }
  1931. // Contains the inputs for the CreateHsm operation.
  1932. type CreateHsmInput struct {
  1933. _ struct{} `locationName:"CreateHsmRequest" type:"structure"`
  1934. // A user-defined token to ensure idempotence. Subsequent calls to this operation
  1935. // with the same token will be ignored.
  1936. ClientToken *string `locationName:"ClientToken" type:"string"`
  1937. // The IP address to assign to the HSM's ENI.
  1938. //
  1939. // If an IP address is not specified, an IP address will be randomly chosen
  1940. // from the CIDR range of the subnet.
  1941. EniIp *string `locationName:"EniIp" type:"string"`
  1942. // The external ID from IamRoleArn, if present.
  1943. ExternalId *string `locationName:"ExternalId" type:"string"`
  1944. // The ARN of an IAM role to enable the AWS CloudHSM service to allocate an
  1945. // ENI on your behalf.
  1946. //
  1947. // IamRoleArn is a required field
  1948. IamRoleArn *string `locationName:"IamRoleArn" type:"string" required:"true"`
  1949. // The SSH public key to install on the HSM.
  1950. //
  1951. // SshKey is a required field
  1952. SshKey *string `locationName:"SshKey" type:"string" required:"true"`
  1953. // The identifier of the subnet in your VPC in which to place the HSM.
  1954. //
  1955. // SubnetId is a required field
  1956. SubnetId *string `locationName:"SubnetId" type:"string" required:"true"`
  1957. // Specifies the type of subscription for the HSM.
  1958. //
  1959. // * PRODUCTION - The HSM is being used in a production environment.
  1960. //
  1961. // * TRIAL - The HSM is being used in a product trial.
  1962. //
  1963. // SubscriptionType is a required field
  1964. SubscriptionType *string `locationName:"SubscriptionType" type:"string" required:"true" enum:"SubscriptionType"`
  1965. // The IP address for the syslog monitoring server. The AWS CloudHSM service
  1966. // only supports one syslog monitoring server.
  1967. SyslogIp *string `locationName:"SyslogIp" type:"string"`
  1968. }
  1969. // String returns the string representation
  1970. func (s CreateHsmInput) String() string {
  1971. return awsutil.Prettify(s)
  1972. }
  1973. // GoString returns the string representation
  1974. func (s CreateHsmInput) GoString() string {
  1975. return s.String()
  1976. }
  1977. // Validate inspects the fields of the type to determine if they are valid.
  1978. func (s *CreateHsmInput) Validate() error {
  1979. invalidParams := request.ErrInvalidParams{Context: "CreateHsmInput"}
  1980. if s.IamRoleArn == nil {
  1981. invalidParams.Add(request.NewErrParamRequired("IamRoleArn"))
  1982. }
  1983. if s.SshKey == nil {
  1984. invalidParams.Add(request.NewErrParamRequired("SshKey"))
  1985. }
  1986. if s.SubnetId == nil {
  1987. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  1988. }
  1989. if s.SubscriptionType == nil {
  1990. invalidParams.Add(request.NewErrParamRequired("SubscriptionType"))
  1991. }
  1992. if invalidParams.Len() > 0 {
  1993. return invalidParams
  1994. }
  1995. return nil
  1996. }
  1997. // SetClientToken sets the ClientToken field's value.
  1998. func (s *CreateHsmInput) SetClientToken(v string) *CreateHsmInput {
  1999. s.ClientToken = &v
  2000. return s
  2001. }
  2002. // SetEniIp sets the EniIp field's value.
  2003. func (s *CreateHsmInput) SetEniIp(v string) *CreateHsmInput {
  2004. s.EniIp = &v
  2005. return s
  2006. }
  2007. // SetExternalId sets the ExternalId field's value.
  2008. func (s *CreateHsmInput) SetExternalId(v string) *CreateHsmInput {
  2009. s.ExternalId = &v
  2010. return s
  2011. }
  2012. // SetIamRoleArn sets the IamRoleArn field's value.
  2013. func (s *CreateHsmInput) SetIamRoleArn(v string) *CreateHsmInput {
  2014. s.IamRoleArn = &v
  2015. return s
  2016. }
  2017. // SetSshKey sets the SshKey field's value.
  2018. func (s *CreateHsmInput) SetSshKey(v string) *CreateHsmInput {
  2019. s.SshKey = &v
  2020. return s
  2021. }
  2022. // SetSubnetId sets the SubnetId field's value.
  2023. func (s *CreateHsmInput) SetSubnetId(v string) *CreateHsmInput {
  2024. s.SubnetId = &v
  2025. return s
  2026. }
  2027. // SetSubscriptionType sets the SubscriptionType field's value.
  2028. func (s *CreateHsmInput) SetSubscriptionType(v string) *CreateHsmInput {
  2029. s.SubscriptionType = &v
  2030. return s
  2031. }
  2032. // SetSyslogIp sets the SyslogIp field's value.
  2033. func (s *CreateHsmInput) SetSyslogIp(v string) *CreateHsmInput {
  2034. s.SyslogIp = &v
  2035. return s
  2036. }
  2037. // Contains the output of the CreateHsm operation.
  2038. type CreateHsmOutput struct {
  2039. _ struct{} `type:"structure"`
  2040. // The ARN of the HSM.
  2041. HsmArn *string `type:"string"`
  2042. }
  2043. // String returns the string representation
  2044. func (s CreateHsmOutput) String() string {
  2045. return awsutil.Prettify(s)
  2046. }
  2047. // GoString returns the string representation
  2048. func (s CreateHsmOutput) GoString() string {
  2049. return s.String()
  2050. }
  2051. // SetHsmArn sets the HsmArn field's value.
  2052. func (s *CreateHsmOutput) SetHsmArn(v string) *CreateHsmOutput {
  2053. s.HsmArn = &v
  2054. return s
  2055. }
  2056. // Contains the inputs for the CreateLunaClient action.
  2057. type CreateLunaClientInput struct {
  2058. _ struct{} `type:"structure"`
  2059. // The contents of a Base64-Encoded X.509 v3 certificate to be installed on
  2060. // the HSMs used by this client.
  2061. //
  2062. // Certificate is a required field
  2063. Certificate *string `min:"600" type:"string" required:"true"`
  2064. // The label for the client.
  2065. Label *string `type:"string"`
  2066. }
  2067. // String returns the string representation
  2068. func (s CreateLunaClientInput) String() string {
  2069. return awsutil.Prettify(s)
  2070. }
  2071. // GoString returns the string representation
  2072. func (s CreateLunaClientInput) GoString() string {
  2073. return s.String()
  2074. }
  2075. // Validate inspects the fields of the type to determine if they are valid.
  2076. func (s *CreateLunaClientInput) Validate() error {
  2077. invalidParams := request.ErrInvalidParams{Context: "CreateLunaClientInput"}
  2078. if s.Certificate == nil {
  2079. invalidParams.Add(request.NewErrParamRequired("Certificate"))
  2080. }
  2081. if s.Certificate != nil && len(*s.Certificate) < 600 {
  2082. invalidParams.Add(request.NewErrParamMinLen("Certificate", 600))
  2083. }
  2084. if invalidParams.Len() > 0 {
  2085. return invalidParams
  2086. }
  2087. return nil
  2088. }
  2089. // SetCertificate sets the Certificate field's value.
  2090. func (s *CreateLunaClientInput) SetCertificate(v string) *CreateLunaClientInput {
  2091. s.Certificate = &v
  2092. return s
  2093. }
  2094. // SetLabel sets the Label field's value.
  2095. func (s *CreateLunaClientInput) SetLabel(v string) *CreateLunaClientInput {
  2096. s.Label = &v
  2097. return s
  2098. }
  2099. // Contains the output of the CreateLunaClient action.
  2100. type CreateLunaClientOutput struct {
  2101. _ struct{} `type:"structure"`
  2102. // The ARN of the client.
  2103. ClientArn *string `type:"string"`
  2104. }
  2105. // String returns the string representation
  2106. func (s CreateLunaClientOutput) String() string {
  2107. return awsutil.Prettify(s)
  2108. }
  2109. // GoString returns the string representation
  2110. func (s CreateLunaClientOutput) GoString() string {
  2111. return s.String()
  2112. }
  2113. // SetClientArn sets the ClientArn field's value.
  2114. func (s *CreateLunaClientOutput) SetClientArn(v string) *CreateLunaClientOutput {
  2115. s.ClientArn = &v
  2116. return s
  2117. }
  2118. // Contains the inputs for the DeleteHapg action.
  2119. type DeleteHapgInput struct {
  2120. _ struct{} `type:"structure"`
  2121. // The ARN of the high-availability partition group to delete.
  2122. //
  2123. // HapgArn is a required field
  2124. HapgArn *string `type:"string" required:"true"`
  2125. }
  2126. // String returns the string representation
  2127. func (s DeleteHapgInput) String() string {
  2128. return awsutil.Prettify(s)
  2129. }
  2130. // GoString returns the string representation
  2131. func (s DeleteHapgInput) GoString() string {
  2132. return s.String()
  2133. }
  2134. // Validate inspects the fields of the type to determine if they are valid.
  2135. func (s *DeleteHapgInput) Validate() error {
  2136. invalidParams := request.ErrInvalidParams{Context: "DeleteHapgInput"}
  2137. if s.HapgArn == nil {
  2138. invalidParams.Add(request.NewErrParamRequired("HapgArn"))
  2139. }
  2140. if invalidParams.Len() > 0 {
  2141. return invalidParams
  2142. }
  2143. return nil
  2144. }
  2145. // SetHapgArn sets the HapgArn field's value.
  2146. func (s *DeleteHapgInput) SetHapgArn(v string) *DeleteHapgInput {
  2147. s.HapgArn = &v
  2148. return s
  2149. }
  2150. // Contains the output of the DeleteHapg action.
  2151. type DeleteHapgOutput struct {
  2152. _ struct{} `type:"structure"`
  2153. // The status of the action.
  2154. //
  2155. // Status is a required field
  2156. Status *string `type:"string" required:"true"`
  2157. }
  2158. // String returns the string representation
  2159. func (s DeleteHapgOutput) String() string {
  2160. return awsutil.Prettify(s)
  2161. }
  2162. // GoString returns the string representation
  2163. func (s DeleteHapgOutput) GoString() string {
  2164. return s.String()
  2165. }
  2166. // SetStatus sets the Status field's value.
  2167. func (s *DeleteHapgOutput) SetStatus(v string) *DeleteHapgOutput {
  2168. s.Status = &v
  2169. return s
  2170. }
  2171. // Contains the inputs for the DeleteHsm operation.
  2172. type DeleteHsmInput struct {
  2173. _ struct{} `locationName:"DeleteHsmRequest" type:"structure"`
  2174. // The ARN of the HSM to delete.
  2175. //
  2176. // HsmArn is a required field
  2177. HsmArn *string `locationName:"HsmArn" type:"string" required:"true"`
  2178. }
  2179. // String returns the string representation
  2180. func (s DeleteHsmInput) String() string {
  2181. return awsutil.Prettify(s)
  2182. }
  2183. // GoString returns the string representation
  2184. func (s DeleteHsmInput) GoString() string {
  2185. return s.String()
  2186. }
  2187. // Validate inspects the fields of the type to determine if they are valid.
  2188. func (s *DeleteHsmInput) Validate() error {
  2189. invalidParams := request.ErrInvalidParams{Context: "DeleteHsmInput"}
  2190. if s.HsmArn == nil {
  2191. invalidParams.Add(request.NewErrParamRequired("HsmArn"))
  2192. }
  2193. if invalidParams.Len() > 0 {
  2194. return invalidParams
  2195. }
  2196. return nil
  2197. }
  2198. // SetHsmArn sets the HsmArn field's value.
  2199. func (s *DeleteHsmInput) SetHsmArn(v string) *DeleteHsmInput {
  2200. s.HsmArn = &v
  2201. return s
  2202. }
  2203. // Contains the output of the DeleteHsm operation.
  2204. type DeleteHsmOutput struct {
  2205. _ struct{} `type:"structure"`
  2206. // The status of the operation.
  2207. //
  2208. // Status is a required field
  2209. Status *string `type:"string" required:"true"`
  2210. }
  2211. // String returns the string representation
  2212. func (s DeleteHsmOutput) String() string {
  2213. return awsutil.Prettify(s)
  2214. }
  2215. // GoString returns the string representation
  2216. func (s DeleteHsmOutput) GoString() string {
  2217. return s.String()
  2218. }
  2219. // SetStatus sets the Status field's value.
  2220. func (s *DeleteHsmOutput) SetStatus(v string) *DeleteHsmOutput {
  2221. s.Status = &v
  2222. return s
  2223. }
  2224. type DeleteLunaClientInput struct {
  2225. _ struct{} `type:"structure"`
  2226. // The ARN of the client to delete.
  2227. //
  2228. // ClientArn is a required field
  2229. ClientArn *string `type:"string" required:"true"`
  2230. }
  2231. // String returns the string representation
  2232. func (s DeleteLunaClientInput) String() string {
  2233. return awsutil.Prettify(s)
  2234. }
  2235. // GoString returns the string representation
  2236. func (s DeleteLunaClientInput) GoString() string {
  2237. return s.String()
  2238. }
  2239. // Validate inspects the fields of the type to determine if they are valid.
  2240. func (s *DeleteLunaClientInput) Validate() error {
  2241. invalidParams := request.ErrInvalidParams{Context: "DeleteLunaClientInput"}
  2242. if s.ClientArn == nil {
  2243. invalidParams.Add(request.NewErrParamRequired("ClientArn"))
  2244. }
  2245. if invalidParams.Len() > 0 {
  2246. return invalidParams
  2247. }
  2248. return nil
  2249. }
  2250. // SetClientArn sets the ClientArn field's value.
  2251. func (s *DeleteLunaClientInput) SetClientArn(v string) *DeleteLunaClientInput {
  2252. s.ClientArn = &v
  2253. return s
  2254. }
  2255. type DeleteLunaClientOutput struct {
  2256. _ struct{} `type:"structure"`
  2257. // The status of the action.
  2258. //
  2259. // Status is a required field
  2260. Status *string `type:"string" required:"true"`
  2261. }
  2262. // String returns the string representation
  2263. func (s DeleteLunaClientOutput) String() string {
  2264. return awsutil.Prettify(s)
  2265. }
  2266. // GoString returns the string representation
  2267. func (s DeleteLunaClientOutput) GoString() string {
  2268. return s.String()
  2269. }
  2270. // SetStatus sets the Status field's value.
  2271. func (s *DeleteLunaClientOutput) SetStatus(v string) *DeleteLunaClientOutput {
  2272. s.Status = &v
  2273. return s
  2274. }
  2275. // Contains the inputs for the DescribeHapg action.
  2276. type DescribeHapgInput struct {
  2277. _ struct{} `type:"structure"`
  2278. // The ARN of the high-availability partition group to describe.
  2279. //
  2280. // HapgArn is a required field
  2281. HapgArn *string `type:"string" required:"true"`
  2282. }
  2283. // String returns the string representation
  2284. func (s DescribeHapgInput) String() string {
  2285. return awsutil.Prettify(s)
  2286. }
  2287. // GoString returns the string representation
  2288. func (s DescribeHapgInput) GoString() string {
  2289. return s.String()
  2290. }
  2291. // Validate inspects the fields of the type to determine if they are valid.
  2292. func (s *DescribeHapgInput) Validate() error {
  2293. invalidParams := request.ErrInvalidParams{Context: "DescribeHapgInput"}
  2294. if s.HapgArn == nil {
  2295. invalidParams.Add(request.NewErrParamRequired("HapgArn"))
  2296. }
  2297. if invalidParams.Len() > 0 {
  2298. return invalidParams
  2299. }
  2300. return nil
  2301. }
  2302. // SetHapgArn sets the HapgArn field's value.
  2303. func (s *DescribeHapgInput) SetHapgArn(v string) *DescribeHapgInput {
  2304. s.HapgArn = &v
  2305. return s
  2306. }
  2307. // Contains the output of the DescribeHapg action.
  2308. type DescribeHapgOutput struct {
  2309. _ struct{} `type:"structure"`
  2310. // The ARN of the high-availability partition group.
  2311. HapgArn *string `type:"string"`
  2312. // The serial number of the high-availability partition group.
  2313. HapgSerial *string `type:"string"`
  2314. // Contains a list of ARNs that identify the HSMs.
  2315. HsmsLastActionFailed []*string `type:"list"`
  2316. // Contains a list of ARNs that identify the HSMs.
  2317. HsmsPendingDeletion []*string `type:"list"`
  2318. // Contains a list of ARNs that identify the HSMs.
  2319. HsmsPendingRegistration []*string `type:"list"`
  2320. // The label for the high-availability partition group.
  2321. Label *string `type:"string"`
  2322. // The date and time the high-availability partition group was last modified.
  2323. LastModifiedTimestamp *string `type:"string"`
  2324. // The list of partition serial numbers that belong to the high-availability
  2325. // partition group.
  2326. PartitionSerialList []*string `type:"list"`
  2327. // The state of the high-availability partition group.
  2328. State *string `type:"string" enum:"CloudHsmObjectState"`
  2329. }
  2330. // String returns the string representation
  2331. func (s DescribeHapgOutput) String() string {
  2332. return awsutil.Prettify(s)
  2333. }
  2334. // GoString returns the string representation
  2335. func (s DescribeHapgOutput) GoString() string {
  2336. return s.String()
  2337. }
  2338. // SetHapgArn sets the HapgArn field's value.
  2339. func (s *DescribeHapgOutput) SetHapgArn(v string) *DescribeHapgOutput {
  2340. s.HapgArn = &v
  2341. return s
  2342. }
  2343. // SetHapgSerial sets the HapgSerial field's value.
  2344. func (s *DescribeHapgOutput) SetHapgSerial(v string) *DescribeHapgOutput {
  2345. s.HapgSerial = &v
  2346. return s
  2347. }
  2348. // SetHsmsLastActionFailed sets the HsmsLastActionFailed field's value.
  2349. func (s *DescribeHapgOutput) SetHsmsLastActionFailed(v []*string) *DescribeHapgOutput {
  2350. s.HsmsLastActionFailed = v
  2351. return s
  2352. }
  2353. // SetHsmsPendingDeletion sets the HsmsPendingDeletion field's value.
  2354. func (s *DescribeHapgOutput) SetHsmsPendingDeletion(v []*string) *DescribeHapgOutput {
  2355. s.HsmsPendingDeletion = v
  2356. return s
  2357. }
  2358. // SetHsmsPendingRegistration sets the HsmsPendingRegistration field's value.
  2359. func (s *DescribeHapgOutput) SetHsmsPendingRegistration(v []*string) *DescribeHapgOutput {
  2360. s.HsmsPendingRegistration = v
  2361. return s
  2362. }
  2363. // SetLabel sets the Label field's value.
  2364. func (s *DescribeHapgOutput) SetLabel(v string) *DescribeHapgOutput {
  2365. s.Label = &v
  2366. return s
  2367. }
  2368. // SetLastModifiedTimestamp sets the LastModifiedTimestamp field's value.
  2369. func (s *DescribeHapgOutput) SetLastModifiedTimestamp(v string) *DescribeHapgOutput {
  2370. s.LastModifiedTimestamp = &v
  2371. return s
  2372. }
  2373. // SetPartitionSerialList sets the PartitionSerialList field's value.
  2374. func (s *DescribeHapgOutput) SetPartitionSerialList(v []*string) *DescribeHapgOutput {
  2375. s.PartitionSerialList = v
  2376. return s
  2377. }
  2378. // SetState sets the State field's value.
  2379. func (s *DescribeHapgOutput) SetState(v string) *DescribeHapgOutput {
  2380. s.State = &v
  2381. return s
  2382. }
  2383. // Contains the inputs for the DescribeHsm operation.
  2384. type DescribeHsmInput struct {
  2385. _ struct{} `type:"structure"`
  2386. // The ARN of the HSM. Either the HsmArn or the SerialNumber parameter must
  2387. // be specified.
  2388. HsmArn *string `type:"string"`
  2389. // The serial number of the HSM. Either the HsmArn or the HsmSerialNumber parameter
  2390. // must be specified.
  2391. HsmSerialNumber *string `type:"string"`
  2392. }
  2393. // String returns the string representation
  2394. func (s DescribeHsmInput) String() string {
  2395. return awsutil.Prettify(s)
  2396. }
  2397. // GoString returns the string representation
  2398. func (s DescribeHsmInput) GoString() string {
  2399. return s.String()
  2400. }
  2401. // SetHsmArn sets the HsmArn field's value.
  2402. func (s *DescribeHsmInput) SetHsmArn(v string) *DescribeHsmInput {
  2403. s.HsmArn = &v
  2404. return s
  2405. }
  2406. // SetHsmSerialNumber sets the HsmSerialNumber field's value.
  2407. func (s *DescribeHsmInput) SetHsmSerialNumber(v string) *DescribeHsmInput {
  2408. s.HsmSerialNumber = &v
  2409. return s
  2410. }
  2411. // Contains the output of the DescribeHsm operation.
  2412. type DescribeHsmOutput struct {
  2413. _ struct{} `type:"structure"`
  2414. // The Availability Zone that the HSM is in.
  2415. AvailabilityZone *string `type:"string"`
  2416. // The identifier of the elastic network interface (ENI) attached to the HSM.
  2417. EniId *string `type:"string"`
  2418. // The IP address assigned to the HSM's ENI.
  2419. EniIp *string `type:"string"`
  2420. // The ARN of the HSM.
  2421. HsmArn *string `type:"string"`
  2422. // The HSM model type.
  2423. HsmType *string `type:"string"`
  2424. // The ARN of the IAM role assigned to the HSM.
  2425. IamRoleArn *string `type:"string"`
  2426. // The list of partitions on the HSM.
  2427. Partitions []*string `type:"list"`
  2428. // The serial number of the HSM.
  2429. SerialNumber *string `type:"string"`
  2430. // The date and time that the server certificate was last updated.
  2431. ServerCertLastUpdated *string `type:"string"`
  2432. // The URI of the certificate server.
  2433. ServerCertUri *string `type:"string"`
  2434. // The HSM software version.
  2435. SoftwareVersion *string `type:"string"`
  2436. // The date and time that the SSH key was last updated.
  2437. SshKeyLastUpdated *string `type:"string"`
  2438. // The public SSH key.
  2439. SshPublicKey *string `type:"string"`
  2440. // The status of the HSM.
  2441. Status *string `type:"string" enum:"HsmStatus"`
  2442. // Contains additional information about the status of the HSM.
  2443. StatusDetails *string `type:"string"`
  2444. // The identifier of the subnet that the HSM is in.
  2445. SubnetId *string `type:"string"`
  2446. // The subscription end date.
  2447. SubscriptionEndDate *string `type:"string"`
  2448. // The subscription start date.
  2449. SubscriptionStartDate *string `type:"string"`
  2450. // Specifies the type of subscription for the HSM.
  2451. //
  2452. // * PRODUCTION - The HSM is being used in a production environment.
  2453. //
  2454. // * TRIAL - The HSM is being used in a product trial.
  2455. SubscriptionType *string `type:"string" enum:"SubscriptionType"`
  2456. // The name of the HSM vendor.
  2457. VendorName *string `type:"string"`
  2458. // The identifier of the VPC that the HSM is in.
  2459. VpcId *string `type:"string"`
  2460. }
  2461. // String returns the string representation
  2462. func (s DescribeHsmOutput) String() string {
  2463. return awsutil.Prettify(s)
  2464. }
  2465. // GoString returns the string representation
  2466. func (s DescribeHsmOutput) GoString() string {
  2467. return s.String()
  2468. }
  2469. // SetAvailabilityZone sets the AvailabilityZone field's value.
  2470. func (s *DescribeHsmOutput) SetAvailabilityZone(v string) *DescribeHsmOutput {
  2471. s.AvailabilityZone = &v
  2472. return s
  2473. }
  2474. // SetEniId sets the EniId field's value.
  2475. func (s *DescribeHsmOutput) SetEniId(v string) *DescribeHsmOutput {
  2476. s.EniId = &v
  2477. return s
  2478. }
  2479. // SetEniIp sets the EniIp field's value.
  2480. func (s *DescribeHsmOutput) SetEniIp(v string) *DescribeHsmOutput {
  2481. s.EniIp = &v
  2482. return s
  2483. }
  2484. // SetHsmArn sets the HsmArn field's value.
  2485. func (s *DescribeHsmOutput) SetHsmArn(v string) *DescribeHsmOutput {
  2486. s.HsmArn = &v
  2487. return s
  2488. }
  2489. // SetHsmType sets the HsmType field's value.
  2490. func (s *DescribeHsmOutput) SetHsmType(v string) *DescribeHsmOutput {
  2491. s.HsmType = &v
  2492. return s
  2493. }
  2494. // SetIamRoleArn sets the IamRoleArn field's value.
  2495. func (s *DescribeHsmOutput) SetIamRoleArn(v string) *DescribeHsmOutput {
  2496. s.IamRoleArn = &v
  2497. return s
  2498. }
  2499. // SetPartitions sets the Partitions field's value.
  2500. func (s *DescribeHsmOutput) SetPartitions(v []*string) *DescribeHsmOutput {
  2501. s.Partitions = v
  2502. return s
  2503. }
  2504. // SetSerialNumber sets the SerialNumber field's value.
  2505. func (s *DescribeHsmOutput) SetSerialNumber(v string) *DescribeHsmOutput {
  2506. s.SerialNumber = &v
  2507. return s
  2508. }
  2509. // SetServerCertLastUpdated sets the ServerCertLastUpdated field's value.
  2510. func (s *DescribeHsmOutput) SetServerCertLastUpdated(v string) *DescribeHsmOutput {
  2511. s.ServerCertLastUpdated = &v
  2512. return s
  2513. }
  2514. // SetServerCertUri sets the ServerCertUri field's value.
  2515. func (s *DescribeHsmOutput) SetServerCertUri(v string) *DescribeHsmOutput {
  2516. s.ServerCertUri = &v
  2517. return s
  2518. }
  2519. // SetSoftwareVersion sets the SoftwareVersion field's value.
  2520. func (s *DescribeHsmOutput) SetSoftwareVersion(v string) *DescribeHsmOutput {
  2521. s.SoftwareVersion = &v
  2522. return s
  2523. }
  2524. // SetSshKeyLastUpdated sets the SshKeyLastUpdated field's value.
  2525. func (s *DescribeHsmOutput) SetSshKeyLastUpdated(v string) *DescribeHsmOutput {
  2526. s.SshKeyLastUpdated = &v
  2527. return s
  2528. }
  2529. // SetSshPublicKey sets the SshPublicKey field's value.
  2530. func (s *DescribeHsmOutput) SetSshPublicKey(v string) *DescribeHsmOutput {
  2531. s.SshPublicKey = &v
  2532. return s
  2533. }
  2534. // SetStatus sets the Status field's value.
  2535. func (s *DescribeHsmOutput) SetStatus(v string) *DescribeHsmOutput {
  2536. s.Status = &v
  2537. return s
  2538. }
  2539. // SetStatusDetails sets the StatusDetails field's value.
  2540. func (s *DescribeHsmOutput) SetStatusDetails(v string) *DescribeHsmOutput {
  2541. s.StatusDetails = &v
  2542. return s
  2543. }
  2544. // SetSubnetId sets the SubnetId field's value.
  2545. func (s *DescribeHsmOutput) SetSubnetId(v string) *DescribeHsmOutput {
  2546. s.SubnetId = &v
  2547. return s
  2548. }
  2549. // SetSubscriptionEndDate sets the SubscriptionEndDate field's value.
  2550. func (s *DescribeHsmOutput) SetSubscriptionEndDate(v string) *DescribeHsmOutput {
  2551. s.SubscriptionEndDate = &v
  2552. return s
  2553. }
  2554. // SetSubscriptionStartDate sets the SubscriptionStartDate field's value.
  2555. func (s *DescribeHsmOutput) SetSubscriptionStartDate(v string) *DescribeHsmOutput {
  2556. s.SubscriptionStartDate = &v
  2557. return s
  2558. }
  2559. // SetSubscriptionType sets the SubscriptionType field's value.
  2560. func (s *DescribeHsmOutput) SetSubscriptionType(v string) *DescribeHsmOutput {
  2561. s.SubscriptionType = &v
  2562. return s
  2563. }
  2564. // SetVendorName sets the VendorName field's value.
  2565. func (s *DescribeHsmOutput) SetVendorName(v string) *DescribeHsmOutput {
  2566. s.VendorName = &v
  2567. return s
  2568. }
  2569. // SetVpcId sets the VpcId field's value.
  2570. func (s *DescribeHsmOutput) SetVpcId(v string) *DescribeHsmOutput {
  2571. s.VpcId = &v
  2572. return s
  2573. }
  2574. type DescribeLunaClientInput struct {
  2575. _ struct{} `type:"structure"`
  2576. // The certificate fingerprint.
  2577. CertificateFingerprint *string `type:"string"`
  2578. // The ARN of the client.
  2579. ClientArn *string `type:"string"`
  2580. }
  2581. // String returns the string representation
  2582. func (s DescribeLunaClientInput) String() string {
  2583. return awsutil.Prettify(s)
  2584. }
  2585. // GoString returns the string representation
  2586. func (s DescribeLunaClientInput) GoString() string {
  2587. return s.String()
  2588. }
  2589. // SetCertificateFingerprint sets the CertificateFingerprint field's value.
  2590. func (s *DescribeLunaClientInput) SetCertificateFingerprint(v string) *DescribeLunaClientInput {
  2591. s.CertificateFingerprint = &v
  2592. return s
  2593. }
  2594. // SetClientArn sets the ClientArn field's value.
  2595. func (s *DescribeLunaClientInput) SetClientArn(v string) *DescribeLunaClientInput {
  2596. s.ClientArn = &v
  2597. return s
  2598. }
  2599. type DescribeLunaClientOutput struct {
  2600. _ struct{} `type:"structure"`
  2601. // The certificate installed on the HSMs used by this client.
  2602. Certificate *string `min:"600" type:"string"`
  2603. // The certificate fingerprint.
  2604. CertificateFingerprint *string `type:"string"`
  2605. // The ARN of the client.
  2606. ClientArn *string `type:"string"`
  2607. // The label of the client.
  2608. Label *string `type:"string"`
  2609. // The date and time the client was last modified.
  2610. LastModifiedTimestamp *string `type:"string"`
  2611. }
  2612. // String returns the string representation
  2613. func (s DescribeLunaClientOutput) String() string {
  2614. return awsutil.Prettify(s)
  2615. }
  2616. // GoString returns the string representation
  2617. func (s DescribeLunaClientOutput) GoString() string {
  2618. return s.String()
  2619. }
  2620. // SetCertificate sets the Certificate field's value.
  2621. func (s *DescribeLunaClientOutput) SetCertificate(v string) *DescribeLunaClientOutput {
  2622. s.Certificate = &v
  2623. return s
  2624. }
  2625. // SetCertificateFingerprint sets the CertificateFingerprint field's value.
  2626. func (s *DescribeLunaClientOutput) SetCertificateFingerprint(v string) *DescribeLunaClientOutput {
  2627. s.CertificateFingerprint = &v
  2628. return s
  2629. }
  2630. // SetClientArn sets the ClientArn field's value.
  2631. func (s *DescribeLunaClientOutput) SetClientArn(v string) *DescribeLunaClientOutput {
  2632. s.ClientArn = &v
  2633. return s
  2634. }
  2635. // SetLabel sets the Label field's value.
  2636. func (s *DescribeLunaClientOutput) SetLabel(v string) *DescribeLunaClientOutput {
  2637. s.Label = &v
  2638. return s
  2639. }
  2640. // SetLastModifiedTimestamp sets the LastModifiedTimestamp field's value.
  2641. func (s *DescribeLunaClientOutput) SetLastModifiedTimestamp(v string) *DescribeLunaClientOutput {
  2642. s.LastModifiedTimestamp = &v
  2643. return s
  2644. }
  2645. type GetConfigInput struct {
  2646. _ struct{} `type:"structure"`
  2647. // The ARN of the client.
  2648. //
  2649. // ClientArn is a required field
  2650. ClientArn *string `type:"string" required:"true"`
  2651. // The client version.
  2652. //
  2653. // ClientVersion is a required field
  2654. ClientVersion *string `type:"string" required:"true" enum:"ClientVersion"`
  2655. // A list of ARNs that identify the high-availability partition groups that
  2656. // are associated with the client.
  2657. //
  2658. // HapgList is a required field
  2659. HapgList []*string `type:"list" required:"true"`
  2660. }
  2661. // String returns the string representation
  2662. func (s GetConfigInput) String() string {
  2663. return awsutil.Prettify(s)
  2664. }
  2665. // GoString returns the string representation
  2666. func (s GetConfigInput) GoString() string {
  2667. return s.String()
  2668. }
  2669. // Validate inspects the fields of the type to determine if they are valid.
  2670. func (s *GetConfigInput) Validate() error {
  2671. invalidParams := request.ErrInvalidParams{Context: "GetConfigInput"}
  2672. if s.ClientArn == nil {
  2673. invalidParams.Add(request.NewErrParamRequired("ClientArn"))
  2674. }
  2675. if s.ClientVersion == nil {
  2676. invalidParams.Add(request.NewErrParamRequired("ClientVersion"))
  2677. }
  2678. if s.HapgList == nil {
  2679. invalidParams.Add(request.NewErrParamRequired("HapgList"))
  2680. }
  2681. if invalidParams.Len() > 0 {
  2682. return invalidParams
  2683. }
  2684. return nil
  2685. }
  2686. // SetClientArn sets the ClientArn field's value.
  2687. func (s *GetConfigInput) SetClientArn(v string) *GetConfigInput {
  2688. s.ClientArn = &v
  2689. return s
  2690. }
  2691. // SetClientVersion sets the ClientVersion field's value.
  2692. func (s *GetConfigInput) SetClientVersion(v string) *GetConfigInput {
  2693. s.ClientVersion = &v
  2694. return s
  2695. }
  2696. // SetHapgList sets the HapgList field's value.
  2697. func (s *GetConfigInput) SetHapgList(v []*string) *GetConfigInput {
  2698. s.HapgList = v
  2699. return s
  2700. }
  2701. type GetConfigOutput struct {
  2702. _ struct{} `type:"structure"`
  2703. // The certificate file containing the server.pem files of the HSMs.
  2704. ConfigCred *string `type:"string"`
  2705. // The chrystoki.conf configuration file.
  2706. ConfigFile *string `type:"string"`
  2707. // The type of credentials.
  2708. ConfigType *string `type:"string"`
  2709. }
  2710. // String returns the string representation
  2711. func (s GetConfigOutput) String() string {
  2712. return awsutil.Prettify(s)
  2713. }
  2714. // GoString returns the string representation
  2715. func (s GetConfigOutput) GoString() string {
  2716. return s.String()
  2717. }
  2718. // SetConfigCred sets the ConfigCred field's value.
  2719. func (s *GetConfigOutput) SetConfigCred(v string) *GetConfigOutput {
  2720. s.ConfigCred = &v
  2721. return s
  2722. }
  2723. // SetConfigFile sets the ConfigFile field's value.
  2724. func (s *GetConfigOutput) SetConfigFile(v string) *GetConfigOutput {
  2725. s.ConfigFile = &v
  2726. return s
  2727. }
  2728. // SetConfigType sets the ConfigType field's value.
  2729. func (s *GetConfigOutput) SetConfigType(v string) *GetConfigOutput {
  2730. s.ConfigType = &v
  2731. return s
  2732. }
  2733. // Contains the inputs for the ListAvailableZones action.
  2734. type ListAvailableZonesInput struct {
  2735. _ struct{} `type:"structure"`
  2736. }
  2737. // String returns the string representation
  2738. func (s ListAvailableZonesInput) String() string {
  2739. return awsutil.Prettify(s)
  2740. }
  2741. // GoString returns the string representation
  2742. func (s ListAvailableZonesInput) GoString() string {
  2743. return s.String()
  2744. }
  2745. type ListAvailableZonesOutput struct {
  2746. _ struct{} `type:"structure"`
  2747. // The list of Availability Zones that have available AWS CloudHSM capacity.
  2748. AZList []*string `type:"list"`
  2749. }
  2750. // String returns the string representation
  2751. func (s ListAvailableZonesOutput) String() string {
  2752. return awsutil.Prettify(s)
  2753. }
  2754. // GoString returns the string representation
  2755. func (s ListAvailableZonesOutput) GoString() string {
  2756. return s.String()
  2757. }
  2758. // SetAZList sets the AZList field's value.
  2759. func (s *ListAvailableZonesOutput) SetAZList(v []*string) *ListAvailableZonesOutput {
  2760. s.AZList = v
  2761. return s
  2762. }
  2763. type ListHapgsInput struct {
  2764. _ struct{} `type:"structure"`
  2765. // The NextToken value from a previous call to ListHapgs. Pass null if this
  2766. // is the first call.
  2767. NextToken *string `type:"string"`
  2768. }
  2769. // String returns the string representation
  2770. func (s ListHapgsInput) String() string {
  2771. return awsutil.Prettify(s)
  2772. }
  2773. // GoString returns the string representation
  2774. func (s ListHapgsInput) GoString() string {
  2775. return s.String()
  2776. }
  2777. // SetNextToken sets the NextToken field's value.
  2778. func (s *ListHapgsInput) SetNextToken(v string) *ListHapgsInput {
  2779. s.NextToken = &v
  2780. return s
  2781. }
  2782. type ListHapgsOutput struct {
  2783. _ struct{} `type:"structure"`
  2784. // The list of high-availability partition groups.
  2785. //
  2786. // HapgList is a required field
  2787. HapgList []*string `type:"list" required:"true"`
  2788. // If not null, more results are available. Pass this value to ListHapgs to
  2789. // retrieve the next set of items.
  2790. NextToken *string `type:"string"`
  2791. }
  2792. // String returns the string representation
  2793. func (s ListHapgsOutput) String() string {
  2794. return awsutil.Prettify(s)
  2795. }
  2796. // GoString returns the string representation
  2797. func (s ListHapgsOutput) GoString() string {
  2798. return s.String()
  2799. }
  2800. // SetHapgList sets the HapgList field's value.
  2801. func (s *ListHapgsOutput) SetHapgList(v []*string) *ListHapgsOutput {
  2802. s.HapgList = v
  2803. return s
  2804. }
  2805. // SetNextToken sets the NextToken field's value.
  2806. func (s *ListHapgsOutput) SetNextToken(v string) *ListHapgsOutput {
  2807. s.NextToken = &v
  2808. return s
  2809. }
  2810. type ListHsmsInput struct {
  2811. _ struct{} `type:"structure"`
  2812. // The NextToken value from a previous call to ListHsms. Pass null if this is
  2813. // the first call.
  2814. NextToken *string `type:"string"`
  2815. }
  2816. // String returns the string representation
  2817. func (s ListHsmsInput) String() string {
  2818. return awsutil.Prettify(s)
  2819. }
  2820. // GoString returns the string representation
  2821. func (s ListHsmsInput) GoString() string {
  2822. return s.String()
  2823. }
  2824. // SetNextToken sets the NextToken field's value.
  2825. func (s *ListHsmsInput) SetNextToken(v string) *ListHsmsInput {
  2826. s.NextToken = &v
  2827. return s
  2828. }
  2829. // Contains the output of the ListHsms operation.
  2830. type ListHsmsOutput struct {
  2831. _ struct{} `type:"structure"`
  2832. // The list of ARNs that identify the HSMs.
  2833. HsmList []*string `type:"list"`
  2834. // If not null, more results are available. Pass this value to ListHsms to retrieve
  2835. // the next set of items.
  2836. NextToken *string `type:"string"`
  2837. }
  2838. // String returns the string representation
  2839. func (s ListHsmsOutput) String() string {
  2840. return awsutil.Prettify(s)
  2841. }
  2842. // GoString returns the string representation
  2843. func (s ListHsmsOutput) GoString() string {
  2844. return s.String()
  2845. }
  2846. // SetHsmList sets the HsmList field's value.
  2847. func (s *ListHsmsOutput) SetHsmList(v []*string) *ListHsmsOutput {
  2848. s.HsmList = v
  2849. return s
  2850. }
  2851. // SetNextToken sets the NextToken field's value.
  2852. func (s *ListHsmsOutput) SetNextToken(v string) *ListHsmsOutput {
  2853. s.NextToken = &v
  2854. return s
  2855. }
  2856. type ListLunaClientsInput struct {
  2857. _ struct{} `type:"structure"`
  2858. // The NextToken value from a previous call to ListLunaClients. Pass null if
  2859. // this is the first call.
  2860. NextToken *string `type:"string"`
  2861. }
  2862. // String returns the string representation
  2863. func (s ListLunaClientsInput) String() string {
  2864. return awsutil.Prettify(s)
  2865. }
  2866. // GoString returns the string representation
  2867. func (s ListLunaClientsInput) GoString() string {
  2868. return s.String()
  2869. }
  2870. // SetNextToken sets the NextToken field's value.
  2871. func (s *ListLunaClientsInput) SetNextToken(v string) *ListLunaClientsInput {
  2872. s.NextToken = &v
  2873. return s
  2874. }
  2875. type ListLunaClientsOutput struct {
  2876. _ struct{} `type:"structure"`
  2877. // The list of clients.
  2878. //
  2879. // ClientList is a required field
  2880. ClientList []*string `type:"list" required:"true"`
  2881. // If not null, more results are available. Pass this to ListLunaClients to
  2882. // retrieve the next set of items.
  2883. NextToken *string `type:"string"`
  2884. }
  2885. // String returns the string representation
  2886. func (s ListLunaClientsOutput) String() string {
  2887. return awsutil.Prettify(s)
  2888. }
  2889. // GoString returns the string representation
  2890. func (s ListLunaClientsOutput) GoString() string {
  2891. return s.String()
  2892. }
  2893. // SetClientList sets the ClientList field's value.
  2894. func (s *ListLunaClientsOutput) SetClientList(v []*string) *ListLunaClientsOutput {
  2895. s.ClientList = v
  2896. return s
  2897. }
  2898. // SetNextToken sets the NextToken field's value.
  2899. func (s *ListLunaClientsOutput) SetNextToken(v string) *ListLunaClientsOutput {
  2900. s.NextToken = &v
  2901. return s
  2902. }
  2903. type ListTagsForResourceInput struct {
  2904. _ struct{} `type:"structure"`
  2905. // The Amazon Resource Name (ARN) of the AWS CloudHSM resource.
  2906. //
  2907. // ResourceArn is a required field
  2908. ResourceArn *string `type:"string" required:"true"`
  2909. }
  2910. // String returns the string representation
  2911. func (s ListTagsForResourceInput) String() string {
  2912. return awsutil.Prettify(s)
  2913. }
  2914. // GoString returns the string representation
  2915. func (s ListTagsForResourceInput) GoString() string {
  2916. return s.String()
  2917. }
  2918. // Validate inspects the fields of the type to determine if they are valid.
  2919. func (s *ListTagsForResourceInput) Validate() error {
  2920. invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  2921. if s.ResourceArn == nil {
  2922. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  2923. }
  2924. if invalidParams.Len() > 0 {
  2925. return invalidParams
  2926. }
  2927. return nil
  2928. }
  2929. // SetResourceArn sets the ResourceArn field's value.
  2930. func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
  2931. s.ResourceArn = &v
  2932. return s
  2933. }
  2934. type ListTagsForResourceOutput struct {
  2935. _ struct{} `type:"structure"`
  2936. // One or more tags.
  2937. //
  2938. // TagList is a required field
  2939. TagList []*Tag `type:"list" required:"true"`
  2940. }
  2941. // String returns the string representation
  2942. func (s ListTagsForResourceOutput) String() string {
  2943. return awsutil.Prettify(s)
  2944. }
  2945. // GoString returns the string representation
  2946. func (s ListTagsForResourceOutput) GoString() string {
  2947. return s.String()
  2948. }
  2949. // SetTagList sets the TagList field's value.
  2950. func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOutput {
  2951. s.TagList = v
  2952. return s
  2953. }
  2954. type ModifyHapgInput struct {
  2955. _ struct{} `type:"structure"`
  2956. // The ARN of the high-availability partition group to modify.
  2957. //
  2958. // HapgArn is a required field
  2959. HapgArn *string `type:"string" required:"true"`
  2960. // The new label for the high-availability partition group.
  2961. Label *string `type:"string"`
  2962. // The list of partition serial numbers to make members of the high-availability
  2963. // partition group.
  2964. PartitionSerialList []*string `type:"list"`
  2965. }
  2966. // String returns the string representation
  2967. func (s ModifyHapgInput) String() string {
  2968. return awsutil.Prettify(s)
  2969. }
  2970. // GoString returns the string representation
  2971. func (s ModifyHapgInput) GoString() string {
  2972. return s.String()
  2973. }
  2974. // Validate inspects the fields of the type to determine if they are valid.
  2975. func (s *ModifyHapgInput) Validate() error {
  2976. invalidParams := request.ErrInvalidParams{Context: "ModifyHapgInput"}
  2977. if s.HapgArn == nil {
  2978. invalidParams.Add(request.NewErrParamRequired("HapgArn"))
  2979. }
  2980. if invalidParams.Len() > 0 {
  2981. return invalidParams
  2982. }
  2983. return nil
  2984. }
  2985. // SetHapgArn sets the HapgArn field's value.
  2986. func (s *ModifyHapgInput) SetHapgArn(v string) *ModifyHapgInput {
  2987. s.HapgArn = &v
  2988. return s
  2989. }
  2990. // SetLabel sets the Label field's value.
  2991. func (s *ModifyHapgInput) SetLabel(v string) *ModifyHapgInput {
  2992. s.Label = &v
  2993. return s
  2994. }
  2995. // SetPartitionSerialList sets the PartitionSerialList field's value.
  2996. func (s *ModifyHapgInput) SetPartitionSerialList(v []*string) *ModifyHapgInput {
  2997. s.PartitionSerialList = v
  2998. return s
  2999. }
  3000. type ModifyHapgOutput struct {
  3001. _ struct{} `type:"structure"`
  3002. // The ARN of the high-availability partition group.
  3003. HapgArn *string `type:"string"`
  3004. }
  3005. // String returns the string representation
  3006. func (s ModifyHapgOutput) String() string {
  3007. return awsutil.Prettify(s)
  3008. }
  3009. // GoString returns the string representation
  3010. func (s ModifyHapgOutput) GoString() string {
  3011. return s.String()
  3012. }
  3013. // SetHapgArn sets the HapgArn field's value.
  3014. func (s *ModifyHapgOutput) SetHapgArn(v string) *ModifyHapgOutput {
  3015. s.HapgArn = &v
  3016. return s
  3017. }
  3018. // Contains the inputs for the ModifyHsm operation.
  3019. type ModifyHsmInput struct {
  3020. _ struct{} `locationName:"ModifyHsmRequest" type:"structure"`
  3021. // The new IP address for the elastic network interface (ENI) attached to the
  3022. // HSM.
  3023. //
  3024. // If the HSM is moved to a different subnet, and an IP address is not specified,
  3025. // an IP address will be randomly chosen from the CIDR range of the new subnet.
  3026. EniIp *string `locationName:"EniIp" type:"string"`
  3027. // The new external ID.
  3028. ExternalId *string `locationName:"ExternalId" type:"string"`
  3029. // The ARN of the HSM to modify.
  3030. //
  3031. // HsmArn is a required field
  3032. HsmArn *string `locationName:"HsmArn" type:"string" required:"true"`
  3033. // The new IAM role ARN.
  3034. IamRoleArn *string `locationName:"IamRoleArn" type:"string"`
  3035. // The new identifier of the subnet that the HSM is in. The new subnet must
  3036. // be in the same Availability Zone as the current subnet.
  3037. SubnetId *string `locationName:"SubnetId" type:"string"`
  3038. // The new IP address for the syslog monitoring server. The AWS CloudHSM service
  3039. // only supports one syslog monitoring server.
  3040. SyslogIp *string `locationName:"SyslogIp" type:"string"`
  3041. }
  3042. // String returns the string representation
  3043. func (s ModifyHsmInput) String() string {
  3044. return awsutil.Prettify(s)
  3045. }
  3046. // GoString returns the string representation
  3047. func (s ModifyHsmInput) GoString() string {
  3048. return s.String()
  3049. }
  3050. // Validate inspects the fields of the type to determine if they are valid.
  3051. func (s *ModifyHsmInput) Validate() error {
  3052. invalidParams := request.ErrInvalidParams{Context: "ModifyHsmInput"}
  3053. if s.HsmArn == nil {
  3054. invalidParams.Add(request.NewErrParamRequired("HsmArn"))
  3055. }
  3056. if invalidParams.Len() > 0 {
  3057. return invalidParams
  3058. }
  3059. return nil
  3060. }
  3061. // SetEniIp sets the EniIp field's value.
  3062. func (s *ModifyHsmInput) SetEniIp(v string) *ModifyHsmInput {
  3063. s.EniIp = &v
  3064. return s
  3065. }
  3066. // SetExternalId sets the ExternalId field's value.
  3067. func (s *ModifyHsmInput) SetExternalId(v string) *ModifyHsmInput {
  3068. s.ExternalId = &v
  3069. return s
  3070. }
  3071. // SetHsmArn sets the HsmArn field's value.
  3072. func (s *ModifyHsmInput) SetHsmArn(v string) *ModifyHsmInput {
  3073. s.HsmArn = &v
  3074. return s
  3075. }
  3076. // SetIamRoleArn sets the IamRoleArn field's value.
  3077. func (s *ModifyHsmInput) SetIamRoleArn(v string) *ModifyHsmInput {
  3078. s.IamRoleArn = &v
  3079. return s
  3080. }
  3081. // SetSubnetId sets the SubnetId field's value.
  3082. func (s *ModifyHsmInput) SetSubnetId(v string) *ModifyHsmInput {
  3083. s.SubnetId = &v
  3084. return s
  3085. }
  3086. // SetSyslogIp sets the SyslogIp field's value.
  3087. func (s *ModifyHsmInput) SetSyslogIp(v string) *ModifyHsmInput {
  3088. s.SyslogIp = &v
  3089. return s
  3090. }
  3091. // Contains the output of the ModifyHsm operation.
  3092. type ModifyHsmOutput struct {
  3093. _ struct{} `type:"structure"`
  3094. // The ARN of the HSM.
  3095. HsmArn *string `type:"string"`
  3096. }
  3097. // String returns the string representation
  3098. func (s ModifyHsmOutput) String() string {
  3099. return awsutil.Prettify(s)
  3100. }
  3101. // GoString returns the string representation
  3102. func (s ModifyHsmOutput) GoString() string {
  3103. return s.String()
  3104. }
  3105. // SetHsmArn sets the HsmArn field's value.
  3106. func (s *ModifyHsmOutput) SetHsmArn(v string) *ModifyHsmOutput {
  3107. s.HsmArn = &v
  3108. return s
  3109. }
  3110. type ModifyLunaClientInput struct {
  3111. _ struct{} `type:"structure"`
  3112. // The new certificate for the client.
  3113. //
  3114. // Certificate is a required field
  3115. Certificate *string `min:"600" type:"string" required:"true"`
  3116. // The ARN of the client.
  3117. //
  3118. // ClientArn is a required field
  3119. ClientArn *string `type:"string" required:"true"`
  3120. }
  3121. // String returns the string representation
  3122. func (s ModifyLunaClientInput) String() string {
  3123. return awsutil.Prettify(s)
  3124. }
  3125. // GoString returns the string representation
  3126. func (s ModifyLunaClientInput) GoString() string {
  3127. return s.String()
  3128. }
  3129. // Validate inspects the fields of the type to determine if they are valid.
  3130. func (s *ModifyLunaClientInput) Validate() error {
  3131. invalidParams := request.ErrInvalidParams{Context: "ModifyLunaClientInput"}
  3132. if s.Certificate == nil {
  3133. invalidParams.Add(request.NewErrParamRequired("Certificate"))
  3134. }
  3135. if s.Certificate != nil && len(*s.Certificate) < 600 {
  3136. invalidParams.Add(request.NewErrParamMinLen("Certificate", 600))
  3137. }
  3138. if s.ClientArn == nil {
  3139. invalidParams.Add(request.NewErrParamRequired("ClientArn"))
  3140. }
  3141. if invalidParams.Len() > 0 {
  3142. return invalidParams
  3143. }
  3144. return nil
  3145. }
  3146. // SetCertificate sets the Certificate field's value.
  3147. func (s *ModifyLunaClientInput) SetCertificate(v string) *ModifyLunaClientInput {
  3148. s.Certificate = &v
  3149. return s
  3150. }
  3151. // SetClientArn sets the ClientArn field's value.
  3152. func (s *ModifyLunaClientInput) SetClientArn(v string) *ModifyLunaClientInput {
  3153. s.ClientArn = &v
  3154. return s
  3155. }
  3156. type ModifyLunaClientOutput struct {
  3157. _ struct{} `type:"structure"`
  3158. // The ARN of the client.
  3159. ClientArn *string `type:"string"`
  3160. }
  3161. // String returns the string representation
  3162. func (s ModifyLunaClientOutput) String() string {
  3163. return awsutil.Prettify(s)
  3164. }
  3165. // GoString returns the string representation
  3166. func (s ModifyLunaClientOutput) GoString() string {
  3167. return s.String()
  3168. }
  3169. // SetClientArn sets the ClientArn field's value.
  3170. func (s *ModifyLunaClientOutput) SetClientArn(v string) *ModifyLunaClientOutput {
  3171. s.ClientArn = &v
  3172. return s
  3173. }
  3174. type RemoveTagsFromResourceInput struct {
  3175. _ struct{} `type:"structure"`
  3176. // The Amazon Resource Name (ARN) of the AWS CloudHSM resource.
  3177. //
  3178. // ResourceArn is a required field
  3179. ResourceArn *string `type:"string" required:"true"`
  3180. // The tag key or keys to remove.
  3181. //
  3182. // Specify only the tag key to remove (not the value). To overwrite the value
  3183. // for an existing tag, use AddTagsToResource.
  3184. //
  3185. // TagKeyList is a required field
  3186. TagKeyList []*string `type:"list" required:"true"`
  3187. }
  3188. // String returns the string representation
  3189. func (s RemoveTagsFromResourceInput) String() string {
  3190. return awsutil.Prettify(s)
  3191. }
  3192. // GoString returns the string representation
  3193. func (s RemoveTagsFromResourceInput) GoString() string {
  3194. return s.String()
  3195. }
  3196. // Validate inspects the fields of the type to determine if they are valid.
  3197. func (s *RemoveTagsFromResourceInput) Validate() error {
  3198. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"}
  3199. if s.ResourceArn == nil {
  3200. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  3201. }
  3202. if s.TagKeyList == nil {
  3203. invalidParams.Add(request.NewErrParamRequired("TagKeyList"))
  3204. }
  3205. if invalidParams.Len() > 0 {
  3206. return invalidParams
  3207. }
  3208. return nil
  3209. }
  3210. // SetResourceArn sets the ResourceArn field's value.
  3211. func (s *RemoveTagsFromResourceInput) SetResourceArn(v string) *RemoveTagsFromResourceInput {
  3212. s.ResourceArn = &v
  3213. return s
  3214. }
  3215. // SetTagKeyList sets the TagKeyList field's value.
  3216. func (s *RemoveTagsFromResourceInput) SetTagKeyList(v []*string) *RemoveTagsFromResourceInput {
  3217. s.TagKeyList = v
  3218. return s
  3219. }
  3220. type RemoveTagsFromResourceOutput struct {
  3221. _ struct{} `type:"structure"`
  3222. // The status of the operation.
  3223. //
  3224. // Status is a required field
  3225. Status *string `type:"string" required:"true"`
  3226. }
  3227. // String returns the string representation
  3228. func (s RemoveTagsFromResourceOutput) String() string {
  3229. return awsutil.Prettify(s)
  3230. }
  3231. // GoString returns the string representation
  3232. func (s RemoveTagsFromResourceOutput) GoString() string {
  3233. return s.String()
  3234. }
  3235. // SetStatus sets the Status field's value.
  3236. func (s *RemoveTagsFromResourceOutput) SetStatus(v string) *RemoveTagsFromResourceOutput {
  3237. s.Status = &v
  3238. return s
  3239. }
  3240. // A key-value pair that identifies or specifies metadata about an AWS CloudHSM
  3241. // resource.
  3242. type Tag struct {
  3243. _ struct{} `type:"structure"`
  3244. // The key of the tag.
  3245. //
  3246. // Key is a required field
  3247. Key *string `min:"1" type:"string" required:"true"`
  3248. // The value of the tag.
  3249. //
  3250. // Value is a required field
  3251. Value *string `type:"string" required:"true"`
  3252. }
  3253. // String returns the string representation
  3254. func (s Tag) String() string {
  3255. return awsutil.Prettify(s)
  3256. }
  3257. // GoString returns the string representation
  3258. func (s Tag) GoString() string {
  3259. return s.String()
  3260. }
  3261. // Validate inspects the fields of the type to determine if they are valid.
  3262. func (s *Tag) Validate() error {
  3263. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  3264. if s.Key == nil {
  3265. invalidParams.Add(request.NewErrParamRequired("Key"))
  3266. }
  3267. if s.Key != nil && len(*s.Key) < 1 {
  3268. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  3269. }
  3270. if s.Value == nil {
  3271. invalidParams.Add(request.NewErrParamRequired("Value"))
  3272. }
  3273. if invalidParams.Len() > 0 {
  3274. return invalidParams
  3275. }
  3276. return nil
  3277. }
  3278. // SetKey sets the Key field's value.
  3279. func (s *Tag) SetKey(v string) *Tag {
  3280. s.Key = &v
  3281. return s
  3282. }
  3283. // SetValue sets the Value field's value.
  3284. func (s *Tag) SetValue(v string) *Tag {
  3285. s.Value = &v
  3286. return s
  3287. }
  3288. const (
  3289. // ClientVersion51 is a ClientVersion enum value
  3290. ClientVersion51 = "5.1"
  3291. // ClientVersion53 is a ClientVersion enum value
  3292. ClientVersion53 = "5.3"
  3293. )
  3294. const (
  3295. // CloudHsmObjectStateReady is a CloudHsmObjectState enum value
  3296. CloudHsmObjectStateReady = "READY"
  3297. // CloudHsmObjectStateUpdating is a CloudHsmObjectState enum value
  3298. CloudHsmObjectStateUpdating = "UPDATING"
  3299. // CloudHsmObjectStateDegraded is a CloudHsmObjectState enum value
  3300. CloudHsmObjectStateDegraded = "DEGRADED"
  3301. )
  3302. const (
  3303. // HsmStatusPending is a HsmStatus enum value
  3304. HsmStatusPending = "PENDING"
  3305. // HsmStatusRunning is a HsmStatus enum value
  3306. HsmStatusRunning = "RUNNING"
  3307. // HsmStatusUpdating is a HsmStatus enum value
  3308. HsmStatusUpdating = "UPDATING"
  3309. // HsmStatusSuspended is a HsmStatus enum value
  3310. HsmStatusSuspended = "SUSPENDED"
  3311. // HsmStatusTerminating is a HsmStatus enum value
  3312. HsmStatusTerminating = "TERMINATING"
  3313. // HsmStatusTerminated is a HsmStatus enum value
  3314. HsmStatusTerminated = "TERMINATED"
  3315. // HsmStatusDegraded is a HsmStatus enum value
  3316. HsmStatusDegraded = "DEGRADED"
  3317. )
  3318. // Specifies the type of subscription for the HSM.
  3319. //
  3320. // * PRODUCTION - The HSM is being used in a production environment.
  3321. //
  3322. // * TRIAL - The HSM is being used in a product trial.
  3323. const (
  3324. // SubscriptionTypeProduction is a SubscriptionType enum value
  3325. SubscriptionTypeProduction = "PRODUCTION"
  3326. )