amazonka-emr-2.0: Amazon EMR 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.EMR.GetClusterSessionCredentials

Description

Provides Temporary, basic HTTP credentials that are associated with a given runtime IAM role and used by a cluster with fine-grained access control activated. You can use these credentials to connect to cluster endpoints that support username-based and password-based authentication.

Synopsis

Creating a Request

data GetClusterSessionCredentials Source #

See: newGetClusterSessionCredentials smart constructor.

Constructors

GetClusterSessionCredentials' 

Fields

  • clusterId :: Text

    The unique identifier of the cluster.

  • executionRoleArn :: Text

    The Amazon Resource Name (ARN) of the runtime role for interactive workload submission on the cluster. The runtime role can be a cross-account IAM role. The runtime role ARN is a combination of account ID, role name, and role type using the following format: arn:partition:service:region:account:resource.

Instances

Instances details
ToJSON GetClusterSessionCredentials Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

ToHeaders GetClusterSessionCredentials Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

ToPath GetClusterSessionCredentials Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

ToQuery GetClusterSessionCredentials Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

AWSRequest GetClusterSessionCredentials Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

Generic GetClusterSessionCredentials Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

Associated Types

type Rep GetClusterSessionCredentials :: Type -> Type #

Read GetClusterSessionCredentials Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

Show GetClusterSessionCredentials Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

NFData GetClusterSessionCredentials Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

Eq GetClusterSessionCredentials Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

Hashable GetClusterSessionCredentials Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

type AWSResponse GetClusterSessionCredentials Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

type Rep GetClusterSessionCredentials Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

type Rep GetClusterSessionCredentials = D1 ('MetaData "GetClusterSessionCredentials" "Amazonka.EMR.GetClusterSessionCredentials" "amazonka-emr-2.0-B3cWhP6sdymF3IBUMdPGcd" 'False) (C1 ('MetaCons "GetClusterSessionCredentials'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clusterId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "executionRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetClusterSessionCredentials Source #

Create a value of GetClusterSessionCredentials 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:clusterId:GetClusterSessionCredentials', getClusterSessionCredentials_clusterId - The unique identifier of the cluster.

GetClusterSessionCredentials, getClusterSessionCredentials_executionRoleArn - The Amazon Resource Name (ARN) of the runtime role for interactive workload submission on the cluster. The runtime role can be a cross-account IAM role. The runtime role ARN is a combination of account ID, role name, and role type using the following format: arn:partition:service:region:account:resource.

Request Lenses

getClusterSessionCredentials_executionRoleArn :: Lens' GetClusterSessionCredentials Text Source #

The Amazon Resource Name (ARN) of the runtime role for interactive workload submission on the cluster. The runtime role can be a cross-account IAM role. The runtime role ARN is a combination of account ID, role name, and role type using the following format: arn:partition:service:region:account:resource.

Destructuring the Response

data GetClusterSessionCredentialsResponse Source #

Constructors

GetClusterSessionCredentialsResponse' 

Fields

  • credentials :: Maybe Credentials

    The credentials that you can use to connect to cluster endpoints that support username-based and password-based authentication.

  • expiresAt :: Maybe POSIX

    The time when the credentials that are returned by the GetClusterSessionCredentials API expire.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetClusterSessionCredentialsResponse Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

Show GetClusterSessionCredentialsResponse Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

NFData GetClusterSessionCredentialsResponse Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

Eq GetClusterSessionCredentialsResponse Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

type Rep GetClusterSessionCredentialsResponse Source # 
Instance details

Defined in Amazonka.EMR.GetClusterSessionCredentials

type Rep GetClusterSessionCredentialsResponse = D1 ('MetaData "GetClusterSessionCredentialsResponse" "Amazonka.EMR.GetClusterSessionCredentials" "amazonka-emr-2.0-B3cWhP6sdymF3IBUMdPGcd" 'False) (C1 ('MetaCons "GetClusterSessionCredentialsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "credentials") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Credentials)) :*: (S1 ('MetaSel ('Just "expiresAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetClusterSessionCredentialsResponse Source #

Create a value of GetClusterSessionCredentialsResponse 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:GetClusterSessionCredentialsResponse', getClusterSessionCredentialsResponse_credentials - The credentials that you can use to connect to cluster endpoints that support username-based and password-based authentication.

$sel:expiresAt:GetClusterSessionCredentialsResponse', getClusterSessionCredentialsResponse_expiresAt - The time when the credentials that are returned by the GetClusterSessionCredentials API expire.

$sel:httpStatus:GetClusterSessionCredentialsResponse', getClusterSessionCredentialsResponse_httpStatus - The response's http status code.

Response Lenses

getClusterSessionCredentialsResponse_credentials :: Lens' GetClusterSessionCredentialsResponse (Maybe Credentials) Source #

The credentials that you can use to connect to cluster endpoints that support username-based and password-based authentication.

getClusterSessionCredentialsResponse_expiresAt :: Lens' GetClusterSessionCredentialsResponse (Maybe UTCTime) Source #

The time when the credentials that are returned by the GetClusterSessionCredentials API expire.