| 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.SSO.GetRoleCredentials
Description
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 -> RoleCredentials -> GetRoleCredentialsResponse
- getRoleCredentialsResponse_httpStatus :: Lens' GetRoleCredentialsResponse Int
- getRoleCredentialsResponse_roleCredentials :: Lens' GetRoleCredentialsResponse RoleCredentials
Creating a Request
data GetRoleCredentials Source #
See: newGetRoleCredentials smart constructor.
Constructors
| GetRoleCredentials' | |
Fields
| |
Instances
newGetRoleCredentials Source #
Arguments
| :: 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:
GetRoleCredentials, getRoleCredentials_roleName - The friendly name of the role that is assigned to the user.
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 IAM Identity Center 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 IAM Identity Center OIDC API Reference Guide.
Destructuring the Response
data GetRoleCredentialsResponse Source #
See: newGetRoleCredentialsResponse smart constructor.
Constructors
| GetRoleCredentialsResponse' | |
Fields
| |
Instances
newGetRoleCredentialsResponse Source #
Arguments
| :: Int | |
| -> RoleCredentials | |
| -> GetRoleCredentialsResponse |
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:httpStatus:GetRoleCredentialsResponse', getRoleCredentialsResponse_httpStatus - The response's http status code.
$sel:roleCredentials:GetRoleCredentialsResponse', getRoleCredentialsResponse_roleCredentials - The credentials for the role that is assigned to the user.
Response Lenses
getRoleCredentialsResponse_httpStatus :: Lens' GetRoleCredentialsResponse Int Source #
The response's http status code.
getRoleCredentialsResponse_roleCredentials :: Lens' GetRoleCredentialsResponse RoleCredentials Source #
The credentials for the role that is assigned to the user.