Copyright | (c) 2013-2021 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 |
Get information about a single parameter by specifying the parameter name.
To get information about more than one parameter at a time, use the GetParameters operation.
Synopsis
- data GetParameter = GetParameter' {
- withDecryption :: Maybe Bool
- name :: Text
- newGetParameter :: Text -> GetParameter
- getParameter_withDecryption :: Lens' GetParameter (Maybe Bool)
- getParameter_name :: Lens' GetParameter Text
- data GetParameterResponse = GetParameterResponse' {
- parameter :: Maybe Parameter
- httpStatus :: Int
- newGetParameterResponse :: Int -> GetParameterResponse
- getParameterResponse_parameter :: Lens' GetParameterResponse (Maybe Parameter)
- getParameterResponse_httpStatus :: Lens' GetParameterResponse Int
Creating a Request
data GetParameter Source #
See: newGetParameter
smart constructor.
GetParameter' | |
|
Instances
Create a value of GetParameter
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:withDecryption:GetParameter'
, getParameter_withDecryption
- Return decrypted values for secure string parameters. This flag is
ignored for String
and StringList
parameter types.
$sel:name:GetParameter'
, getParameter_name
- The name of the parameter you want to query.
To query by parameter label, use "Name": "name:label"
. To query by
parameter version, use "Name": "name:version"
.
Request Lenses
getParameter_withDecryption :: Lens' GetParameter (Maybe Bool) Source #
Return decrypted values for secure string parameters. This flag is
ignored for String
and StringList
parameter types.
getParameter_name :: Lens' GetParameter Text Source #
The name of the parameter you want to query.
To query by parameter label, use "Name": "name:label"
. To query by
parameter version, use "Name": "name:version"
.
Destructuring the Response
data GetParameterResponse Source #
See: newGetParameterResponse
smart constructor.
GetParameterResponse' | |
|
Instances
newGetParameterResponse Source #
Create a value of GetParameterResponse
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:parameter:GetParameterResponse'
, getParameterResponse_parameter
- Information about a parameter.
$sel:httpStatus:GetParameterResponse'
, getParameterResponse_httpStatus
- The response's http status code.
Response Lenses
getParameterResponse_parameter :: Lens' GetParameterResponse (Maybe Parameter) Source #
Information about a parameter.
getParameterResponse_httpStatus :: Lens' GetParameterResponse Int Source #
The response's http status code.