| 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.GetParameter
Description
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' {
- httpStatus :: Int
- parameter :: Parameter
- newGetParameterResponse :: Int -> Parameter -> GetParameterResponse
- getParameterResponse_httpStatus :: Lens' GetParameterResponse Int
- getParameterResponse_parameter :: Lens' GetParameterResponse Parameter
Creating a Request
data GetParameter Source #
See: newGetParameter smart constructor.
Constructors
| GetParameter' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetParameter |
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.
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.
Constructors
| GetParameterResponse' | |
Fields
| |
Instances
newGetParameterResponse Source #
Arguments
| :: Int | |
| -> Parameter | |
| -> GetParameterResponse |
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:httpStatus:GetParameterResponse', getParameterResponse_httpStatus - The response's http status code.
$sel:parameter:GetParameterResponse', getParameterResponse_parameter - Information about a parameter.
Response Lenses
getParameterResponse_httpStatus :: Lens' GetParameterResponse Int Source #
The response's http status code.
getParameterResponse_parameter :: Lens' GetParameterResponse Parameter Source #
Information about a parameter.