@InterfaceAudience.Private @InterfaceStability.Unstable public class STSClientFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
STSClientFactory.STSClient
STS client connection with retries.
|
Constructor and Description |
---|
STSClientFactory() |
Modifier and Type | Method and Description |
---|---|
static software.amazon.awssdk.services.sts.StsClientBuilder |
builder(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials,
org.apache.hadoop.conf.Configuration conf,
String stsEndpoint,
String stsRegion,
String bucket)
Create the builder ready for any final configuration options.
|
static software.amazon.awssdk.services.sts.StsClientBuilder |
builder(org.apache.hadoop.conf.Configuration conf,
String bucket,
software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials)
Create the builder ready for any final configuration options.
|
static software.amazon.awssdk.services.sts.StsClientBuilder |
builder(org.apache.hadoop.conf.Configuration conf,
String bucket,
software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials,
String stsEndpoint,
String stsRegion)
Create the builder ready for any final configuration options.
|
static STSClientFactory.STSClient |
createClientConnection(software.amazon.awssdk.services.sts.StsClient stsClient,
Invoker invoker)
Create an STS Client instance.
|
public static software.amazon.awssdk.services.sts.StsClientBuilder builder(org.apache.hadoop.conf.Configuration conf, String bucket, software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials) throws IOException
DelegationConstants.DELEGATION_TOKEN_ENDPOINT
and
DelegationConstants.DELEGATION_TOKEN_REGION
conf
- Configuration to act as source of options.bucket
- Optional bucket to use to look up per-bucket proxy secretscredentials
- AWS credential chain to usebuild()
IOException
- problem reading proxy secretspublic static software.amazon.awssdk.services.sts.StsClientBuilder builder(org.apache.hadoop.conf.Configuration conf, String bucket, software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials, String stsEndpoint, String stsRegion) throws IOException
conf
- Configuration to act as source of options.bucket
- Optional bucket to use to look up per-bucket proxy secretscredentials
- AWS credential chain to usestsEndpoint
- optional endpoint "https://sns.us-west-1.amazonaws.com"stsRegion
- AWS recommend setting the endpoint instead.build()
IOException
- problem reading proxy secretspublic static software.amazon.awssdk.services.sts.StsClientBuilder builder(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials, org.apache.hadoop.conf.Configuration conf, String stsEndpoint, String stsRegion, String bucket) throws IOException
conf
- AWS configuration.credentials
- AWS credential chain to usestsEndpoint
- optional endpoint "https://sns.us-west-1.amazonaws.com"stsRegion
- the region, e.g "us-west-1". Must be set if endpoint is.bucket
- bucket namebuild()
IOException
- problem reading proxy secretspublic static STSClientFactory.STSClient createClientConnection(software.amazon.awssdk.services.sts.StsClient stsClient, Invoker invoker)
stsClient
- STS instanceinvoker
- invoker to useCopyright © 2008–2024 Apache Software Foundation. All rights reserved.