Interface EksAuthClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
The Amazon EKS Auth API and the AssumeRoleForPodIdentity
action are only used by the EKS Pod Identity
Agent.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptiondefault AssumeRoleForPodIdentityResponse
assumeRoleForPodIdentity
(Consumer<AssumeRoleForPodIdentityRequest.Builder> assumeRoleForPodIdentityRequest) The Amazon EKS Auth API and theAssumeRoleForPodIdentity
action are only used by the EKS Pod Identity Agent.default AssumeRoleForPodIdentityResponse
assumeRoleForPodIdentity
(AssumeRoleForPodIdentityRequest assumeRoleForPodIdentityRequest) The Amazon EKS Auth API and theAssumeRoleForPodIdentity
action are only used by the EKS Pod Identity Agent.static EksAuthClientBuilder
builder()
Create a builder that can be used to configure and create aEksAuthClient
.static EksAuthClient
create()
Create aEksAuthClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
assumeRoleForPodIdentity
default AssumeRoleForPodIdentityResponse assumeRoleForPodIdentity(AssumeRoleForPodIdentityRequest assumeRoleForPodIdentityRequest) throws ThrottlingException, InvalidRequestException, AccessDeniedException, InternalServerException, InvalidTokenException, InvalidParameterException, ExpiredTokenException, ResourceNotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, EksAuthException The Amazon EKS Auth API and the
AssumeRoleForPodIdentity
action are only used by the EKS Pod Identity Agent.We recommend that applications use the Amazon Web Services SDKs to connect to Amazon Web Services services; if credentials from an EKS Pod Identity association are available in the pod, the latest versions of the SDKs use them automatically.
- Parameters:
assumeRoleForPodIdentityRequest
-- Returns:
- Result of the AssumeRoleForPodIdentity operation returned by the service.
- See Also:
-
assumeRoleForPodIdentity
default AssumeRoleForPodIdentityResponse assumeRoleForPodIdentity(Consumer<AssumeRoleForPodIdentityRequest.Builder> assumeRoleForPodIdentityRequest) throws ThrottlingException, InvalidRequestException, AccessDeniedException, InternalServerException, InvalidTokenException, InvalidParameterException, ExpiredTokenException, ResourceNotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, EksAuthException The Amazon EKS Auth API and the
AssumeRoleForPodIdentity
action are only used by the EKS Pod Identity Agent.We recommend that applications use the Amazon Web Services SDKs to connect to Amazon Web Services services; if credentials from an EKS Pod Identity association are available in the pod, the latest versions of the SDKs use them automatically.
This is a convenience which creates an instance of the
AssumeRoleForPodIdentityRequest.Builder
avoiding the need to create one manually viaAssumeRoleForPodIdentityRequest.builder()
- Parameters:
assumeRoleForPodIdentityRequest
- AConsumer
that will call methods onAssumeRoleForPodIdentityRequest.Builder
to create a request.- Returns:
- Result of the AssumeRoleForPodIdentity operation returned by the service.
- See Also:
-
create
Create aEksAuthClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aEksAuthClient
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-