Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
The response is paginated. 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. To get the next page of results, run the request again and specify the string for the nextToken
parameter.
This operation returns paginated results.
Synopsis
- listDiscoveredResources :: ResourceType -> ListDiscoveredResources
- data ListDiscoveredResources
- ldrResourceIds :: Lens' ListDiscoveredResources [Text]
- ldrResourceName :: Lens' ListDiscoveredResources (Maybe Text)
- ldrIncludeDeletedResources :: Lens' ListDiscoveredResources (Maybe Bool)
- ldrNextToken :: Lens' ListDiscoveredResources (Maybe Text)
- ldrLimit :: Lens' ListDiscoveredResources (Maybe Natural)
- ldrResourceType :: Lens' ListDiscoveredResources ResourceType
- listDiscoveredResourcesResponse :: Int -> ListDiscoveredResourcesResponse
- data ListDiscoveredResourcesResponse
- ldrrsNextToken :: Lens' ListDiscoveredResourcesResponse (Maybe Text)
- ldrrsResourceIdentifiers :: Lens' ListDiscoveredResourcesResponse [ResourceIdentifier]
- ldrrsResponseStatus :: Lens' ListDiscoveredResourcesResponse Int
Creating a Request
listDiscoveredResources Source #
Creates a value of ListDiscoveredResources
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ldrResourceIds
- 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.ldrResourceName
- 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.ldrIncludeDeletedResources
- Specifies whether AWS Config includes deleted resources in the results. By default, deleted resources are not included.ldrNextToken
- ThenextToken
string returned on a previous page that you use to get the next page of results in a paginated response.ldrLimit
- The maximum number of resource identifiers returned on each page. The default is 100. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.ldrResourceType
- The type of resources that you want AWS Config to list in the response.
data ListDiscoveredResources Source #
See: listDiscoveredResources
smart constructor.
Instances
Request Lenses
ldrResourceIds :: Lens' ListDiscoveredResources [Text] Source #
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.
ldrResourceName :: Lens' ListDiscoveredResources (Maybe Text) Source #
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.
ldrIncludeDeletedResources :: Lens' ListDiscoveredResources (Maybe Bool) Source #
Specifies whether AWS Config includes deleted resources in the results. By default, deleted resources are not included.
ldrNextToken :: Lens' ListDiscoveredResources (Maybe Text) Source #
The nextToken
string returned on a previous page that you use to get the next page of results in a paginated response.
ldrLimit :: Lens' ListDiscoveredResources (Maybe Natural) Source #
The maximum number of resource identifiers returned on each page. The default is 100. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.
ldrResourceType :: Lens' ListDiscoveredResources ResourceType Source #
The type of resources that you want AWS Config to list in the response.
Destructuring the Response
listDiscoveredResourcesResponse Source #
Creates a value of ListDiscoveredResourcesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ldrrsNextToken
- The string that you use in a subsequent request to get the next page of results in a paginated response.ldrrsResourceIdentifiers
- The details that identify a resource that is discovered by AWS Config, including the resource type, ID, and (if available) the custom resource name.ldrrsResponseStatus
- -- | The response status code.
data ListDiscoveredResourcesResponse Source #
See: listDiscoveredResourcesResponse
smart constructor.
Instances
Response Lenses
ldrrsNextToken :: Lens' ListDiscoveredResourcesResponse (Maybe Text) Source #
The string that you use in a subsequent request to get the next page of results in a paginated response.
ldrrsResourceIdentifiers :: Lens' ListDiscoveredResourcesResponse [ResourceIdentifier] Source #
The details that identify a resource that is discovered by AWS Config, including the resource type, ID, and (if available) the custom resource name.
ldrrsResponseStatus :: Lens' ListDiscoveredResourcesResponse Int Source #
- - | The response status code.