amazonka-config-1.4.5: Amazon Config SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Config.ListDiscoveredResources

Contents

Description

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, 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.

Synopsis

Creating a Request

listDiscoveredResources #

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 - The nextToken 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 limit 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 #

See: listDiscoveredResources smart constructor.

Instances

Eq ListDiscoveredResources # 
Data ListDiscoveredResources # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListDiscoveredResources -> c ListDiscoveredResources #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListDiscoveredResources #

toConstr :: ListDiscoveredResources -> Constr #

dataTypeOf :: ListDiscoveredResources -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListDiscoveredResources) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListDiscoveredResources) #

gmapT :: (forall b. Data b => b -> b) -> ListDiscoveredResources -> ListDiscoveredResources #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListDiscoveredResources -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListDiscoveredResources -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListDiscoveredResources -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListDiscoveredResources -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListDiscoveredResources -> m ListDiscoveredResources #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListDiscoveredResources -> m ListDiscoveredResources #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListDiscoveredResources -> m ListDiscoveredResources #

Read ListDiscoveredResources # 
Show ListDiscoveredResources # 
Generic ListDiscoveredResources # 
Hashable ListDiscoveredResources # 
ToJSON ListDiscoveredResources # 
NFData ListDiscoveredResources # 

Methods

rnf :: ListDiscoveredResources -> () #

AWSRequest ListDiscoveredResources # 
ToQuery ListDiscoveredResources # 
ToPath ListDiscoveredResources # 
ToHeaders ListDiscoveredResources # 
type Rep ListDiscoveredResources # 
type Rep ListDiscoveredResources = D1 (MetaData "ListDiscoveredResources" "Network.AWS.Config.ListDiscoveredResources" "amazonka-config-1.4.5-6okYkGmQ3l6FTRqeDLduhb" False) (C1 (MetaCons "ListDiscoveredResources'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ldrResourceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_ldrResourceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ldrIncludeDeletedResources") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))) ((:*:) (S1 (MetaSel (Just Symbol "_ldrNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ldrLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_ldrResourceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ResourceType))))))
type Rs ListDiscoveredResources # 

Request Lenses

ldrResourceIds :: Lens' ListDiscoveredResources [Text] #

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) #

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) #

Specifies whether AWS Config includes deleted resources in the results. By default, deleted resources are not included.

ldrNextToken :: Lens' ListDiscoveredResources (Maybe Text) #

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) #

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.

ldrResourceType :: Lens' ListDiscoveredResources ResourceType #

The type of resources that you want AWS Config to list in the response.

Destructuring the Response

listDiscoveredResourcesResponse #

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 #

See: listDiscoveredResourcesResponse smart constructor.

Instances

Eq ListDiscoveredResourcesResponse # 
Data ListDiscoveredResourcesResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListDiscoveredResourcesResponse -> c ListDiscoveredResourcesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListDiscoveredResourcesResponse #

toConstr :: ListDiscoveredResourcesResponse -> Constr #

dataTypeOf :: ListDiscoveredResourcesResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListDiscoveredResourcesResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListDiscoveredResourcesResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListDiscoveredResourcesResponse -> ListDiscoveredResourcesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListDiscoveredResourcesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListDiscoveredResourcesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListDiscoveredResourcesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListDiscoveredResourcesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListDiscoveredResourcesResponse -> m ListDiscoveredResourcesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListDiscoveredResourcesResponse -> m ListDiscoveredResourcesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListDiscoveredResourcesResponse -> m ListDiscoveredResourcesResponse #

Read ListDiscoveredResourcesResponse # 
Show ListDiscoveredResourcesResponse # 
Generic ListDiscoveredResourcesResponse # 
NFData ListDiscoveredResourcesResponse # 
type Rep ListDiscoveredResourcesResponse # 
type Rep ListDiscoveredResourcesResponse = D1 (MetaData "ListDiscoveredResourcesResponse" "Network.AWS.Config.ListDiscoveredResources" "amazonka-config-1.4.5-6okYkGmQ3l6FTRqeDLduhb" False) (C1 (MetaCons "ListDiscoveredResourcesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ldrrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ldrrsResourceIdentifiers") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ResourceIdentifier]))) (S1 (MetaSel (Just Symbol "_ldrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

ldrrsNextToken :: Lens' ListDiscoveredResourcesResponse (Maybe Text) #

The string that you use in a subsequent request to get the next page of results in a paginated response.

ldrrsResourceIdentifiers :: Lens' ListDiscoveredResourcesResponse [ResourceIdentifier] #

The details that identify a resource that is discovered by AWS Config, including the resource type, ID, and (if available) the custom resource name.