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 |
Returns the STS short-term credentials for a given role name that is assigned to the user.
Synopsis
- data GetRoleCredentials = GetRoleCredentials' {}
- newGetRoleCredentials :: Text -> Text -> Text -> GetRoleCredentials
- getRoleCredentials_roleName :: Lens' GetRoleCredentials Text
- getRoleCredentials_accountId :: Lens' GetRoleCredentials Text
- getRoleCredentials_accessToken :: Lens' GetRoleCredentials Text
- data GetRoleCredentialsResponse = GetRoleCredentialsResponse' {}
- newGetRoleCredentialsResponse :: Int -> GetRoleCredentialsResponse
- getRoleCredentialsResponse_roleCredentials :: Lens' GetRoleCredentialsResponse (Maybe RoleCredentials)
- getRoleCredentialsResponse_httpStatus :: Lens' GetRoleCredentialsResponse Int
Creating a Request
data GetRoleCredentials Source #
See: newGetRoleCredentials
smart constructor.
GetRoleCredentials' | |
|
Instances
newGetRoleCredentials Source #
:: Text | |
-> Text | |
-> Text | |
-> GetRoleCredentials |
Create a value of GetRoleCredentials
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:roleName:GetRoleCredentials'
, getRoleCredentials_roleName
- The friendly name of the role that is assigned to the user.
$sel:accountId:GetRoleCredentials'
, getRoleCredentials_accountId
- The identifier for the AWS account that is assigned to the user.
$sel:accessToken:GetRoleCredentials'
, getRoleCredentials_accessToken
- The token issued by the CreateToken
API call. For more information,
see
CreateToken
in the AWS SSO OIDC API Reference Guide.
Request Lenses
getRoleCredentials_roleName :: Lens' GetRoleCredentials Text Source #
The friendly name of the role that is assigned to the user.
getRoleCredentials_accountId :: Lens' GetRoleCredentials Text Source #
The identifier for the AWS account that is assigned to the user.
getRoleCredentials_accessToken :: Lens' GetRoleCredentials Text Source #
The token issued by the CreateToken
API call. For more information,
see
CreateToken
in the AWS SSO OIDC API Reference Guide.
Destructuring the Response
data GetRoleCredentialsResponse Source #
See: newGetRoleCredentialsResponse
smart constructor.
GetRoleCredentialsResponse' | |
|
Instances
newGetRoleCredentialsResponse Source #
Create a value of GetRoleCredentialsResponse
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:roleCredentials:GetRoleCredentialsResponse'
, getRoleCredentialsResponse_roleCredentials
- The credentials for the role that is assigned to the user.
$sel:httpStatus:GetRoleCredentialsResponse'
, getRoleCredentialsResponse_httpStatus
- The response's http status code.
Response Lenses
getRoleCredentialsResponse_roleCredentials :: Lens' GetRoleCredentialsResponse (Maybe RoleCredentials) Source #
The credentials for the role that is assigned to the user.
getRoleCredentialsResponse_httpStatus :: Lens' GetRoleCredentialsResponse Int Source #
The response's http status code.