public class GoogleADCIdTokenProvider extends java.lang.Object implements WebIdTokenProvider
To configure a long-running (batch or streaming) Dataflow pipeline that interacts with AWS resources use a similar configuration to:
--awsCredentialsProvider={
"@type": "StsAssumeRoleForFederatedCredentialsProvider",
"roleArn": "<the AWS ARN of the role to be assumed by the pipeline>",
"audience": "<the configured Audience for the federated authentication>",
"webIdTokenProviderFQCN": "org.apache.beam.sdk.io.aws2.auth.GoogleADCIdTokenProvider",
"durationSeconds": 3600
}
Constructor and Description |
---|
GoogleADCIdTokenProvider() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
resolveTokenValue(java.lang.String audience)
Resolves the value for a OIDC web identity token.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public java.lang.String resolveTokenValue(java.lang.String audience)
WebIdTokenProvider
resolveTokenValue
in interface WebIdTokenProvider
audience
- The audience for the token.