| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.SSM.GetParameterHistory
Description
Retrieves the history of all changes to a parameter.
If you change the KMS key alias for the KMS key used to encrypt a
parameter, then you must also update the key alias the parameter uses to
reference KMS. Otherwise, GetParameterHistory retrieves whatever the
original key alias was referencing.
This operation returns paginated results.
Synopsis
- data GetParameterHistory = GetParameterHistory' {}
- newGetParameterHistory :: Text -> GetParameterHistory
- getParameterHistory_maxResults :: Lens' GetParameterHistory (Maybe Natural)
- getParameterHistory_nextToken :: Lens' GetParameterHistory (Maybe Text)
- getParameterHistory_withDecryption :: Lens' GetParameterHistory (Maybe Bool)
- getParameterHistory_name :: Lens' GetParameterHistory Text
- data GetParameterHistoryResponse = GetParameterHistoryResponse' {
- nextToken :: Maybe Text
- parameters :: Maybe [ParameterHistory]
- httpStatus :: Int
- newGetParameterHistoryResponse :: Int -> GetParameterHistoryResponse
- getParameterHistoryResponse_nextToken :: Lens' GetParameterHistoryResponse (Maybe Text)
- getParameterHistoryResponse_parameters :: Lens' GetParameterHistoryResponse (Maybe [ParameterHistory])
- getParameterHistoryResponse_httpStatus :: Lens' GetParameterHistoryResponse Int
Creating a Request
data GetParameterHistory Source #
See: newGetParameterHistory smart constructor.
Constructors
| GetParameterHistory' | |
Fields
| |
Instances
newGetParameterHistory Source #
Arguments
| :: Text | |
| -> GetParameterHistory |
Create a value of GetParameterHistory with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:maxResults:GetParameterHistory', getParameterHistory_maxResults - The maximum number of items to return for this call. The call also
returns a token that you can specify in a subsequent call to get the
next set of results.
GetParameterHistory, getParameterHistory_nextToken - The token for the next set of items to return. (You received this token
from a previous call.)
$sel:withDecryption:GetParameterHistory', getParameterHistory_withDecryption - Return decrypted values for secure string parameters. This flag is
ignored for String and StringList parameter types.
GetParameterHistory, getParameterHistory_name - The name of the parameter for which you want to review history.
Request Lenses
getParameterHistory_maxResults :: Lens' GetParameterHistory (Maybe Natural) Source #
The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
getParameterHistory_nextToken :: Lens' GetParameterHistory (Maybe Text) Source #
The token for the next set of items to return. (You received this token from a previous call.)
getParameterHistory_withDecryption :: Lens' GetParameterHistory (Maybe Bool) Source #
Return decrypted values for secure string parameters. This flag is
ignored for String and StringList parameter types.
getParameterHistory_name :: Lens' GetParameterHistory Text Source #
The name of the parameter for which you want to review history.
Destructuring the Response
data GetParameterHistoryResponse Source #
See: newGetParameterHistoryResponse smart constructor.
Constructors
| GetParameterHistoryResponse' | |
Fields
| |
Instances
newGetParameterHistoryResponse Source #
Create a value of GetParameterHistoryResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetParameterHistory, getParameterHistoryResponse_nextToken - The token to use when requesting the next set of items. If there are no
additional items to return, the string is empty.
GetParameterHistoryResponse, getParameterHistoryResponse_parameters - A list of parameters returned by the request.
$sel:httpStatus:GetParameterHistoryResponse', getParameterHistoryResponse_httpStatus - The response's http status code.
Response Lenses
getParameterHistoryResponse_nextToken :: Lens' GetParameterHistoryResponse (Maybe Text) Source #
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
getParameterHistoryResponse_parameters :: Lens' GetParameterHistoryResponse (Maybe [ParameterHistory]) Source #
A list of parameters returned by the request.
getParameterHistoryResponse_httpStatus :: Lens' GetParameterHistoryResponse Int Source #
The response's http status code.