| 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.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
- data GetClusterSessionCredentials = GetClusterSessionCredentials' {}
- newGetClusterSessionCredentials :: Text -> Text -> GetClusterSessionCredentials
- getClusterSessionCredentials_clusterId :: Lens' GetClusterSessionCredentials Text
- getClusterSessionCredentials_executionRoleArn :: Lens' GetClusterSessionCredentials Text
- data GetClusterSessionCredentialsResponse = GetClusterSessionCredentialsResponse' {}
- newGetClusterSessionCredentialsResponse :: Int -> GetClusterSessionCredentialsResponse
- getClusterSessionCredentialsResponse_credentials :: Lens' GetClusterSessionCredentialsResponse (Maybe Credentials)
- getClusterSessionCredentialsResponse_expiresAt :: Lens' GetClusterSessionCredentialsResponse (Maybe UTCTime)
- getClusterSessionCredentialsResponse_httpStatus :: Lens' GetClusterSessionCredentialsResponse Int
Creating a Request
data GetClusterSessionCredentials Source #
See: newGetClusterSessionCredentials smart constructor.
Constructors
| GetClusterSessionCredentials' | |
Fields
| |
Instances
newGetClusterSessionCredentials Source #
Arguments
| :: Text | |
| -> Text | |
| -> GetClusterSessionCredentials |
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_clusterId :: Lens' GetClusterSessionCredentials Text Source #
The unique identifier of the cluster.
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 #
See: newGetClusterSessionCredentialsResponse smart constructor.
Constructors
| GetClusterSessionCredentialsResponse' | |
Fields
| |
Instances
newGetClusterSessionCredentialsResponse Source #
Arguments
| :: Int | |
| -> GetClusterSessionCredentialsResponse |
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.
getClusterSessionCredentialsResponse_httpStatus :: Lens' GetClusterSessionCredentialsResponse Int Source #
The response's http status code.