| 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 | None |
| 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:
roleName, getRoleCredentials_roleName - The friendly name of the role that is assigned to the user.
accountId, getRoleCredentials_accountId - The identifier for the AWS account that is assigned to the user.
accessToken, 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
| NFData GetRoleCredentialsResponse Source # | |||||
Defined in Amazonka.SSO.GetRoleCredentials Methods rnf :: GetRoleCredentialsResponse -> () # | |||||
| Generic GetRoleCredentialsResponse Source # | |||||
Defined in Amazonka.SSO.GetRoleCredentials Associated Types
Methods from :: GetRoleCredentialsResponse -> Rep GetRoleCredentialsResponse x # to :: Rep GetRoleCredentialsResponse x -> GetRoleCredentialsResponse # | |||||
| Show GetRoleCredentialsResponse Source # | |||||
Defined in Amazonka.SSO.GetRoleCredentials Methods showsPrec :: Int -> GetRoleCredentialsResponse -> ShowS # show :: GetRoleCredentialsResponse -> String # showList :: [GetRoleCredentialsResponse] -> ShowS # | |||||
| Eq GetRoleCredentialsResponse Source # | |||||
Defined in Amazonka.SSO.GetRoleCredentials Methods (==) :: GetRoleCredentialsResponse -> GetRoleCredentialsResponse -> Bool # (/=) :: GetRoleCredentialsResponse -> GetRoleCredentialsResponse -> Bool # | |||||
| type Rep GetRoleCredentialsResponse Source # | |||||
Defined in Amazonka.SSO.GetRoleCredentials type Rep GetRoleCredentialsResponse = D1 ('MetaData "GetRoleCredentialsResponse" "Amazonka.SSO.GetRoleCredentials" "amazonka-sso-2.0-DOouWRdcxDlFDrquCwcbWX" 'False) (C1 ('MetaCons "GetRoleCredentialsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "roleCredentials") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RoleCredentials))) | |||||
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:
httpStatus, getRoleCredentialsResponse_httpStatus - The response's http status code.
roleCredentials, 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.