api.go 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package cloudhsm provides a client for Amazon CloudHSM.
  3. package cloudhsm
  4. import (
  5. "github.com/aws/aws-sdk-go/aws/awsutil"
  6. "github.com/aws/aws-sdk-go/aws/request"
  7. )
  8. const opCreateHapg = "CreateHapg"
  9. // CreateHapgRequest generates a request for the CreateHapg operation.
  10. func (c *CloudHSM) CreateHapgRequest(input *CreateHapgInput) (req *request.Request, output *CreateHapgOutput) {
  11. op := &request.Operation{
  12. Name: opCreateHapg,
  13. HTTPMethod: "POST",
  14. HTTPPath: "/",
  15. }
  16. if input == nil {
  17. input = &CreateHapgInput{}
  18. }
  19. req = c.newRequest(op, input, output)
  20. output = &CreateHapgOutput{}
  21. req.Data = output
  22. return
  23. }
  24. // Creates a high-availability partition group. A high-availability partition
  25. // group is a group of partitions that spans multiple physical HSMs.
  26. func (c *CloudHSM) CreateHapg(input *CreateHapgInput) (*CreateHapgOutput, error) {
  27. req, out := c.CreateHapgRequest(input)
  28. err := req.Send()
  29. return out, err
  30. }
  31. const opCreateHsm = "CreateHsm"
  32. // CreateHsmRequest generates a request for the CreateHsm operation.
  33. func (c *CloudHSM) CreateHsmRequest(input *CreateHsmInput) (req *request.Request, output *CreateHsmOutput) {
  34. op := &request.Operation{
  35. Name: opCreateHsm,
  36. HTTPMethod: "POST",
  37. HTTPPath: "/",
  38. }
  39. if input == nil {
  40. input = &CreateHsmInput{}
  41. }
  42. req = c.newRequest(op, input, output)
  43. output = &CreateHsmOutput{}
  44. req.Data = output
  45. return
  46. }
  47. // Creates an uninitialized HSM instance.
  48. //
  49. // There is an upfront fee charged for each HSM instance that you create with
  50. // the CreateHsm operation. If you accidentally provision an HSM and want to
  51. // request a refund, delete the instance using the DeleteHsm operation, go to
  52. // the AWS Support Center (https://console.aws.amazon.com/support/home#/), create
  53. // a new case, and select Account and Billing Support.
  54. //
  55. // It can take up to 20 minutes to create and provision an HSM. You can monitor
  56. // the status of the HSM with the DescribeHsm operation. The HSM is ready to
  57. // be initialized when the status changes to RUNNING.
  58. func (c *CloudHSM) CreateHsm(input *CreateHsmInput) (*CreateHsmOutput, error) {
  59. req, out := c.CreateHsmRequest(input)
  60. err := req.Send()
  61. return out, err
  62. }
  63. const opCreateLunaClient = "CreateLunaClient"
  64. // CreateLunaClientRequest generates a request for the CreateLunaClient operation.
  65. func (c *CloudHSM) CreateLunaClientRequest(input *CreateLunaClientInput) (req *request.Request, output *CreateLunaClientOutput) {
  66. op := &request.Operation{
  67. Name: opCreateLunaClient,
  68. HTTPMethod: "POST",
  69. HTTPPath: "/",
  70. }
  71. if input == nil {
  72. input = &CreateLunaClientInput{}
  73. }
  74. req = c.newRequest(op, input, output)
  75. output = &CreateLunaClientOutput{}
  76. req.Data = output
  77. return
  78. }
  79. // Creates an HSM client.
  80. func (c *CloudHSM) CreateLunaClient(input *CreateLunaClientInput) (*CreateLunaClientOutput, error) {
  81. req, out := c.CreateLunaClientRequest(input)
  82. err := req.Send()
  83. return out, err
  84. }
  85. const opDeleteHapg = "DeleteHapg"
  86. // DeleteHapgRequest generates a request for the DeleteHapg operation.
  87. func (c *CloudHSM) DeleteHapgRequest(input *DeleteHapgInput) (req *request.Request, output *DeleteHapgOutput) {
  88. op := &request.Operation{
  89. Name: opDeleteHapg,
  90. HTTPMethod: "POST",
  91. HTTPPath: "/",
  92. }
  93. if input == nil {
  94. input = &DeleteHapgInput{}
  95. }
  96. req = c.newRequest(op, input, output)
  97. output = &DeleteHapgOutput{}
  98. req.Data = output
  99. return
  100. }
  101. // Deletes a high-availability partition group.
  102. func (c *CloudHSM) DeleteHapg(input *DeleteHapgInput) (*DeleteHapgOutput, error) {
  103. req, out := c.DeleteHapgRequest(input)
  104. err := req.Send()
  105. return out, err
  106. }
  107. const opDeleteHsm = "DeleteHsm"
  108. // DeleteHsmRequest generates a request for the DeleteHsm operation.
  109. func (c *CloudHSM) DeleteHsmRequest(input *DeleteHsmInput) (req *request.Request, output *DeleteHsmOutput) {
  110. op := &request.Operation{
  111. Name: opDeleteHsm,
  112. HTTPMethod: "POST",
  113. HTTPPath: "/",
  114. }
  115. if input == nil {
  116. input = &DeleteHsmInput{}
  117. }
  118. req = c.newRequest(op, input, output)
  119. output = &DeleteHsmOutput{}
  120. req.Data = output
  121. return
  122. }
  123. // Deletes an HSM. After completion, this operation cannot be undone and your
  124. // key material cannot be recovered.
  125. func (c *CloudHSM) DeleteHsm(input *DeleteHsmInput) (*DeleteHsmOutput, error) {
  126. req, out := c.DeleteHsmRequest(input)
  127. err := req.Send()
  128. return out, err
  129. }
  130. const opDeleteLunaClient = "DeleteLunaClient"
  131. // DeleteLunaClientRequest generates a request for the DeleteLunaClient operation.
  132. func (c *CloudHSM) DeleteLunaClientRequest(input *DeleteLunaClientInput) (req *request.Request, output *DeleteLunaClientOutput) {
  133. op := &request.Operation{
  134. Name: opDeleteLunaClient,
  135. HTTPMethod: "POST",
  136. HTTPPath: "/",
  137. }
  138. if input == nil {
  139. input = &DeleteLunaClientInput{}
  140. }
  141. req = c.newRequest(op, input, output)
  142. output = &DeleteLunaClientOutput{}
  143. req.Data = output
  144. return
  145. }
  146. // Deletes a client.
  147. func (c *CloudHSM) DeleteLunaClient(input *DeleteLunaClientInput) (*DeleteLunaClientOutput, error) {
  148. req, out := c.DeleteLunaClientRequest(input)
  149. err := req.Send()
  150. return out, err
  151. }
  152. const opDescribeHapg = "DescribeHapg"
  153. // DescribeHapgRequest generates a request for the DescribeHapg operation.
  154. func (c *CloudHSM) DescribeHapgRequest(input *DescribeHapgInput) (req *request.Request, output *DescribeHapgOutput) {
  155. op := &request.Operation{
  156. Name: opDescribeHapg,
  157. HTTPMethod: "POST",
  158. HTTPPath: "/",
  159. }
  160. if input == nil {
  161. input = &DescribeHapgInput{}
  162. }
  163. req = c.newRequest(op, input, output)
  164. output = &DescribeHapgOutput{}
  165. req.Data = output
  166. return
  167. }
  168. // Retrieves information about a high-availability partition group.
  169. func (c *CloudHSM) DescribeHapg(input *DescribeHapgInput) (*DescribeHapgOutput, error) {
  170. req, out := c.DescribeHapgRequest(input)
  171. err := req.Send()
  172. return out, err
  173. }
  174. const opDescribeHsm = "DescribeHsm"
  175. // DescribeHsmRequest generates a request for the DescribeHsm operation.
  176. func (c *CloudHSM) DescribeHsmRequest(input *DescribeHsmInput) (req *request.Request, output *DescribeHsmOutput) {
  177. op := &request.Operation{
  178. Name: opDescribeHsm,
  179. HTTPMethod: "POST",
  180. HTTPPath: "/",
  181. }
  182. if input == nil {
  183. input = &DescribeHsmInput{}
  184. }
  185. req = c.newRequest(op, input, output)
  186. output = &DescribeHsmOutput{}
  187. req.Data = output
  188. return
  189. }
  190. // Retrieves information about an HSM. You can identify the HSM by its ARN or
  191. // its serial number.
  192. func (c *CloudHSM) DescribeHsm(input *DescribeHsmInput) (*DescribeHsmOutput, error) {
  193. req, out := c.DescribeHsmRequest(input)
  194. err := req.Send()
  195. return out, err
  196. }
  197. const opDescribeLunaClient = "DescribeLunaClient"
  198. // DescribeLunaClientRequest generates a request for the DescribeLunaClient operation.
  199. func (c *CloudHSM) DescribeLunaClientRequest(input *DescribeLunaClientInput) (req *request.Request, output *DescribeLunaClientOutput) {
  200. op := &request.Operation{
  201. Name: opDescribeLunaClient,
  202. HTTPMethod: "POST",
  203. HTTPPath: "/",
  204. }
  205. if input == nil {
  206. input = &DescribeLunaClientInput{}
  207. }
  208. req = c.newRequest(op, input, output)
  209. output = &DescribeLunaClientOutput{}
  210. req.Data = output
  211. return
  212. }
  213. // Retrieves information about an HSM client.
  214. func (c *CloudHSM) DescribeLunaClient(input *DescribeLunaClientInput) (*DescribeLunaClientOutput, error) {
  215. req, out := c.DescribeLunaClientRequest(input)
  216. err := req.Send()
  217. return out, err
  218. }
  219. const opGetConfig = "GetConfig"
  220. // GetConfigRequest generates a request for the GetConfig operation.
  221. func (c *CloudHSM) GetConfigRequest(input *GetConfigInput) (req *request.Request, output *GetConfigOutput) {
  222. op := &request.Operation{
  223. Name: opGetConfig,
  224. HTTPMethod: "POST",
  225. HTTPPath: "/",
  226. }
  227. if input == nil {
  228. input = &GetConfigInput{}
  229. }
  230. req = c.newRequest(op, input, output)
  231. output = &GetConfigOutput{}
  232. req.Data = output
  233. return
  234. }
  235. // Gets the configuration files necessary to connect to all high availability
  236. // partition groups the client is associated with.
  237. func (c *CloudHSM) GetConfig(input *GetConfigInput) (*GetConfigOutput, error) {
  238. req, out := c.GetConfigRequest(input)
  239. err := req.Send()
  240. return out, err
  241. }
  242. const opListAvailableZones = "ListAvailableZones"
  243. // ListAvailableZonesRequest generates a request for the ListAvailableZones operation.
  244. func (c *CloudHSM) ListAvailableZonesRequest(input *ListAvailableZonesInput) (req *request.Request, output *ListAvailableZonesOutput) {
  245. op := &request.Operation{
  246. Name: opListAvailableZones,
  247. HTTPMethod: "POST",
  248. HTTPPath: "/",
  249. }
  250. if input == nil {
  251. input = &ListAvailableZonesInput{}
  252. }
  253. req = c.newRequest(op, input, output)
  254. output = &ListAvailableZonesOutput{}
  255. req.Data = output
  256. return
  257. }
  258. // Lists the Availability Zones that have available AWS CloudHSM capacity.
  259. func (c *CloudHSM) ListAvailableZones(input *ListAvailableZonesInput) (*ListAvailableZonesOutput, error) {
  260. req, out := c.ListAvailableZonesRequest(input)
  261. err := req.Send()
  262. return out, err
  263. }
  264. const opListHapgs = "ListHapgs"
  265. // ListHapgsRequest generates a request for the ListHapgs operation.
  266. func (c *CloudHSM) ListHapgsRequest(input *ListHapgsInput) (req *request.Request, output *ListHapgsOutput) {
  267. op := &request.Operation{
  268. Name: opListHapgs,
  269. HTTPMethod: "POST",
  270. HTTPPath: "/",
  271. }
  272. if input == nil {
  273. input = &ListHapgsInput{}
  274. }
  275. req = c.newRequest(op, input, output)
  276. output = &ListHapgsOutput{}
  277. req.Data = output
  278. return
  279. }
  280. // Lists the high-availability partition groups for the account.
  281. //
  282. // This operation supports pagination with the use of the NextToken member.
  283. // If more results are available, the NextToken member of the response contains
  284. // a token that you pass in the next call to ListHapgs to retrieve the next
  285. // set of items.
  286. func (c *CloudHSM) ListHapgs(input *ListHapgsInput) (*ListHapgsOutput, error) {
  287. req, out := c.ListHapgsRequest(input)
  288. err := req.Send()
  289. return out, err
  290. }
  291. const opListHsms = "ListHsms"
  292. // ListHsmsRequest generates a request for the ListHsms operation.
  293. func (c *CloudHSM) ListHsmsRequest(input *ListHsmsInput) (req *request.Request, output *ListHsmsOutput) {
  294. op := &request.Operation{
  295. Name: opListHsms,
  296. HTTPMethod: "POST",
  297. HTTPPath: "/",
  298. }
  299. if input == nil {
  300. input = &ListHsmsInput{}
  301. }
  302. req = c.newRequest(op, input, output)
  303. output = &ListHsmsOutput{}
  304. req.Data = output
  305. return
  306. }
  307. // Retrieves the identifiers of all of the HSMs provisioned for the current
  308. // customer.
  309. //
  310. // This operation supports pagination with the use of the NextToken member.
  311. // If more results are available, the NextToken member of the response contains
  312. // a token that you pass in the next call to ListHsms to retrieve the next set
  313. // of items.
  314. func (c *CloudHSM) ListHsms(input *ListHsmsInput) (*ListHsmsOutput, error) {
  315. req, out := c.ListHsmsRequest(input)
  316. err := req.Send()
  317. return out, err
  318. }
  319. const opListLunaClients = "ListLunaClients"
  320. // ListLunaClientsRequest generates a request for the ListLunaClients operation.
  321. func (c *CloudHSM) ListLunaClientsRequest(input *ListLunaClientsInput) (req *request.Request, output *ListLunaClientsOutput) {
  322. op := &request.Operation{
  323. Name: opListLunaClients,
  324. HTTPMethod: "POST",
  325. HTTPPath: "/",
  326. }
  327. if input == nil {
  328. input = &ListLunaClientsInput{}
  329. }
  330. req = c.newRequest(op, input, output)
  331. output = &ListLunaClientsOutput{}
  332. req.Data = output
  333. return
  334. }
  335. // Lists all of the clients.
  336. //
  337. // This operation supports pagination with the use of the NextToken member.
  338. // If more results are available, the NextToken member of the response contains
  339. // a token that you pass in the next call to ListLunaClients to retrieve the
  340. // next set of items.
  341. func (c *CloudHSM) ListLunaClients(input *ListLunaClientsInput) (*ListLunaClientsOutput, error) {
  342. req, out := c.ListLunaClientsRequest(input)
  343. err := req.Send()
  344. return out, err
  345. }
  346. const opModifyHapg = "ModifyHapg"
  347. // ModifyHapgRequest generates a request for the ModifyHapg operation.
  348. func (c *CloudHSM) ModifyHapgRequest(input *ModifyHapgInput) (req *request.Request, output *ModifyHapgOutput) {
  349. op := &request.Operation{
  350. Name: opModifyHapg,
  351. HTTPMethod: "POST",
  352. HTTPPath: "/",
  353. }
  354. if input == nil {
  355. input = &ModifyHapgInput{}
  356. }
  357. req = c.newRequest(op, input, output)
  358. output = &ModifyHapgOutput{}
  359. req.Data = output
  360. return
  361. }
  362. // Modifies an existing high-availability partition group.
  363. func (c *CloudHSM) ModifyHapg(input *ModifyHapgInput) (*ModifyHapgOutput, error) {
  364. req, out := c.ModifyHapgRequest(input)
  365. err := req.Send()
  366. return out, err
  367. }
  368. const opModifyHsm = "ModifyHsm"
  369. // ModifyHsmRequest generates a request for the ModifyHsm operation.
  370. func (c *CloudHSM) ModifyHsmRequest(input *ModifyHsmInput) (req *request.Request, output *ModifyHsmOutput) {
  371. op := &request.Operation{
  372. Name: opModifyHsm,
  373. HTTPMethod: "POST",
  374. HTTPPath: "/",
  375. }
  376. if input == nil {
  377. input = &ModifyHsmInput{}
  378. }
  379. req = c.newRequest(op, input, output)
  380. output = &ModifyHsmOutput{}
  381. req.Data = output
  382. return
  383. }
  384. // Modifies an HSM.
  385. //
  386. // This operation can result in the HSM being offline for up to 15 minutes
  387. // while the AWS CloudHSM service is reconfigured. If you are modifying a production
  388. // HSM, you should ensure that your AWS CloudHSM service is configured for high
  389. // availability, and consider executing this operation during a maintenance
  390. // window.
  391. func (c *CloudHSM) ModifyHsm(input *ModifyHsmInput) (*ModifyHsmOutput, error) {
  392. req, out := c.ModifyHsmRequest(input)
  393. err := req.Send()
  394. return out, err
  395. }
  396. const opModifyLunaClient = "ModifyLunaClient"
  397. // ModifyLunaClientRequest generates a request for the ModifyLunaClient operation.
  398. func (c *CloudHSM) ModifyLunaClientRequest(input *ModifyLunaClientInput) (req *request.Request, output *ModifyLunaClientOutput) {
  399. op := &request.Operation{
  400. Name: opModifyLunaClient,
  401. HTTPMethod: "POST",
  402. HTTPPath: "/",
  403. }
  404. if input == nil {
  405. input = &ModifyLunaClientInput{}
  406. }
  407. req = c.newRequest(op, input, output)
  408. output = &ModifyLunaClientOutput{}
  409. req.Data = output
  410. return
  411. }
  412. // Modifies the certificate used by the client.
  413. //
  414. // This action can potentially start a workflow to install the new certificate
  415. // on the client's HSMs.
  416. func (c *CloudHSM) ModifyLunaClient(input *ModifyLunaClientInput) (*ModifyLunaClientOutput, error) {
  417. req, out := c.ModifyLunaClientRequest(input)
  418. err := req.Send()
  419. return out, err
  420. }
  421. // Contains the inputs for the CreateHapgRequest action.
  422. type CreateHapgInput struct {
  423. // The label of the new high-availability partition group.
  424. Label *string `type:"string" required:"true"`
  425. metadataCreateHapgInput `json:"-" xml:"-"`
  426. }
  427. type metadataCreateHapgInput struct {
  428. SDKShapeTraits bool `type:"structure"`
  429. }
  430. // String returns the string representation
  431. func (s CreateHapgInput) String() string {
  432. return awsutil.Prettify(s)
  433. }
  434. // GoString returns the string representation
  435. func (s CreateHapgInput) GoString() string {
  436. return s.String()
  437. }
  438. // Contains the output of the CreateHAPartitionGroup action.
  439. type CreateHapgOutput struct {
  440. // The ARN of the high-availability partition group.
  441. HapgArn *string `type:"string"`
  442. metadataCreateHapgOutput `json:"-" xml:"-"`
  443. }
  444. type metadataCreateHapgOutput struct {
  445. SDKShapeTraits bool `type:"structure"`
  446. }
  447. // String returns the string representation
  448. func (s CreateHapgOutput) String() string {
  449. return awsutil.Prettify(s)
  450. }
  451. // GoString returns the string representation
  452. func (s CreateHapgOutput) GoString() string {
  453. return s.String()
  454. }
  455. // Contains the inputs for the CreateHsm operation.
  456. type CreateHsmInput struct {
  457. // A user-defined token to ensure idempotence. Subsequent calls to this operation
  458. // with the same token will be ignored.
  459. ClientToken *string `locationName:"ClientToken" type:"string"`
  460. // The IP address to assign to the HSM's ENI.
  461. //
  462. // If an IP address is not specified, an IP address will be randomly chosen
  463. // from the CIDR range of the subnet.
  464. EniIp *string `locationName:"EniIp" type:"string"`
  465. // The external ID from IamRoleArn, if present.
  466. ExternalId *string `locationName:"ExternalId" type:"string"`
  467. // The ARN of an IAM role to enable the AWS CloudHSM service to allocate an
  468. // ENI on your behalf.
  469. IamRoleArn *string `locationName:"IamRoleArn" type:"string" required:"true"`
  470. // The SSH public key to install on the HSM.
  471. SshKey *string `locationName:"SshKey" type:"string" required:"true"`
  472. // The identifier of the subnet in your VPC in which to place the HSM.
  473. SubnetId *string `locationName:"SubnetId" type:"string" required:"true"`
  474. // Specifies the type of subscription for the HSM.
  475. //
  476. // PRODUCTION - The HSM is being used in a production environment. TRIAL
  477. // - The HSM is being used in a product trial.
  478. SubscriptionType *string `locationName:"SubscriptionType" type:"string" required:"true" enum:"SubscriptionType"`
  479. // The IP address for the syslog monitoring server. The AWS CloudHSM service
  480. // only supports one syslog monitoring server.
  481. SyslogIp *string `locationName:"SyslogIp" type:"string"`
  482. metadataCreateHsmInput `json:"-" xml:"-"`
  483. }
  484. type metadataCreateHsmInput struct {
  485. SDKShapeTraits bool `locationName:"CreateHsmRequest" type:"structure"`
  486. }
  487. // String returns the string representation
  488. func (s CreateHsmInput) String() string {
  489. return awsutil.Prettify(s)
  490. }
  491. // GoString returns the string representation
  492. func (s CreateHsmInput) GoString() string {
  493. return s.String()
  494. }
  495. // Contains the output of the CreateHsm operation.
  496. type CreateHsmOutput struct {
  497. // The ARN of the HSM.
  498. HsmArn *string `type:"string"`
  499. metadataCreateHsmOutput `json:"-" xml:"-"`
  500. }
  501. type metadataCreateHsmOutput struct {
  502. SDKShapeTraits bool `type:"structure"`
  503. }
  504. // String returns the string representation
  505. func (s CreateHsmOutput) String() string {
  506. return awsutil.Prettify(s)
  507. }
  508. // GoString returns the string representation
  509. func (s CreateHsmOutput) GoString() string {
  510. return s.String()
  511. }
  512. // Contains the inputs for the CreateLunaClient action.
  513. type CreateLunaClientInput struct {
  514. // The contents of a Base64-Encoded X.509 v3 certificate to be installed on
  515. // the HSMs used by this client.
  516. Certificate *string `type:"string" required:"true"`
  517. // The label for the client.
  518. Label *string `type:"string"`
  519. metadataCreateLunaClientInput `json:"-" xml:"-"`
  520. }
  521. type metadataCreateLunaClientInput struct {
  522. SDKShapeTraits bool `type:"structure"`
  523. }
  524. // String returns the string representation
  525. func (s CreateLunaClientInput) String() string {
  526. return awsutil.Prettify(s)
  527. }
  528. // GoString returns the string representation
  529. func (s CreateLunaClientInput) GoString() string {
  530. return s.String()
  531. }
  532. // Contains the output of the CreateLunaClient action.
  533. type CreateLunaClientOutput struct {
  534. // The ARN of the client.
  535. ClientArn *string `type:"string"`
  536. metadataCreateLunaClientOutput `json:"-" xml:"-"`
  537. }
  538. type metadataCreateLunaClientOutput struct {
  539. SDKShapeTraits bool `type:"structure"`
  540. }
  541. // String returns the string representation
  542. func (s CreateLunaClientOutput) String() string {
  543. return awsutil.Prettify(s)
  544. }
  545. // GoString returns the string representation
  546. func (s CreateLunaClientOutput) GoString() string {
  547. return s.String()
  548. }
  549. // Contains the inputs for the DeleteHapg action.
  550. type DeleteHapgInput struct {
  551. // The ARN of the high-availability partition group to delete.
  552. HapgArn *string `type:"string" required:"true"`
  553. metadataDeleteHapgInput `json:"-" xml:"-"`
  554. }
  555. type metadataDeleteHapgInput struct {
  556. SDKShapeTraits bool `type:"structure"`
  557. }
  558. // String returns the string representation
  559. func (s DeleteHapgInput) String() string {
  560. return awsutil.Prettify(s)
  561. }
  562. // GoString returns the string representation
  563. func (s DeleteHapgInput) GoString() string {
  564. return s.String()
  565. }
  566. // Contains the output of the DeleteHapg action.
  567. type DeleteHapgOutput struct {
  568. // The status of the action.
  569. Status *string `type:"string" required:"true"`
  570. metadataDeleteHapgOutput `json:"-" xml:"-"`
  571. }
  572. type metadataDeleteHapgOutput struct {
  573. SDKShapeTraits bool `type:"structure"`
  574. }
  575. // String returns the string representation
  576. func (s DeleteHapgOutput) String() string {
  577. return awsutil.Prettify(s)
  578. }
  579. // GoString returns the string representation
  580. func (s DeleteHapgOutput) GoString() string {
  581. return s.String()
  582. }
  583. // Contains the inputs for the DeleteHsm operation.
  584. type DeleteHsmInput struct {
  585. // The ARN of the HSM to delete.
  586. HsmArn *string `locationName:"HsmArn" type:"string" required:"true"`
  587. metadataDeleteHsmInput `json:"-" xml:"-"`
  588. }
  589. type metadataDeleteHsmInput struct {
  590. SDKShapeTraits bool `locationName:"DeleteHsmRequest" type:"structure"`
  591. }
  592. // String returns the string representation
  593. func (s DeleteHsmInput) String() string {
  594. return awsutil.Prettify(s)
  595. }
  596. // GoString returns the string representation
  597. func (s DeleteHsmInput) GoString() string {
  598. return s.String()
  599. }
  600. // Contains the output of the DeleteHsm operation.
  601. type DeleteHsmOutput struct {
  602. // The status of the operation.
  603. Status *string `type:"string" required:"true"`
  604. metadataDeleteHsmOutput `json:"-" xml:"-"`
  605. }
  606. type metadataDeleteHsmOutput struct {
  607. SDKShapeTraits bool `type:"structure"`
  608. }
  609. // String returns the string representation
  610. func (s DeleteHsmOutput) String() string {
  611. return awsutil.Prettify(s)
  612. }
  613. // GoString returns the string representation
  614. func (s DeleteHsmOutput) GoString() string {
  615. return s.String()
  616. }
  617. type DeleteLunaClientInput struct {
  618. // The ARN of the client to delete.
  619. ClientArn *string `type:"string" required:"true"`
  620. metadataDeleteLunaClientInput `json:"-" xml:"-"`
  621. }
  622. type metadataDeleteLunaClientInput struct {
  623. SDKShapeTraits bool `type:"structure"`
  624. }
  625. // String returns the string representation
  626. func (s DeleteLunaClientInput) String() string {
  627. return awsutil.Prettify(s)
  628. }
  629. // GoString returns the string representation
  630. func (s DeleteLunaClientInput) GoString() string {
  631. return s.String()
  632. }
  633. type DeleteLunaClientOutput struct {
  634. // The status of the action.
  635. Status *string `type:"string" required:"true"`
  636. metadataDeleteLunaClientOutput `json:"-" xml:"-"`
  637. }
  638. type metadataDeleteLunaClientOutput struct {
  639. SDKShapeTraits bool `type:"structure"`
  640. }
  641. // String returns the string representation
  642. func (s DeleteLunaClientOutput) String() string {
  643. return awsutil.Prettify(s)
  644. }
  645. // GoString returns the string representation
  646. func (s DeleteLunaClientOutput) GoString() string {
  647. return s.String()
  648. }
  649. // Contains the inputs for the DescribeHapg action.
  650. type DescribeHapgInput struct {
  651. // The ARN of the high-availability partition group to describe.
  652. HapgArn *string `type:"string" required:"true"`
  653. metadataDescribeHapgInput `json:"-" xml:"-"`
  654. }
  655. type metadataDescribeHapgInput struct {
  656. SDKShapeTraits bool `type:"structure"`
  657. }
  658. // String returns the string representation
  659. func (s DescribeHapgInput) String() string {
  660. return awsutil.Prettify(s)
  661. }
  662. // GoString returns the string representation
  663. func (s DescribeHapgInput) GoString() string {
  664. return s.String()
  665. }
  666. // Contains the output of the DescribeHapg action.
  667. type DescribeHapgOutput struct {
  668. // The ARN of the high-availability partition group.
  669. HapgArn *string `type:"string"`
  670. // The serial number of the high-availability partition group.
  671. HapgSerial *string `type:"string"`
  672. // Contains a list of ARNs that identify the HSMs.
  673. HsmsLastActionFailed []*string `type:"list"`
  674. // Contains a list of ARNs that identify the HSMs.
  675. HsmsPendingDeletion []*string `type:"list"`
  676. // Contains a list of ARNs that identify the HSMs.
  677. HsmsPendingRegistration []*string `type:"list"`
  678. // The label for the high-availability partition group.
  679. Label *string `type:"string"`
  680. // The date and time the high-availability partition group was last modified.
  681. LastModifiedTimestamp *string `type:"string"`
  682. // The list of partition serial numbers that belong to the high-availability
  683. // partition group.
  684. PartitionSerialList []*string `type:"list"`
  685. // The state of the high-availability partition group.
  686. State *string `type:"string" enum:"CloudHsmObjectState"`
  687. metadataDescribeHapgOutput `json:"-" xml:"-"`
  688. }
  689. type metadataDescribeHapgOutput struct {
  690. SDKShapeTraits bool `type:"structure"`
  691. }
  692. // String returns the string representation
  693. func (s DescribeHapgOutput) String() string {
  694. return awsutil.Prettify(s)
  695. }
  696. // GoString returns the string representation
  697. func (s DescribeHapgOutput) GoString() string {
  698. return s.String()
  699. }
  700. // Contains the inputs for the DescribeHsm operation.
  701. type DescribeHsmInput struct {
  702. // The ARN of the HSM. Either the HsmArn or the SerialNumber parameter must
  703. // be specified.
  704. HsmArn *string `type:"string"`
  705. // The serial number of the HSM. Either the HsmArn or the HsmSerialNumber parameter
  706. // must be specified.
  707. HsmSerialNumber *string `type:"string"`
  708. metadataDescribeHsmInput `json:"-" xml:"-"`
  709. }
  710. type metadataDescribeHsmInput struct {
  711. SDKShapeTraits bool `type:"structure"`
  712. }
  713. // String returns the string representation
  714. func (s DescribeHsmInput) String() string {
  715. return awsutil.Prettify(s)
  716. }
  717. // GoString returns the string representation
  718. func (s DescribeHsmInput) GoString() string {
  719. return s.String()
  720. }
  721. // Contains the output of the DescribeHsm operation.
  722. type DescribeHsmOutput struct {
  723. // The Availability Zone that the HSM is in.
  724. AvailabilityZone *string `type:"string"`
  725. // The identifier of the elastic network interface (ENI) attached to the HSM.
  726. EniId *string `type:"string"`
  727. // The IP address assigned to the HSM's ENI.
  728. EniIp *string `type:"string"`
  729. // The ARN of the HSM.
  730. HsmArn *string `type:"string"`
  731. // The HSM model type.
  732. HsmType *string `type:"string"`
  733. // The ARN of the IAM role assigned to the HSM.
  734. IamRoleArn *string `type:"string"`
  735. // The list of partitions on the HSM.
  736. Partitions []*string `type:"list"`
  737. // The serial number of the HSM.
  738. SerialNumber *string `type:"string"`
  739. // The date and time that the server certificate was last updated.
  740. ServerCertLastUpdated *string `type:"string"`
  741. // The URI of the certificate server.
  742. ServerCertUri *string `type:"string"`
  743. // The HSM software version.
  744. SoftwareVersion *string `type:"string"`
  745. // The date and time that the SSH key was last updated.
  746. SshKeyLastUpdated *string `type:"string"`
  747. // The public SSH key.
  748. SshPublicKey *string `type:"string"`
  749. // The status of the HSM.
  750. Status *string `type:"string" enum:"HsmStatus"`
  751. // Contains additional information about the status of the HSM.
  752. StatusDetails *string `type:"string"`
  753. // The identifier of the subnet that the HSM is in.
  754. SubnetId *string `type:"string"`
  755. // The subscription end date.
  756. SubscriptionEndDate *string `type:"string"`
  757. // The subscription start date.
  758. SubscriptionStartDate *string `type:"string"`
  759. // Specifies the type of subscription for the HSM.
  760. //
  761. // PRODUCTION - The HSM is being used in a production environment. TRIAL
  762. // - The HSM is being used in a product trial.
  763. SubscriptionType *string `type:"string" enum:"SubscriptionType"`
  764. // The name of the HSM vendor.
  765. VendorName *string `type:"string"`
  766. // The identifier of the VPC that the HSM is in.
  767. VpcId *string `type:"string"`
  768. metadataDescribeHsmOutput `json:"-" xml:"-"`
  769. }
  770. type metadataDescribeHsmOutput struct {
  771. SDKShapeTraits bool `type:"structure"`
  772. }
  773. // String returns the string representation
  774. func (s DescribeHsmOutput) String() string {
  775. return awsutil.Prettify(s)
  776. }
  777. // GoString returns the string representation
  778. func (s DescribeHsmOutput) GoString() string {
  779. return s.String()
  780. }
  781. type DescribeLunaClientInput struct {
  782. // The certificate fingerprint.
  783. CertificateFingerprint *string `type:"string"`
  784. // The ARN of the client.
  785. ClientArn *string `type:"string"`
  786. metadataDescribeLunaClientInput `json:"-" xml:"-"`
  787. }
  788. type metadataDescribeLunaClientInput struct {
  789. SDKShapeTraits bool `type:"structure"`
  790. }
  791. // String returns the string representation
  792. func (s DescribeLunaClientInput) String() string {
  793. return awsutil.Prettify(s)
  794. }
  795. // GoString returns the string representation
  796. func (s DescribeLunaClientInput) GoString() string {
  797. return s.String()
  798. }
  799. type DescribeLunaClientOutput struct {
  800. // The certificate installed on the HSMs used by this client.
  801. Certificate *string `type:"string"`
  802. // The certificate fingerprint.
  803. CertificateFingerprint *string `type:"string"`
  804. // The ARN of the client.
  805. ClientArn *string `type:"string"`
  806. // The label of the client.
  807. Label *string `type:"string"`
  808. // The date and time the client was last modified.
  809. LastModifiedTimestamp *string `type:"string"`
  810. metadataDescribeLunaClientOutput `json:"-" xml:"-"`
  811. }
  812. type metadataDescribeLunaClientOutput struct {
  813. SDKShapeTraits bool `type:"structure"`
  814. }
  815. // String returns the string representation
  816. func (s DescribeLunaClientOutput) String() string {
  817. return awsutil.Prettify(s)
  818. }
  819. // GoString returns the string representation
  820. func (s DescribeLunaClientOutput) GoString() string {
  821. return s.String()
  822. }
  823. type GetConfigInput struct {
  824. // The ARN of the client.
  825. ClientArn *string `type:"string" required:"true"`
  826. // The client version.
  827. ClientVersion *string `type:"string" required:"true" enum:"ClientVersion"`
  828. // A list of ARNs that identify the high-availability partition groups that
  829. // are associated with the client.
  830. HapgList []*string `type:"list" required:"true"`
  831. metadataGetConfigInput `json:"-" xml:"-"`
  832. }
  833. type metadataGetConfigInput struct {
  834. SDKShapeTraits bool `type:"structure"`
  835. }
  836. // String returns the string representation
  837. func (s GetConfigInput) String() string {
  838. return awsutil.Prettify(s)
  839. }
  840. // GoString returns the string representation
  841. func (s GetConfigInput) GoString() string {
  842. return s.String()
  843. }
  844. type GetConfigOutput struct {
  845. // The certificate file containing the server.pem files of the HSMs.
  846. ConfigCred *string `type:"string"`
  847. // The chrystoki.conf configuration file.
  848. ConfigFile *string `type:"string"`
  849. // The type of credentials.
  850. ConfigType *string `type:"string"`
  851. metadataGetConfigOutput `json:"-" xml:"-"`
  852. }
  853. type metadataGetConfigOutput struct {
  854. SDKShapeTraits bool `type:"structure"`
  855. }
  856. // String returns the string representation
  857. func (s GetConfigOutput) String() string {
  858. return awsutil.Prettify(s)
  859. }
  860. // GoString returns the string representation
  861. func (s GetConfigOutput) GoString() string {
  862. return s.String()
  863. }
  864. // Contains the inputs for the ListAvailableZones action.
  865. type ListAvailableZonesInput struct {
  866. metadataListAvailableZonesInput `json:"-" xml:"-"`
  867. }
  868. type metadataListAvailableZonesInput struct {
  869. SDKShapeTraits bool `type:"structure"`
  870. }
  871. // String returns the string representation
  872. func (s ListAvailableZonesInput) String() string {
  873. return awsutil.Prettify(s)
  874. }
  875. // GoString returns the string representation
  876. func (s ListAvailableZonesInput) GoString() string {
  877. return s.String()
  878. }
  879. type ListAvailableZonesOutput struct {
  880. // The list of Availability Zones that have available AWS CloudHSM capacity.
  881. AZList []*string `type:"list"`
  882. metadataListAvailableZonesOutput `json:"-" xml:"-"`
  883. }
  884. type metadataListAvailableZonesOutput struct {
  885. SDKShapeTraits bool `type:"structure"`
  886. }
  887. // String returns the string representation
  888. func (s ListAvailableZonesOutput) String() string {
  889. return awsutil.Prettify(s)
  890. }
  891. // GoString returns the string representation
  892. func (s ListAvailableZonesOutput) GoString() string {
  893. return s.String()
  894. }
  895. type ListHapgsInput struct {
  896. // The NextToken value from a previous call to ListHapgs. Pass null if this
  897. // is the first call.
  898. NextToken *string `type:"string"`
  899. metadataListHapgsInput `json:"-" xml:"-"`
  900. }
  901. type metadataListHapgsInput struct {
  902. SDKShapeTraits bool `type:"structure"`
  903. }
  904. // String returns the string representation
  905. func (s ListHapgsInput) String() string {
  906. return awsutil.Prettify(s)
  907. }
  908. // GoString returns the string representation
  909. func (s ListHapgsInput) GoString() string {
  910. return s.String()
  911. }
  912. type ListHapgsOutput struct {
  913. // The list of high-availability partition groups.
  914. HapgList []*string `type:"list" required:"true"`
  915. // If not null, more results are available. Pass this value to ListHapgs to
  916. // retrieve the next set of items.
  917. NextToken *string `type:"string"`
  918. metadataListHapgsOutput `json:"-" xml:"-"`
  919. }
  920. type metadataListHapgsOutput struct {
  921. SDKShapeTraits bool `type:"structure"`
  922. }
  923. // String returns the string representation
  924. func (s ListHapgsOutput) String() string {
  925. return awsutil.Prettify(s)
  926. }
  927. // GoString returns the string representation
  928. func (s ListHapgsOutput) GoString() string {
  929. return s.String()
  930. }
  931. type ListHsmsInput struct {
  932. // The NextToken value from a previous call to ListHsms. Pass null if this is
  933. // the first call.
  934. NextToken *string `type:"string"`
  935. metadataListHsmsInput `json:"-" xml:"-"`
  936. }
  937. type metadataListHsmsInput struct {
  938. SDKShapeTraits bool `type:"structure"`
  939. }
  940. // String returns the string representation
  941. func (s ListHsmsInput) String() string {
  942. return awsutil.Prettify(s)
  943. }
  944. // GoString returns the string representation
  945. func (s ListHsmsInput) GoString() string {
  946. return s.String()
  947. }
  948. // Contains the output of the ListHsms operation.
  949. type ListHsmsOutput struct {
  950. // The list of ARNs that identify the HSMs.
  951. HsmList []*string `type:"list"`
  952. // If not null, more results are available. Pass this value to ListHsms to retrieve
  953. // the next set of items.
  954. NextToken *string `type:"string"`
  955. metadataListHsmsOutput `json:"-" xml:"-"`
  956. }
  957. type metadataListHsmsOutput struct {
  958. SDKShapeTraits bool `type:"structure"`
  959. }
  960. // String returns the string representation
  961. func (s ListHsmsOutput) String() string {
  962. return awsutil.Prettify(s)
  963. }
  964. // GoString returns the string representation
  965. func (s ListHsmsOutput) GoString() string {
  966. return s.String()
  967. }
  968. type ListLunaClientsInput struct {
  969. // The NextToken value from a previous call to ListLunaClients. Pass null if
  970. // this is the first call.
  971. NextToken *string `type:"string"`
  972. metadataListLunaClientsInput `json:"-" xml:"-"`
  973. }
  974. type metadataListLunaClientsInput struct {
  975. SDKShapeTraits bool `type:"structure"`
  976. }
  977. // String returns the string representation
  978. func (s ListLunaClientsInput) String() string {
  979. return awsutil.Prettify(s)
  980. }
  981. // GoString returns the string representation
  982. func (s ListLunaClientsInput) GoString() string {
  983. return s.String()
  984. }
  985. type ListLunaClientsOutput struct {
  986. // The list of clients.
  987. ClientList []*string `type:"list" required:"true"`
  988. // If not null, more results are available. Pass this to ListLunaClients to
  989. // retrieve the next set of items.
  990. NextToken *string `type:"string"`
  991. metadataListLunaClientsOutput `json:"-" xml:"-"`
  992. }
  993. type metadataListLunaClientsOutput struct {
  994. SDKShapeTraits bool `type:"structure"`
  995. }
  996. // String returns the string representation
  997. func (s ListLunaClientsOutput) String() string {
  998. return awsutil.Prettify(s)
  999. }
  1000. // GoString returns the string representation
  1001. func (s ListLunaClientsOutput) GoString() string {
  1002. return s.String()
  1003. }
  1004. type ModifyHapgInput struct {
  1005. // The ARN of the high-availability partition group to modify.
  1006. HapgArn *string `type:"string" required:"true"`
  1007. // The new label for the high-availability partition group.
  1008. Label *string `type:"string"`
  1009. // The list of partition serial numbers to make members of the high-availability
  1010. // partition group.
  1011. PartitionSerialList []*string `type:"list"`
  1012. metadataModifyHapgInput `json:"-" xml:"-"`
  1013. }
  1014. type metadataModifyHapgInput struct {
  1015. SDKShapeTraits bool `type:"structure"`
  1016. }
  1017. // String returns the string representation
  1018. func (s ModifyHapgInput) String() string {
  1019. return awsutil.Prettify(s)
  1020. }
  1021. // GoString returns the string representation
  1022. func (s ModifyHapgInput) GoString() string {
  1023. return s.String()
  1024. }
  1025. type ModifyHapgOutput struct {
  1026. // The ARN of the high-availability partition group.
  1027. HapgArn *string `type:"string"`
  1028. metadataModifyHapgOutput `json:"-" xml:"-"`
  1029. }
  1030. type metadataModifyHapgOutput struct {
  1031. SDKShapeTraits bool `type:"structure"`
  1032. }
  1033. // String returns the string representation
  1034. func (s ModifyHapgOutput) String() string {
  1035. return awsutil.Prettify(s)
  1036. }
  1037. // GoString returns the string representation
  1038. func (s ModifyHapgOutput) GoString() string {
  1039. return s.String()
  1040. }
  1041. // Contains the inputs for the ModifyHsm operation.
  1042. type ModifyHsmInput struct {
  1043. // The new IP address for the elastic network interface (ENI) attached to the
  1044. // HSM.
  1045. //
  1046. // If the HSM is moved to a different subnet, and an IP address is not specified,
  1047. // an IP address will be randomly chosen from the CIDR range of the new subnet.
  1048. EniIp *string `locationName:"EniIp" type:"string"`
  1049. // The new external ID.
  1050. ExternalId *string `locationName:"ExternalId" type:"string"`
  1051. // The ARN of the HSM to modify.
  1052. HsmArn *string `locationName:"HsmArn" type:"string" required:"true"`
  1053. // The new IAM role ARN.
  1054. IamRoleArn *string `locationName:"IamRoleArn" type:"string"`
  1055. // The new identifier of the subnet that the HSM is in. The new subnet must
  1056. // be in the same Availability Zone as the current subnet.
  1057. SubnetId *string `locationName:"SubnetId" type:"string"`
  1058. // The new IP address for the syslog monitoring server. The AWS CloudHSM service
  1059. // only supports one syslog monitoring server.
  1060. SyslogIp *string `locationName:"SyslogIp" type:"string"`
  1061. metadataModifyHsmInput `json:"-" xml:"-"`
  1062. }
  1063. type metadataModifyHsmInput struct {
  1064. SDKShapeTraits bool `locationName:"ModifyHsmRequest" type:"structure"`
  1065. }
  1066. // String returns the string representation
  1067. func (s ModifyHsmInput) String() string {
  1068. return awsutil.Prettify(s)
  1069. }
  1070. // GoString returns the string representation
  1071. func (s ModifyHsmInput) GoString() string {
  1072. return s.String()
  1073. }
  1074. // Contains the output of the ModifyHsm operation.
  1075. type ModifyHsmOutput struct {
  1076. // The ARN of the HSM.
  1077. HsmArn *string `type:"string"`
  1078. metadataModifyHsmOutput `json:"-" xml:"-"`
  1079. }
  1080. type metadataModifyHsmOutput struct {
  1081. SDKShapeTraits bool `type:"structure"`
  1082. }
  1083. // String returns the string representation
  1084. func (s ModifyHsmOutput) String() string {
  1085. return awsutil.Prettify(s)
  1086. }
  1087. // GoString returns the string representation
  1088. func (s ModifyHsmOutput) GoString() string {
  1089. return s.String()
  1090. }
  1091. type ModifyLunaClientInput struct {
  1092. // The new certificate for the client.
  1093. Certificate *string `type:"string" required:"true"`
  1094. // The ARN of the client.
  1095. ClientArn *string `type:"string" required:"true"`
  1096. metadataModifyLunaClientInput `json:"-" xml:"-"`
  1097. }
  1098. type metadataModifyLunaClientInput struct {
  1099. SDKShapeTraits bool `type:"structure"`
  1100. }
  1101. // String returns the string representation
  1102. func (s ModifyLunaClientInput) String() string {
  1103. return awsutil.Prettify(s)
  1104. }
  1105. // GoString returns the string representation
  1106. func (s ModifyLunaClientInput) GoString() string {
  1107. return s.String()
  1108. }
  1109. type ModifyLunaClientOutput struct {
  1110. // The ARN of the client.
  1111. ClientArn *string `type:"string"`
  1112. metadataModifyLunaClientOutput `json:"-" xml:"-"`
  1113. }
  1114. type metadataModifyLunaClientOutput struct {
  1115. SDKShapeTraits bool `type:"structure"`
  1116. }
  1117. // String returns the string representation
  1118. func (s ModifyLunaClientOutput) String() string {
  1119. return awsutil.Prettify(s)
  1120. }
  1121. // GoString returns the string representation
  1122. func (s ModifyLunaClientOutput) GoString() string {
  1123. return s.String()
  1124. }
  1125. const (
  1126. // @enum ClientVersion
  1127. ClientVersion51 = "5.1"
  1128. // @enum ClientVersion
  1129. ClientVersion53 = "5.3"
  1130. )
  1131. const (
  1132. // @enum CloudHsmObjectState
  1133. CloudHsmObjectStateReady = "READY"
  1134. // @enum CloudHsmObjectState
  1135. CloudHsmObjectStateUpdating = "UPDATING"
  1136. // @enum CloudHsmObjectState
  1137. CloudHsmObjectStateDegraded = "DEGRADED"
  1138. )
  1139. const (
  1140. // @enum HsmStatus
  1141. HsmStatusPending = "PENDING"
  1142. // @enum HsmStatus
  1143. HsmStatusRunning = "RUNNING"
  1144. // @enum HsmStatus
  1145. HsmStatusUpdating = "UPDATING"
  1146. // @enum HsmStatus
  1147. HsmStatusSuspended = "SUSPENDED"
  1148. // @enum HsmStatus
  1149. HsmStatusTerminating = "TERMINATING"
  1150. // @enum HsmStatus
  1151. HsmStatusTerminated = "TERMINATED"
  1152. // @enum HsmStatus
  1153. HsmStatusDegraded = "DEGRADED"
  1154. )
  1155. // Specifies the type of subscription for the HSM.
  1156. //
  1157. // PRODUCTION - The HSM is being used in a production environment. TRIAL
  1158. // - The HSM is being used in a product trial.
  1159. const (
  1160. // @enum SubscriptionType
  1161. SubscriptionTypeProduction = "PRODUCTION"
  1162. )