api.go 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package configservice provides a client for AWS Config.
  3. package configservice
  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 opDeleteDeliveryChannel = "DeleteDeliveryChannel"
  10. // DeleteDeliveryChannelRequest generates a request for the DeleteDeliveryChannel operation.
  11. func (c *ConfigService) DeleteDeliveryChannelRequest(input *DeleteDeliveryChannelInput) (req *request.Request, output *DeleteDeliveryChannelOutput) {
  12. op := &request.Operation{
  13. Name: opDeleteDeliveryChannel,
  14. HTTPMethod: "POST",
  15. HTTPPath: "/",
  16. }
  17. if input == nil {
  18. input = &DeleteDeliveryChannelInput{}
  19. }
  20. req = c.newRequest(op, input, output)
  21. output = &DeleteDeliveryChannelOutput{}
  22. req.Data = output
  23. return
  24. }
  25. // Deletes the specified delivery channel.
  26. //
  27. // The delivery channel cannot be deleted if it is the only delivery channel
  28. // and the configuration recorder is still running. To delete the delivery channel,
  29. // stop the running configuration recorder using the StopConfigurationRecorder
  30. // action.
  31. func (c *ConfigService) DeleteDeliveryChannel(input *DeleteDeliveryChannelInput) (*DeleteDeliveryChannelOutput, error) {
  32. req, out := c.DeleteDeliveryChannelRequest(input)
  33. err := req.Send()
  34. return out, err
  35. }
  36. const opDeliverConfigSnapshot = "DeliverConfigSnapshot"
  37. // DeliverConfigSnapshotRequest generates a request for the DeliverConfigSnapshot operation.
  38. func (c *ConfigService) DeliverConfigSnapshotRequest(input *DeliverConfigSnapshotInput) (req *request.Request, output *DeliverConfigSnapshotOutput) {
  39. op := &request.Operation{
  40. Name: opDeliverConfigSnapshot,
  41. HTTPMethod: "POST",
  42. HTTPPath: "/",
  43. }
  44. if input == nil {
  45. input = &DeliverConfigSnapshotInput{}
  46. }
  47. req = c.newRequest(op, input, output)
  48. output = &DeliverConfigSnapshotOutput{}
  49. req.Data = output
  50. return
  51. }
  52. // Schedules delivery of a configuration snapshot to the Amazon S3 bucket in
  53. // the specified delivery channel. After the delivery has started, AWS Config
  54. // sends following notifications using an Amazon SNS topic that you have specified.
  55. //
  56. // Notification of starting the delivery. Notification of delivery completed,
  57. // if the delivery was successfully completed. Notification of delivery failure,
  58. // if the delivery failed to complete.
  59. func (c *ConfigService) DeliverConfigSnapshot(input *DeliverConfigSnapshotInput) (*DeliverConfigSnapshotOutput, error) {
  60. req, out := c.DeliverConfigSnapshotRequest(input)
  61. err := req.Send()
  62. return out, err
  63. }
  64. const opDescribeConfigurationRecorderStatus = "DescribeConfigurationRecorderStatus"
  65. // DescribeConfigurationRecorderStatusRequest generates a request for the DescribeConfigurationRecorderStatus operation.
  66. func (c *ConfigService) DescribeConfigurationRecorderStatusRequest(input *DescribeConfigurationRecorderStatusInput) (req *request.Request, output *DescribeConfigurationRecorderStatusOutput) {
  67. op := &request.Operation{
  68. Name: opDescribeConfigurationRecorderStatus,
  69. HTTPMethod: "POST",
  70. HTTPPath: "/",
  71. }
  72. if input == nil {
  73. input = &DescribeConfigurationRecorderStatusInput{}
  74. }
  75. req = c.newRequest(op, input, output)
  76. output = &DescribeConfigurationRecorderStatusOutput{}
  77. req.Data = output
  78. return
  79. }
  80. // Returns the current status of the specified configuration recorder. If a
  81. // configuration recorder is not specified, this action returns the status of
  82. // all configuration recorder associated with the account.
  83. //
  84. // Currently, you can specify only one configuration recorder per account.
  85. func (c *ConfigService) DescribeConfigurationRecorderStatus(input *DescribeConfigurationRecorderStatusInput) (*DescribeConfigurationRecorderStatusOutput, error) {
  86. req, out := c.DescribeConfigurationRecorderStatusRequest(input)
  87. err := req.Send()
  88. return out, err
  89. }
  90. const opDescribeConfigurationRecorders = "DescribeConfigurationRecorders"
  91. // DescribeConfigurationRecordersRequest generates a request for the DescribeConfigurationRecorders operation.
  92. func (c *ConfigService) DescribeConfigurationRecordersRequest(input *DescribeConfigurationRecordersInput) (req *request.Request, output *DescribeConfigurationRecordersOutput) {
  93. op := &request.Operation{
  94. Name: opDescribeConfigurationRecorders,
  95. HTTPMethod: "POST",
  96. HTTPPath: "/",
  97. }
  98. if input == nil {
  99. input = &DescribeConfigurationRecordersInput{}
  100. }
  101. req = c.newRequest(op, input, output)
  102. output = &DescribeConfigurationRecordersOutput{}
  103. req.Data = output
  104. return
  105. }
  106. // Returns the name of one or more specified configuration recorders. If the
  107. // recorder name is not specified, this action returns the names of all the
  108. // configuration recorders associated with the account.
  109. //
  110. // Currently, you can specify only one configuration recorder per account.
  111. func (c *ConfigService) DescribeConfigurationRecorders(input *DescribeConfigurationRecordersInput) (*DescribeConfigurationRecordersOutput, error) {
  112. req, out := c.DescribeConfigurationRecordersRequest(input)
  113. err := req.Send()
  114. return out, err
  115. }
  116. const opDescribeDeliveryChannelStatus = "DescribeDeliveryChannelStatus"
  117. // DescribeDeliveryChannelStatusRequest generates a request for the DescribeDeliveryChannelStatus operation.
  118. func (c *ConfigService) DescribeDeliveryChannelStatusRequest(input *DescribeDeliveryChannelStatusInput) (req *request.Request, output *DescribeDeliveryChannelStatusOutput) {
  119. op := &request.Operation{
  120. Name: opDescribeDeliveryChannelStatus,
  121. HTTPMethod: "POST",
  122. HTTPPath: "/",
  123. }
  124. if input == nil {
  125. input = &DescribeDeliveryChannelStatusInput{}
  126. }
  127. req = c.newRequest(op, input, output)
  128. output = &DescribeDeliveryChannelStatusOutput{}
  129. req.Data = output
  130. return
  131. }
  132. // Returns the current status of the specified delivery channel. If a delivery
  133. // channel is not specified, this action returns the current status of all delivery
  134. // channels associated with the account.
  135. //
  136. // Currently, you can specify only one delivery channel per account.
  137. func (c *ConfigService) DescribeDeliveryChannelStatus(input *DescribeDeliveryChannelStatusInput) (*DescribeDeliveryChannelStatusOutput, error) {
  138. req, out := c.DescribeDeliveryChannelStatusRequest(input)
  139. err := req.Send()
  140. return out, err
  141. }
  142. const opDescribeDeliveryChannels = "DescribeDeliveryChannels"
  143. // DescribeDeliveryChannelsRequest generates a request for the DescribeDeliveryChannels operation.
  144. func (c *ConfigService) DescribeDeliveryChannelsRequest(input *DescribeDeliveryChannelsInput) (req *request.Request, output *DescribeDeliveryChannelsOutput) {
  145. op := &request.Operation{
  146. Name: opDescribeDeliveryChannels,
  147. HTTPMethod: "POST",
  148. HTTPPath: "/",
  149. }
  150. if input == nil {
  151. input = &DescribeDeliveryChannelsInput{}
  152. }
  153. req = c.newRequest(op, input, output)
  154. output = &DescribeDeliveryChannelsOutput{}
  155. req.Data = output
  156. return
  157. }
  158. // Returns details about the specified delivery channel. If a delivery channel
  159. // is not specified, this action returns the details of all delivery channels
  160. // associated with the account.
  161. //
  162. // Currently, you can specify only one delivery channel per account.
  163. func (c *ConfigService) DescribeDeliveryChannels(input *DescribeDeliveryChannelsInput) (*DescribeDeliveryChannelsOutput, error) {
  164. req, out := c.DescribeDeliveryChannelsRequest(input)
  165. err := req.Send()
  166. return out, err
  167. }
  168. const opGetResourceConfigHistory = "GetResourceConfigHistory"
  169. // GetResourceConfigHistoryRequest generates a request for the GetResourceConfigHistory operation.
  170. func (c *ConfigService) GetResourceConfigHistoryRequest(input *GetResourceConfigHistoryInput) (req *request.Request, output *GetResourceConfigHistoryOutput) {
  171. op := &request.Operation{
  172. Name: opGetResourceConfigHistory,
  173. HTTPMethod: "POST",
  174. HTTPPath: "/",
  175. Paginator: &request.Paginator{
  176. InputTokens: []string{"nextToken"},
  177. OutputTokens: []string{"nextToken"},
  178. LimitToken: "limit",
  179. TruncationToken: "",
  180. },
  181. }
  182. if input == nil {
  183. input = &GetResourceConfigHistoryInput{}
  184. }
  185. req = c.newRequest(op, input, output)
  186. output = &GetResourceConfigHistoryOutput{}
  187. req.Data = output
  188. return
  189. }
  190. // Returns a list of configuration items for the specified resource. The list
  191. // contains details about each state of the resource during the specified time
  192. // interval.
  193. //
  194. // The response is paginated, and by default, AWS Config returns a limit of
  195. // 10 configuration items per page. You can customize this number with the limit
  196. // parameter. The response includes a nextToken string, and to get the next
  197. // page of results, run the request again and enter this string for the nextToken
  198. // parameter.
  199. //
  200. // Each call to the API is limited to span a duration of seven days. It is
  201. // likely that the number of records returned is smaller than the specified
  202. // limit. In such cases, you can make another call, using the nextToken.
  203. func (c *ConfigService) GetResourceConfigHistory(input *GetResourceConfigHistoryInput) (*GetResourceConfigHistoryOutput, error) {
  204. req, out := c.GetResourceConfigHistoryRequest(input)
  205. err := req.Send()
  206. return out, err
  207. }
  208. func (c *ConfigService) GetResourceConfigHistoryPages(input *GetResourceConfigHistoryInput, fn func(p *GetResourceConfigHistoryOutput, lastPage bool) (shouldContinue bool)) error {
  209. page, _ := c.GetResourceConfigHistoryRequest(input)
  210. return page.EachPage(func(p interface{}, lastPage bool) bool {
  211. return fn(p.(*GetResourceConfigHistoryOutput), lastPage)
  212. })
  213. }
  214. const opListDiscoveredResources = "ListDiscoveredResources"
  215. // ListDiscoveredResourcesRequest generates a request for the ListDiscoveredResources operation.
  216. func (c *ConfigService) ListDiscoveredResourcesRequest(input *ListDiscoveredResourcesInput) (req *request.Request, output *ListDiscoveredResourcesOutput) {
  217. op := &request.Operation{
  218. Name: opListDiscoveredResources,
  219. HTTPMethod: "POST",
  220. HTTPPath: "/",
  221. }
  222. if input == nil {
  223. input = &ListDiscoveredResourcesInput{}
  224. }
  225. req = c.newRequest(op, input, output)
  226. output = &ListDiscoveredResourcesOutput{}
  227. req.Data = output
  228. return
  229. }
  230. // Accepts a resource type and returns a list of resource identifiers for the
  231. // resources of that type. A resource identifier includes the resource type,
  232. // ID, and (if available) the custom resource name. The results consist of resources
  233. // that AWS Config has discovered, including those that AWS Config is not currently
  234. // recording. You can narrow the results to include only resources that have
  235. // specific resource IDs or a resource name.
  236. //
  237. // You can specify either resource IDs or a resource name but not both in the
  238. // same request. The response is paginated, and by default AWS Config lists
  239. // 100 resource identifiers on each page. You can customize this number with
  240. // the limit parameter. The response includes a nextToken string, and to get
  241. // the next page of results, run the request again and enter this string for
  242. // the nextToken parameter.
  243. func (c *ConfigService) ListDiscoveredResources(input *ListDiscoveredResourcesInput) (*ListDiscoveredResourcesOutput, error) {
  244. req, out := c.ListDiscoveredResourcesRequest(input)
  245. err := req.Send()
  246. return out, err
  247. }
  248. const opPutConfigurationRecorder = "PutConfigurationRecorder"
  249. // PutConfigurationRecorderRequest generates a request for the PutConfigurationRecorder operation.
  250. func (c *ConfigService) PutConfigurationRecorderRequest(input *PutConfigurationRecorderInput) (req *request.Request, output *PutConfigurationRecorderOutput) {
  251. op := &request.Operation{
  252. Name: opPutConfigurationRecorder,
  253. HTTPMethod: "POST",
  254. HTTPPath: "/",
  255. }
  256. if input == nil {
  257. input = &PutConfigurationRecorderInput{}
  258. }
  259. req = c.newRequest(op, input, output)
  260. output = &PutConfigurationRecorderOutput{}
  261. req.Data = output
  262. return
  263. }
  264. // Creates a new configuration recorder to record the selected resource configurations.
  265. //
  266. // You can use this action to change the role roleARN and/or the recordingGroup
  267. // of an existing recorder. To change the role, call the action on the existing
  268. // configuration recorder and specify a role.
  269. //
  270. // Currently, you can specify only one configuration recorder per account.
  271. //
  272. // If ConfigurationRecorder does not have the recordingGroup parameter specified,
  273. // the default is to record all supported resource types.
  274. func (c *ConfigService) PutConfigurationRecorder(input *PutConfigurationRecorderInput) (*PutConfigurationRecorderOutput, error) {
  275. req, out := c.PutConfigurationRecorderRequest(input)
  276. err := req.Send()
  277. return out, err
  278. }
  279. const opPutDeliveryChannel = "PutDeliveryChannel"
  280. // PutDeliveryChannelRequest generates a request for the PutDeliveryChannel operation.
  281. func (c *ConfigService) PutDeliveryChannelRequest(input *PutDeliveryChannelInput) (req *request.Request, output *PutDeliveryChannelOutput) {
  282. op := &request.Operation{
  283. Name: opPutDeliveryChannel,
  284. HTTPMethod: "POST",
  285. HTTPPath: "/",
  286. }
  287. if input == nil {
  288. input = &PutDeliveryChannelInput{}
  289. }
  290. req = c.newRequest(op, input, output)
  291. output = &PutDeliveryChannelOutput{}
  292. req.Data = output
  293. return
  294. }
  295. // Creates a new delivery channel object to deliver the configuration information
  296. // to an Amazon S3 bucket, and to an Amazon SNS topic.
  297. //
  298. // You can use this action to change the Amazon S3 bucket or an Amazon SNS
  299. // topic of the existing delivery channel. To change the Amazon S3 bucket or
  300. // an Amazon SNS topic, call this action and specify the changed values for
  301. // the S3 bucket and the SNS topic. If you specify a different value for either
  302. // the S3 bucket or the SNS topic, this action will keep the existing value
  303. // for the parameter that is not changed.
  304. //
  305. // Currently, you can specify only one delivery channel per account.
  306. func (c *ConfigService) PutDeliveryChannel(input *PutDeliveryChannelInput) (*PutDeliveryChannelOutput, error) {
  307. req, out := c.PutDeliveryChannelRequest(input)
  308. err := req.Send()
  309. return out, err
  310. }
  311. const opStartConfigurationRecorder = "StartConfigurationRecorder"
  312. // StartConfigurationRecorderRequest generates a request for the StartConfigurationRecorder operation.
  313. func (c *ConfigService) StartConfigurationRecorderRequest(input *StartConfigurationRecorderInput) (req *request.Request, output *StartConfigurationRecorderOutput) {
  314. op := &request.Operation{
  315. Name: opStartConfigurationRecorder,
  316. HTTPMethod: "POST",
  317. HTTPPath: "/",
  318. }
  319. if input == nil {
  320. input = &StartConfigurationRecorderInput{}
  321. }
  322. req = c.newRequest(op, input, output)
  323. output = &StartConfigurationRecorderOutput{}
  324. req.Data = output
  325. return
  326. }
  327. // Starts recording configurations of the AWS resources you have selected to
  328. // record in your AWS account.
  329. //
  330. // You must have created at least one delivery channel to successfully start
  331. // the configuration recorder.
  332. func (c *ConfigService) StartConfigurationRecorder(input *StartConfigurationRecorderInput) (*StartConfigurationRecorderOutput, error) {
  333. req, out := c.StartConfigurationRecorderRequest(input)
  334. err := req.Send()
  335. return out, err
  336. }
  337. const opStopConfigurationRecorder = "StopConfigurationRecorder"
  338. // StopConfigurationRecorderRequest generates a request for the StopConfigurationRecorder operation.
  339. func (c *ConfigService) StopConfigurationRecorderRequest(input *StopConfigurationRecorderInput) (req *request.Request, output *StopConfigurationRecorderOutput) {
  340. op := &request.Operation{
  341. Name: opStopConfigurationRecorder,
  342. HTTPMethod: "POST",
  343. HTTPPath: "/",
  344. }
  345. if input == nil {
  346. input = &StopConfigurationRecorderInput{}
  347. }
  348. req = c.newRequest(op, input, output)
  349. output = &StopConfigurationRecorderOutput{}
  350. req.Data = output
  351. return
  352. }
  353. // Stops recording configurations of the AWS resources you have selected to
  354. // record in your AWS account.
  355. func (c *ConfigService) StopConfigurationRecorder(input *StopConfigurationRecorderInput) (*StopConfigurationRecorderOutput, error) {
  356. req, out := c.StopConfigurationRecorderRequest(input)
  357. err := req.Send()
  358. return out, err
  359. }
  360. // A list that contains the status of the delivery of either the snapshot or
  361. // the configuration history to the specified Amazon S3 bucket.
  362. type ConfigExportDeliveryInfo struct {
  363. // The time of the last attempted delivery.
  364. LastAttemptTime *time.Time `locationName:"lastAttemptTime" type:"timestamp" timestampFormat:"unix"`
  365. // The error code from the last attempted delivery.
  366. LastErrorCode *string `locationName:"lastErrorCode" type:"string"`
  367. // The error message from the last attempted delivery.
  368. LastErrorMessage *string `locationName:"lastErrorMessage" type:"string"`
  369. // Status of the last attempted delivery.
  370. LastStatus *string `locationName:"lastStatus" type:"string" enum:"DeliveryStatus"`
  371. // The time of the last successful delivery.
  372. LastSuccessfulTime *time.Time `locationName:"lastSuccessfulTime" type:"timestamp" timestampFormat:"unix"`
  373. metadataConfigExportDeliveryInfo `json:"-" xml:"-"`
  374. }
  375. type metadataConfigExportDeliveryInfo struct {
  376. SDKShapeTraits bool `type:"structure"`
  377. }
  378. // String returns the string representation
  379. func (s ConfigExportDeliveryInfo) String() string {
  380. return awsutil.Prettify(s)
  381. }
  382. // GoString returns the string representation
  383. func (s ConfigExportDeliveryInfo) GoString() string {
  384. return s.String()
  385. }
  386. // A list that contains the status of the delivery of the configuration stream
  387. // notification to the Amazon SNS topic.
  388. type ConfigStreamDeliveryInfo struct {
  389. // The error code from the last attempted delivery.
  390. LastErrorCode *string `locationName:"lastErrorCode" type:"string"`
  391. // The error message from the last attempted delivery.
  392. LastErrorMessage *string `locationName:"lastErrorMessage" type:"string"`
  393. // Status of the last attempted delivery.
  394. //
  395. // Note Providing an SNS topic on a DeliveryChannel (http://docs.aws.amazon.com/config/latest/APIReference/API_DeliveryChannel.html)
  396. // for AWS Config is optional. If the SNS delivery is turned off, the last status
  397. // will be Not_Applicable.
  398. LastStatus *string `locationName:"lastStatus" type:"string" enum:"DeliveryStatus"`
  399. // The time from the last status change.
  400. LastStatusChangeTime *time.Time `locationName:"lastStatusChangeTime" type:"timestamp" timestampFormat:"unix"`
  401. metadataConfigStreamDeliveryInfo `json:"-" xml:"-"`
  402. }
  403. type metadataConfigStreamDeliveryInfo struct {
  404. SDKShapeTraits bool `type:"structure"`
  405. }
  406. // String returns the string representation
  407. func (s ConfigStreamDeliveryInfo) String() string {
  408. return awsutil.Prettify(s)
  409. }
  410. // GoString returns the string representation
  411. func (s ConfigStreamDeliveryInfo) GoString() string {
  412. return s.String()
  413. }
  414. // A list that contains detailed configurations of a specified resource.
  415. //
  416. // Currently, the list does not contain information about non-AWS components
  417. // (for example, applications on your Amazon EC2 instances).
  418. type ConfigurationItem struct {
  419. // The 12 digit AWS account ID associated with the resource.
  420. AccountId *string `locationName:"accountId" type:"string"`
  421. // The Amazon Resource Name (ARN) of the resource.
  422. Arn *string `locationName:"arn" type:"string"`
  423. // The Availability Zone associated with the resource.
  424. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  425. // The region where the resource resides.
  426. AwsRegion *string `locationName:"awsRegion" type:"string"`
  427. // The description of the resource configuration.
  428. Configuration *string `locationName:"configuration" type:"string"`
  429. // The time when the configuration recording was initiated.
  430. ConfigurationItemCaptureTime *time.Time `locationName:"configurationItemCaptureTime" type:"timestamp" timestampFormat:"unix"`
  431. // Unique MD5 hash that represents the configuration item's state.
  432. //
  433. // You can use MD5 hash to compare the states of two or more configuration
  434. // items that are associated with the same resource.
  435. ConfigurationItemMD5Hash *string `locationName:"configurationItemMD5Hash" type:"string"`
  436. // The configuration item status.
  437. ConfigurationItemStatus *string `locationName:"configurationItemStatus" type:"string" enum:"ConfigurationItemStatus"`
  438. // An identifier that indicates the ordering of the configuration items of a
  439. // resource.
  440. ConfigurationStateId *string `locationName:"configurationStateId" type:"string"`
  441. // A list of CloudTrail event IDs.
  442. //
  443. // A populated field indicates that the current configuration was initiated
  444. // by the events recorded in the CloudTrail log. For more information about
  445. // CloudTrail, see What is AWS CloudTrail? (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html).
  446. //
  447. // An empty field indicates that the current configuration was not initiated
  448. // by any event.
  449. RelatedEvents []*string `locationName:"relatedEvents" type:"list"`
  450. // A list of related AWS resources.
  451. Relationships []*Relationship `locationName:"relationships" type:"list"`
  452. // The time stamp when the resource was created.
  453. ResourceCreationTime *time.Time `locationName:"resourceCreationTime" type:"timestamp" timestampFormat:"unix"`
  454. // The ID of the resource (for example., sg-xxxxxx).
  455. ResourceId *string `locationName:"resourceId" type:"string"`
  456. // The custom name of the resource, if available.
  457. ResourceName *string `locationName:"resourceName" type:"string"`
  458. // The type of AWS resource.
  459. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  460. // A mapping of key value tags associated with the resource.
  461. Tags map[string]*string `locationName:"tags" type:"map"`
  462. // The version number of the resource configuration.
  463. Version *string `locationName:"version" type:"string"`
  464. metadataConfigurationItem `json:"-" xml:"-"`
  465. }
  466. type metadataConfigurationItem struct {
  467. SDKShapeTraits bool `type:"structure"`
  468. }
  469. // String returns the string representation
  470. func (s ConfigurationItem) String() string {
  471. return awsutil.Prettify(s)
  472. }
  473. // GoString returns the string representation
  474. func (s ConfigurationItem) GoString() string {
  475. return s.String()
  476. }
  477. // An object that represents the recording of configuration changes of an AWS
  478. // resource.
  479. type ConfigurationRecorder struct {
  480. // The name of the recorder. By default, AWS Config automatically assigns the
  481. // name "default" when creating the configuration recorder. You cannot change
  482. // the assigned name.
  483. Name *string `locationName:"name" type:"string"`
  484. // The recording group specifies either to record configurations for all supported
  485. // resources or to provide a list of resource types to record. The list of resource
  486. // types must be a subset of supported resource types.
  487. RecordingGroup *RecordingGroup `locationName:"recordingGroup" type:"structure"`
  488. // Amazon Resource Name (ARN) of the IAM role used to describe the AWS resources
  489. // associated with the account.
  490. RoleARN *string `locationName:"roleARN" type:"string"`
  491. metadataConfigurationRecorder `json:"-" xml:"-"`
  492. }
  493. type metadataConfigurationRecorder struct {
  494. SDKShapeTraits bool `type:"structure"`
  495. }
  496. // String returns the string representation
  497. func (s ConfigurationRecorder) String() string {
  498. return awsutil.Prettify(s)
  499. }
  500. // GoString returns the string representation
  501. func (s ConfigurationRecorder) GoString() string {
  502. return s.String()
  503. }
  504. // The current status of the configuration recorder.
  505. type ConfigurationRecorderStatus struct {
  506. // The error code indicating that the recording failed.
  507. LastErrorCode *string `locationName:"lastErrorCode" type:"string"`
  508. // The message indicating that the recording failed due to an error.
  509. LastErrorMessage *string `locationName:"lastErrorMessage" type:"string"`
  510. // The time the recorder was last started.
  511. LastStartTime *time.Time `locationName:"lastStartTime" type:"timestamp" timestampFormat:"unix"`
  512. // The last (previous) status of the recorder.
  513. LastStatus *string `locationName:"lastStatus" type:"string" enum:"RecorderStatus"`
  514. // The time when the status was last changed.
  515. LastStatusChangeTime *time.Time `locationName:"lastStatusChangeTime" type:"timestamp" timestampFormat:"unix"`
  516. // The time the recorder was last stopped.
  517. LastStopTime *time.Time `locationName:"lastStopTime" type:"timestamp" timestampFormat:"unix"`
  518. // The name of the configuration recorder.
  519. Name *string `locationName:"name" type:"string"`
  520. // Specifies whether the recorder is currently recording or not.
  521. Recording *bool `locationName:"recording" type:"boolean"`
  522. metadataConfigurationRecorderStatus `json:"-" xml:"-"`
  523. }
  524. type metadataConfigurationRecorderStatus struct {
  525. SDKShapeTraits bool `type:"structure"`
  526. }
  527. // String returns the string representation
  528. func (s ConfigurationRecorderStatus) String() string {
  529. return awsutil.Prettify(s)
  530. }
  531. // GoString returns the string representation
  532. func (s ConfigurationRecorderStatus) GoString() string {
  533. return s.String()
  534. }
  535. // The input for the DeleteDeliveryChannel action. The action accepts the following
  536. // data in JSON format.
  537. type DeleteDeliveryChannelInput struct {
  538. // The name of the delivery channel to delete.
  539. DeliveryChannelName *string `type:"string" required:"true"`
  540. metadataDeleteDeliveryChannelInput `json:"-" xml:"-"`
  541. }
  542. type metadataDeleteDeliveryChannelInput struct {
  543. SDKShapeTraits bool `type:"structure"`
  544. }
  545. // String returns the string representation
  546. func (s DeleteDeliveryChannelInput) String() string {
  547. return awsutil.Prettify(s)
  548. }
  549. // GoString returns the string representation
  550. func (s DeleteDeliveryChannelInput) GoString() string {
  551. return s.String()
  552. }
  553. type DeleteDeliveryChannelOutput struct {
  554. metadataDeleteDeliveryChannelOutput `json:"-" xml:"-"`
  555. }
  556. type metadataDeleteDeliveryChannelOutput struct {
  557. SDKShapeTraits bool `type:"structure"`
  558. }
  559. // String returns the string representation
  560. func (s DeleteDeliveryChannelOutput) String() string {
  561. return awsutil.Prettify(s)
  562. }
  563. // GoString returns the string representation
  564. func (s DeleteDeliveryChannelOutput) GoString() string {
  565. return s.String()
  566. }
  567. // The input for the DeliverConfigSnapshot action.
  568. type DeliverConfigSnapshotInput struct {
  569. // The name of the delivery channel through which the snapshot is delivered.
  570. DeliveryChannelName *string `locationName:"deliveryChannelName" type:"string" required:"true"`
  571. metadataDeliverConfigSnapshotInput `json:"-" xml:"-"`
  572. }
  573. type metadataDeliverConfigSnapshotInput struct {
  574. SDKShapeTraits bool `type:"structure"`
  575. }
  576. // String returns the string representation
  577. func (s DeliverConfigSnapshotInput) String() string {
  578. return awsutil.Prettify(s)
  579. }
  580. // GoString returns the string representation
  581. func (s DeliverConfigSnapshotInput) GoString() string {
  582. return s.String()
  583. }
  584. // The output for the DeliverConfigSnapshot action in JSON format.
  585. type DeliverConfigSnapshotOutput struct {
  586. // The ID of the snapshot that is being created.
  587. ConfigSnapshotId *string `locationName:"configSnapshotId" type:"string"`
  588. metadataDeliverConfigSnapshotOutput `json:"-" xml:"-"`
  589. }
  590. type metadataDeliverConfigSnapshotOutput struct {
  591. SDKShapeTraits bool `type:"structure"`
  592. }
  593. // String returns the string representation
  594. func (s DeliverConfigSnapshotOutput) String() string {
  595. return awsutil.Prettify(s)
  596. }
  597. // GoString returns the string representation
  598. func (s DeliverConfigSnapshotOutput) GoString() string {
  599. return s.String()
  600. }
  601. // A logical container used for storing the configuration changes of an AWS
  602. // resource.
  603. type DeliveryChannel struct {
  604. // The name of the delivery channel. By default, AWS Config automatically assigns
  605. // the name "default" when creating the delivery channel. You cannot change
  606. // the assigned name.
  607. Name *string `locationName:"name" type:"string"`
  608. // The name of the Amazon S3 bucket used to store configuration history for
  609. // the delivery channel.
  610. S3BucketName *string `locationName:"s3BucketName" type:"string"`
  611. // The prefix for the specified Amazon S3 bucket.
  612. S3KeyPrefix *string `locationName:"s3KeyPrefix" type:"string"`
  613. // The Amazon Resource Name (ARN) of the SNS topic that AWS Config delivers
  614. // notifications to.
  615. SnsTopicARN *string `locationName:"snsTopicARN" type:"string"`
  616. metadataDeliveryChannel `json:"-" xml:"-"`
  617. }
  618. type metadataDeliveryChannel struct {
  619. SDKShapeTraits bool `type:"structure"`
  620. }
  621. // String returns the string representation
  622. func (s DeliveryChannel) String() string {
  623. return awsutil.Prettify(s)
  624. }
  625. // GoString returns the string representation
  626. func (s DeliveryChannel) GoString() string {
  627. return s.String()
  628. }
  629. // The status of a specified delivery channel.
  630. //
  631. // Valid values: Success | Failure
  632. type DeliveryChannelStatus struct {
  633. // A list that contains the status of the delivery of the configuration history
  634. // to the specified Amazon S3 bucket.
  635. ConfigHistoryDeliveryInfo *ConfigExportDeliveryInfo `locationName:"configHistoryDeliveryInfo" type:"structure"`
  636. // A list containing the status of the delivery of the snapshot to the specified
  637. // Amazon S3 bucket.
  638. ConfigSnapshotDeliveryInfo *ConfigExportDeliveryInfo `locationName:"configSnapshotDeliveryInfo" type:"structure"`
  639. // A list containing the status of the delivery of the configuration stream
  640. // notification to the specified Amazon SNS topic.
  641. ConfigStreamDeliveryInfo *ConfigStreamDeliveryInfo `locationName:"configStreamDeliveryInfo" type:"structure"`
  642. // The name of the delivery channel.
  643. Name *string `locationName:"name" type:"string"`
  644. metadataDeliveryChannelStatus `json:"-" xml:"-"`
  645. }
  646. type metadataDeliveryChannelStatus struct {
  647. SDKShapeTraits bool `type:"structure"`
  648. }
  649. // String returns the string representation
  650. func (s DeliveryChannelStatus) String() string {
  651. return awsutil.Prettify(s)
  652. }
  653. // GoString returns the string representation
  654. func (s DeliveryChannelStatus) GoString() string {
  655. return s.String()
  656. }
  657. // The input for the DescribeConfigurationRecorderStatus action.
  658. type DescribeConfigurationRecorderStatusInput struct {
  659. // The name(s) of the configuration recorder. If the name is not specified,
  660. // the action returns the current status of all the configuration recorders
  661. // associated with the account.
  662. ConfigurationRecorderNames []*string `type:"list"`
  663. metadataDescribeConfigurationRecorderStatusInput `json:"-" xml:"-"`
  664. }
  665. type metadataDescribeConfigurationRecorderStatusInput struct {
  666. SDKShapeTraits bool `type:"structure"`
  667. }
  668. // String returns the string representation
  669. func (s DescribeConfigurationRecorderStatusInput) String() string {
  670. return awsutil.Prettify(s)
  671. }
  672. // GoString returns the string representation
  673. func (s DescribeConfigurationRecorderStatusInput) GoString() string {
  674. return s.String()
  675. }
  676. // The output for the DescribeConfigurationRecorderStatus action in JSON format.
  677. type DescribeConfigurationRecorderStatusOutput struct {
  678. // A list that contains status of the specified recorders.
  679. ConfigurationRecordersStatus []*ConfigurationRecorderStatus `type:"list"`
  680. metadataDescribeConfigurationRecorderStatusOutput `json:"-" xml:"-"`
  681. }
  682. type metadataDescribeConfigurationRecorderStatusOutput struct {
  683. SDKShapeTraits bool `type:"structure"`
  684. }
  685. // String returns the string representation
  686. func (s DescribeConfigurationRecorderStatusOutput) String() string {
  687. return awsutil.Prettify(s)
  688. }
  689. // GoString returns the string representation
  690. func (s DescribeConfigurationRecorderStatusOutput) GoString() string {
  691. return s.String()
  692. }
  693. // The input for the DescribeConfigurationRecorders action.
  694. type DescribeConfigurationRecordersInput struct {
  695. // A list of configuration recorder names.
  696. ConfigurationRecorderNames []*string `type:"list"`
  697. metadataDescribeConfigurationRecordersInput `json:"-" xml:"-"`
  698. }
  699. type metadataDescribeConfigurationRecordersInput struct {
  700. SDKShapeTraits bool `type:"structure"`
  701. }
  702. // String returns the string representation
  703. func (s DescribeConfigurationRecordersInput) String() string {
  704. return awsutil.Prettify(s)
  705. }
  706. // GoString returns the string representation
  707. func (s DescribeConfigurationRecordersInput) GoString() string {
  708. return s.String()
  709. }
  710. // The output for the DescribeConfigurationRecorders action.
  711. type DescribeConfigurationRecordersOutput struct {
  712. // A list that contains the descriptions of the specified configuration recorders.
  713. ConfigurationRecorders []*ConfigurationRecorder `type:"list"`
  714. metadataDescribeConfigurationRecordersOutput `json:"-" xml:"-"`
  715. }
  716. type metadataDescribeConfigurationRecordersOutput struct {
  717. SDKShapeTraits bool `type:"structure"`
  718. }
  719. // String returns the string representation
  720. func (s DescribeConfigurationRecordersOutput) String() string {
  721. return awsutil.Prettify(s)
  722. }
  723. // GoString returns the string representation
  724. func (s DescribeConfigurationRecordersOutput) GoString() string {
  725. return s.String()
  726. }
  727. // The input for the DeliveryChannelStatus action.
  728. type DescribeDeliveryChannelStatusInput struct {
  729. // A list of delivery channel names.
  730. DeliveryChannelNames []*string `type:"list"`
  731. metadataDescribeDeliveryChannelStatusInput `json:"-" xml:"-"`
  732. }
  733. type metadataDescribeDeliveryChannelStatusInput struct {
  734. SDKShapeTraits bool `type:"structure"`
  735. }
  736. // String returns the string representation
  737. func (s DescribeDeliveryChannelStatusInput) String() string {
  738. return awsutil.Prettify(s)
  739. }
  740. // GoString returns the string representation
  741. func (s DescribeDeliveryChannelStatusInput) GoString() string {
  742. return s.String()
  743. }
  744. // The output for the DescribeDeliveryChannelStatus action.
  745. type DescribeDeliveryChannelStatusOutput struct {
  746. // A list that contains the status of a specified delivery channel.
  747. DeliveryChannelsStatus []*DeliveryChannelStatus `type:"list"`
  748. metadataDescribeDeliveryChannelStatusOutput `json:"-" xml:"-"`
  749. }
  750. type metadataDescribeDeliveryChannelStatusOutput struct {
  751. SDKShapeTraits bool `type:"structure"`
  752. }
  753. // String returns the string representation
  754. func (s DescribeDeliveryChannelStatusOutput) String() string {
  755. return awsutil.Prettify(s)
  756. }
  757. // GoString returns the string representation
  758. func (s DescribeDeliveryChannelStatusOutput) GoString() string {
  759. return s.String()
  760. }
  761. // The input for the DescribeDeliveryChannels action.
  762. type DescribeDeliveryChannelsInput struct {
  763. // A list of delivery channel names.
  764. DeliveryChannelNames []*string `type:"list"`
  765. metadataDescribeDeliveryChannelsInput `json:"-" xml:"-"`
  766. }
  767. type metadataDescribeDeliveryChannelsInput struct {
  768. SDKShapeTraits bool `type:"structure"`
  769. }
  770. // String returns the string representation
  771. func (s DescribeDeliveryChannelsInput) String() string {
  772. return awsutil.Prettify(s)
  773. }
  774. // GoString returns the string representation
  775. func (s DescribeDeliveryChannelsInput) GoString() string {
  776. return s.String()
  777. }
  778. // The output for the DescribeDeliveryChannels action.
  779. type DescribeDeliveryChannelsOutput struct {
  780. // A list that contains the descriptions of the specified delivery channel.
  781. DeliveryChannels []*DeliveryChannel `type:"list"`
  782. metadataDescribeDeliveryChannelsOutput `json:"-" xml:"-"`
  783. }
  784. type metadataDescribeDeliveryChannelsOutput struct {
  785. SDKShapeTraits bool `type:"structure"`
  786. }
  787. // String returns the string representation
  788. func (s DescribeDeliveryChannelsOutput) String() string {
  789. return awsutil.Prettify(s)
  790. }
  791. // GoString returns the string representation
  792. func (s DescribeDeliveryChannelsOutput) GoString() string {
  793. return s.String()
  794. }
  795. // The input for the GetResourceConfigHistory action.
  796. type GetResourceConfigHistoryInput struct {
  797. // The chronological order for configuration items listed. By default the results
  798. // are listed in reverse chronological order.
  799. ChronologicalOrder *string `locationName:"chronologicalOrder" type:"string" enum:"ChronologicalOrder"`
  800. // The time stamp that indicates an earlier time. If not specified, the action
  801. // returns paginated results that contain configuration items that start from
  802. // when the first configuration item was recorded.
  803. EarlierTime *time.Time `locationName:"earlierTime" type:"timestamp" timestampFormat:"unix"`
  804. // The time stamp that indicates a later time. If not specified, current time
  805. // is taken.
  806. LaterTime *time.Time `locationName:"laterTime" type:"timestamp" timestampFormat:"unix"`
  807. // The maximum number of configuration items returned on each page. The default
  808. // is 10. You cannot specify a limit greater than 100. If you specify 0, AWS
  809. // Config uses the default.
  810. Limit *int64 `locationName:"limit" type:"integer"`
  811. // The nextToken string returned on a previous page that you use to get the
  812. // next page of results in a paginated response.
  813. NextToken *string `locationName:"nextToken" type:"string"`
  814. // The ID of the resource (for example., sg-xxxxxx).
  815. ResourceId *string `locationName:"resourceId" type:"string" required:"true"`
  816. // The resource type.
  817. ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"`
  818. metadataGetResourceConfigHistoryInput `json:"-" xml:"-"`
  819. }
  820. type metadataGetResourceConfigHistoryInput struct {
  821. SDKShapeTraits bool `type:"structure"`
  822. }
  823. // String returns the string representation
  824. func (s GetResourceConfigHistoryInput) String() string {
  825. return awsutil.Prettify(s)
  826. }
  827. // GoString returns the string representation
  828. func (s GetResourceConfigHistoryInput) GoString() string {
  829. return s.String()
  830. }
  831. // The output for the GetResourceConfigHistory action.
  832. type GetResourceConfigHistoryOutput struct {
  833. // A list that contains the configuration history of one or more resources.
  834. ConfigurationItems []*ConfigurationItem `locationName:"configurationItems" type:"list"`
  835. // The string that you use in a subsequent request to get the next page of results
  836. // in a paginated response.
  837. NextToken *string `locationName:"nextToken" type:"string"`
  838. metadataGetResourceConfigHistoryOutput `json:"-" xml:"-"`
  839. }
  840. type metadataGetResourceConfigHistoryOutput struct {
  841. SDKShapeTraits bool `type:"structure"`
  842. }
  843. // String returns the string representation
  844. func (s GetResourceConfigHistoryOutput) String() string {
  845. return awsutil.Prettify(s)
  846. }
  847. // GoString returns the string representation
  848. func (s GetResourceConfigHistoryOutput) GoString() string {
  849. return s.String()
  850. }
  851. type ListDiscoveredResourcesInput struct {
  852. // Specifies whether AWS Config includes deleted resources in the results. By
  853. // default, deleted resources are not included.
  854. IncludeDeletedResources *bool `locationName:"includeDeletedResources" type:"boolean"`
  855. // The maximum number of resource identifiers returned on each page. The default
  856. // is 100. You cannot specify a limit greater than 100. If you specify 0, AWS
  857. // Config uses the default.
  858. Limit *int64 `locationName:"limit" type:"integer"`
  859. // The nextToken string returned on a previous page that you use to get the
  860. // next page of results in a paginated response.
  861. NextToken *string `locationName:"nextToken" type:"string"`
  862. // The IDs of only those resources that you want AWS Config to list in the response.
  863. // If you do not specify this parameter, AWS Config lists all resources of the
  864. // specified type that it has discovered.
  865. ResourceIds []*string `locationName:"resourceIds" type:"list"`
  866. // The custom name of only those resources that you want AWS Config to list
  867. // in the response. If you do not specify this parameter, AWS Config lists all
  868. // resources of the specified type that it has discovered.
  869. ResourceName *string `locationName:"resourceName" type:"string"`
  870. // The type of resources that you want AWS Config to list in the response.
  871. ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"`
  872. metadataListDiscoveredResourcesInput `json:"-" xml:"-"`
  873. }
  874. type metadataListDiscoveredResourcesInput struct {
  875. SDKShapeTraits bool `type:"structure"`
  876. }
  877. // String returns the string representation
  878. func (s ListDiscoveredResourcesInput) String() string {
  879. return awsutil.Prettify(s)
  880. }
  881. // GoString returns the string representation
  882. func (s ListDiscoveredResourcesInput) GoString() string {
  883. return s.String()
  884. }
  885. type ListDiscoveredResourcesOutput struct {
  886. // The string that you use in a subsequent request to get the next page of results
  887. // in a paginated response.
  888. NextToken *string `locationName:"nextToken" type:"string"`
  889. // The details that identify a resource that is discovered by AWS Config, including
  890. // the resource type, ID, and (if available) the custom resource name.
  891. ResourceIdentifiers []*ResourceIdentifier `locationName:"resourceIdentifiers" type:"list"`
  892. metadataListDiscoveredResourcesOutput `json:"-" xml:"-"`
  893. }
  894. type metadataListDiscoveredResourcesOutput struct {
  895. SDKShapeTraits bool `type:"structure"`
  896. }
  897. // String returns the string representation
  898. func (s ListDiscoveredResourcesOutput) String() string {
  899. return awsutil.Prettify(s)
  900. }
  901. // GoString returns the string representation
  902. func (s ListDiscoveredResourcesOutput) GoString() string {
  903. return s.String()
  904. }
  905. // The input for the PutConfigurationRecorder action.
  906. type PutConfigurationRecorderInput struct {
  907. // The configuration recorder object that records each configuration change
  908. // made to the resources.
  909. ConfigurationRecorder *ConfigurationRecorder `type:"structure" required:"true"`
  910. metadataPutConfigurationRecorderInput `json:"-" xml:"-"`
  911. }
  912. type metadataPutConfigurationRecorderInput struct {
  913. SDKShapeTraits bool `type:"structure"`
  914. }
  915. // String returns the string representation
  916. func (s PutConfigurationRecorderInput) String() string {
  917. return awsutil.Prettify(s)
  918. }
  919. // GoString returns the string representation
  920. func (s PutConfigurationRecorderInput) GoString() string {
  921. return s.String()
  922. }
  923. type PutConfigurationRecorderOutput struct {
  924. metadataPutConfigurationRecorderOutput `json:"-" xml:"-"`
  925. }
  926. type metadataPutConfigurationRecorderOutput struct {
  927. SDKShapeTraits bool `type:"structure"`
  928. }
  929. // String returns the string representation
  930. func (s PutConfigurationRecorderOutput) String() string {
  931. return awsutil.Prettify(s)
  932. }
  933. // GoString returns the string representation
  934. func (s PutConfigurationRecorderOutput) GoString() string {
  935. return s.String()
  936. }
  937. // The input for the PutDeliveryChannel action.
  938. type PutDeliveryChannelInput struct {
  939. // The configuration delivery channel object that delivers the configuration
  940. // information to an Amazon S3 bucket, and to an Amazon SNS topic.
  941. DeliveryChannel *DeliveryChannel `type:"structure" required:"true"`
  942. metadataPutDeliveryChannelInput `json:"-" xml:"-"`
  943. }
  944. type metadataPutDeliveryChannelInput struct {
  945. SDKShapeTraits bool `type:"structure"`
  946. }
  947. // String returns the string representation
  948. func (s PutDeliveryChannelInput) String() string {
  949. return awsutil.Prettify(s)
  950. }
  951. // GoString returns the string representation
  952. func (s PutDeliveryChannelInput) GoString() string {
  953. return s.String()
  954. }
  955. type PutDeliveryChannelOutput struct {
  956. metadataPutDeliveryChannelOutput `json:"-" xml:"-"`
  957. }
  958. type metadataPutDeliveryChannelOutput struct {
  959. SDKShapeTraits bool `type:"structure"`
  960. }
  961. // String returns the string representation
  962. func (s PutDeliveryChannelOutput) String() string {
  963. return awsutil.Prettify(s)
  964. }
  965. // GoString returns the string representation
  966. func (s PutDeliveryChannelOutput) GoString() string {
  967. return s.String()
  968. }
  969. // The group of AWS resource types that AWS Config records when starting the
  970. // configuration recorder.
  971. //
  972. // recordingGroup can have one and only one parameter. Choose either allSupported
  973. // or resourceTypes.
  974. type RecordingGroup struct {
  975. // Records all supported resource types in the recording group. For a list of
  976. // supported resource types, see Supported resource types (http://docs.aws.amazon.com/config/latest/developerguide/resource-config-reference.html#supported-resources).
  977. // If you specify allSupported, you cannot enumerate a list of resourceTypes.
  978. AllSupported *bool `locationName:"allSupported" type:"boolean"`
  979. // A comma-separated list of strings representing valid AWS resource types (for
  980. // example, AWS::EC2::Instance or AWS::CloudTrail::Trail). resourceTypes is
  981. // only valid if you have chosen not to select allSupported. For a list of valid
  982. // resourceTypes values, see the resourceType Value column in the following
  983. // topic: Supported AWS Resource Types (http://docs.aws.amazon.com/config/latest/developerguide/resource-config-reference.html#supported-resources).
  984. ResourceTypes []*string `locationName:"resourceTypes" type:"list"`
  985. metadataRecordingGroup `json:"-" xml:"-"`
  986. }
  987. type metadataRecordingGroup struct {
  988. SDKShapeTraits bool `type:"structure"`
  989. }
  990. // String returns the string representation
  991. func (s RecordingGroup) String() string {
  992. return awsutil.Prettify(s)
  993. }
  994. // GoString returns the string representation
  995. func (s RecordingGroup) GoString() string {
  996. return s.String()
  997. }
  998. // The relationship of the related resource to the main resource.
  999. type Relationship struct {
  1000. // The type of relationship with the related resource.
  1001. RelationshipName *string `locationName:"relationshipName" type:"string"`
  1002. // The ID of the related resource (for example, sg-xxxxxx).
  1003. ResourceId *string `locationName:"resourceId" type:"string"`
  1004. // The custom name of the related resource, if available.
  1005. ResourceName *string `locationName:"resourceName" type:"string"`
  1006. // The resource type of the related resource.
  1007. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  1008. metadataRelationship `json:"-" xml:"-"`
  1009. }
  1010. type metadataRelationship struct {
  1011. SDKShapeTraits bool `type:"structure"`
  1012. }
  1013. // String returns the string representation
  1014. func (s Relationship) String() string {
  1015. return awsutil.Prettify(s)
  1016. }
  1017. // GoString returns the string representation
  1018. func (s Relationship) GoString() string {
  1019. return s.String()
  1020. }
  1021. // The details that identify a resource that is discovered by AWS Config, including
  1022. // the resource type, ID, and (if available) the custom resource name.
  1023. type ResourceIdentifier struct {
  1024. // The time that the resource was deleted.
  1025. ResourceDeletionTime *time.Time `locationName:"resourceDeletionTime" type:"timestamp" timestampFormat:"unix"`
  1026. // The ID of the resource (for example., sg-xxxxxx).
  1027. ResourceId *string `locationName:"resourceId" type:"string"`
  1028. // The custom name of the resource (if available).
  1029. ResourceName *string `locationName:"resourceName" type:"string"`
  1030. // The type of resource.
  1031. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  1032. metadataResourceIdentifier `json:"-" xml:"-"`
  1033. }
  1034. type metadataResourceIdentifier struct {
  1035. SDKShapeTraits bool `type:"structure"`
  1036. }
  1037. // String returns the string representation
  1038. func (s ResourceIdentifier) String() string {
  1039. return awsutil.Prettify(s)
  1040. }
  1041. // GoString returns the string representation
  1042. func (s ResourceIdentifier) GoString() string {
  1043. return s.String()
  1044. }
  1045. // The input for the StartConfigurationRecorder action.
  1046. type StartConfigurationRecorderInput struct {
  1047. // The name of the recorder object that records each configuration change made
  1048. // to the resources.
  1049. ConfigurationRecorderName *string `type:"string" required:"true"`
  1050. metadataStartConfigurationRecorderInput `json:"-" xml:"-"`
  1051. }
  1052. type metadataStartConfigurationRecorderInput struct {
  1053. SDKShapeTraits bool `type:"structure"`
  1054. }
  1055. // String returns the string representation
  1056. func (s StartConfigurationRecorderInput) String() string {
  1057. return awsutil.Prettify(s)
  1058. }
  1059. // GoString returns the string representation
  1060. func (s StartConfigurationRecorderInput) GoString() string {
  1061. return s.String()
  1062. }
  1063. type StartConfigurationRecorderOutput struct {
  1064. metadataStartConfigurationRecorderOutput `json:"-" xml:"-"`
  1065. }
  1066. type metadataStartConfigurationRecorderOutput struct {
  1067. SDKShapeTraits bool `type:"structure"`
  1068. }
  1069. // String returns the string representation
  1070. func (s StartConfigurationRecorderOutput) String() string {
  1071. return awsutil.Prettify(s)
  1072. }
  1073. // GoString returns the string representation
  1074. func (s StartConfigurationRecorderOutput) GoString() string {
  1075. return s.String()
  1076. }
  1077. // The input for the StopConfigurationRecorder action.
  1078. type StopConfigurationRecorderInput struct {
  1079. // The name of the recorder object that records each configuration change made
  1080. // to the resources.
  1081. ConfigurationRecorderName *string `type:"string" required:"true"`
  1082. metadataStopConfigurationRecorderInput `json:"-" xml:"-"`
  1083. }
  1084. type metadataStopConfigurationRecorderInput struct {
  1085. SDKShapeTraits bool `type:"structure"`
  1086. }
  1087. // String returns the string representation
  1088. func (s StopConfigurationRecorderInput) String() string {
  1089. return awsutil.Prettify(s)
  1090. }
  1091. // GoString returns the string representation
  1092. func (s StopConfigurationRecorderInput) GoString() string {
  1093. return s.String()
  1094. }
  1095. type StopConfigurationRecorderOutput struct {
  1096. metadataStopConfigurationRecorderOutput `json:"-" xml:"-"`
  1097. }
  1098. type metadataStopConfigurationRecorderOutput struct {
  1099. SDKShapeTraits bool `type:"structure"`
  1100. }
  1101. // String returns the string representation
  1102. func (s StopConfigurationRecorderOutput) String() string {
  1103. return awsutil.Prettify(s)
  1104. }
  1105. // GoString returns the string representation
  1106. func (s StopConfigurationRecorderOutput) GoString() string {
  1107. return s.String()
  1108. }
  1109. const (
  1110. // @enum ChronologicalOrder
  1111. ChronologicalOrderReverse = "Reverse"
  1112. // @enum ChronologicalOrder
  1113. ChronologicalOrderForward = "Forward"
  1114. )
  1115. const (
  1116. // @enum ConfigurationItemStatus
  1117. ConfigurationItemStatusOk = "Ok"
  1118. // @enum ConfigurationItemStatus
  1119. ConfigurationItemStatusFailed = "Failed"
  1120. // @enum ConfigurationItemStatus
  1121. ConfigurationItemStatusDiscovered = "Discovered"
  1122. // @enum ConfigurationItemStatus
  1123. ConfigurationItemStatusDeleted = "Deleted"
  1124. )
  1125. const (
  1126. // @enum DeliveryStatus
  1127. DeliveryStatusSuccess = "Success"
  1128. // @enum DeliveryStatus
  1129. DeliveryStatusFailure = "Failure"
  1130. // @enum DeliveryStatus
  1131. DeliveryStatusNotApplicable = "Not_Applicable"
  1132. )
  1133. const (
  1134. // @enum RecorderStatus
  1135. RecorderStatusPending = "Pending"
  1136. // @enum RecorderStatus
  1137. RecorderStatusSuccess = "Success"
  1138. // @enum RecorderStatus
  1139. RecorderStatusFailure = "Failure"
  1140. )
  1141. const (
  1142. // @enum ResourceType
  1143. ResourceTypeAwsEc2CustomerGateway = "AWS::EC2::CustomerGateway"
  1144. // @enum ResourceType
  1145. ResourceTypeAwsEc2Eip = "AWS::EC2::EIP"
  1146. // @enum ResourceType
  1147. ResourceTypeAwsEc2Instance = "AWS::EC2::Instance"
  1148. // @enum ResourceType
  1149. ResourceTypeAwsEc2InternetGateway = "AWS::EC2::InternetGateway"
  1150. // @enum ResourceType
  1151. ResourceTypeAwsEc2NetworkAcl = "AWS::EC2::NetworkAcl"
  1152. // @enum ResourceType
  1153. ResourceTypeAwsEc2NetworkInterface = "AWS::EC2::NetworkInterface"
  1154. // @enum ResourceType
  1155. ResourceTypeAwsEc2RouteTable = "AWS::EC2::RouteTable"
  1156. // @enum ResourceType
  1157. ResourceTypeAwsEc2SecurityGroup = "AWS::EC2::SecurityGroup"
  1158. // @enum ResourceType
  1159. ResourceTypeAwsEc2Subnet = "AWS::EC2::Subnet"
  1160. // @enum ResourceType
  1161. ResourceTypeAwsCloudTrailTrail = "AWS::CloudTrail::Trail"
  1162. // @enum ResourceType
  1163. ResourceTypeAwsEc2Volume = "AWS::EC2::Volume"
  1164. // @enum ResourceType
  1165. ResourceTypeAwsEc2Vpc = "AWS::EC2::VPC"
  1166. // @enum ResourceType
  1167. ResourceTypeAwsEc2Vpnconnection = "AWS::EC2::VPNConnection"
  1168. // @enum ResourceType
  1169. ResourceTypeAwsEc2Vpngateway = "AWS::EC2::VPNGateway"
  1170. )