public class ListDiscoveredResourcesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
ListDiscoveredResources operation
.
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.
NOTE:You can specify either resource IDs or a resource name but not both in the same request.
The response is paginated, and by default AWS Config lists 100
resource identifiers on each page. You can customize this number with
the limit
parameter. The response includes a
nextToken
string, and to get the next
page of results, run the request again and enter this string for the
nextToken
parameter.
NOOP
Constructor and Description |
---|
ListDiscoveredResourcesRequest() |
Modifier and Type | Method and Description |
---|---|
ListDiscoveredResourcesRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Boolean |
getIncludeDeletedResources()
Specifies whether AWS Config includes deleted resources in the
results.
|
Integer |
getLimit()
The maximum number of resource identifiers returned on each page.
|
String |
getNextToken()
The
nextToken string returned on a previous page that you
use to get the next page of results in a paginated response. |
List<String> |
getResourceIds()
The IDs of only those resources that you want AWS Config to list in
the response.
|
String |
getResourceName()
The custom name of only those resources that you want AWS Config to
list in the response.
|
String |
getResourceType()
The type of resources that you want AWS Config to list in the
response.
|
int |
hashCode() |
Boolean |
isIncludeDeletedResources()
Specifies whether AWS Config includes deleted resources in the
results.
|
void |
setIncludeDeletedResources(Boolean includeDeletedResources)
Specifies whether AWS Config includes deleted resources in the
results.
|
void |
setLimit(Integer limit)
The maximum number of resource identifiers returned on each page.
|
void |
setNextToken(String nextToken)
The
nextToken string returned on a previous page that you
use to get the next page of results in a paginated response. |
void |
setResourceIds(Collection<String> resourceIds)
The IDs of only those resources that you want AWS Config to list in
the response.
|
void |
setResourceName(String resourceName)
The custom name of only those resources that you want AWS Config to
list in the response.
|
void |
setResourceType(ResourceType resourceType)
The type of resources that you want AWS Config to list in the
response.
|
void |
setResourceType(String resourceType)
The type of resources that you want AWS Config to list in the
response.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListDiscoveredResourcesRequest |
withIncludeDeletedResources(Boolean includeDeletedResources)
Specifies whether AWS Config includes deleted resources in the
results.
|
ListDiscoveredResourcesRequest |
withLimit(Integer limit)
The maximum number of resource identifiers returned on each page.
|
ListDiscoveredResourcesRequest |
withNextToken(String nextToken)
The
nextToken string returned on a previous page that you
use to get the next page of results in a paginated response. |
ListDiscoveredResourcesRequest |
withResourceIds(Collection<String> resourceIds)
The IDs of only those resources that you want AWS Config to list in
the response.
|
ListDiscoveredResourcesRequest |
withResourceIds(String... resourceIds)
The IDs of only those resources that you want AWS Config to list in
the response.
|
ListDiscoveredResourcesRequest |
withResourceName(String resourceName)
The custom name of only those resources that you want AWS Config to
list in the response.
|
ListDiscoveredResourcesRequest |
withResourceType(ResourceType resourceType)
The type of resources that you want AWS Config to list in the
response.
|
ListDiscoveredResourcesRequest |
withResourceType(String resourceType)
The type of resources that you want AWS Config to list in the
response.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getResourceType()
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
ResourceType
public void setResourceType(String resourceType)
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
resourceType
- The type of resources that you want AWS Config to list in the
response.ResourceType
public ListDiscoveredResourcesRequest withResourceType(String resourceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
resourceType
- The type of resources that you want AWS Config to list in the
response.ResourceType
public void setResourceType(ResourceType resourceType)
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
resourceType
- The type of resources that you want AWS Config to list in the
response.ResourceType
public ListDiscoveredResourcesRequest withResourceType(ResourceType resourceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
resourceType
- The type of resources that you want AWS Config to list in the
response.ResourceType
public List<String> getResourceIds()
public void setResourceIds(Collection<String> resourceIds)
resourceIds
- 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.public ListDiscoveredResourcesRequest withResourceIds(String... resourceIds)
NOTE: This method appends the values to the existing list (if
any). Use setResourceIds(java.util.Collection)
or withResourceIds(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
resourceIds
- 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.public ListDiscoveredResourcesRequest withResourceIds(Collection<String> resourceIds)
Returns a reference to this object so that method calls can be chained together.
resourceIds
- 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.public String getResourceName()
public void setResourceName(String resourceName)
resourceName
- 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.public ListDiscoveredResourcesRequest withResourceName(String resourceName)
Returns a reference to this object so that method calls can be chained together.
resourceName
- 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.public Integer getLimit()
Constraints:
Range: 0 - 100
public void setLimit(Integer limit)
Constraints:
Range: 0 - 100
limit
- 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.public ListDiscoveredResourcesRequest withLimit(Integer limit)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 - 100
limit
- 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.public Boolean isIncludeDeletedResources()
public void setIncludeDeletedResources(Boolean includeDeletedResources)
includeDeletedResources
- Specifies whether AWS Config includes deleted resources in the
results. By default, deleted resources are not included.public ListDiscoveredResourcesRequest withIncludeDeletedResources(Boolean includeDeletedResources)
Returns a reference to this object so that method calls can be chained together.
includeDeletedResources
- Specifies whether AWS Config includes deleted resources in the
results. By default, deleted resources are not included.public Boolean getIncludeDeletedResources()
public String getNextToken()
nextToken
string returned on a previous page that you
use to get the next page of results in a paginated response.nextToken
string returned on a previous page that you
use to get the next page of results in a paginated response.public void setNextToken(String nextToken)
nextToken
string returned on a previous page that you
use to get the next page of results in a paginated response.nextToken
- The nextToken
string returned on a previous page that you
use to get the next page of results in a paginated response.public ListDiscoveredResourcesRequest withNextToken(String nextToken)
nextToken
string returned on a previous page that you
use to get the next page of results in a paginated response.
Returns a reference to this object so that method calls can be chained together.
nextToken
- The nextToken
string returned on a previous page that you
use to get the next page of results in a paginated response.public String toString()
toString
in class Object
Object.toString()
public ListDiscoveredResourcesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.