api.go 81 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package cloudhsm provides a client for Amazon CloudHSM.
  3. package cloudhsm
  4. import (
  5. "fmt"
  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 can be used to capture response data after the request's "Send" method
  13. // is called.
  14. //
  15. // See AddTagsToResource for usage and error information.
  16. //
  17. // Creating a request object using this method should be used when you want to inject
  18. // custom logic into the request's lifecycle using a custom handler, or if you want to
  19. // access properties on the request object before or after sending the request. If
  20. // you just want the service response, call the AddTagsToResource method directly
  21. // instead.
  22. //
  23. // Note: You must call the "Send" method on the returned request object in order
  24. // to execute the request.
  25. //
  26. // // Example sending a request using the AddTagsToResourceRequest method.
  27. // req, resp := client.AddTagsToResourceRequest(params)
  28. //
  29. // err := req.Send()
  30. // if err == nil { // resp is now filled
  31. // fmt.Println(resp)
  32. // }
  33. //
  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. req = c.newRequest(op, input, output)
  44. output = &AddTagsToResourceOutput{}
  45. req.Data = output
  46. return
  47. }
  48. // AddTagsToResource API operation for Amazon CloudHSM.
  49. //
  50. // Adds or overwrites one or more tags for the specified AWS CloudHSM resource.
  51. //
  52. // Each tag consists of a key and a value. Tag keys must be unique to each resource.
  53. //
  54. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  55. // with awserr.Error's Code and Message methods to get detailed information about
  56. // the error.
  57. //
  58. // See the AWS API reference guide for Amazon CloudHSM's
  59. // API operation AddTagsToResource for usage and error information.
  60. //
  61. // Returned Error Codes:
  62. // * CloudHsmServiceException
  63. // Indicates that an exception occurred in the AWS CloudHSM service.
  64. //
  65. // * CloudHsmInternalException
  66. // Indicates that an internal error occurred.
  67. //
  68. // * InvalidRequestException
  69. // Indicates that one or more of the request parameters are not valid.
  70. //
  71. func (c *CloudHSM) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) {
  72. req, out := c.AddTagsToResourceRequest(input)
  73. err := req.Send()
  74. return out, err
  75. }
  76. const opCreateHapg = "CreateHapg"
  77. // CreateHapgRequest generates a "aws/request.Request" representing the
  78. // client's request for the CreateHapg operation. The "output" return
  79. // value can be used to capture response data after the request's "Send" method
  80. // is called.
  81. //
  82. // See CreateHapg for usage and error information.
  83. //
  84. // Creating a request object using this method should be used when you want to inject
  85. // custom logic into the request's lifecycle using a custom handler, or if you want to
  86. // access properties on the request object before or after sending the request. If
  87. // you just want the service response, call the CreateHapg method directly
  88. // instead.
  89. //
  90. // Note: You must call the "Send" method on the returned request object in order
  91. // to execute the request.
  92. //
  93. // // Example sending a request using the CreateHapgRequest method.
  94. // req, resp := client.CreateHapgRequest(params)
  95. //
  96. // err := req.Send()
  97. // if err == nil { // resp is now filled
  98. // fmt.Println(resp)
  99. // }
  100. //
  101. func (c *CloudHSM) CreateHapgRequest(input *CreateHapgInput) (req *request.Request, output *CreateHapgOutput) {
  102. op := &request.Operation{
  103. Name: opCreateHapg,
  104. HTTPMethod: "POST",
  105. HTTPPath: "/",
  106. }
  107. if input == nil {
  108. input = &CreateHapgInput{}
  109. }
  110. req = c.newRequest(op, input, output)
  111. output = &CreateHapgOutput{}
  112. req.Data = output
  113. return
  114. }
  115. // CreateHapg API operation for Amazon CloudHSM.
  116. //
  117. // Creates a high-availability partition group. A high-availability partition
  118. // group is a group of partitions that spans multiple physical HSMs.
  119. //
  120. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  121. // with awserr.Error's Code and Message methods to get detailed information about
  122. // the error.
  123. //
  124. // See the AWS API reference guide for Amazon CloudHSM's
  125. // API operation CreateHapg for usage and error information.
  126. //
  127. // Returned Error Codes:
  128. // * CloudHsmServiceException
  129. // Indicates that an exception occurred in the AWS CloudHSM service.
  130. //
  131. // * CloudHsmInternalException
  132. // Indicates that an internal error occurred.
  133. //
  134. // * InvalidRequestException
  135. // Indicates that one or more of the request parameters are not valid.
  136. //
  137. func (c *CloudHSM) CreateHapg(input *CreateHapgInput) (*CreateHapgOutput, error) {
  138. req, out := c.CreateHapgRequest(input)
  139. err := req.Send()
  140. return out, err
  141. }
  142. const opCreateHsm = "CreateHsm"
  143. // CreateHsmRequest generates a "aws/request.Request" representing the
  144. // client's request for the CreateHsm operation. The "output" return
  145. // value can be used to capture response data after the request's "Send" method
  146. // is called.
  147. //
  148. // See CreateHsm for usage and error information.
  149. //
  150. // Creating a request object using this method should be used when you want to inject
  151. // custom logic into the request's lifecycle using a custom handler, or if you want to
  152. // access properties on the request object before or after sending the request. If
  153. // you just want the service response, call the CreateHsm method directly
  154. // instead.
  155. //
  156. // Note: You must call the "Send" method on the returned request object in order
  157. // to execute the request.
  158. //
  159. // // Example sending a request using the CreateHsmRequest method.
  160. // req, resp := client.CreateHsmRequest(params)
  161. //
  162. // err := req.Send()
  163. // if err == nil { // resp is now filled
  164. // fmt.Println(resp)
  165. // }
  166. //
  167. func (c *CloudHSM) CreateHsmRequest(input *CreateHsmInput) (req *request.Request, output *CreateHsmOutput) {
  168. op := &request.Operation{
  169. Name: opCreateHsm,
  170. HTTPMethod: "POST",
  171. HTTPPath: "/",
  172. }
  173. if input == nil {
  174. input = &CreateHsmInput{}
  175. }
  176. req = c.newRequest(op, input, output)
  177. output = &CreateHsmOutput{}
  178. req.Data = output
  179. return
  180. }
  181. // CreateHsm API operation for Amazon CloudHSM.
  182. //
  183. // Creates an uninitialized HSM instance.
  184. //
  185. // There is an upfront fee charged for each HSM instance that you create with
  186. // the CreateHsm operation. If you accidentally provision an HSM and want to
  187. // request a refund, delete the instance using the DeleteHsm operation, go to
  188. // the AWS Support Center (https://console.aws.amazon.com/support/home#/), create
  189. // a new case, and select Account and Billing Support.
  190. //
  191. // It can take up to 20 minutes to create and provision an HSM. You can monitor
  192. // the status of the HSM with the DescribeHsm operation. The HSM is ready to
  193. // be initialized when the status changes to RUNNING.
  194. //
  195. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  196. // with awserr.Error's Code and Message methods to get detailed information about
  197. // the error.
  198. //
  199. // See the AWS API reference guide for Amazon CloudHSM's
  200. // API operation CreateHsm for usage and error information.
  201. //
  202. // Returned Error Codes:
  203. // * CloudHsmServiceException
  204. // Indicates that an exception occurred in the AWS CloudHSM service.
  205. //
  206. // * CloudHsmInternalException
  207. // Indicates that an internal error occurred.
  208. //
  209. // * InvalidRequestException
  210. // Indicates that one or more of the request parameters are not valid.
  211. //
  212. func (c *CloudHSM) CreateHsm(input *CreateHsmInput) (*CreateHsmOutput, error) {
  213. req, out := c.CreateHsmRequest(input)
  214. err := req.Send()
  215. return out, err
  216. }
  217. const opCreateLunaClient = "CreateLunaClient"
  218. // CreateLunaClientRequest generates a "aws/request.Request" representing the
  219. // client's request for the CreateLunaClient operation. The "output" return
  220. // value can be used to capture response data after the request's "Send" method
  221. // is called.
  222. //
  223. // See CreateLunaClient for usage and error information.
  224. //
  225. // Creating a request object using this method should be used when you want to inject
  226. // custom logic into the request's lifecycle using a custom handler, or if you want to
  227. // access properties on the request object before or after sending the request. If
  228. // you just want the service response, call the CreateLunaClient method directly
  229. // instead.
  230. //
  231. // Note: You must call the "Send" method on the returned request object in order
  232. // to execute the request.
  233. //
  234. // // Example sending a request using the CreateLunaClientRequest method.
  235. // req, resp := client.CreateLunaClientRequest(params)
  236. //
  237. // err := req.Send()
  238. // if err == nil { // resp is now filled
  239. // fmt.Println(resp)
  240. // }
  241. //
  242. func (c *CloudHSM) CreateLunaClientRequest(input *CreateLunaClientInput) (req *request.Request, output *CreateLunaClientOutput) {
  243. op := &request.Operation{
  244. Name: opCreateLunaClient,
  245. HTTPMethod: "POST",
  246. HTTPPath: "/",
  247. }
  248. if input == nil {
  249. input = &CreateLunaClientInput{}
  250. }
  251. req = c.newRequest(op, input, output)
  252. output = &CreateLunaClientOutput{}
  253. req.Data = output
  254. return
  255. }
  256. // CreateLunaClient API operation for Amazon CloudHSM.
  257. //
  258. // Creates an HSM client.
  259. //
  260. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  261. // with awserr.Error's Code and Message methods to get detailed information about
  262. // the error.
  263. //
  264. // See the AWS API reference guide for Amazon CloudHSM's
  265. // API operation CreateLunaClient for usage and error information.
  266. //
  267. // Returned Error Codes:
  268. // * CloudHsmServiceException
  269. // Indicates that an exception occurred in the AWS CloudHSM service.
  270. //
  271. // * CloudHsmInternalException
  272. // Indicates that an internal error occurred.
  273. //
  274. // * InvalidRequestException
  275. // Indicates that one or more of the request parameters are not valid.
  276. //
  277. func (c *CloudHSM) CreateLunaClient(input *CreateLunaClientInput) (*CreateLunaClientOutput, error) {
  278. req, out := c.CreateLunaClientRequest(input)
  279. err := req.Send()
  280. return out, err
  281. }
  282. const opDeleteHapg = "DeleteHapg"
  283. // DeleteHapgRequest generates a "aws/request.Request" representing the
  284. // client's request for the DeleteHapg operation. The "output" return
  285. // value can be used to capture response data after the request's "Send" method
  286. // is called.
  287. //
  288. // See DeleteHapg for usage and error information.
  289. //
  290. // Creating a request object using this method should be used when you want to inject
  291. // custom logic into the request's lifecycle using a custom handler, or if you want to
  292. // access properties on the request object before or after sending the request. If
  293. // you just want the service response, call the DeleteHapg method directly
  294. // instead.
  295. //
  296. // Note: You must call the "Send" method on the returned request object in order
  297. // to execute the request.
  298. //
  299. // // Example sending a request using the DeleteHapgRequest method.
  300. // req, resp := client.DeleteHapgRequest(params)
  301. //
  302. // err := req.Send()
  303. // if err == nil { // resp is now filled
  304. // fmt.Println(resp)
  305. // }
  306. //
  307. func (c *CloudHSM) DeleteHapgRequest(input *DeleteHapgInput) (req *request.Request, output *DeleteHapgOutput) {
  308. op := &request.Operation{
  309. Name: opDeleteHapg,
  310. HTTPMethod: "POST",
  311. HTTPPath: "/",
  312. }
  313. if input == nil {
  314. input = &DeleteHapgInput{}
  315. }
  316. req = c.newRequest(op, input, output)
  317. output = &DeleteHapgOutput{}
  318. req.Data = output
  319. return
  320. }
  321. // DeleteHapg API operation for Amazon CloudHSM.
  322. //
  323. // Deletes a high-availability partition group.
  324. //
  325. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  326. // with awserr.Error's Code and Message methods to get detailed information about
  327. // the error.
  328. //
  329. // See the AWS API reference guide for Amazon CloudHSM's
  330. // API operation DeleteHapg for usage and error information.
  331. //
  332. // Returned Error Codes:
  333. // * CloudHsmServiceException
  334. // Indicates that an exception occurred in the AWS CloudHSM service.
  335. //
  336. // * CloudHsmInternalException
  337. // Indicates that an internal error occurred.
  338. //
  339. // * InvalidRequestException
  340. // Indicates that one or more of the request parameters are not valid.
  341. //
  342. func (c *CloudHSM) DeleteHapg(input *DeleteHapgInput) (*DeleteHapgOutput, error) {
  343. req, out := c.DeleteHapgRequest(input)
  344. err := req.Send()
  345. return out, err
  346. }
  347. const opDeleteHsm = "DeleteHsm"
  348. // DeleteHsmRequest generates a "aws/request.Request" representing the
  349. // client's request for the DeleteHsm operation. The "output" return
  350. // value can be used to capture response data after the request's "Send" method
  351. // is called.
  352. //
  353. // See DeleteHsm for usage and error information.
  354. //
  355. // Creating a request object using this method should be used when you want to inject
  356. // custom logic into the request's lifecycle using a custom handler, or if you want to
  357. // access properties on the request object before or after sending the request. If
  358. // you just want the service response, call the DeleteHsm method directly
  359. // instead.
  360. //
  361. // Note: You must call the "Send" method on the returned request object in order
  362. // to execute the request.
  363. //
  364. // // Example sending a request using the DeleteHsmRequest method.
  365. // req, resp := client.DeleteHsmRequest(params)
  366. //
  367. // err := req.Send()
  368. // if err == nil { // resp is now filled
  369. // fmt.Println(resp)
  370. // }
  371. //
  372. func (c *CloudHSM) DeleteHsmRequest(input *DeleteHsmInput) (req *request.Request, output *DeleteHsmOutput) {
  373. op := &request.Operation{
  374. Name: opDeleteHsm,
  375. HTTPMethod: "POST",
  376. HTTPPath: "/",
  377. }
  378. if input == nil {
  379. input = &DeleteHsmInput{}
  380. }
  381. req = c.newRequest(op, input, output)
  382. output = &DeleteHsmOutput{}
  383. req.Data = output
  384. return
  385. }
  386. // DeleteHsm API operation for Amazon CloudHSM.
  387. //
  388. // Deletes an HSM. After completion, this operation cannot be undone and your
  389. // key material cannot be recovered.
  390. //
  391. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  392. // with awserr.Error's Code and Message methods to get detailed information about
  393. // the error.
  394. //
  395. // See the AWS API reference guide for Amazon CloudHSM's
  396. // API operation DeleteHsm for usage and error information.
  397. //
  398. // Returned Error Codes:
  399. // * CloudHsmServiceException
  400. // Indicates that an exception occurred in the AWS CloudHSM service.
  401. //
  402. // * CloudHsmInternalException
  403. // Indicates that an internal error occurred.
  404. //
  405. // * InvalidRequestException
  406. // Indicates that one or more of the request parameters are not valid.
  407. //
  408. func (c *CloudHSM) DeleteHsm(input *DeleteHsmInput) (*DeleteHsmOutput, error) {
  409. req, out := c.DeleteHsmRequest(input)
  410. err := req.Send()
  411. return out, err
  412. }
  413. const opDeleteLunaClient = "DeleteLunaClient"
  414. // DeleteLunaClientRequest generates a "aws/request.Request" representing the
  415. // client's request for the DeleteLunaClient operation. The "output" return
  416. // value can be used to capture response data after the request's "Send" method
  417. // is called.
  418. //
  419. // See DeleteLunaClient for usage and error information.
  420. //
  421. // Creating a request object using this method should be used when you want to inject
  422. // custom logic into the request's lifecycle using a custom handler, or if you want to
  423. // access properties on the request object before or after sending the request. If
  424. // you just want the service response, call the DeleteLunaClient method directly
  425. // instead.
  426. //
  427. // Note: You must call the "Send" method on the returned request object in order
  428. // to execute the request.
  429. //
  430. // // Example sending a request using the DeleteLunaClientRequest method.
  431. // req, resp := client.DeleteLunaClientRequest(params)
  432. //
  433. // err := req.Send()
  434. // if err == nil { // resp is now filled
  435. // fmt.Println(resp)
  436. // }
  437. //
  438. func (c *CloudHSM) DeleteLunaClientRequest(input *DeleteLunaClientInput) (req *request.Request, output *DeleteLunaClientOutput) {
  439. op := &request.Operation{
  440. Name: opDeleteLunaClient,
  441. HTTPMethod: "POST",
  442. HTTPPath: "/",
  443. }
  444. if input == nil {
  445. input = &DeleteLunaClientInput{}
  446. }
  447. req = c.newRequest(op, input, output)
  448. output = &DeleteLunaClientOutput{}
  449. req.Data = output
  450. return
  451. }
  452. // DeleteLunaClient API operation for Amazon CloudHSM.
  453. //
  454. // Deletes a client.
  455. //
  456. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  457. // with awserr.Error's Code and Message methods to get detailed information about
  458. // the error.
  459. //
  460. // See the AWS API reference guide for Amazon CloudHSM's
  461. // API operation DeleteLunaClient for usage and error information.
  462. //
  463. // Returned Error Codes:
  464. // * CloudHsmServiceException
  465. // Indicates that an exception occurred in the AWS CloudHSM service.
  466. //
  467. // * CloudHsmInternalException
  468. // Indicates that an internal error occurred.
  469. //
  470. // * InvalidRequestException
  471. // Indicates that one or more of the request parameters are not valid.
  472. //
  473. func (c *CloudHSM) DeleteLunaClient(input *DeleteLunaClientInput) (*DeleteLunaClientOutput, error) {
  474. req, out := c.DeleteLunaClientRequest(input)
  475. err := req.Send()
  476. return out, err
  477. }
  478. const opDescribeHapg = "DescribeHapg"
  479. // DescribeHapgRequest generates a "aws/request.Request" representing the
  480. // client's request for the DescribeHapg operation. The "output" return
  481. // value can be used to capture response data after the request's "Send" method
  482. // is called.
  483. //
  484. // See DescribeHapg for usage and error information.
  485. //
  486. // Creating a request object using this method should be used when you want to inject
  487. // custom logic into the request's lifecycle using a custom handler, or if you want to
  488. // access properties on the request object before or after sending the request. If
  489. // you just want the service response, call the DescribeHapg method directly
  490. // instead.
  491. //
  492. // Note: You must call the "Send" method on the returned request object in order
  493. // to execute the request.
  494. //
  495. // // Example sending a request using the DescribeHapgRequest method.
  496. // req, resp := client.DescribeHapgRequest(params)
  497. //
  498. // err := req.Send()
  499. // if err == nil { // resp is now filled
  500. // fmt.Println(resp)
  501. // }
  502. //
  503. func (c *CloudHSM) DescribeHapgRequest(input *DescribeHapgInput) (req *request.Request, output *DescribeHapgOutput) {
  504. op := &request.Operation{
  505. Name: opDescribeHapg,
  506. HTTPMethod: "POST",
  507. HTTPPath: "/",
  508. }
  509. if input == nil {
  510. input = &DescribeHapgInput{}
  511. }
  512. req = c.newRequest(op, input, output)
  513. output = &DescribeHapgOutput{}
  514. req.Data = output
  515. return
  516. }
  517. // DescribeHapg API operation for Amazon CloudHSM.
  518. //
  519. // Retrieves information about a high-availability partition group.
  520. //
  521. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  522. // with awserr.Error's Code and Message methods to get detailed information about
  523. // the error.
  524. //
  525. // See the AWS API reference guide for Amazon CloudHSM's
  526. // API operation DescribeHapg for usage and error information.
  527. //
  528. // Returned Error Codes:
  529. // * CloudHsmServiceException
  530. // Indicates that an exception occurred in the AWS CloudHSM service.
  531. //
  532. // * CloudHsmInternalException
  533. // Indicates that an internal error occurred.
  534. //
  535. // * InvalidRequestException
  536. // Indicates that one or more of the request parameters are not valid.
  537. //
  538. func (c *CloudHSM) DescribeHapg(input *DescribeHapgInput) (*DescribeHapgOutput, error) {
  539. req, out := c.DescribeHapgRequest(input)
  540. err := req.Send()
  541. return out, err
  542. }
  543. const opDescribeHsm = "DescribeHsm"
  544. // DescribeHsmRequest generates a "aws/request.Request" representing the
  545. // client's request for the DescribeHsm operation. The "output" return
  546. // value can be used to capture response data after the request's "Send" method
  547. // is called.
  548. //
  549. // See DescribeHsm for usage and error information.
  550. //
  551. // Creating a request object using this method should be used when you want to inject
  552. // custom logic into the request's lifecycle using a custom handler, or if you want to
  553. // access properties on the request object before or after sending the request. If
  554. // you just want the service response, call the DescribeHsm method directly
  555. // instead.
  556. //
  557. // Note: You must call the "Send" method on the returned request object in order
  558. // to execute the request.
  559. //
  560. // // Example sending a request using the DescribeHsmRequest method.
  561. // req, resp := client.DescribeHsmRequest(params)
  562. //
  563. // err := req.Send()
  564. // if err == nil { // resp is now filled
  565. // fmt.Println(resp)
  566. // }
  567. //
  568. func (c *CloudHSM) DescribeHsmRequest(input *DescribeHsmInput) (req *request.Request, output *DescribeHsmOutput) {
  569. op := &request.Operation{
  570. Name: opDescribeHsm,
  571. HTTPMethod: "POST",
  572. HTTPPath: "/",
  573. }
  574. if input == nil {
  575. input = &DescribeHsmInput{}
  576. }
  577. req = c.newRequest(op, input, output)
  578. output = &DescribeHsmOutput{}
  579. req.Data = output
  580. return
  581. }
  582. // DescribeHsm API operation for Amazon CloudHSM.
  583. //
  584. // Retrieves information about an HSM. You can identify the HSM by its ARN or
  585. // its serial number.
  586. //
  587. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  588. // with awserr.Error's Code and Message methods to get detailed information about
  589. // the error.
  590. //
  591. // See the AWS API reference guide for Amazon CloudHSM's
  592. // API operation DescribeHsm for usage and error information.
  593. //
  594. // Returned Error Codes:
  595. // * CloudHsmServiceException
  596. // Indicates that an exception occurred in the AWS CloudHSM service.
  597. //
  598. // * CloudHsmInternalException
  599. // Indicates that an internal error occurred.
  600. //
  601. // * InvalidRequestException
  602. // Indicates that one or more of the request parameters are not valid.
  603. //
  604. func (c *CloudHSM) DescribeHsm(input *DescribeHsmInput) (*DescribeHsmOutput, error) {
  605. req, out := c.DescribeHsmRequest(input)
  606. err := req.Send()
  607. return out, err
  608. }
  609. const opDescribeLunaClient = "DescribeLunaClient"
  610. // DescribeLunaClientRequest generates a "aws/request.Request" representing the
  611. // client's request for the DescribeLunaClient operation. The "output" return
  612. // value can be used to capture response data after the request's "Send" method
  613. // is called.
  614. //
  615. // See DescribeLunaClient for usage and error information.
  616. //
  617. // Creating a request object using this method should be used when you want to inject
  618. // custom logic into the request's lifecycle using a custom handler, or if you want to
  619. // access properties on the request object before or after sending the request. If
  620. // you just want the service response, call the DescribeLunaClient method directly
  621. // instead.
  622. //
  623. // Note: You must call the "Send" method on the returned request object in order
  624. // to execute the request.
  625. //
  626. // // Example sending a request using the DescribeLunaClientRequest method.
  627. // req, resp := client.DescribeLunaClientRequest(params)
  628. //
  629. // err := req.Send()
  630. // if err == nil { // resp is now filled
  631. // fmt.Println(resp)
  632. // }
  633. //
  634. func (c *CloudHSM) DescribeLunaClientRequest(input *DescribeLunaClientInput) (req *request.Request, output *DescribeLunaClientOutput) {
  635. op := &request.Operation{
  636. Name: opDescribeLunaClient,
  637. HTTPMethod: "POST",
  638. HTTPPath: "/",
  639. }
  640. if input == nil {
  641. input = &DescribeLunaClientInput{}
  642. }
  643. req = c.newRequest(op, input, output)
  644. output = &DescribeLunaClientOutput{}
  645. req.Data = output
  646. return
  647. }
  648. // DescribeLunaClient API operation for Amazon CloudHSM.
  649. //
  650. // Retrieves information about an HSM client.
  651. //
  652. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  653. // with awserr.Error's Code and Message methods to get detailed information about
  654. // the error.
  655. //
  656. // See the AWS API reference guide for Amazon CloudHSM's
  657. // API operation DescribeLunaClient for usage and error information.
  658. //
  659. // Returned Error Codes:
  660. // * CloudHsmServiceException
  661. // Indicates that an exception occurred in the AWS CloudHSM service.
  662. //
  663. // * CloudHsmInternalException
  664. // Indicates that an internal error occurred.
  665. //
  666. // * InvalidRequestException
  667. // Indicates that one or more of the request parameters are not valid.
  668. //
  669. func (c *CloudHSM) DescribeLunaClient(input *DescribeLunaClientInput) (*DescribeLunaClientOutput, error) {
  670. req, out := c.DescribeLunaClientRequest(input)
  671. err := req.Send()
  672. return out, err
  673. }
  674. const opGetConfig = "GetConfig"
  675. // GetConfigRequest generates a "aws/request.Request" representing the
  676. // client's request for the GetConfig operation. The "output" return
  677. // value can be used to capture response data after the request's "Send" method
  678. // is called.
  679. //
  680. // See GetConfig for usage and error information.
  681. //
  682. // Creating a request object using this method should be used when you want to inject
  683. // custom logic into the request's lifecycle using a custom handler, or if you want to
  684. // access properties on the request object before or after sending the request. If
  685. // you just want the service response, call the GetConfig method directly
  686. // instead.
  687. //
  688. // Note: You must call the "Send" method on the returned request object in order
  689. // to execute the request.
  690. //
  691. // // Example sending a request using the GetConfigRequest method.
  692. // req, resp := client.GetConfigRequest(params)
  693. //
  694. // err := req.Send()
  695. // if err == nil { // resp is now filled
  696. // fmt.Println(resp)
  697. // }
  698. //
  699. func (c *CloudHSM) GetConfigRequest(input *GetConfigInput) (req *request.Request, output *GetConfigOutput) {
  700. op := &request.Operation{
  701. Name: opGetConfig,
  702. HTTPMethod: "POST",
  703. HTTPPath: "/",
  704. }
  705. if input == nil {
  706. input = &GetConfigInput{}
  707. }
  708. req = c.newRequest(op, input, output)
  709. output = &GetConfigOutput{}
  710. req.Data = output
  711. return
  712. }
  713. // GetConfig API operation for Amazon CloudHSM.
  714. //
  715. // Gets the configuration files necessary to connect to all high availability
  716. // partition groups the client is associated with.
  717. //
  718. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  719. // with awserr.Error's Code and Message methods to get detailed information about
  720. // the error.
  721. //
  722. // See the AWS API reference guide for Amazon CloudHSM's
  723. // API operation GetConfig for usage and error information.
  724. //
  725. // Returned Error Codes:
  726. // * CloudHsmServiceException
  727. // Indicates that an exception occurred in the AWS CloudHSM service.
  728. //
  729. // * CloudHsmInternalException
  730. // Indicates that an internal error occurred.
  731. //
  732. // * InvalidRequestException
  733. // Indicates that one or more of the request parameters are not valid.
  734. //
  735. func (c *CloudHSM) GetConfig(input *GetConfigInput) (*GetConfigOutput, error) {
  736. req, out := c.GetConfigRequest(input)
  737. err := req.Send()
  738. return out, err
  739. }
  740. const opListAvailableZones = "ListAvailableZones"
  741. // ListAvailableZonesRequest generates a "aws/request.Request" representing the
  742. // client's request for the ListAvailableZones operation. The "output" return
  743. // value can be used to capture response data after the request's "Send" method
  744. // is called.
  745. //
  746. // See ListAvailableZones for usage and error information.
  747. //
  748. // Creating a request object using this method should be used when you want to inject
  749. // custom logic into the request's lifecycle using a custom handler, or if you want to
  750. // access properties on the request object before or after sending the request. If
  751. // you just want the service response, call the ListAvailableZones method directly
  752. // instead.
  753. //
  754. // Note: You must call the "Send" method on the returned request object in order
  755. // to execute the request.
  756. //
  757. // // Example sending a request using the ListAvailableZonesRequest method.
  758. // req, resp := client.ListAvailableZonesRequest(params)
  759. //
  760. // err := req.Send()
  761. // if err == nil { // resp is now filled
  762. // fmt.Println(resp)
  763. // }
  764. //
  765. func (c *CloudHSM) ListAvailableZonesRequest(input *ListAvailableZonesInput) (req *request.Request, output *ListAvailableZonesOutput) {
  766. op := &request.Operation{
  767. Name: opListAvailableZones,
  768. HTTPMethod: "POST",
  769. HTTPPath: "/",
  770. }
  771. if input == nil {
  772. input = &ListAvailableZonesInput{}
  773. }
  774. req = c.newRequest(op, input, output)
  775. output = &ListAvailableZonesOutput{}
  776. req.Data = output
  777. return
  778. }
  779. // ListAvailableZones API operation for Amazon CloudHSM.
  780. //
  781. // Lists the Availability Zones that have available AWS CloudHSM capacity.
  782. //
  783. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  784. // with awserr.Error's Code and Message methods to get detailed information about
  785. // the error.
  786. //
  787. // See the AWS API reference guide for Amazon CloudHSM's
  788. // API operation ListAvailableZones for usage and error information.
  789. //
  790. // Returned Error Codes:
  791. // * CloudHsmServiceException
  792. // Indicates that an exception occurred in the AWS CloudHSM service.
  793. //
  794. // * CloudHsmInternalException
  795. // Indicates that an internal error occurred.
  796. //
  797. // * InvalidRequestException
  798. // Indicates that one or more of the request parameters are not valid.
  799. //
  800. func (c *CloudHSM) ListAvailableZones(input *ListAvailableZonesInput) (*ListAvailableZonesOutput, error) {
  801. req, out := c.ListAvailableZonesRequest(input)
  802. err := req.Send()
  803. return out, err
  804. }
  805. const opListHapgs = "ListHapgs"
  806. // ListHapgsRequest generates a "aws/request.Request" representing the
  807. // client's request for the ListHapgs operation. The "output" return
  808. // value can be used to capture response data after the request's "Send" method
  809. // is called.
  810. //
  811. // See ListHapgs for usage and error information.
  812. //
  813. // Creating a request object using this method should be used when you want to inject
  814. // custom logic into the request's lifecycle using a custom handler, or if you want to
  815. // access properties on the request object before or after sending the request. If
  816. // you just want the service response, call the ListHapgs method directly
  817. // instead.
  818. //
  819. // Note: You must call the "Send" method on the returned request object in order
  820. // to execute the request.
  821. //
  822. // // Example sending a request using the ListHapgsRequest method.
  823. // req, resp := client.ListHapgsRequest(params)
  824. //
  825. // err := req.Send()
  826. // if err == nil { // resp is now filled
  827. // fmt.Println(resp)
  828. // }
  829. //
  830. func (c *CloudHSM) ListHapgsRequest(input *ListHapgsInput) (req *request.Request, output *ListHapgsOutput) {
  831. op := &request.Operation{
  832. Name: opListHapgs,
  833. HTTPMethod: "POST",
  834. HTTPPath: "/",
  835. }
  836. if input == nil {
  837. input = &ListHapgsInput{}
  838. }
  839. req = c.newRequest(op, input, output)
  840. output = &ListHapgsOutput{}
  841. req.Data = output
  842. return
  843. }
  844. // ListHapgs API operation for Amazon CloudHSM.
  845. //
  846. // Lists the high-availability partition groups for the account.
  847. //
  848. // This operation supports pagination with the use of the NextToken member.
  849. // If more results are available, the NextToken member of the response contains
  850. // a token that you pass in the next call to ListHapgs to retrieve the next
  851. // set of items.
  852. //
  853. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  854. // with awserr.Error's Code and Message methods to get detailed information about
  855. // the error.
  856. //
  857. // See the AWS API reference guide for Amazon CloudHSM's
  858. // API operation ListHapgs for usage and error information.
  859. //
  860. // Returned Error Codes:
  861. // * CloudHsmServiceException
  862. // Indicates that an exception occurred in the AWS CloudHSM service.
  863. //
  864. // * CloudHsmInternalException
  865. // Indicates that an internal error occurred.
  866. //
  867. // * InvalidRequestException
  868. // Indicates that one or more of the request parameters are not valid.
  869. //
  870. func (c *CloudHSM) ListHapgs(input *ListHapgsInput) (*ListHapgsOutput, error) {
  871. req, out := c.ListHapgsRequest(input)
  872. err := req.Send()
  873. return out, err
  874. }
  875. const opListHsms = "ListHsms"
  876. // ListHsmsRequest generates a "aws/request.Request" representing the
  877. // client's request for the ListHsms operation. The "output" return
  878. // value can be used to capture response data after the request's "Send" method
  879. // is called.
  880. //
  881. // See ListHsms for usage and error information.
  882. //
  883. // Creating a request object using this method should be used when you want to inject
  884. // custom logic into the request's lifecycle using a custom handler, or if you want to
  885. // access properties on the request object before or after sending the request. If
  886. // you just want the service response, call the ListHsms method directly
  887. // instead.
  888. //
  889. // Note: You must call the "Send" method on the returned request object in order
  890. // to execute the request.
  891. //
  892. // // Example sending a request using the ListHsmsRequest method.
  893. // req, resp := client.ListHsmsRequest(params)
  894. //
  895. // err := req.Send()
  896. // if err == nil { // resp is now filled
  897. // fmt.Println(resp)
  898. // }
  899. //
  900. func (c *CloudHSM) ListHsmsRequest(input *ListHsmsInput) (req *request.Request, output *ListHsmsOutput) {
  901. op := &request.Operation{
  902. Name: opListHsms,
  903. HTTPMethod: "POST",
  904. HTTPPath: "/",
  905. }
  906. if input == nil {
  907. input = &ListHsmsInput{}
  908. }
  909. req = c.newRequest(op, input, output)
  910. output = &ListHsmsOutput{}
  911. req.Data = output
  912. return
  913. }
  914. // ListHsms API operation for Amazon CloudHSM.
  915. //
  916. // Retrieves the identifiers of all of the HSMs provisioned for the current
  917. // customer.
  918. //
  919. // This operation supports pagination with the use of the NextToken member.
  920. // If more results are available, the NextToken member of the response contains
  921. // a token that you pass in the next call to ListHsms to retrieve the next set
  922. // of items.
  923. //
  924. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  925. // with awserr.Error's Code and Message methods to get detailed information about
  926. // the error.
  927. //
  928. // See the AWS API reference guide for Amazon CloudHSM's
  929. // API operation ListHsms for usage and error information.
  930. //
  931. // Returned Error Codes:
  932. // * CloudHsmServiceException
  933. // Indicates that an exception occurred in the AWS CloudHSM service.
  934. //
  935. // * CloudHsmInternalException
  936. // Indicates that an internal error occurred.
  937. //
  938. // * InvalidRequestException
  939. // Indicates that one or more of the request parameters are not valid.
  940. //
  941. func (c *CloudHSM) ListHsms(input *ListHsmsInput) (*ListHsmsOutput, error) {
  942. req, out := c.ListHsmsRequest(input)
  943. err := req.Send()
  944. return out, err
  945. }
  946. const opListLunaClients = "ListLunaClients"
  947. // ListLunaClientsRequest generates a "aws/request.Request" representing the
  948. // client's request for the ListLunaClients operation. The "output" return
  949. // value can be used to capture response data after the request's "Send" method
  950. // is called.
  951. //
  952. // See ListLunaClients for usage and error information.
  953. //
  954. // Creating a request object using this method should be used when you want to inject
  955. // custom logic into the request's lifecycle using a custom handler, or if you want to
  956. // access properties on the request object before or after sending the request. If
  957. // you just want the service response, call the ListLunaClients method directly
  958. // instead.
  959. //
  960. // Note: You must call the "Send" method on the returned request object in order
  961. // to execute the request.
  962. //
  963. // // Example sending a request using the ListLunaClientsRequest method.
  964. // req, resp := client.ListLunaClientsRequest(params)
  965. //
  966. // err := req.Send()
  967. // if err == nil { // resp is now filled
  968. // fmt.Println(resp)
  969. // }
  970. //
  971. func (c *CloudHSM) ListLunaClientsRequest(input *ListLunaClientsInput) (req *request.Request, output *ListLunaClientsOutput) {
  972. op := &request.Operation{
  973. Name: opListLunaClients,
  974. HTTPMethod: "POST",
  975. HTTPPath: "/",
  976. }
  977. if input == nil {
  978. input = &ListLunaClientsInput{}
  979. }
  980. req = c.newRequest(op, input, output)
  981. output = &ListLunaClientsOutput{}
  982. req.Data = output
  983. return
  984. }
  985. // ListLunaClients API operation for Amazon CloudHSM.
  986. //
  987. // Lists all of the clients.
  988. //
  989. // This operation supports pagination with the use of the NextToken member.
  990. // If more results are available, the NextToken member of the response contains
  991. // a token that you pass in the next call to ListLunaClients to retrieve the
  992. // next set of items.
  993. //
  994. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  995. // with awserr.Error's Code and Message methods to get detailed information about
  996. // the error.
  997. //
  998. // See the AWS API reference guide for Amazon CloudHSM's
  999. // API operation ListLunaClients for usage and error information.
  1000. //
  1001. // Returned Error Codes:
  1002. // * CloudHsmServiceException
  1003. // Indicates that an exception occurred in the AWS CloudHSM service.
  1004. //
  1005. // * CloudHsmInternalException
  1006. // Indicates that an internal error occurred.
  1007. //
  1008. // * InvalidRequestException
  1009. // Indicates that one or more of the request parameters are not valid.
  1010. //
  1011. func (c *CloudHSM) ListLunaClients(input *ListLunaClientsInput) (*ListLunaClientsOutput, error) {
  1012. req, out := c.ListLunaClientsRequest(input)
  1013. err := req.Send()
  1014. return out, err
  1015. }
  1016. const opListTagsForResource = "ListTagsForResource"
  1017. // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  1018. // client's request for the ListTagsForResource operation. The "output" return
  1019. // value can be used to capture response data after the request's "Send" method
  1020. // is called.
  1021. //
  1022. // See ListTagsForResource for usage and error information.
  1023. //
  1024. // Creating a request object using this method should be used when you want to inject
  1025. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1026. // access properties on the request object before or after sending the request. If
  1027. // you just want the service response, call the ListTagsForResource method directly
  1028. // instead.
  1029. //
  1030. // Note: You must call the "Send" method on the returned request object in order
  1031. // to execute the request.
  1032. //
  1033. // // Example sending a request using the ListTagsForResourceRequest method.
  1034. // req, resp := client.ListTagsForResourceRequest(params)
  1035. //
  1036. // err := req.Send()
  1037. // if err == nil { // resp is now filled
  1038. // fmt.Println(resp)
  1039. // }
  1040. //
  1041. func (c *CloudHSM) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  1042. op := &request.Operation{
  1043. Name: opListTagsForResource,
  1044. HTTPMethod: "POST",
  1045. HTTPPath: "/",
  1046. }
  1047. if input == nil {
  1048. input = &ListTagsForResourceInput{}
  1049. }
  1050. req = c.newRequest(op, input, output)
  1051. output = &ListTagsForResourceOutput{}
  1052. req.Data = output
  1053. return
  1054. }
  1055. // ListTagsForResource API operation for Amazon CloudHSM.
  1056. //
  1057. // Returns a list of all tags for the specified AWS CloudHSM resource.
  1058. //
  1059. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1060. // with awserr.Error's Code and Message methods to get detailed information about
  1061. // the error.
  1062. //
  1063. // See the AWS API reference guide for Amazon CloudHSM's
  1064. // API operation ListTagsForResource for usage and error information.
  1065. //
  1066. // Returned Error Codes:
  1067. // * CloudHsmServiceException
  1068. // Indicates that an exception occurred in the AWS CloudHSM service.
  1069. //
  1070. // * CloudHsmInternalException
  1071. // Indicates that an internal error occurred.
  1072. //
  1073. // * InvalidRequestException
  1074. // Indicates that one or more of the request parameters are not valid.
  1075. //
  1076. func (c *CloudHSM) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  1077. req, out := c.ListTagsForResourceRequest(input)
  1078. err := req.Send()
  1079. return out, err
  1080. }
  1081. const opModifyHapg = "ModifyHapg"
  1082. // ModifyHapgRequest generates a "aws/request.Request" representing the
  1083. // client's request for the ModifyHapg operation. The "output" return
  1084. // value can be used to capture response data after the request's "Send" method
  1085. // is called.
  1086. //
  1087. // See ModifyHapg for usage and error information.
  1088. //
  1089. // Creating a request object using this method should be used when you want to inject
  1090. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1091. // access properties on the request object before or after sending the request. If
  1092. // you just want the service response, call the ModifyHapg method directly
  1093. // instead.
  1094. //
  1095. // Note: You must call the "Send" method on the returned request object in order
  1096. // to execute the request.
  1097. //
  1098. // // Example sending a request using the ModifyHapgRequest method.
  1099. // req, resp := client.ModifyHapgRequest(params)
  1100. //
  1101. // err := req.Send()
  1102. // if err == nil { // resp is now filled
  1103. // fmt.Println(resp)
  1104. // }
  1105. //
  1106. func (c *CloudHSM) ModifyHapgRequest(input *ModifyHapgInput) (req *request.Request, output *ModifyHapgOutput) {
  1107. op := &request.Operation{
  1108. Name: opModifyHapg,
  1109. HTTPMethod: "POST",
  1110. HTTPPath: "/",
  1111. }
  1112. if input == nil {
  1113. input = &ModifyHapgInput{}
  1114. }
  1115. req = c.newRequest(op, input, output)
  1116. output = &ModifyHapgOutput{}
  1117. req.Data = output
  1118. return
  1119. }
  1120. // ModifyHapg API operation for Amazon CloudHSM.
  1121. //
  1122. // Modifies an existing high-availability partition group.
  1123. //
  1124. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1125. // with awserr.Error's Code and Message methods to get detailed information about
  1126. // the error.
  1127. //
  1128. // See the AWS API reference guide for Amazon CloudHSM's
  1129. // API operation ModifyHapg for usage and error information.
  1130. //
  1131. // Returned Error Codes:
  1132. // * CloudHsmServiceException
  1133. // Indicates that an exception occurred in the AWS CloudHSM service.
  1134. //
  1135. // * CloudHsmInternalException
  1136. // Indicates that an internal error occurred.
  1137. //
  1138. // * InvalidRequestException
  1139. // Indicates that one or more of the request parameters are not valid.
  1140. //
  1141. func (c *CloudHSM) ModifyHapg(input *ModifyHapgInput) (*ModifyHapgOutput, error) {
  1142. req, out := c.ModifyHapgRequest(input)
  1143. err := req.Send()
  1144. return out, err
  1145. }
  1146. const opModifyHsm = "ModifyHsm"
  1147. // ModifyHsmRequest generates a "aws/request.Request" representing the
  1148. // client's request for the ModifyHsm operation. The "output" return
  1149. // value can be used to capture response data after the request's "Send" method
  1150. // is called.
  1151. //
  1152. // See ModifyHsm for usage and error information.
  1153. //
  1154. // Creating a request object using this method should be used when you want to inject
  1155. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1156. // access properties on the request object before or after sending the request. If
  1157. // you just want the service response, call the ModifyHsm method directly
  1158. // instead.
  1159. //
  1160. // Note: You must call the "Send" method on the returned request object in order
  1161. // to execute the request.
  1162. //
  1163. // // Example sending a request using the ModifyHsmRequest method.
  1164. // req, resp := client.ModifyHsmRequest(params)
  1165. //
  1166. // err := req.Send()
  1167. // if err == nil { // resp is now filled
  1168. // fmt.Println(resp)
  1169. // }
  1170. //
  1171. func (c *CloudHSM) ModifyHsmRequest(input *ModifyHsmInput) (req *request.Request, output *ModifyHsmOutput) {
  1172. op := &request.Operation{
  1173. Name: opModifyHsm,
  1174. HTTPMethod: "POST",
  1175. HTTPPath: "/",
  1176. }
  1177. if input == nil {
  1178. input = &ModifyHsmInput{}
  1179. }
  1180. req = c.newRequest(op, input, output)
  1181. output = &ModifyHsmOutput{}
  1182. req.Data = output
  1183. return
  1184. }
  1185. // ModifyHsm API operation for Amazon CloudHSM.
  1186. //
  1187. // Modifies an HSM.
  1188. //
  1189. // This operation can result in the HSM being offline for up to 15 minutes while
  1190. // the AWS CloudHSM service is reconfigured. If you are modifying a production
  1191. // HSM, you should ensure that your AWS CloudHSM service is configured for high
  1192. // availability, and consider executing this operation during a maintenance
  1193. // window.
  1194. //
  1195. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1196. // with awserr.Error's Code and Message methods to get detailed information about
  1197. // the error.
  1198. //
  1199. // See the AWS API reference guide for Amazon CloudHSM's
  1200. // API operation ModifyHsm for usage and error information.
  1201. //
  1202. // Returned Error Codes:
  1203. // * CloudHsmServiceException
  1204. // Indicates that an exception occurred in the AWS CloudHSM service.
  1205. //
  1206. // * CloudHsmInternalException
  1207. // Indicates that an internal error occurred.
  1208. //
  1209. // * InvalidRequestException
  1210. // Indicates that one or more of the request parameters are not valid.
  1211. //
  1212. func (c *CloudHSM) ModifyHsm(input *ModifyHsmInput) (*ModifyHsmOutput, error) {
  1213. req, out := c.ModifyHsmRequest(input)
  1214. err := req.Send()
  1215. return out, err
  1216. }
  1217. const opModifyLunaClient = "ModifyLunaClient"
  1218. // ModifyLunaClientRequest generates a "aws/request.Request" representing the
  1219. // client's request for the ModifyLunaClient operation. The "output" return
  1220. // value can be used to capture response data after the request's "Send" method
  1221. // is called.
  1222. //
  1223. // See ModifyLunaClient for usage and error information.
  1224. //
  1225. // Creating a request object using this method should be used when you want to inject
  1226. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1227. // access properties on the request object before or after sending the request. If
  1228. // you just want the service response, call the ModifyLunaClient method directly
  1229. // instead.
  1230. //
  1231. // Note: You must call the "Send" method on the returned request object in order
  1232. // to execute the request.
  1233. //
  1234. // // Example sending a request using the ModifyLunaClientRequest method.
  1235. // req, resp := client.ModifyLunaClientRequest(params)
  1236. //
  1237. // err := req.Send()
  1238. // if err == nil { // resp is now filled
  1239. // fmt.Println(resp)
  1240. // }
  1241. //
  1242. func (c *CloudHSM) ModifyLunaClientRequest(input *ModifyLunaClientInput) (req *request.Request, output *ModifyLunaClientOutput) {
  1243. op := &request.Operation{
  1244. Name: opModifyLunaClient,
  1245. HTTPMethod: "POST",
  1246. HTTPPath: "/",
  1247. }
  1248. if input == nil {
  1249. input = &ModifyLunaClientInput{}
  1250. }
  1251. req = c.newRequest(op, input, output)
  1252. output = &ModifyLunaClientOutput{}
  1253. req.Data = output
  1254. return
  1255. }
  1256. // ModifyLunaClient API operation for Amazon CloudHSM.
  1257. //
  1258. // Modifies the certificate used by the client.
  1259. //
  1260. // This action can potentially start a workflow to install the new certificate
  1261. // on the client's HSMs.
  1262. //
  1263. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1264. // with awserr.Error's Code and Message methods to get detailed information about
  1265. // the error.
  1266. //
  1267. // See the AWS API reference guide for Amazon CloudHSM's
  1268. // API operation ModifyLunaClient for usage and error information.
  1269. //
  1270. // Returned Error Codes:
  1271. // * CloudHsmServiceException
  1272. // Indicates that an exception occurred in the AWS CloudHSM service.
  1273. //
  1274. func (c *CloudHSM) ModifyLunaClient(input *ModifyLunaClientInput) (*ModifyLunaClientOutput, error) {
  1275. req, out := c.ModifyLunaClientRequest(input)
  1276. err := req.Send()
  1277. return out, err
  1278. }
  1279. const opRemoveTagsFromResource = "RemoveTagsFromResource"
  1280. // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the
  1281. // client's request for the RemoveTagsFromResource operation. The "output" return
  1282. // value can be used to capture response data after the request's "Send" method
  1283. // is called.
  1284. //
  1285. // See RemoveTagsFromResource for usage and error information.
  1286. //
  1287. // Creating a request object using this method should be used when you want to inject
  1288. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1289. // access properties on the request object before or after sending the request. If
  1290. // you just want the service response, call the RemoveTagsFromResource method directly
  1291. // instead.
  1292. //
  1293. // Note: You must call the "Send" method on the returned request object in order
  1294. // to execute the request.
  1295. //
  1296. // // Example sending a request using the RemoveTagsFromResourceRequest method.
  1297. // req, resp := client.RemoveTagsFromResourceRequest(params)
  1298. //
  1299. // err := req.Send()
  1300. // if err == nil { // resp is now filled
  1301. // fmt.Println(resp)
  1302. // }
  1303. //
  1304. func (c *CloudHSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) {
  1305. op := &request.Operation{
  1306. Name: opRemoveTagsFromResource,
  1307. HTTPMethod: "POST",
  1308. HTTPPath: "/",
  1309. }
  1310. if input == nil {
  1311. input = &RemoveTagsFromResourceInput{}
  1312. }
  1313. req = c.newRequest(op, input, output)
  1314. output = &RemoveTagsFromResourceOutput{}
  1315. req.Data = output
  1316. return
  1317. }
  1318. // RemoveTagsFromResource API operation for Amazon CloudHSM.
  1319. //
  1320. // Removes one or more tags from the specified AWS CloudHSM resource.
  1321. //
  1322. // To remove a tag, specify only the tag key to remove (not the value). To overwrite
  1323. // the value for an existing tag, use AddTagsToResource.
  1324. //
  1325. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1326. // with awserr.Error's Code and Message methods to get detailed information about
  1327. // the error.
  1328. //
  1329. // See the AWS API reference guide for Amazon CloudHSM's
  1330. // API operation RemoveTagsFromResource for usage and error information.
  1331. //
  1332. // Returned Error Codes:
  1333. // * CloudHsmServiceException
  1334. // Indicates that an exception occurred in the AWS CloudHSM service.
  1335. //
  1336. // * CloudHsmInternalException
  1337. // Indicates that an internal error occurred.
  1338. //
  1339. // * InvalidRequestException
  1340. // Indicates that one or more of the request parameters are not valid.
  1341. //
  1342. func (c *CloudHSM) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) {
  1343. req, out := c.RemoveTagsFromResourceRequest(input)
  1344. err := req.Send()
  1345. return out, err
  1346. }
  1347. type AddTagsToResourceInput struct {
  1348. _ struct{} `type:"structure"`
  1349. // The Amazon Resource Name (ARN) of the AWS CloudHSM resource to tag.
  1350. //
  1351. // ResourceArn is a required field
  1352. ResourceArn *string `type:"string" required:"true"`
  1353. // One or more tags.
  1354. //
  1355. // TagList is a required field
  1356. TagList []*Tag `type:"list" required:"true"`
  1357. }
  1358. // String returns the string representation
  1359. func (s AddTagsToResourceInput) String() string {
  1360. return awsutil.Prettify(s)
  1361. }
  1362. // GoString returns the string representation
  1363. func (s AddTagsToResourceInput) GoString() string {
  1364. return s.String()
  1365. }
  1366. // Validate inspects the fields of the type to determine if they are valid.
  1367. func (s *AddTagsToResourceInput) Validate() error {
  1368. invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"}
  1369. if s.ResourceArn == nil {
  1370. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  1371. }
  1372. if s.TagList == nil {
  1373. invalidParams.Add(request.NewErrParamRequired("TagList"))
  1374. }
  1375. if s.TagList != nil {
  1376. for i, v := range s.TagList {
  1377. if v == nil {
  1378. continue
  1379. }
  1380. if err := v.Validate(); err != nil {
  1381. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagList", i), err.(request.ErrInvalidParams))
  1382. }
  1383. }
  1384. }
  1385. if invalidParams.Len() > 0 {
  1386. return invalidParams
  1387. }
  1388. return nil
  1389. }
  1390. type AddTagsToResourceOutput struct {
  1391. _ struct{} `type:"structure"`
  1392. // The status of the operation.
  1393. //
  1394. // Status is a required field
  1395. Status *string `type:"string" required:"true"`
  1396. }
  1397. // String returns the string representation
  1398. func (s AddTagsToResourceOutput) String() string {
  1399. return awsutil.Prettify(s)
  1400. }
  1401. // GoString returns the string representation
  1402. func (s AddTagsToResourceOutput) GoString() string {
  1403. return s.String()
  1404. }
  1405. // Contains the inputs for the CreateHapgRequest action.
  1406. type CreateHapgInput struct {
  1407. _ struct{} `type:"structure"`
  1408. // The label of the new high-availability partition group.
  1409. //
  1410. // Label is a required field
  1411. Label *string `type:"string" required:"true"`
  1412. }
  1413. // String returns the string representation
  1414. func (s CreateHapgInput) String() string {
  1415. return awsutil.Prettify(s)
  1416. }
  1417. // GoString returns the string representation
  1418. func (s CreateHapgInput) GoString() string {
  1419. return s.String()
  1420. }
  1421. // Validate inspects the fields of the type to determine if they are valid.
  1422. func (s *CreateHapgInput) Validate() error {
  1423. invalidParams := request.ErrInvalidParams{Context: "CreateHapgInput"}
  1424. if s.Label == nil {
  1425. invalidParams.Add(request.NewErrParamRequired("Label"))
  1426. }
  1427. if invalidParams.Len() > 0 {
  1428. return invalidParams
  1429. }
  1430. return nil
  1431. }
  1432. // Contains the output of the CreateHAPartitionGroup action.
  1433. type CreateHapgOutput struct {
  1434. _ struct{} `type:"structure"`
  1435. // The ARN of the high-availability partition group.
  1436. HapgArn *string `type:"string"`
  1437. }
  1438. // String returns the string representation
  1439. func (s CreateHapgOutput) String() string {
  1440. return awsutil.Prettify(s)
  1441. }
  1442. // GoString returns the string representation
  1443. func (s CreateHapgOutput) GoString() string {
  1444. return s.String()
  1445. }
  1446. // Contains the inputs for the CreateHsm operation.
  1447. type CreateHsmInput struct {
  1448. _ struct{} `locationName:"CreateHsmRequest" type:"structure"`
  1449. // A user-defined token to ensure idempotence. Subsequent calls to this operation
  1450. // with the same token will be ignored.
  1451. ClientToken *string `locationName:"ClientToken" type:"string"`
  1452. // The IP address to assign to the HSM's ENI.
  1453. //
  1454. // If an IP address is not specified, an IP address will be randomly chosen
  1455. // from the CIDR range of the subnet.
  1456. EniIp *string `locationName:"EniIp" type:"string"`
  1457. // The external ID from IamRoleArn, if present.
  1458. ExternalId *string `locationName:"ExternalId" type:"string"`
  1459. // The ARN of an IAM role to enable the AWS CloudHSM service to allocate an
  1460. // ENI on your behalf.
  1461. //
  1462. // IamRoleArn is a required field
  1463. IamRoleArn *string `locationName:"IamRoleArn" type:"string" required:"true"`
  1464. // The SSH public key to install on the HSM.
  1465. //
  1466. // SshKey is a required field
  1467. SshKey *string `locationName:"SshKey" type:"string" required:"true"`
  1468. // The identifier of the subnet in your VPC in which to place the HSM.
  1469. //
  1470. // SubnetId is a required field
  1471. SubnetId *string `locationName:"SubnetId" type:"string" required:"true"`
  1472. // Specifies the type of subscription for the HSM.
  1473. //
  1474. // * PRODUCTION - The HSM is being used in a production environment.
  1475. // * TRIAL - The HSM is being used in a product trial.
  1476. //
  1477. // SubscriptionType is a required field
  1478. SubscriptionType *string `locationName:"SubscriptionType" type:"string" required:"true" enum:"SubscriptionType"`
  1479. // The IP address for the syslog monitoring server. The AWS CloudHSM service
  1480. // only supports one syslog monitoring server.
  1481. SyslogIp *string `locationName:"SyslogIp" type:"string"`
  1482. }
  1483. // String returns the string representation
  1484. func (s CreateHsmInput) String() string {
  1485. return awsutil.Prettify(s)
  1486. }
  1487. // GoString returns the string representation
  1488. func (s CreateHsmInput) GoString() string {
  1489. return s.String()
  1490. }
  1491. // Validate inspects the fields of the type to determine if they are valid.
  1492. func (s *CreateHsmInput) Validate() error {
  1493. invalidParams := request.ErrInvalidParams{Context: "CreateHsmInput"}
  1494. if s.IamRoleArn == nil {
  1495. invalidParams.Add(request.NewErrParamRequired("IamRoleArn"))
  1496. }
  1497. if s.SshKey == nil {
  1498. invalidParams.Add(request.NewErrParamRequired("SshKey"))
  1499. }
  1500. if s.SubnetId == nil {
  1501. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  1502. }
  1503. if s.SubscriptionType == nil {
  1504. invalidParams.Add(request.NewErrParamRequired("SubscriptionType"))
  1505. }
  1506. if invalidParams.Len() > 0 {
  1507. return invalidParams
  1508. }
  1509. return nil
  1510. }
  1511. // Contains the output of the CreateHsm operation.
  1512. type CreateHsmOutput struct {
  1513. _ struct{} `type:"structure"`
  1514. // The ARN of the HSM.
  1515. HsmArn *string `type:"string"`
  1516. }
  1517. // String returns the string representation
  1518. func (s CreateHsmOutput) String() string {
  1519. return awsutil.Prettify(s)
  1520. }
  1521. // GoString returns the string representation
  1522. func (s CreateHsmOutput) GoString() string {
  1523. return s.String()
  1524. }
  1525. // Contains the inputs for the CreateLunaClient action.
  1526. type CreateLunaClientInput struct {
  1527. _ struct{} `type:"structure"`
  1528. // The contents of a Base64-Encoded X.509 v3 certificate to be installed on
  1529. // the HSMs used by this client.
  1530. //
  1531. // Certificate is a required field
  1532. Certificate *string `min:"600" type:"string" required:"true"`
  1533. // The label for the client.
  1534. Label *string `type:"string"`
  1535. }
  1536. // String returns the string representation
  1537. func (s CreateLunaClientInput) String() string {
  1538. return awsutil.Prettify(s)
  1539. }
  1540. // GoString returns the string representation
  1541. func (s CreateLunaClientInput) GoString() string {
  1542. return s.String()
  1543. }
  1544. // Validate inspects the fields of the type to determine if they are valid.
  1545. func (s *CreateLunaClientInput) Validate() error {
  1546. invalidParams := request.ErrInvalidParams{Context: "CreateLunaClientInput"}
  1547. if s.Certificate == nil {
  1548. invalidParams.Add(request.NewErrParamRequired("Certificate"))
  1549. }
  1550. if s.Certificate != nil && len(*s.Certificate) < 600 {
  1551. invalidParams.Add(request.NewErrParamMinLen("Certificate", 600))
  1552. }
  1553. if invalidParams.Len() > 0 {
  1554. return invalidParams
  1555. }
  1556. return nil
  1557. }
  1558. // Contains the output of the CreateLunaClient action.
  1559. type CreateLunaClientOutput struct {
  1560. _ struct{} `type:"structure"`
  1561. // The ARN of the client.
  1562. ClientArn *string `type:"string"`
  1563. }
  1564. // String returns the string representation
  1565. func (s CreateLunaClientOutput) String() string {
  1566. return awsutil.Prettify(s)
  1567. }
  1568. // GoString returns the string representation
  1569. func (s CreateLunaClientOutput) GoString() string {
  1570. return s.String()
  1571. }
  1572. // Contains the inputs for the DeleteHapg action.
  1573. type DeleteHapgInput struct {
  1574. _ struct{} `type:"structure"`
  1575. // The ARN of the high-availability partition group to delete.
  1576. //
  1577. // HapgArn is a required field
  1578. HapgArn *string `type:"string" required:"true"`
  1579. }
  1580. // String returns the string representation
  1581. func (s DeleteHapgInput) String() string {
  1582. return awsutil.Prettify(s)
  1583. }
  1584. // GoString returns the string representation
  1585. func (s DeleteHapgInput) GoString() string {
  1586. return s.String()
  1587. }
  1588. // Validate inspects the fields of the type to determine if they are valid.
  1589. func (s *DeleteHapgInput) Validate() error {
  1590. invalidParams := request.ErrInvalidParams{Context: "DeleteHapgInput"}
  1591. if s.HapgArn == nil {
  1592. invalidParams.Add(request.NewErrParamRequired("HapgArn"))
  1593. }
  1594. if invalidParams.Len() > 0 {
  1595. return invalidParams
  1596. }
  1597. return nil
  1598. }
  1599. // Contains the output of the DeleteHapg action.
  1600. type DeleteHapgOutput struct {
  1601. _ struct{} `type:"structure"`
  1602. // The status of the action.
  1603. //
  1604. // Status is a required field
  1605. Status *string `type:"string" required:"true"`
  1606. }
  1607. // String returns the string representation
  1608. func (s DeleteHapgOutput) String() string {
  1609. return awsutil.Prettify(s)
  1610. }
  1611. // GoString returns the string representation
  1612. func (s DeleteHapgOutput) GoString() string {
  1613. return s.String()
  1614. }
  1615. // Contains the inputs for the DeleteHsm operation.
  1616. type DeleteHsmInput struct {
  1617. _ struct{} `locationName:"DeleteHsmRequest" type:"structure"`
  1618. // The ARN of the HSM to delete.
  1619. //
  1620. // HsmArn is a required field
  1621. HsmArn *string `locationName:"HsmArn" type:"string" required:"true"`
  1622. }
  1623. // String returns the string representation
  1624. func (s DeleteHsmInput) String() string {
  1625. return awsutil.Prettify(s)
  1626. }
  1627. // GoString returns the string representation
  1628. func (s DeleteHsmInput) GoString() string {
  1629. return s.String()
  1630. }
  1631. // Validate inspects the fields of the type to determine if they are valid.
  1632. func (s *DeleteHsmInput) Validate() error {
  1633. invalidParams := request.ErrInvalidParams{Context: "DeleteHsmInput"}
  1634. if s.HsmArn == nil {
  1635. invalidParams.Add(request.NewErrParamRequired("HsmArn"))
  1636. }
  1637. if invalidParams.Len() > 0 {
  1638. return invalidParams
  1639. }
  1640. return nil
  1641. }
  1642. // Contains the output of the DeleteHsm operation.
  1643. type DeleteHsmOutput struct {
  1644. _ struct{} `type:"structure"`
  1645. // The status of the operation.
  1646. //
  1647. // Status is a required field
  1648. Status *string `type:"string" required:"true"`
  1649. }
  1650. // String returns the string representation
  1651. func (s DeleteHsmOutput) String() string {
  1652. return awsutil.Prettify(s)
  1653. }
  1654. // GoString returns the string representation
  1655. func (s DeleteHsmOutput) GoString() string {
  1656. return s.String()
  1657. }
  1658. type DeleteLunaClientInput struct {
  1659. _ struct{} `type:"structure"`
  1660. // The ARN of the client to delete.
  1661. //
  1662. // ClientArn is a required field
  1663. ClientArn *string `type:"string" required:"true"`
  1664. }
  1665. // String returns the string representation
  1666. func (s DeleteLunaClientInput) String() string {
  1667. return awsutil.Prettify(s)
  1668. }
  1669. // GoString returns the string representation
  1670. func (s DeleteLunaClientInput) GoString() string {
  1671. return s.String()
  1672. }
  1673. // Validate inspects the fields of the type to determine if they are valid.
  1674. func (s *DeleteLunaClientInput) Validate() error {
  1675. invalidParams := request.ErrInvalidParams{Context: "DeleteLunaClientInput"}
  1676. if s.ClientArn == nil {
  1677. invalidParams.Add(request.NewErrParamRequired("ClientArn"))
  1678. }
  1679. if invalidParams.Len() > 0 {
  1680. return invalidParams
  1681. }
  1682. return nil
  1683. }
  1684. type DeleteLunaClientOutput struct {
  1685. _ struct{} `type:"structure"`
  1686. // The status of the action.
  1687. //
  1688. // Status is a required field
  1689. Status *string `type:"string" required:"true"`
  1690. }
  1691. // String returns the string representation
  1692. func (s DeleteLunaClientOutput) String() string {
  1693. return awsutil.Prettify(s)
  1694. }
  1695. // GoString returns the string representation
  1696. func (s DeleteLunaClientOutput) GoString() string {
  1697. return s.String()
  1698. }
  1699. // Contains the inputs for the DescribeHapg action.
  1700. type DescribeHapgInput struct {
  1701. _ struct{} `type:"structure"`
  1702. // The ARN of the high-availability partition group to describe.
  1703. //
  1704. // HapgArn is a required field
  1705. HapgArn *string `type:"string" required:"true"`
  1706. }
  1707. // String returns the string representation
  1708. func (s DescribeHapgInput) String() string {
  1709. return awsutil.Prettify(s)
  1710. }
  1711. // GoString returns the string representation
  1712. func (s DescribeHapgInput) GoString() string {
  1713. return s.String()
  1714. }
  1715. // Validate inspects the fields of the type to determine if they are valid.
  1716. func (s *DescribeHapgInput) Validate() error {
  1717. invalidParams := request.ErrInvalidParams{Context: "DescribeHapgInput"}
  1718. if s.HapgArn == nil {
  1719. invalidParams.Add(request.NewErrParamRequired("HapgArn"))
  1720. }
  1721. if invalidParams.Len() > 0 {
  1722. return invalidParams
  1723. }
  1724. return nil
  1725. }
  1726. // Contains the output of the DescribeHapg action.
  1727. type DescribeHapgOutput struct {
  1728. _ struct{} `type:"structure"`
  1729. // The ARN of the high-availability partition group.
  1730. HapgArn *string `type:"string"`
  1731. // The serial number of the high-availability partition group.
  1732. HapgSerial *string `type:"string"`
  1733. // Contains a list of ARNs that identify the HSMs.
  1734. HsmsLastActionFailed []*string `type:"list"`
  1735. // Contains a list of ARNs that identify the HSMs.
  1736. HsmsPendingDeletion []*string `type:"list"`
  1737. // Contains a list of ARNs that identify the HSMs.
  1738. HsmsPendingRegistration []*string `type:"list"`
  1739. // The label for the high-availability partition group.
  1740. Label *string `type:"string"`
  1741. // The date and time the high-availability partition group was last modified.
  1742. LastModifiedTimestamp *string `type:"string"`
  1743. // The list of partition serial numbers that belong to the high-availability
  1744. // partition group.
  1745. PartitionSerialList []*string `type:"list"`
  1746. // The state of the high-availability partition group.
  1747. State *string `type:"string" enum:"CloudHsmObjectState"`
  1748. }
  1749. // String returns the string representation
  1750. func (s DescribeHapgOutput) String() string {
  1751. return awsutil.Prettify(s)
  1752. }
  1753. // GoString returns the string representation
  1754. func (s DescribeHapgOutput) GoString() string {
  1755. return s.String()
  1756. }
  1757. // Contains the inputs for the DescribeHsm operation.
  1758. type DescribeHsmInput struct {
  1759. _ struct{} `type:"structure"`
  1760. // The ARN of the HSM. Either the HsmArn or the SerialNumber parameter must
  1761. // be specified.
  1762. HsmArn *string `type:"string"`
  1763. // The serial number of the HSM. Either the HsmArn or the HsmSerialNumber parameter
  1764. // must be specified.
  1765. HsmSerialNumber *string `type:"string"`
  1766. }
  1767. // String returns the string representation
  1768. func (s DescribeHsmInput) String() string {
  1769. return awsutil.Prettify(s)
  1770. }
  1771. // GoString returns the string representation
  1772. func (s DescribeHsmInput) GoString() string {
  1773. return s.String()
  1774. }
  1775. // Contains the output of the DescribeHsm operation.
  1776. type DescribeHsmOutput struct {
  1777. _ struct{} `type:"structure"`
  1778. // The Availability Zone that the HSM is in.
  1779. AvailabilityZone *string `type:"string"`
  1780. // The identifier of the elastic network interface (ENI) attached to the HSM.
  1781. EniId *string `type:"string"`
  1782. // The IP address assigned to the HSM's ENI.
  1783. EniIp *string `type:"string"`
  1784. // The ARN of the HSM.
  1785. HsmArn *string `type:"string"`
  1786. // The HSM model type.
  1787. HsmType *string `type:"string"`
  1788. // The ARN of the IAM role assigned to the HSM.
  1789. IamRoleArn *string `type:"string"`
  1790. // The list of partitions on the HSM.
  1791. Partitions []*string `type:"list"`
  1792. // The serial number of the HSM.
  1793. SerialNumber *string `type:"string"`
  1794. // The date and time that the server certificate was last updated.
  1795. ServerCertLastUpdated *string `type:"string"`
  1796. // The URI of the certificate server.
  1797. ServerCertUri *string `type:"string"`
  1798. // The HSM software version.
  1799. SoftwareVersion *string `type:"string"`
  1800. // The date and time that the SSH key was last updated.
  1801. SshKeyLastUpdated *string `type:"string"`
  1802. // The public SSH key.
  1803. SshPublicKey *string `type:"string"`
  1804. // The status of the HSM.
  1805. Status *string `type:"string" enum:"HsmStatus"`
  1806. // Contains additional information about the status of the HSM.
  1807. StatusDetails *string `type:"string"`
  1808. // The identifier of the subnet that the HSM is in.
  1809. SubnetId *string `type:"string"`
  1810. // The subscription end date.
  1811. SubscriptionEndDate *string `type:"string"`
  1812. // The subscription start date.
  1813. SubscriptionStartDate *string `type:"string"`
  1814. // Specifies the type of subscription for the HSM.
  1815. //
  1816. // * PRODUCTION - The HSM is being used in a production environment.
  1817. // * TRIAL - The HSM is being used in a product trial.
  1818. SubscriptionType *string `type:"string" enum:"SubscriptionType"`
  1819. // The name of the HSM vendor.
  1820. VendorName *string `type:"string"`
  1821. // The identifier of the VPC that the HSM is in.
  1822. VpcId *string `type:"string"`
  1823. }
  1824. // String returns the string representation
  1825. func (s DescribeHsmOutput) String() string {
  1826. return awsutil.Prettify(s)
  1827. }
  1828. // GoString returns the string representation
  1829. func (s DescribeHsmOutput) GoString() string {
  1830. return s.String()
  1831. }
  1832. type DescribeLunaClientInput struct {
  1833. _ struct{} `type:"structure"`
  1834. // The certificate fingerprint.
  1835. CertificateFingerprint *string `type:"string"`
  1836. // The ARN of the client.
  1837. ClientArn *string `type:"string"`
  1838. }
  1839. // String returns the string representation
  1840. func (s DescribeLunaClientInput) String() string {
  1841. return awsutil.Prettify(s)
  1842. }
  1843. // GoString returns the string representation
  1844. func (s DescribeLunaClientInput) GoString() string {
  1845. return s.String()
  1846. }
  1847. type DescribeLunaClientOutput struct {
  1848. _ struct{} `type:"structure"`
  1849. // The certificate installed on the HSMs used by this client.
  1850. Certificate *string `min:"600" type:"string"`
  1851. // The certificate fingerprint.
  1852. CertificateFingerprint *string `type:"string"`
  1853. // The ARN of the client.
  1854. ClientArn *string `type:"string"`
  1855. // The label of the client.
  1856. Label *string `type:"string"`
  1857. // The date and time the client was last modified.
  1858. LastModifiedTimestamp *string `type:"string"`
  1859. }
  1860. // String returns the string representation
  1861. func (s DescribeLunaClientOutput) String() string {
  1862. return awsutil.Prettify(s)
  1863. }
  1864. // GoString returns the string representation
  1865. func (s DescribeLunaClientOutput) GoString() string {
  1866. return s.String()
  1867. }
  1868. type GetConfigInput struct {
  1869. _ struct{} `type:"structure"`
  1870. // The ARN of the client.
  1871. //
  1872. // ClientArn is a required field
  1873. ClientArn *string `type:"string" required:"true"`
  1874. // The client version.
  1875. //
  1876. // ClientVersion is a required field
  1877. ClientVersion *string `type:"string" required:"true" enum:"ClientVersion"`
  1878. // A list of ARNs that identify the high-availability partition groups that
  1879. // are associated with the client.
  1880. //
  1881. // HapgList is a required field
  1882. HapgList []*string `type:"list" required:"true"`
  1883. }
  1884. // String returns the string representation
  1885. func (s GetConfigInput) String() string {
  1886. return awsutil.Prettify(s)
  1887. }
  1888. // GoString returns the string representation
  1889. func (s GetConfigInput) GoString() string {
  1890. return s.String()
  1891. }
  1892. // Validate inspects the fields of the type to determine if they are valid.
  1893. func (s *GetConfigInput) Validate() error {
  1894. invalidParams := request.ErrInvalidParams{Context: "GetConfigInput"}
  1895. if s.ClientArn == nil {
  1896. invalidParams.Add(request.NewErrParamRequired("ClientArn"))
  1897. }
  1898. if s.ClientVersion == nil {
  1899. invalidParams.Add(request.NewErrParamRequired("ClientVersion"))
  1900. }
  1901. if s.HapgList == nil {
  1902. invalidParams.Add(request.NewErrParamRequired("HapgList"))
  1903. }
  1904. if invalidParams.Len() > 0 {
  1905. return invalidParams
  1906. }
  1907. return nil
  1908. }
  1909. type GetConfigOutput struct {
  1910. _ struct{} `type:"structure"`
  1911. // The certificate file containing the server.pem files of the HSMs.
  1912. ConfigCred *string `type:"string"`
  1913. // The chrystoki.conf configuration file.
  1914. ConfigFile *string `type:"string"`
  1915. // The type of credentials.
  1916. ConfigType *string `type:"string"`
  1917. }
  1918. // String returns the string representation
  1919. func (s GetConfigOutput) String() string {
  1920. return awsutil.Prettify(s)
  1921. }
  1922. // GoString returns the string representation
  1923. func (s GetConfigOutput) GoString() string {
  1924. return s.String()
  1925. }
  1926. // Contains the inputs for the ListAvailableZones action.
  1927. type ListAvailableZonesInput struct {
  1928. _ struct{} `type:"structure"`
  1929. }
  1930. // String returns the string representation
  1931. func (s ListAvailableZonesInput) String() string {
  1932. return awsutil.Prettify(s)
  1933. }
  1934. // GoString returns the string representation
  1935. func (s ListAvailableZonesInput) GoString() string {
  1936. return s.String()
  1937. }
  1938. type ListAvailableZonesOutput struct {
  1939. _ struct{} `type:"structure"`
  1940. // The list of Availability Zones that have available AWS CloudHSM capacity.
  1941. AZList []*string `type:"list"`
  1942. }
  1943. // String returns the string representation
  1944. func (s ListAvailableZonesOutput) String() string {
  1945. return awsutil.Prettify(s)
  1946. }
  1947. // GoString returns the string representation
  1948. func (s ListAvailableZonesOutput) GoString() string {
  1949. return s.String()
  1950. }
  1951. type ListHapgsInput struct {
  1952. _ struct{} `type:"structure"`
  1953. // The NextToken value from a previous call to ListHapgs. Pass null if this
  1954. // is the first call.
  1955. NextToken *string `type:"string"`
  1956. }
  1957. // String returns the string representation
  1958. func (s ListHapgsInput) String() string {
  1959. return awsutil.Prettify(s)
  1960. }
  1961. // GoString returns the string representation
  1962. func (s ListHapgsInput) GoString() string {
  1963. return s.String()
  1964. }
  1965. type ListHapgsOutput struct {
  1966. _ struct{} `type:"structure"`
  1967. // The list of high-availability partition groups.
  1968. //
  1969. // HapgList is a required field
  1970. HapgList []*string `type:"list" required:"true"`
  1971. // If not null, more results are available. Pass this value to ListHapgs to
  1972. // retrieve the next set of items.
  1973. NextToken *string `type:"string"`
  1974. }
  1975. // String returns the string representation
  1976. func (s ListHapgsOutput) String() string {
  1977. return awsutil.Prettify(s)
  1978. }
  1979. // GoString returns the string representation
  1980. func (s ListHapgsOutput) GoString() string {
  1981. return s.String()
  1982. }
  1983. type ListHsmsInput struct {
  1984. _ struct{} `type:"structure"`
  1985. // The NextToken value from a previous call to ListHsms. Pass null if this is
  1986. // the first call.
  1987. NextToken *string `type:"string"`
  1988. }
  1989. // String returns the string representation
  1990. func (s ListHsmsInput) String() string {
  1991. return awsutil.Prettify(s)
  1992. }
  1993. // GoString returns the string representation
  1994. func (s ListHsmsInput) GoString() string {
  1995. return s.String()
  1996. }
  1997. // Contains the output of the ListHsms operation.
  1998. type ListHsmsOutput struct {
  1999. _ struct{} `type:"structure"`
  2000. // The list of ARNs that identify the HSMs.
  2001. HsmList []*string `type:"list"`
  2002. // If not null, more results are available. Pass this value to ListHsms to retrieve
  2003. // the next set of items.
  2004. NextToken *string `type:"string"`
  2005. }
  2006. // String returns the string representation
  2007. func (s ListHsmsOutput) String() string {
  2008. return awsutil.Prettify(s)
  2009. }
  2010. // GoString returns the string representation
  2011. func (s ListHsmsOutput) GoString() string {
  2012. return s.String()
  2013. }
  2014. type ListLunaClientsInput struct {
  2015. _ struct{} `type:"structure"`
  2016. // The NextToken value from a previous call to ListLunaClients. Pass null if
  2017. // this is the first call.
  2018. NextToken *string `type:"string"`
  2019. }
  2020. // String returns the string representation
  2021. func (s ListLunaClientsInput) String() string {
  2022. return awsutil.Prettify(s)
  2023. }
  2024. // GoString returns the string representation
  2025. func (s ListLunaClientsInput) GoString() string {
  2026. return s.String()
  2027. }
  2028. type ListLunaClientsOutput struct {
  2029. _ struct{} `type:"structure"`
  2030. // The list of clients.
  2031. //
  2032. // ClientList is a required field
  2033. ClientList []*string `type:"list" required:"true"`
  2034. // If not null, more results are available. Pass this to ListLunaClients to
  2035. // retrieve the next set of items.
  2036. NextToken *string `type:"string"`
  2037. }
  2038. // String returns the string representation
  2039. func (s ListLunaClientsOutput) String() string {
  2040. return awsutil.Prettify(s)
  2041. }
  2042. // GoString returns the string representation
  2043. func (s ListLunaClientsOutput) GoString() string {
  2044. return s.String()
  2045. }
  2046. type ListTagsForResourceInput struct {
  2047. _ struct{} `type:"structure"`
  2048. // The Amazon Resource Name (ARN) of the AWS CloudHSM resource.
  2049. //
  2050. // ResourceArn is a required field
  2051. ResourceArn *string `type:"string" required:"true"`
  2052. }
  2053. // String returns the string representation
  2054. func (s ListTagsForResourceInput) String() string {
  2055. return awsutil.Prettify(s)
  2056. }
  2057. // GoString returns the string representation
  2058. func (s ListTagsForResourceInput) GoString() string {
  2059. return s.String()
  2060. }
  2061. // Validate inspects the fields of the type to determine if they are valid.
  2062. func (s *ListTagsForResourceInput) Validate() error {
  2063. invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  2064. if s.ResourceArn == nil {
  2065. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  2066. }
  2067. if invalidParams.Len() > 0 {
  2068. return invalidParams
  2069. }
  2070. return nil
  2071. }
  2072. type ListTagsForResourceOutput struct {
  2073. _ struct{} `type:"structure"`
  2074. // One or more tags.
  2075. //
  2076. // TagList is a required field
  2077. TagList []*Tag `type:"list" required:"true"`
  2078. }
  2079. // String returns the string representation
  2080. func (s ListTagsForResourceOutput) String() string {
  2081. return awsutil.Prettify(s)
  2082. }
  2083. // GoString returns the string representation
  2084. func (s ListTagsForResourceOutput) GoString() string {
  2085. return s.String()
  2086. }
  2087. type ModifyHapgInput struct {
  2088. _ struct{} `type:"structure"`
  2089. // The ARN of the high-availability partition group to modify.
  2090. //
  2091. // HapgArn is a required field
  2092. HapgArn *string `type:"string" required:"true"`
  2093. // The new label for the high-availability partition group.
  2094. Label *string `type:"string"`
  2095. // The list of partition serial numbers to make members of the high-availability
  2096. // partition group.
  2097. PartitionSerialList []*string `type:"list"`
  2098. }
  2099. // String returns the string representation
  2100. func (s ModifyHapgInput) String() string {
  2101. return awsutil.Prettify(s)
  2102. }
  2103. // GoString returns the string representation
  2104. func (s ModifyHapgInput) GoString() string {
  2105. return s.String()
  2106. }
  2107. // Validate inspects the fields of the type to determine if they are valid.
  2108. func (s *ModifyHapgInput) Validate() error {
  2109. invalidParams := request.ErrInvalidParams{Context: "ModifyHapgInput"}
  2110. if s.HapgArn == nil {
  2111. invalidParams.Add(request.NewErrParamRequired("HapgArn"))
  2112. }
  2113. if invalidParams.Len() > 0 {
  2114. return invalidParams
  2115. }
  2116. return nil
  2117. }
  2118. type ModifyHapgOutput struct {
  2119. _ struct{} `type:"structure"`
  2120. // The ARN of the high-availability partition group.
  2121. HapgArn *string `type:"string"`
  2122. }
  2123. // String returns the string representation
  2124. func (s ModifyHapgOutput) String() string {
  2125. return awsutil.Prettify(s)
  2126. }
  2127. // GoString returns the string representation
  2128. func (s ModifyHapgOutput) GoString() string {
  2129. return s.String()
  2130. }
  2131. // Contains the inputs for the ModifyHsm operation.
  2132. type ModifyHsmInput struct {
  2133. _ struct{} `locationName:"ModifyHsmRequest" type:"structure"`
  2134. // The new IP address for the elastic network interface (ENI) attached to the
  2135. // HSM.
  2136. //
  2137. // If the HSM is moved to a different subnet, and an IP address is not specified,
  2138. // an IP address will be randomly chosen from the CIDR range of the new subnet.
  2139. EniIp *string `locationName:"EniIp" type:"string"`
  2140. // The new external ID.
  2141. ExternalId *string `locationName:"ExternalId" type:"string"`
  2142. // The ARN of the HSM to modify.
  2143. //
  2144. // HsmArn is a required field
  2145. HsmArn *string `locationName:"HsmArn" type:"string" required:"true"`
  2146. // The new IAM role ARN.
  2147. IamRoleArn *string `locationName:"IamRoleArn" type:"string"`
  2148. // The new identifier of the subnet that the HSM is in. The new subnet must
  2149. // be in the same Availability Zone as the current subnet.
  2150. SubnetId *string `locationName:"SubnetId" type:"string"`
  2151. // The new IP address for the syslog monitoring server. The AWS CloudHSM service
  2152. // only supports one syslog monitoring server.
  2153. SyslogIp *string `locationName:"SyslogIp" type:"string"`
  2154. }
  2155. // String returns the string representation
  2156. func (s ModifyHsmInput) String() string {
  2157. return awsutil.Prettify(s)
  2158. }
  2159. // GoString returns the string representation
  2160. func (s ModifyHsmInput) GoString() string {
  2161. return s.String()
  2162. }
  2163. // Validate inspects the fields of the type to determine if they are valid.
  2164. func (s *ModifyHsmInput) Validate() error {
  2165. invalidParams := request.ErrInvalidParams{Context: "ModifyHsmInput"}
  2166. if s.HsmArn == nil {
  2167. invalidParams.Add(request.NewErrParamRequired("HsmArn"))
  2168. }
  2169. if invalidParams.Len() > 0 {
  2170. return invalidParams
  2171. }
  2172. return nil
  2173. }
  2174. // Contains the output of the ModifyHsm operation.
  2175. type ModifyHsmOutput struct {
  2176. _ struct{} `type:"structure"`
  2177. // The ARN of the HSM.
  2178. HsmArn *string `type:"string"`
  2179. }
  2180. // String returns the string representation
  2181. func (s ModifyHsmOutput) String() string {
  2182. return awsutil.Prettify(s)
  2183. }
  2184. // GoString returns the string representation
  2185. func (s ModifyHsmOutput) GoString() string {
  2186. return s.String()
  2187. }
  2188. type ModifyLunaClientInput struct {
  2189. _ struct{} `type:"structure"`
  2190. // The new certificate for the client.
  2191. //
  2192. // Certificate is a required field
  2193. Certificate *string `min:"600" type:"string" required:"true"`
  2194. // The ARN of the client.
  2195. //
  2196. // ClientArn is a required field
  2197. ClientArn *string `type:"string" required:"true"`
  2198. }
  2199. // String returns the string representation
  2200. func (s ModifyLunaClientInput) String() string {
  2201. return awsutil.Prettify(s)
  2202. }
  2203. // GoString returns the string representation
  2204. func (s ModifyLunaClientInput) GoString() string {
  2205. return s.String()
  2206. }
  2207. // Validate inspects the fields of the type to determine if they are valid.
  2208. func (s *ModifyLunaClientInput) Validate() error {
  2209. invalidParams := request.ErrInvalidParams{Context: "ModifyLunaClientInput"}
  2210. if s.Certificate == nil {
  2211. invalidParams.Add(request.NewErrParamRequired("Certificate"))
  2212. }
  2213. if s.Certificate != nil && len(*s.Certificate) < 600 {
  2214. invalidParams.Add(request.NewErrParamMinLen("Certificate", 600))
  2215. }
  2216. if s.ClientArn == nil {
  2217. invalidParams.Add(request.NewErrParamRequired("ClientArn"))
  2218. }
  2219. if invalidParams.Len() > 0 {
  2220. return invalidParams
  2221. }
  2222. return nil
  2223. }
  2224. type ModifyLunaClientOutput struct {
  2225. _ struct{} `type:"structure"`
  2226. // The ARN of the client.
  2227. ClientArn *string `type:"string"`
  2228. }
  2229. // String returns the string representation
  2230. func (s ModifyLunaClientOutput) String() string {
  2231. return awsutil.Prettify(s)
  2232. }
  2233. // GoString returns the string representation
  2234. func (s ModifyLunaClientOutput) GoString() string {
  2235. return s.String()
  2236. }
  2237. type RemoveTagsFromResourceInput struct {
  2238. _ struct{} `type:"structure"`
  2239. // The Amazon Resource Name (ARN) of the AWS CloudHSM resource.
  2240. //
  2241. // ResourceArn is a required field
  2242. ResourceArn *string `type:"string" required:"true"`
  2243. // The tag key or keys to remove.
  2244. //
  2245. // Specify only the tag key to remove (not the value). To overwrite the value
  2246. // for an existing tag, use AddTagsToResource.
  2247. //
  2248. // TagKeyList is a required field
  2249. TagKeyList []*string `type:"list" required:"true"`
  2250. }
  2251. // String returns the string representation
  2252. func (s RemoveTagsFromResourceInput) String() string {
  2253. return awsutil.Prettify(s)
  2254. }
  2255. // GoString returns the string representation
  2256. func (s RemoveTagsFromResourceInput) GoString() string {
  2257. return s.String()
  2258. }
  2259. // Validate inspects the fields of the type to determine if they are valid.
  2260. func (s *RemoveTagsFromResourceInput) Validate() error {
  2261. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"}
  2262. if s.ResourceArn == nil {
  2263. invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  2264. }
  2265. if s.TagKeyList == nil {
  2266. invalidParams.Add(request.NewErrParamRequired("TagKeyList"))
  2267. }
  2268. if invalidParams.Len() > 0 {
  2269. return invalidParams
  2270. }
  2271. return nil
  2272. }
  2273. type RemoveTagsFromResourceOutput struct {
  2274. _ struct{} `type:"structure"`
  2275. // The status of the operation.
  2276. //
  2277. // Status is a required field
  2278. Status *string `type:"string" required:"true"`
  2279. }
  2280. // String returns the string representation
  2281. func (s RemoveTagsFromResourceOutput) String() string {
  2282. return awsutil.Prettify(s)
  2283. }
  2284. // GoString returns the string representation
  2285. func (s RemoveTagsFromResourceOutput) GoString() string {
  2286. return s.String()
  2287. }
  2288. // A key-value pair that identifies or specifies metadata about an AWS CloudHSM
  2289. // resource.
  2290. type Tag struct {
  2291. _ struct{} `type:"structure"`
  2292. // The key of the tag.
  2293. //
  2294. // Key is a required field
  2295. Key *string `min:"1" type:"string" required:"true"`
  2296. // The value of the tag.
  2297. //
  2298. // Value is a required field
  2299. Value *string `type:"string" required:"true"`
  2300. }
  2301. // String returns the string representation
  2302. func (s Tag) String() string {
  2303. return awsutil.Prettify(s)
  2304. }
  2305. // GoString returns the string representation
  2306. func (s Tag) GoString() string {
  2307. return s.String()
  2308. }
  2309. // Validate inspects the fields of the type to determine if they are valid.
  2310. func (s *Tag) Validate() error {
  2311. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  2312. if s.Key == nil {
  2313. invalidParams.Add(request.NewErrParamRequired("Key"))
  2314. }
  2315. if s.Key != nil && len(*s.Key) < 1 {
  2316. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  2317. }
  2318. if s.Value == nil {
  2319. invalidParams.Add(request.NewErrParamRequired("Value"))
  2320. }
  2321. if invalidParams.Len() > 0 {
  2322. return invalidParams
  2323. }
  2324. return nil
  2325. }
  2326. const (
  2327. // ClientVersion51 is a ClientVersion enum value
  2328. ClientVersion51 = "5.1"
  2329. // ClientVersion53 is a ClientVersion enum value
  2330. ClientVersion53 = "5.3"
  2331. )
  2332. const (
  2333. // CloudHsmObjectStateReady is a CloudHsmObjectState enum value
  2334. CloudHsmObjectStateReady = "READY"
  2335. // CloudHsmObjectStateUpdating is a CloudHsmObjectState enum value
  2336. CloudHsmObjectStateUpdating = "UPDATING"
  2337. // CloudHsmObjectStateDegraded is a CloudHsmObjectState enum value
  2338. CloudHsmObjectStateDegraded = "DEGRADED"
  2339. )
  2340. const (
  2341. // HsmStatusPending is a HsmStatus enum value
  2342. HsmStatusPending = "PENDING"
  2343. // HsmStatusRunning is a HsmStatus enum value
  2344. HsmStatusRunning = "RUNNING"
  2345. // HsmStatusUpdating is a HsmStatus enum value
  2346. HsmStatusUpdating = "UPDATING"
  2347. // HsmStatusSuspended is a HsmStatus enum value
  2348. HsmStatusSuspended = "SUSPENDED"
  2349. // HsmStatusTerminating is a HsmStatus enum value
  2350. HsmStatusTerminating = "TERMINATING"
  2351. // HsmStatusTerminated is a HsmStatus enum value
  2352. HsmStatusTerminated = "TERMINATED"
  2353. // HsmStatusDegraded is a HsmStatus enum value
  2354. HsmStatusDegraded = "DEGRADED"
  2355. )
  2356. // Specifies the type of subscription for the HSM.
  2357. //
  2358. // * PRODUCTION - The HSM is being used in a production environment.
  2359. // * TRIAL - The HSM is being used in a product trial.
  2360. const (
  2361. // SubscriptionTypeProduction is a SubscriptionType enum value
  2362. SubscriptionTypeProduction = "PRODUCTION"
  2363. )