GetManagedEndpointSessionCredentials
Source:
src/AWS/EMRContainers/GetManagedEndpointSessionCredentials.ts
Runtime binding for emr-containers:GetManagedEndpointSessionCredentials.
Mints a session token for connecting to a managed endpoint (EMR Studio
gateway) on the bound VirtualCluster. The virtual cluster
identifier is injected from the binding; pass the endpointIdentifier,
the executionRoleArn to run as, and the credentialType
(TOKEN). The returned credentials.token is a
Redacted value — call Redacted.value(...) at the point of use.
Provide the implementation with
Effect.provide(AWS.EMRContainers.GetManagedEndpointSessionCredentialsHttp).
Managed Endpoints
Section titled “Managed Endpoints”// initconst getSessionCredentials = yield* AWS.EMRContainers.GetManagedEndpointSessionCredentials(virtualCluster);
// runtimeconst { credentials } = yield* getSessionCredentials({ endpointIdentifier: endpointId, executionRoleArn: jobRoleArn, credentialType: "TOKEN", duration: "15 minutes",});const token = Redacted.value(credentials!.token);