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 |
Request programmatic credentials to use with Habanero SDK.
Synopsis
- data GetProgrammaticAccessCredentials = GetProgrammaticAccessCredentials' {}
- newGetProgrammaticAccessCredentials :: Text -> GetProgrammaticAccessCredentials
- getProgrammaticAccessCredentials_durationInMinutes :: Lens' GetProgrammaticAccessCredentials (Maybe Natural)
- getProgrammaticAccessCredentials_environmentId :: Lens' GetProgrammaticAccessCredentials Text
- data GetProgrammaticAccessCredentialsResponse = GetProgrammaticAccessCredentialsResponse' {}
- newGetProgrammaticAccessCredentialsResponse :: Int -> GetProgrammaticAccessCredentialsResponse
- getProgrammaticAccessCredentialsResponse_credentials :: Lens' GetProgrammaticAccessCredentialsResponse (Maybe Credentials)
- getProgrammaticAccessCredentialsResponse_durationInMinutes :: Lens' GetProgrammaticAccessCredentialsResponse (Maybe Natural)
- getProgrammaticAccessCredentialsResponse_httpStatus :: Lens' GetProgrammaticAccessCredentialsResponse Int
Creating a Request
data GetProgrammaticAccessCredentials Source #
See: newGetProgrammaticAccessCredentials
smart constructor.
GetProgrammaticAccessCredentials' | |
|
Instances
newGetProgrammaticAccessCredentials Source #
Create a value of GetProgrammaticAccessCredentials
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:durationInMinutes:GetProgrammaticAccessCredentials'
, getProgrammaticAccessCredentials_durationInMinutes
- The time duration in which the credentials remain valid.
$sel:environmentId:GetProgrammaticAccessCredentials'
, getProgrammaticAccessCredentials_environmentId
- The habanero environment identifier.
Request Lenses
getProgrammaticAccessCredentials_durationInMinutes :: Lens' GetProgrammaticAccessCredentials (Maybe Natural) Source #
The time duration in which the credentials remain valid.
getProgrammaticAccessCredentials_environmentId :: Lens' GetProgrammaticAccessCredentials Text Source #
The habanero environment identifier.
Destructuring the Response
data GetProgrammaticAccessCredentialsResponse Source #
See: newGetProgrammaticAccessCredentialsResponse
smart constructor.
GetProgrammaticAccessCredentialsResponse' | |
|
Instances
newGetProgrammaticAccessCredentialsResponse Source #
Create a value of GetProgrammaticAccessCredentialsResponse
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:credentials:GetProgrammaticAccessCredentialsResponse'
, getProgrammaticAccessCredentialsResponse_credentials
- Returns the programmatic credentials.
$sel:durationInMinutes:GetProgrammaticAccessCredentials'
, getProgrammaticAccessCredentialsResponse_durationInMinutes
- Returns the duration in which the credentials will remain valid.
$sel:httpStatus:GetProgrammaticAccessCredentialsResponse'
, getProgrammaticAccessCredentialsResponse_httpStatus
- The response's http status code.
Response Lenses
getProgrammaticAccessCredentialsResponse_credentials :: Lens' GetProgrammaticAccessCredentialsResponse (Maybe Credentials) Source #
Returns the programmatic credentials.
getProgrammaticAccessCredentialsResponse_durationInMinutes :: Lens' GetProgrammaticAccessCredentialsResponse (Maybe Natural) Source #
Returns the duration in which the credentials will remain valid.
getProgrammaticAccessCredentialsResponse_httpStatus :: Lens' GetProgrammaticAccessCredentialsResponse Int Source #
The response's http status code.