Skip to content

Commit

Permalink
API Update for Aws::ConfigService
Browse files Browse the repository at this point in the history
Adds support for the `#list_discovered_resources` API.
  • Loading branch information
awood45 committed Aug 27, 2015
1 parent 4312362 commit 50060dd
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Unreleased Changes
------------------

* Feature - Aws::ConfigService - Adds support for the
`#list_discovered_resources` API.

2.1.16 (2015-08-25)
------------------

Expand Down
69 changes: 69 additions & 0 deletions aws-sdk-core/apis/config/2014-11-12/api-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,33 @@
}
]
},
"ListDiscoveredResources":{
"name":"ListDiscoveredResources",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"ListDiscoveredResourcesRequest"},
"output":{"shape":"ListDiscoveredResourcesResponse"},
"errors":[
{
"shape":"ValidationException",
"exception":true
},
{
"shape":"InvalidLimitException",
"exception":true
},
{
"shape":"InvalidNextTokenException",
"exception":true
},
{
"shape":"NoAvailableConfigurationRecorderException",
"exception":true
}
]
},
"PutConfigurationRecorder":{
"name":"PutConfigurationRecorder",
"http":{
Expand Down Expand Up @@ -249,6 +276,7 @@
"AccountId":{"type":"string"},
"AllSupported":{"type":"boolean"},
"AvailabilityZone":{"type":"string"},
"AwsRegion":{"type":"string"},
"Boolean":{"type":"boolean"},
"ChannelName":{
"type":"string",
Expand Down Expand Up @@ -294,6 +322,8 @@
"arn":{"shape":"ARN"},
"resourceType":{"shape":"ResourceType"},
"resourceId":{"shape":"ResourceId"},
"resourceName":{"shape":"ResourceName"},
"awsRegion":{"shape":"AwsRegion"},
"availabilityZone":{"shape":"AvailabilityZone"},
"resourceCreationTime":{"shape":"ResourceCreationTime"},
"tags":{"shape":"Tags"},
Expand Down Expand Up @@ -554,6 +584,25 @@
"min":0,
"max":100
},
"ListDiscoveredResourcesRequest":{
"type":"structure",
"required":["resourceType"],
"members":{
"resourceType":{"shape":"ResourceType"},
"resourceIds":{"shape":"ResourceIdList"},
"resourceName":{"shape":"ResourceName"},
"limit":{"shape":"Limit"},
"includeDeletedResources":{"shape":"Boolean"},
"nextToken":{"shape":"NextToken"}
}
},
"ListDiscoveredResourcesResponse":{
"type":"structure",
"members":{
"resourceIdentifiers":{"shape":"ResourceIdentifierList"},
"nextToken":{"shape":"NextToken"}
}
},
"MaxNumberOfConfigurationRecordersExceededException":{
"type":"structure",
"members":{
Expand Down Expand Up @@ -648,6 +697,7 @@
"members":{
"resourceType":{"shape":"ResourceType"},
"resourceId":{"shape":"ResourceId"},
"resourceName":{"shape":"ResourceName"},
"relationshipName":{"shape":"RelationshipName"}
}
},
Expand All @@ -657,7 +707,26 @@
},
"RelationshipName":{"type":"string"},
"ResourceCreationTime":{"type":"timestamp"},
"ResourceDeletionTime":{"type":"timestamp"},
"ResourceId":{"type":"string"},
"ResourceIdList":{
"type":"list",
"member":{"shape":"ResourceId"}
},
"ResourceIdentifier":{
"type":"structure",
"members":{
"resourceType":{"shape":"ResourceType"},
"resourceId":{"shape":"ResourceId"},
"resourceName":{"shape":"ResourceName"},
"resourceDeletionTime":{"shape":"ResourceDeletionTime"}
}
},
"ResourceIdentifierList":{
"type":"list",
"member":{"shape":"ResourceIdentifier"}
},
"ResourceName":{"type":"string"},
"ResourceNotDiscoveredException":{
"type":"structure",
"members":{
Expand Down
82 changes: 70 additions & 12 deletions aws-sdk-core/apis/config/2014-11-12/docs-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"DescribeConfigurationRecorders": "<p>Returns the name of one or more specified configuration recorders. If the recorder name is not specified, this action returns the names of all the configuration recorders associated with the account. </p> <note> <p>Currently, you can specify only one configuration recorder per account.</p> </note>",
"DescribeDeliveryChannelStatus": "<p>Returns the current status of the specified delivery channel. If a delivery channel is not specified, this action returns the current status of all delivery channels associated with the account. </p> <note>Currently, you can specify only one delivery channel per account.</note>",
"DescribeDeliveryChannels": "<p>Returns details about the specified delivery channel. If a delivery channel is not specified, this action returns the details of all delivery channels associated with the account. </p> <note> <p>Currently, you can specify only one delivery channel per account.</p></note>",
"GetResourceConfigHistory": "<p>Returns a list of configuration items for the specified resource. The list contains details about each state of the resource during the specified time interval. You can specify a <code>limit</code> on the number of results returned on the page. If a limit is specified, a <code>nextToken</code> is returned as part of the result that you can use to continue this request. </p> <note> <p>Each call to the API is limited to span a duration of seven days. It is likely that the number of records returned is smaller than the specified <code>limit</code>. In such cases, you can make another call, using the <code>nextToken</code> .</p> </note>",
"GetResourceConfigHistory": "<p>Returns a list of configuration items for the specified resource. The list contains details about each state of the resource during the specified time interval.</p> <p>The response is paginated, and by default, AWS Config returns a limit of 10 configuration items per page. You can customize this number with the <code>limit</code> parameter. The response includes a <code>nextToken</code> string, and to get the next page of results, run the request again and enter this string for the <code>nextToken</code> parameter.</p> <note> <p>Each call to the API is limited to span a duration of seven days. It is likely that the number of records returned is smaller than the specified <code>limit</code>. In such cases, you can make another call, using the <code>nextToken</code>.</p> </note>",
"ListDiscoveredResources": "<p>Accepts a resource type and returns a list of resource identifiers for the resources of that type. A resource identifier includes the resource type, ID, and (if available) the custom resource name. The results consist of resources that AWS Config has discovered, including those that AWS Config is not currently recording. You can narrow the results to include only resources that have specific resource IDs or a resource name.</p> <note>You can specify either resource IDs or a resource name but not both in the same request.</note> <p>The response is paginated, and by default AWS Config lists 100 resource identifiers on each page. You can customize this number with the <code>limit</code> parameter. The response includes a <code>nextToken</code> string, and to get the next page of results, run the request again and enter this string for the <code>nextToken</code> parameter.</p>",
"PutConfigurationRecorder": "<p>Creates a new configuration recorder to record the selected resource configurations. </p> <p>You can use this action to change the role <code>roleARN</code> and/or the <code>recordingGroup</code> of an existing recorder. To change the role, call the action on the existing configuration recorder and specify a role.</p> <note> <p>Currently, you can specify only one configuration recorder per account.</p> <p>If <code>ConfigurationRecorder</code> does not have the <b>recordingGroup</b> parameter specified, the default is to record all supported resource types.</p> </note>",
"PutDeliveryChannel": "<p>Creates a new delivery channel object to deliver the configuration information to an Amazon S3 bucket, and to an Amazon SNS topic. </p> <p>You can use this action to change the Amazon S3 bucket or an Amazon SNS topic of the existing delivery channel. To change the Amazon S3 bucket or an Amazon SNS topic, call this action and specify the changed values for the S3 bucket and the SNS topic. If you specify a different value for either the S3 bucket or the SNS topic, this action will keep the existing value for the parameter that is not changed. </p> <note> <p>Currently, you can specify only one delivery channel per account.</p> </note>",
"StartConfigurationRecorder": "<p>Starts recording configurations of the AWS resources you have selected to record in your AWS account.</p> <p>You must have created at least one delivery channel to successfully start the configuration recorder.</p>",
Expand Down Expand Up @@ -39,10 +40,17 @@
"ConfigurationItem$availabilityZone": "<p>The Availability Zone associated with the resource.</p>"
}
},
"AwsRegion": {
"base": null,
"refs": {
"ConfigurationItem$awsRegion": "<p>The region where the resource resides.</p>"
}
},
"Boolean": {
"base": null,
"refs": {
"ConfigurationRecorderStatus$recording": "<p>Specifies whether the recorder is currently recording or not.</p>"
"ConfigurationRecorderStatus$recording": "<p>Specifies whether the recorder is currently recording or not.</p>",
"ListDiscoveredResourcesRequest$includeDeletedResources": "<p>Specifies whether AWS Config includes deleted resources in the results. By default, deleted resources are not included.</p>"
}
},
"ChannelName": {
Expand Down Expand Up @@ -284,12 +292,12 @@
}
},
"InvalidLimitException": {
"base": "<p>You have reached the limit on the pagination.</p>",
"base": "<p>The specified limit is outside the allowable range.</p>",
"refs": {
}
},
"InvalidNextTokenException": {
"base": "<p>The specified nextToken for pagination is not valid.</p>",
"base": "<p>The specified next token is invalid. Specify the <code>nextToken</code> string that was returned in the previous response to get the next page of results.</p>",
"refs": {
}
},
Expand Down Expand Up @@ -332,7 +340,18 @@
"Limit": {
"base": null,
"refs": {
"GetResourceConfigHistoryRequest$limit": "<p>The maximum number of configuration items returned in each page. The default is 10. You cannot specify a limit greater than 100.</p>"
"GetResourceConfigHistoryRequest$limit": "<p>The maximum number of configuration items returned on each page. The default is 10. You cannot specify a limit greater than 100. If you specify 0, AWS Config uses the default.</p>",
"ListDiscoveredResourcesRequest$limit": "<p>The maximum number of resource identifiers returned on each page. The default is 100. You cannot specify a limit greater than 100. If you specify 0, AWS Config uses the default.</p>"
}
},
"ListDiscoveredResourcesRequest": {
"base": null,
"refs": {
}
},
"ListDiscoveredResourcesResponse": {
"base": null,
"refs": {
}
},
"MaxNumberOfConfigurationRecordersExceededException": {
Expand All @@ -354,12 +373,14 @@
"NextToken": {
"base": null,
"refs": {
"GetResourceConfigHistoryRequest$nextToken": "<p>An optional parameter used for pagination of the results. </p>",
"GetResourceConfigHistoryResponse$nextToken": "<p>A token used for pagination of results. </p>"
"GetResourceConfigHistoryRequest$nextToken": "<p>The <code>nextToken</code> string returned on a previous page that you use to get the next page of results in a paginated response.</p>",
"GetResourceConfigHistoryResponse$nextToken": "<p>The string that you use in a subsequent request to get the next page of results in a paginated response.</p>",
"ListDiscoveredResourcesRequest$nextToken": "<p>The <code>nextToken</code> string returned on a previous page that you use to get the next page of results in a paginated response.</p>",
"ListDiscoveredResourcesResponse$nextToken": "<p>The string that you use in a subsequent request to get the next page of results in a paginated response.</p>"
}
},
"NoAvailableConfigurationRecorderException": {
"base": "<p>There are no configuration recorders available to provide the role needed to describe your resources.</p>",
"base": "<p>There are no configuration recorders available to provide the role needed to describe your resources. Create a configuration recorder.</p>",
"refs": {
}
},
Expand Down Expand Up @@ -446,7 +467,7 @@
"RelationshipName": {
"base": null,
"refs": {
"Relationship$relationshipName": "<p>The name of the related resource.</p>"
"Relationship$relationshipName": "<p>The type of relationship with the related resource.</p>"
}
},
"ResourceCreationTime": {
Expand All @@ -455,12 +476,47 @@
"ConfigurationItem$resourceCreationTime": "<p>The time stamp when the resource was created. </p>"
}
},
"ResourceDeletionTime": {
"base": null,
"refs": {
"ResourceIdentifier$resourceDeletionTime": "<p>The time that the resource was deleted.</p>"
}
},
"ResourceId": {
"base": null,
"refs": {
"ConfigurationItem$resourceId": "<p>The ID of the resource (for example., <code>sg-xxxxxx</code>).</p>",
"GetResourceConfigHistoryRequest$resourceId": "<p>The ID of the resource (for example., <code>sg-xxxxxx</code>).</p>",
"Relationship$resourceId": "<p>The resource ID of the related resource (for example, <code>sg-xxxxxx</code>).</p>"
"Relationship$resourceId": "<p>The ID of the related resource (for example, <code>sg-xxxxxx</code>).</p>",
"ResourceIdList$member": null,
"ResourceIdentifier$resourceId": "<p>The ID of the resource (for example., <code>sg-xxxxxx</code>).</p>"
}
},
"ResourceIdList": {
"base": null,
"refs": {
"ListDiscoveredResourcesRequest$resourceIds": "<p>The IDs of only those resources that you want AWS Config to list in the response. If you do not specify this parameter, AWS Config lists all resources of the specified type that it has discovered.</p>"
}
},
"ResourceIdentifier": {
"base": "<p>The details that identify a resource that is discovered by AWS Config, including the resource type, ID, and (if available) the custom resource name.</p>",
"refs": {
"ResourceIdentifierList$member": null
}
},
"ResourceIdentifierList": {
"base": null,
"refs": {
"ListDiscoveredResourcesResponse$resourceIdentifiers": "<p>The details that identify a resource that is discovered by AWS Config, including the resource type, ID, and (if available) the custom resource name.</p>"
}
},
"ResourceName": {
"base": null,
"refs": {
"ConfigurationItem$resourceName": "<p>The custom name of the resource, if available.</p>",
"ListDiscoveredResourcesRequest$resourceName": "<p>The custom name of only those resources that you want AWS Config to list in the response. If you do not specify this parameter, AWS Config lists all resources of the specified type that it has discovered.</p>",
"Relationship$resourceName": "<p>The custom name of the related resource, if available.</p>",
"ResourceIdentifier$resourceName": "<p>The custom name of the resource (if available).</p>"
}
},
"ResourceNotDiscoveredException": {
Expand All @@ -473,14 +529,16 @@
"refs": {
"ConfigurationItem$resourceType": "<p>The type of AWS resource.</p>",
"GetResourceConfigHistoryRequest$resourceType": "<p>The resource type.</p>",
"ListDiscoveredResourcesRequest$resourceType": "<p>The type of resources that you want AWS Config to list in the response.</p>",
"Relationship$resourceType": "<p>The resource type of the related resource.</p>",
"ResourceIdentifier$resourceType": "<p>The type of resource.</p>",
"ResourceTypeList$member": null
}
},
"ResourceTypeList": {
"base": null,
"refs": {
"RecordingGroup$resourceTypes": "<p>A comma-separated list of strings representing valid AWS resource types (e.g., <code>AWS::EC2::Instance</code> or <code>AWS::CloudTrail::Trail</code>). <b>resourceTypes</b> is only valid if you have chosen not to select <b>allSupported</b>. For a list of valid <b>resourceTypes</b> values, see the <b>resourceType Value</b> column in the following topic: <a href=\"http://docs.aws.amazon.com/config/latest/developerguide/resource-config-reference.html#supported-resources\">Supported AWS Resource Types</a>.</p>"
"RecordingGroup$resourceTypes": "<p>A comma-separated list of strings representing valid AWS resource types (for example, <code>AWS::EC2::Instance</code> or <code>AWS::CloudTrail::Trail</code>). <b>resourceTypes</b> is only valid if you have chosen not to select <b>allSupported</b>. For a list of valid <b>resourceTypes</b> values, see the <b>resourceType Value</b> column in the following topic: <a href=\"http://docs.aws.amazon.com/config/latest/developerguide/resource-config-reference.html#supported-resources\">Supported AWS Resource Types</a>.</p>"
}
},
"StartConfigurationRecorderRequest": {
Expand All @@ -507,7 +565,7 @@
"DeliverConfigSnapshotResponse$configSnapshotId": "<p>The ID of the snapshot that is being created.</p>",
"DeliveryChannel$s3BucketName": "<p>The name of the Amazon S3 bucket used to store configuration history for the delivery channel.</p>",
"DeliveryChannel$s3KeyPrefix": "<p>The prefix for the specified Amazon S3 bucket.</p>",
"DeliveryChannel$snsTopicARN": "<p>The Amazon Resource Name (ARN) of the IAM role used for accessing the Amazon S3 bucket and the Amazon SNS topic.</p>",
"DeliveryChannel$snsTopicARN": "<p>The Amazon Resource Name (ARN) of the SNS topic that AWS Config delivers notifications to.</p>",
"DeliveryChannelStatus$name": "<p>The name of the delivery channel.</p>"
}
},
Expand Down

0 comments on commit 50060dd

Please sign in to comment.