amazonka-sso-2.0: Amazon Single Sign-On SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SSO.GetRoleCredentials

Description

Returns the STS short-term credentials for a given role name that is assigned to the user.

Synopsis

Creating a Request

data GetRoleCredentials Source #

See: newGetRoleCredentials smart constructor.

Constructors

GetRoleCredentials' 

Fields

  • roleName :: Text

    The friendly name of the role that is assigned to the user.

  • accountId :: Text

    The identifier for the AWS account that is assigned to the user.

  • accessToken :: Sensitive Text

    The token issued by the CreateToken API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide.

Instances

Instances details
ToHeaders GetRoleCredentials Source # 
Instance details

Defined in Amazonka.SSO.GetRoleCredentials

ToPath GetRoleCredentials Source # 
Instance details

Defined in Amazonka.SSO.GetRoleCredentials

ToQuery GetRoleCredentials Source # 
Instance details

Defined in Amazonka.SSO.GetRoleCredentials

AWSRequest GetRoleCredentials Source # 
Instance details

Defined in Amazonka.SSO.GetRoleCredentials

Associated Types

type AWSResponse GetRoleCredentials #

Generic GetRoleCredentials Source # 
Instance details

Defined in Amazonka.SSO.GetRoleCredentials

Associated Types

type Rep GetRoleCredentials :: Type -> Type #

Show GetRoleCredentials Source # 
Instance details

Defined in Amazonka.SSO.GetRoleCredentials

NFData GetRoleCredentials Source # 
Instance details

Defined in Amazonka.SSO.GetRoleCredentials

Methods

rnf :: GetRoleCredentials -> () #

Eq GetRoleCredentials Source # 
Instance details

Defined in Amazonka.SSO.GetRoleCredentials

Hashable GetRoleCredentials Source # 
Instance details

Defined in Amazonka.SSO.GetRoleCredentials

type AWSResponse GetRoleCredentials Source # 
Instance details

Defined in Amazonka.SSO.GetRoleCredentials

type Rep GetRoleCredentials Source # 
Instance details

Defined in Amazonka.SSO.GetRoleCredentials

type Rep GetRoleCredentials = D1 ('MetaData "GetRoleCredentials" "Amazonka.SSO.GetRoleCredentials" "amazonka-sso-2.0-B4gMJoZyEheG3SJYxPhDjE" 'False) (C1 ('MetaCons "GetRoleCredentials'" 'PrefixI 'True) (S1 ('MetaSel ('Just "roleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "accessToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)))))

newGetRoleCredentials Source #

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

Instances details
Generic GetRoleCredentialsResponse Source # 
Instance details

Defined in Amazonka.SSO.GetRoleCredentials

Associated Types

type Rep GetRoleCredentialsResponse :: Type -> Type #

Show GetRoleCredentialsResponse Source # 
Instance details

Defined in Amazonka.SSO.GetRoleCredentials

NFData GetRoleCredentialsResponse Source # 
Instance details

Defined in Amazonka.SSO.GetRoleCredentials

Eq GetRoleCredentialsResponse Source # 
Instance details

Defined in Amazonka.SSO.GetRoleCredentials

type Rep GetRoleCredentialsResponse Source # 
Instance details

Defined in Amazonka.SSO.GetRoleCredentials

type Rep GetRoleCredentialsResponse = D1 ('MetaData "GetRoleCredentialsResponse" "Amazonka.SSO.GetRoleCredentials" "amazonka-sso-2.0-B4gMJoZyEheG3SJYxPhDjE" '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 #

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_roleCredentials :: Lens' GetRoleCredentialsResponse RoleCredentials Source #

The credentials for the role that is assigned to the user.