api.go 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package ssm provides a client for Amazon Simple Systems Management Service.
  3. package ssm
  4. import (
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. )
  9. const opCreateAssociation = "CreateAssociation"
  10. // CreateAssociationRequest generates a request for the CreateAssociation operation.
  11. func (c *SSM) CreateAssociationRequest(input *CreateAssociationInput) (req *request.Request, output *CreateAssociationOutput) {
  12. op := &request.Operation{
  13. Name: opCreateAssociation,
  14. HTTPMethod: "POST",
  15. HTTPPath: "/",
  16. }
  17. if input == nil {
  18. input = &CreateAssociationInput{}
  19. }
  20. req = c.newRequest(op, input, output)
  21. output = &CreateAssociationOutput{}
  22. req.Data = output
  23. return
  24. }
  25. // Associates the specified configuration document with the specified instance.
  26. //
  27. // When you associate a configuration document with an instance, the configuration
  28. // agent on the instance processes the configuration document and configures
  29. // the instance as specified.
  30. //
  31. // If you associate a configuration document with an instance that already
  32. // has an associated configuration document, we replace the current configuration
  33. // document with the new configuration document.
  34. func (c *SSM) CreateAssociation(input *CreateAssociationInput) (*CreateAssociationOutput, error) {
  35. req, out := c.CreateAssociationRequest(input)
  36. err := req.Send()
  37. return out, err
  38. }
  39. const opCreateAssociationBatch = "CreateAssociationBatch"
  40. // CreateAssociationBatchRequest generates a request for the CreateAssociationBatch operation.
  41. func (c *SSM) CreateAssociationBatchRequest(input *CreateAssociationBatchInput) (req *request.Request, output *CreateAssociationBatchOutput) {
  42. op := &request.Operation{
  43. Name: opCreateAssociationBatch,
  44. HTTPMethod: "POST",
  45. HTTPPath: "/",
  46. }
  47. if input == nil {
  48. input = &CreateAssociationBatchInput{}
  49. }
  50. req = c.newRequest(op, input, output)
  51. output = &CreateAssociationBatchOutput{}
  52. req.Data = output
  53. return
  54. }
  55. // Associates the specified configuration documents with the specified instances.
  56. //
  57. // When you associate a configuration document with an instance, the configuration
  58. // agent on the instance processes the configuration document and configures
  59. // the instance as specified.
  60. //
  61. // If you associate a configuration document with an instance that already
  62. // has an associated configuration document, we replace the current configuration
  63. // document with the new configuration document.
  64. func (c *SSM) CreateAssociationBatch(input *CreateAssociationBatchInput) (*CreateAssociationBatchOutput, error) {
  65. req, out := c.CreateAssociationBatchRequest(input)
  66. err := req.Send()
  67. return out, err
  68. }
  69. const opCreateDocument = "CreateDocument"
  70. // CreateDocumentRequest generates a request for the CreateDocument operation.
  71. func (c *SSM) CreateDocumentRequest(input *CreateDocumentInput) (req *request.Request, output *CreateDocumentOutput) {
  72. op := &request.Operation{
  73. Name: opCreateDocument,
  74. HTTPMethod: "POST",
  75. HTTPPath: "/",
  76. }
  77. if input == nil {
  78. input = &CreateDocumentInput{}
  79. }
  80. req = c.newRequest(op, input, output)
  81. output = &CreateDocumentOutput{}
  82. req.Data = output
  83. return
  84. }
  85. // Creates a configuration document.
  86. //
  87. // After you create a configuration document, you can use CreateAssociation
  88. // to associate it with one or more running instances.
  89. func (c *SSM) CreateDocument(input *CreateDocumentInput) (*CreateDocumentOutput, error) {
  90. req, out := c.CreateDocumentRequest(input)
  91. err := req.Send()
  92. return out, err
  93. }
  94. const opDeleteAssociation = "DeleteAssociation"
  95. // DeleteAssociationRequest generates a request for the DeleteAssociation operation.
  96. func (c *SSM) DeleteAssociationRequest(input *DeleteAssociationInput) (req *request.Request, output *DeleteAssociationOutput) {
  97. op := &request.Operation{
  98. Name: opDeleteAssociation,
  99. HTTPMethod: "POST",
  100. HTTPPath: "/",
  101. }
  102. if input == nil {
  103. input = &DeleteAssociationInput{}
  104. }
  105. req = c.newRequest(op, input, output)
  106. output = &DeleteAssociationOutput{}
  107. req.Data = output
  108. return
  109. }
  110. // Disassociates the specified configuration document from the specified instance.
  111. //
  112. // When you disassociate a configuration document from an instance, it does
  113. // not change the configuration of the instance. To change the configuration
  114. // state of an instance after you disassociate a configuration document, you
  115. // must create a new configuration document with the desired configuration and
  116. // associate it with the instance.
  117. func (c *SSM) DeleteAssociation(input *DeleteAssociationInput) (*DeleteAssociationOutput, error) {
  118. req, out := c.DeleteAssociationRequest(input)
  119. err := req.Send()
  120. return out, err
  121. }
  122. const opDeleteDocument = "DeleteDocument"
  123. // DeleteDocumentRequest generates a request for the DeleteDocument operation.
  124. func (c *SSM) DeleteDocumentRequest(input *DeleteDocumentInput) (req *request.Request, output *DeleteDocumentOutput) {
  125. op := &request.Operation{
  126. Name: opDeleteDocument,
  127. HTTPMethod: "POST",
  128. HTTPPath: "/",
  129. }
  130. if input == nil {
  131. input = &DeleteDocumentInput{}
  132. }
  133. req = c.newRequest(op, input, output)
  134. output = &DeleteDocumentOutput{}
  135. req.Data = output
  136. return
  137. }
  138. // Deletes the specified configuration document.
  139. //
  140. // You must use DeleteAssociation to disassociate all instances that are associated
  141. // with the configuration document before you can delete it.
  142. func (c *SSM) DeleteDocument(input *DeleteDocumentInput) (*DeleteDocumentOutput, error) {
  143. req, out := c.DeleteDocumentRequest(input)
  144. err := req.Send()
  145. return out, err
  146. }
  147. const opDescribeAssociation = "DescribeAssociation"
  148. // DescribeAssociationRequest generates a request for the DescribeAssociation operation.
  149. func (c *SSM) DescribeAssociationRequest(input *DescribeAssociationInput) (req *request.Request, output *DescribeAssociationOutput) {
  150. op := &request.Operation{
  151. Name: opDescribeAssociation,
  152. HTTPMethod: "POST",
  153. HTTPPath: "/",
  154. }
  155. if input == nil {
  156. input = &DescribeAssociationInput{}
  157. }
  158. req = c.newRequest(op, input, output)
  159. output = &DescribeAssociationOutput{}
  160. req.Data = output
  161. return
  162. }
  163. // Describes the associations for the specified configuration document or instance.
  164. func (c *SSM) DescribeAssociation(input *DescribeAssociationInput) (*DescribeAssociationOutput, error) {
  165. req, out := c.DescribeAssociationRequest(input)
  166. err := req.Send()
  167. return out, err
  168. }
  169. const opDescribeDocument = "DescribeDocument"
  170. // DescribeDocumentRequest generates a request for the DescribeDocument operation.
  171. func (c *SSM) DescribeDocumentRequest(input *DescribeDocumentInput) (req *request.Request, output *DescribeDocumentOutput) {
  172. op := &request.Operation{
  173. Name: opDescribeDocument,
  174. HTTPMethod: "POST",
  175. HTTPPath: "/",
  176. }
  177. if input == nil {
  178. input = &DescribeDocumentInput{}
  179. }
  180. req = c.newRequest(op, input, output)
  181. output = &DescribeDocumentOutput{}
  182. req.Data = output
  183. return
  184. }
  185. // Describes the specified configuration document.
  186. func (c *SSM) DescribeDocument(input *DescribeDocumentInput) (*DescribeDocumentOutput, error) {
  187. req, out := c.DescribeDocumentRequest(input)
  188. err := req.Send()
  189. return out, err
  190. }
  191. const opGetDocument = "GetDocument"
  192. // GetDocumentRequest generates a request for the GetDocument operation.
  193. func (c *SSM) GetDocumentRequest(input *GetDocumentInput) (req *request.Request, output *GetDocumentOutput) {
  194. op := &request.Operation{
  195. Name: opGetDocument,
  196. HTTPMethod: "POST",
  197. HTTPPath: "/",
  198. }
  199. if input == nil {
  200. input = &GetDocumentInput{}
  201. }
  202. req = c.newRequest(op, input, output)
  203. output = &GetDocumentOutput{}
  204. req.Data = output
  205. return
  206. }
  207. // Gets the contents of the specified configuration document.
  208. func (c *SSM) GetDocument(input *GetDocumentInput) (*GetDocumentOutput, error) {
  209. req, out := c.GetDocumentRequest(input)
  210. err := req.Send()
  211. return out, err
  212. }
  213. const opListAssociations = "ListAssociations"
  214. // ListAssociationsRequest generates a request for the ListAssociations operation.
  215. func (c *SSM) ListAssociationsRequest(input *ListAssociationsInput) (req *request.Request, output *ListAssociationsOutput) {
  216. op := &request.Operation{
  217. Name: opListAssociations,
  218. HTTPMethod: "POST",
  219. HTTPPath: "/",
  220. }
  221. if input == nil {
  222. input = &ListAssociationsInput{}
  223. }
  224. req = c.newRequest(op, input, output)
  225. output = &ListAssociationsOutput{}
  226. req.Data = output
  227. return
  228. }
  229. // Lists the associations for the specified configuration document or instance.
  230. func (c *SSM) ListAssociations(input *ListAssociationsInput) (*ListAssociationsOutput, error) {
  231. req, out := c.ListAssociationsRequest(input)
  232. err := req.Send()
  233. return out, err
  234. }
  235. const opListDocuments = "ListDocuments"
  236. // ListDocumentsRequest generates a request for the ListDocuments operation.
  237. func (c *SSM) ListDocumentsRequest(input *ListDocumentsInput) (req *request.Request, output *ListDocumentsOutput) {
  238. op := &request.Operation{
  239. Name: opListDocuments,
  240. HTTPMethod: "POST",
  241. HTTPPath: "/",
  242. }
  243. if input == nil {
  244. input = &ListDocumentsInput{}
  245. }
  246. req = c.newRequest(op, input, output)
  247. output = &ListDocumentsOutput{}
  248. req.Data = output
  249. return
  250. }
  251. // Describes one or more of your configuration documents.
  252. func (c *SSM) ListDocuments(input *ListDocumentsInput) (*ListDocumentsOutput, error) {
  253. req, out := c.ListDocumentsRequest(input)
  254. err := req.Send()
  255. return out, err
  256. }
  257. const opUpdateAssociationStatus = "UpdateAssociationStatus"
  258. // UpdateAssociationStatusRequest generates a request for the UpdateAssociationStatus operation.
  259. func (c *SSM) UpdateAssociationStatusRequest(input *UpdateAssociationStatusInput) (req *request.Request, output *UpdateAssociationStatusOutput) {
  260. op := &request.Operation{
  261. Name: opUpdateAssociationStatus,
  262. HTTPMethod: "POST",
  263. HTTPPath: "/",
  264. }
  265. if input == nil {
  266. input = &UpdateAssociationStatusInput{}
  267. }
  268. req = c.newRequest(op, input, output)
  269. output = &UpdateAssociationStatusOutput{}
  270. req.Data = output
  271. return
  272. }
  273. // Updates the status of the configuration document associated with the specified
  274. // instance.
  275. func (c *SSM) UpdateAssociationStatus(input *UpdateAssociationStatusInput) (*UpdateAssociationStatusOutput, error) {
  276. req, out := c.UpdateAssociationStatusRequest(input)
  277. err := req.Send()
  278. return out, err
  279. }
  280. // Describes an association of a configuration document and an instance.
  281. type Association struct {
  282. // The ID of the instance.
  283. InstanceId *string `type:"string"`
  284. // The name of the configuration document.
  285. Name *string `type:"string"`
  286. metadataAssociation `json:"-" xml:"-"`
  287. }
  288. type metadataAssociation struct {
  289. SDKShapeTraits bool `type:"structure"`
  290. }
  291. // String returns the string representation
  292. func (s Association) String() string {
  293. return awsutil.Prettify(s)
  294. }
  295. // GoString returns the string representation
  296. func (s Association) GoString() string {
  297. return s.String()
  298. }
  299. // Describes an association.
  300. type AssociationDescription struct {
  301. // The date when the association was made.
  302. Date *time.Time `type:"timestamp" timestampFormat:"unix"`
  303. // The ID of the instance.
  304. InstanceId *string `type:"string"`
  305. // The name of the configuration document.
  306. Name *string `type:"string"`
  307. // The association status.
  308. Status *AssociationStatus `type:"structure"`
  309. metadataAssociationDescription `json:"-" xml:"-"`
  310. }
  311. type metadataAssociationDescription struct {
  312. SDKShapeTraits bool `type:"structure"`
  313. }
  314. // String returns the string representation
  315. func (s AssociationDescription) String() string {
  316. return awsutil.Prettify(s)
  317. }
  318. // GoString returns the string representation
  319. func (s AssociationDescription) GoString() string {
  320. return s.String()
  321. }
  322. // Describes a filter.
  323. type AssociationFilter struct {
  324. // The name of the filter.
  325. Key *string `locationName:"key" type:"string" required:"true" enum:"AssociationFilterKey"`
  326. // The filter value.
  327. Value *string `locationName:"value" type:"string" required:"true"`
  328. metadataAssociationFilter `json:"-" xml:"-"`
  329. }
  330. type metadataAssociationFilter struct {
  331. SDKShapeTraits bool `type:"structure"`
  332. }
  333. // String returns the string representation
  334. func (s AssociationFilter) String() string {
  335. return awsutil.Prettify(s)
  336. }
  337. // GoString returns the string representation
  338. func (s AssociationFilter) GoString() string {
  339. return s.String()
  340. }
  341. // Describes an association status.
  342. type AssociationStatus struct {
  343. // A user-defined string.
  344. AdditionalInfo *string `type:"string"`
  345. // The date when the status changed.
  346. Date *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
  347. // The reason for the status.
  348. Message *string `type:"string" required:"true"`
  349. // The status.
  350. Name *string `type:"string" required:"true" enum:"AssociationStatusName"`
  351. metadataAssociationStatus `json:"-" xml:"-"`
  352. }
  353. type metadataAssociationStatus struct {
  354. SDKShapeTraits bool `type:"structure"`
  355. }
  356. // String returns the string representation
  357. func (s AssociationStatus) String() string {
  358. return awsutil.Prettify(s)
  359. }
  360. // GoString returns the string representation
  361. func (s AssociationStatus) GoString() string {
  362. return s.String()
  363. }
  364. type CreateAssociationBatchInput struct {
  365. // One or more associations.
  366. Entries []*CreateAssociationBatchRequestEntry `locationNameList:"entries" type:"list" required:"true"`
  367. metadataCreateAssociationBatchInput `json:"-" xml:"-"`
  368. }
  369. type metadataCreateAssociationBatchInput struct {
  370. SDKShapeTraits bool `type:"structure"`
  371. }
  372. // String returns the string representation
  373. func (s CreateAssociationBatchInput) String() string {
  374. return awsutil.Prettify(s)
  375. }
  376. // GoString returns the string representation
  377. func (s CreateAssociationBatchInput) GoString() string {
  378. return s.String()
  379. }
  380. type CreateAssociationBatchOutput struct {
  381. // Information about the associations that failed.
  382. Failed []*FailedCreateAssociation `locationNameList:"FailedCreateAssociationEntry" type:"list"`
  383. // Information about the associations that succeeded.
  384. Successful []*AssociationDescription `locationNameList:"AssociationDescription" type:"list"`
  385. metadataCreateAssociationBatchOutput `json:"-" xml:"-"`
  386. }
  387. type metadataCreateAssociationBatchOutput struct {
  388. SDKShapeTraits bool `type:"structure"`
  389. }
  390. // String returns the string representation
  391. func (s CreateAssociationBatchOutput) String() string {
  392. return awsutil.Prettify(s)
  393. }
  394. // GoString returns the string representation
  395. func (s CreateAssociationBatchOutput) GoString() string {
  396. return s.String()
  397. }
  398. // Describes the association of a configuration document and an instance.
  399. type CreateAssociationBatchRequestEntry struct {
  400. // The ID of the instance.
  401. InstanceId *string `type:"string"`
  402. // The name of the configuration document.
  403. Name *string `type:"string"`
  404. metadataCreateAssociationBatchRequestEntry `json:"-" xml:"-"`
  405. }
  406. type metadataCreateAssociationBatchRequestEntry struct {
  407. SDKShapeTraits bool `type:"structure"`
  408. }
  409. // String returns the string representation
  410. func (s CreateAssociationBatchRequestEntry) String() string {
  411. return awsutil.Prettify(s)
  412. }
  413. // GoString returns the string representation
  414. func (s CreateAssociationBatchRequestEntry) GoString() string {
  415. return s.String()
  416. }
  417. type CreateAssociationInput struct {
  418. // The ID of the instance.
  419. InstanceId *string `type:"string" required:"true"`
  420. // The name of the configuration document.
  421. Name *string `type:"string" required:"true"`
  422. metadataCreateAssociationInput `json:"-" xml:"-"`
  423. }
  424. type metadataCreateAssociationInput struct {
  425. SDKShapeTraits bool `type:"structure"`
  426. }
  427. // String returns the string representation
  428. func (s CreateAssociationInput) String() string {
  429. return awsutil.Prettify(s)
  430. }
  431. // GoString returns the string representation
  432. func (s CreateAssociationInput) GoString() string {
  433. return s.String()
  434. }
  435. type CreateAssociationOutput struct {
  436. // Information about the association.
  437. AssociationDescription *AssociationDescription `type:"structure"`
  438. metadataCreateAssociationOutput `json:"-" xml:"-"`
  439. }
  440. type metadataCreateAssociationOutput struct {
  441. SDKShapeTraits bool `type:"structure"`
  442. }
  443. // String returns the string representation
  444. func (s CreateAssociationOutput) String() string {
  445. return awsutil.Prettify(s)
  446. }
  447. // GoString returns the string representation
  448. func (s CreateAssociationOutput) GoString() string {
  449. return s.String()
  450. }
  451. type CreateDocumentInput struct {
  452. // A valid JSON file. For more information about the contents of this file,
  453. // see Configuration Document (http://docs.aws.amazon.com/ssm/latest/APIReference/aws-ssm-document.html).
  454. Content *string `type:"string" required:"true"`
  455. // A name for the configuration document.
  456. Name *string `type:"string" required:"true"`
  457. metadataCreateDocumentInput `json:"-" xml:"-"`
  458. }
  459. type metadataCreateDocumentInput struct {
  460. SDKShapeTraits bool `type:"structure"`
  461. }
  462. // String returns the string representation
  463. func (s CreateDocumentInput) String() string {
  464. return awsutil.Prettify(s)
  465. }
  466. // GoString returns the string representation
  467. func (s CreateDocumentInput) GoString() string {
  468. return s.String()
  469. }
  470. type CreateDocumentOutput struct {
  471. // Information about the configuration document.
  472. DocumentDescription *DocumentDescription `type:"structure"`
  473. metadataCreateDocumentOutput `json:"-" xml:"-"`
  474. }
  475. type metadataCreateDocumentOutput struct {
  476. SDKShapeTraits bool `type:"structure"`
  477. }
  478. // String returns the string representation
  479. func (s CreateDocumentOutput) String() string {
  480. return awsutil.Prettify(s)
  481. }
  482. // GoString returns the string representation
  483. func (s CreateDocumentOutput) GoString() string {
  484. return s.String()
  485. }
  486. type DeleteAssociationInput struct {
  487. // The ID of the instance.
  488. InstanceId *string `type:"string" required:"true"`
  489. // The name of the configuration document.
  490. Name *string `type:"string" required:"true"`
  491. metadataDeleteAssociationInput `json:"-" xml:"-"`
  492. }
  493. type metadataDeleteAssociationInput struct {
  494. SDKShapeTraits bool `type:"structure"`
  495. }
  496. // String returns the string representation
  497. func (s DeleteAssociationInput) String() string {
  498. return awsutil.Prettify(s)
  499. }
  500. // GoString returns the string representation
  501. func (s DeleteAssociationInput) GoString() string {
  502. return s.String()
  503. }
  504. type DeleteAssociationOutput struct {
  505. metadataDeleteAssociationOutput `json:"-" xml:"-"`
  506. }
  507. type metadataDeleteAssociationOutput struct {
  508. SDKShapeTraits bool `type:"structure"`
  509. }
  510. // String returns the string representation
  511. func (s DeleteAssociationOutput) String() string {
  512. return awsutil.Prettify(s)
  513. }
  514. // GoString returns the string representation
  515. func (s DeleteAssociationOutput) GoString() string {
  516. return s.String()
  517. }
  518. type DeleteDocumentInput struct {
  519. // The name of the configuration document.
  520. Name *string `type:"string" required:"true"`
  521. metadataDeleteDocumentInput `json:"-" xml:"-"`
  522. }
  523. type metadataDeleteDocumentInput struct {
  524. SDKShapeTraits bool `type:"structure"`
  525. }
  526. // String returns the string representation
  527. func (s DeleteDocumentInput) String() string {
  528. return awsutil.Prettify(s)
  529. }
  530. // GoString returns the string representation
  531. func (s DeleteDocumentInput) GoString() string {
  532. return s.String()
  533. }
  534. type DeleteDocumentOutput struct {
  535. metadataDeleteDocumentOutput `json:"-" xml:"-"`
  536. }
  537. type metadataDeleteDocumentOutput struct {
  538. SDKShapeTraits bool `type:"structure"`
  539. }
  540. // String returns the string representation
  541. func (s DeleteDocumentOutput) String() string {
  542. return awsutil.Prettify(s)
  543. }
  544. // GoString returns the string representation
  545. func (s DeleteDocumentOutput) GoString() string {
  546. return s.String()
  547. }
  548. type DescribeAssociationInput struct {
  549. // The ID of the instance.
  550. InstanceId *string `type:"string" required:"true"`
  551. // The name of the configuration document.
  552. Name *string `type:"string" required:"true"`
  553. metadataDescribeAssociationInput `json:"-" xml:"-"`
  554. }
  555. type metadataDescribeAssociationInput struct {
  556. SDKShapeTraits bool `type:"structure"`
  557. }
  558. // String returns the string representation
  559. func (s DescribeAssociationInput) String() string {
  560. return awsutil.Prettify(s)
  561. }
  562. // GoString returns the string representation
  563. func (s DescribeAssociationInput) GoString() string {
  564. return s.String()
  565. }
  566. type DescribeAssociationOutput struct {
  567. // Information about the association.
  568. AssociationDescription *AssociationDescription `type:"structure"`
  569. metadataDescribeAssociationOutput `json:"-" xml:"-"`
  570. }
  571. type metadataDescribeAssociationOutput struct {
  572. SDKShapeTraits bool `type:"structure"`
  573. }
  574. // String returns the string representation
  575. func (s DescribeAssociationOutput) String() string {
  576. return awsutil.Prettify(s)
  577. }
  578. // GoString returns the string representation
  579. func (s DescribeAssociationOutput) GoString() string {
  580. return s.String()
  581. }
  582. type DescribeDocumentInput struct {
  583. // The name of the configuration document.
  584. Name *string `type:"string" required:"true"`
  585. metadataDescribeDocumentInput `json:"-" xml:"-"`
  586. }
  587. type metadataDescribeDocumentInput struct {
  588. SDKShapeTraits bool `type:"structure"`
  589. }
  590. // String returns the string representation
  591. func (s DescribeDocumentInput) String() string {
  592. return awsutil.Prettify(s)
  593. }
  594. // GoString returns the string representation
  595. func (s DescribeDocumentInput) GoString() string {
  596. return s.String()
  597. }
  598. type DescribeDocumentOutput struct {
  599. // Information about the configuration document.
  600. Document *DocumentDescription `type:"structure"`
  601. metadataDescribeDocumentOutput `json:"-" xml:"-"`
  602. }
  603. type metadataDescribeDocumentOutput struct {
  604. SDKShapeTraits bool `type:"structure"`
  605. }
  606. // String returns the string representation
  607. func (s DescribeDocumentOutput) String() string {
  608. return awsutil.Prettify(s)
  609. }
  610. // GoString returns the string representation
  611. func (s DescribeDocumentOutput) GoString() string {
  612. return s.String()
  613. }
  614. // Describes a configuration document.
  615. type DocumentDescription struct {
  616. // The date when the configuration document was created.
  617. CreatedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  618. // The name of the configuration document.
  619. Name *string `type:"string"`
  620. // The SHA1 hash of the document, which you can use for verification purposes.
  621. Sha1 *string `type:"string"`
  622. // The status of the configuration document.
  623. Status *string `type:"string" enum:"DocumentStatus"`
  624. metadataDocumentDescription `json:"-" xml:"-"`
  625. }
  626. type metadataDocumentDescription struct {
  627. SDKShapeTraits bool `type:"structure"`
  628. }
  629. // String returns the string representation
  630. func (s DocumentDescription) String() string {
  631. return awsutil.Prettify(s)
  632. }
  633. // GoString returns the string representation
  634. func (s DocumentDescription) GoString() string {
  635. return s.String()
  636. }
  637. // Describes a filter.
  638. type DocumentFilter struct {
  639. // The name of the filter.
  640. Key *string `locationName:"key" type:"string" required:"true" enum:"DocumentFilterKey"`
  641. // The value of the filter.
  642. Value *string `locationName:"value" type:"string" required:"true"`
  643. metadataDocumentFilter `json:"-" xml:"-"`
  644. }
  645. type metadataDocumentFilter struct {
  646. SDKShapeTraits bool `type:"structure"`
  647. }
  648. // String returns the string representation
  649. func (s DocumentFilter) String() string {
  650. return awsutil.Prettify(s)
  651. }
  652. // GoString returns the string representation
  653. func (s DocumentFilter) GoString() string {
  654. return s.String()
  655. }
  656. // Describes the name of a configuration document.
  657. type DocumentIdentifier struct {
  658. // The name of the configuration document.
  659. Name *string `type:"string"`
  660. metadataDocumentIdentifier `json:"-" xml:"-"`
  661. }
  662. type metadataDocumentIdentifier struct {
  663. SDKShapeTraits bool `type:"structure"`
  664. }
  665. // String returns the string representation
  666. func (s DocumentIdentifier) String() string {
  667. return awsutil.Prettify(s)
  668. }
  669. // GoString returns the string representation
  670. func (s DocumentIdentifier) GoString() string {
  671. return s.String()
  672. }
  673. // Describes a failed association.
  674. type FailedCreateAssociation struct {
  675. // The association.
  676. Entry *CreateAssociationBatchRequestEntry `type:"structure"`
  677. // The source of the failure.
  678. Fault *string `type:"string" enum:"Fault"`
  679. // A description of the failure.
  680. Message *string `type:"string"`
  681. metadataFailedCreateAssociation `json:"-" xml:"-"`
  682. }
  683. type metadataFailedCreateAssociation struct {
  684. SDKShapeTraits bool `type:"structure"`
  685. }
  686. // String returns the string representation
  687. func (s FailedCreateAssociation) String() string {
  688. return awsutil.Prettify(s)
  689. }
  690. // GoString returns the string representation
  691. func (s FailedCreateAssociation) GoString() string {
  692. return s.String()
  693. }
  694. type GetDocumentInput struct {
  695. // The name of the configuration document.
  696. Name *string `type:"string" required:"true"`
  697. metadataGetDocumentInput `json:"-" xml:"-"`
  698. }
  699. type metadataGetDocumentInput struct {
  700. SDKShapeTraits bool `type:"structure"`
  701. }
  702. // String returns the string representation
  703. func (s GetDocumentInput) String() string {
  704. return awsutil.Prettify(s)
  705. }
  706. // GoString returns the string representation
  707. func (s GetDocumentInput) GoString() string {
  708. return s.String()
  709. }
  710. type GetDocumentOutput struct {
  711. // The contents of the configuration document.
  712. Content *string `type:"string"`
  713. // The name of the configuration document.
  714. Name *string `type:"string"`
  715. metadataGetDocumentOutput `json:"-" xml:"-"`
  716. }
  717. type metadataGetDocumentOutput struct {
  718. SDKShapeTraits bool `type:"structure"`
  719. }
  720. // String returns the string representation
  721. func (s GetDocumentOutput) String() string {
  722. return awsutil.Prettify(s)
  723. }
  724. // GoString returns the string representation
  725. func (s GetDocumentOutput) GoString() string {
  726. return s.String()
  727. }
  728. type ListAssociationsInput struct {
  729. // One or more filters. Use a filter to return a more specific list of results.
  730. AssociationFilterList []*AssociationFilter `locationNameList:"AssociationFilter" type:"list" required:"true"`
  731. // The maximum number of items to return for this call. The call also returns
  732. // a token that you can specify in a subsequent call to get the next set of
  733. // results.
  734. MaxResults *int64 `type:"integer"`
  735. // The token for the next set of items to return. (You received this token from
  736. // a previous call.)
  737. NextToken *string `type:"string"`
  738. metadataListAssociationsInput `json:"-" xml:"-"`
  739. }
  740. type metadataListAssociationsInput struct {
  741. SDKShapeTraits bool `type:"structure"`
  742. }
  743. // String returns the string representation
  744. func (s ListAssociationsInput) String() string {
  745. return awsutil.Prettify(s)
  746. }
  747. // GoString returns the string representation
  748. func (s ListAssociationsInput) GoString() string {
  749. return s.String()
  750. }
  751. type ListAssociationsOutput struct {
  752. // The associations.
  753. Associations []*Association `locationNameList:"Association" type:"list"`
  754. // The token to use when requesting the next set of items. If there are no additional
  755. // items to return, the string is empty.
  756. NextToken *string `type:"string"`
  757. metadataListAssociationsOutput `json:"-" xml:"-"`
  758. }
  759. type metadataListAssociationsOutput struct {
  760. SDKShapeTraits bool `type:"structure"`
  761. }
  762. // String returns the string representation
  763. func (s ListAssociationsOutput) String() string {
  764. return awsutil.Prettify(s)
  765. }
  766. // GoString returns the string representation
  767. func (s ListAssociationsOutput) GoString() string {
  768. return s.String()
  769. }
  770. type ListDocumentsInput struct {
  771. // One or more filters. Use a filter to return a more specific list of results.
  772. DocumentFilterList []*DocumentFilter `locationNameList:"DocumentFilter" type:"list"`
  773. // The maximum number of items to return for this call. The call also returns
  774. // a token that you can specify in a subsequent call to get the next set of
  775. // results.
  776. MaxResults *int64 `type:"integer"`
  777. // The token for the next set of items to return. (You received this token from
  778. // a previous call.)
  779. NextToken *string `type:"string"`
  780. metadataListDocumentsInput `json:"-" xml:"-"`
  781. }
  782. type metadataListDocumentsInput struct {
  783. SDKShapeTraits bool `type:"structure"`
  784. }
  785. // String returns the string representation
  786. func (s ListDocumentsInput) String() string {
  787. return awsutil.Prettify(s)
  788. }
  789. // GoString returns the string representation
  790. func (s ListDocumentsInput) GoString() string {
  791. return s.String()
  792. }
  793. type ListDocumentsOutput struct {
  794. // The names of the configuration documents.
  795. DocumentIdentifiers []*DocumentIdentifier `locationNameList:"DocumentIdentifier" type:"list"`
  796. // The token to use when requesting the next set of items. If there are no additional
  797. // items to return, the string is empty.
  798. NextToken *string `type:"string"`
  799. metadataListDocumentsOutput `json:"-" xml:"-"`
  800. }
  801. type metadataListDocumentsOutput struct {
  802. SDKShapeTraits bool `type:"structure"`
  803. }
  804. // String returns the string representation
  805. func (s ListDocumentsOutput) String() string {
  806. return awsutil.Prettify(s)
  807. }
  808. // GoString returns the string representation
  809. func (s ListDocumentsOutput) GoString() string {
  810. return s.String()
  811. }
  812. type UpdateAssociationStatusInput struct {
  813. // The association status.
  814. AssociationStatus *AssociationStatus `type:"structure" required:"true"`
  815. // The ID of the instance.
  816. InstanceId *string `type:"string" required:"true"`
  817. // The name of the configuration document.
  818. Name *string `type:"string" required:"true"`
  819. metadataUpdateAssociationStatusInput `json:"-" xml:"-"`
  820. }
  821. type metadataUpdateAssociationStatusInput struct {
  822. SDKShapeTraits bool `type:"structure"`
  823. }
  824. // String returns the string representation
  825. func (s UpdateAssociationStatusInput) String() string {
  826. return awsutil.Prettify(s)
  827. }
  828. // GoString returns the string representation
  829. func (s UpdateAssociationStatusInput) GoString() string {
  830. return s.String()
  831. }
  832. type UpdateAssociationStatusOutput struct {
  833. // Information about the association.
  834. AssociationDescription *AssociationDescription `type:"structure"`
  835. metadataUpdateAssociationStatusOutput `json:"-" xml:"-"`
  836. }
  837. type metadataUpdateAssociationStatusOutput struct {
  838. SDKShapeTraits bool `type:"structure"`
  839. }
  840. // String returns the string representation
  841. func (s UpdateAssociationStatusOutput) String() string {
  842. return awsutil.Prettify(s)
  843. }
  844. // GoString returns the string representation
  845. func (s UpdateAssociationStatusOutput) GoString() string {
  846. return s.String()
  847. }
  848. const (
  849. // @enum AssociationFilterKey
  850. AssociationFilterKeyInstanceId = "InstanceId"
  851. // @enum AssociationFilterKey
  852. AssociationFilterKeyName = "Name"
  853. )
  854. const (
  855. // @enum AssociationStatusName
  856. AssociationStatusNamePending = "Pending"
  857. // @enum AssociationStatusName
  858. AssociationStatusNameSuccess = "Success"
  859. // @enum AssociationStatusName
  860. AssociationStatusNameFailed = "Failed"
  861. )
  862. const (
  863. // @enum DocumentFilterKey
  864. DocumentFilterKeyName = "Name"
  865. )
  866. const (
  867. // @enum DocumentStatus
  868. DocumentStatusCreating = "Creating"
  869. // @enum DocumentStatus
  870. DocumentStatusActive = "Active"
  871. // @enum DocumentStatus
  872. DocumentStatusDeleting = "Deleting"
  873. )
  874. const (
  875. // @enum Fault
  876. FaultClient = "Client"
  877. // @enum Fault
  878. FaultServer = "Server"
  879. // @enum Fault
  880. FaultUnknown = "Unknown"
  881. )