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 |
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.
The response is paginated. By default, AWS Config returns a limit of 10 configuration items per 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
- getResourceConfigHistory :: ResourceType -> Text -> GetResourceConfigHistory
- data GetResourceConfigHistory
- grchChronologicalOrder :: Lens' GetResourceConfigHistory (Maybe ChronologicalOrder)
- grchNextToken :: Lens' GetResourceConfigHistory (Maybe Text)
- grchLimit :: Lens' GetResourceConfigHistory (Maybe Natural)
- grchLaterTime :: Lens' GetResourceConfigHistory (Maybe UTCTime)
- grchEarlierTime :: Lens' GetResourceConfigHistory (Maybe UTCTime)
- grchResourceType :: Lens' GetResourceConfigHistory ResourceType
- grchResourceId :: Lens' GetResourceConfigHistory Text
- getResourceConfigHistoryResponse :: Int -> GetResourceConfigHistoryResponse
- data GetResourceConfigHistoryResponse
- grchrsNextToken :: Lens' GetResourceConfigHistoryResponse (Maybe Text)
- grchrsConfigurationItems :: Lens' GetResourceConfigHistoryResponse [ConfigurationItem]
- grchrsResponseStatus :: Lens' GetResourceConfigHistoryResponse Int
Creating a Request
getResourceConfigHistory Source #
Creates a value of GetResourceConfigHistory
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
grchChronologicalOrder
- The chronological order for configuration items listed. By default, the results are listed in reverse chronological order.grchNextToken
- ThenextToken
string returned on a previous page that you use to get the next page of results in a paginated response.grchLimit
- The maximum number of configuration items returned on each page. The default is 10. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.grchLaterTime
- The time stamp that indicates a later time. If not specified, current time is taken.grchEarlierTime
- The time stamp that indicates an earlier time. If not specified, the action returns paginated results that contain configuration items that start when the first configuration item was recorded.grchResourceType
- The resource type.grchResourceId
- The ID of the resource (for example.,sg-xxxxxx
).
data GetResourceConfigHistory Source #
The input for the GetResourceConfigHistory
action.
See: getResourceConfigHistory
smart constructor.
Instances
Request Lenses
grchChronologicalOrder :: Lens' GetResourceConfigHistory (Maybe ChronologicalOrder) Source #
The chronological order for configuration items listed. By default, the results are listed in reverse chronological order.
grchNextToken :: Lens' GetResourceConfigHistory (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.
grchLimit :: Lens' GetResourceConfigHistory (Maybe Natural) Source #
The maximum number of configuration items returned on each page. The default is 10. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.
grchLaterTime :: Lens' GetResourceConfigHistory (Maybe UTCTime) Source #
The time stamp that indicates a later time. If not specified, current time is taken.
grchEarlierTime :: Lens' GetResourceConfigHistory (Maybe UTCTime) Source #
The time stamp that indicates an earlier time. If not specified, the action returns paginated results that contain configuration items that start when the first configuration item was recorded.
grchResourceType :: Lens' GetResourceConfigHistory ResourceType Source #
The resource type.
grchResourceId :: Lens' GetResourceConfigHistory Text Source #
The ID of the resource (for example., sg-xxxxxx
).
Destructuring the Response
getResourceConfigHistoryResponse Source #
Creates a value of GetResourceConfigHistoryResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
grchrsNextToken
- The string that you use in a subsequent request to get the next page of results in a paginated response.grchrsConfigurationItems
- A list that contains the configuration history of one or more resources.grchrsResponseStatus
- -- | The response status code.
data GetResourceConfigHistoryResponse Source #
The output for the GetResourceConfigHistory
action.
See: getResourceConfigHistoryResponse
smart constructor.
Instances
Response Lenses
grchrsNextToken :: Lens' GetResourceConfigHistoryResponse (Maybe Text) Source #
The string that you use in a subsequent request to get the next page of results in a paginated response.
grchrsConfigurationItems :: Lens' GetResourceConfigHistoryResponse [ConfigurationItem] Source #
A list that contains the configuration history of one or more resources.
grchrsResponseStatus :: Lens' GetResourceConfigHistoryResponse Int Source #
- - | The response status code.