Interface AssumeRoleForPodIdentityResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<AssumeRoleForPodIdentityResponse.Builder,
,AssumeRoleForPodIdentityResponse> EksAuthResponse.Builder
,SdkBuilder<AssumeRoleForPodIdentityResponse.Builder,
,AssumeRoleForPodIdentityResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
AssumeRoleForPodIdentityResponse
-
Method Summary
Modifier and TypeMethodDescriptionassumedRoleUser
(Consumer<AssumedRoleUser.Builder> assumedRoleUser) An object with the permanent IAM role identity and the temporary session name.assumedRoleUser
(AssumedRoleUser assumedRoleUser) An object with the permanent IAM role identity and the temporary session name.The identity that is allowed to use the credentials.credentials
(Consumer<Credentials.Builder> credentials) The Amazon Web Services Signature Version 4 type of temporary credentials.credentials
(Credentials credentials) The Amazon Web Services Signature Version 4 type of temporary credentials.podIdentityAssociation
(Consumer<PodIdentityAssociation.Builder> podIdentityAssociation) The Amazon Resource Name (ARN) and ID of the EKS Pod Identity association.podIdentityAssociation
(PodIdentityAssociation podIdentityAssociation) The Amazon Resource Name (ARN) and ID of the EKS Pod Identity association.subject
(Consumer<Subject.Builder> subject) The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.eksauth.model.EksAuthResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
subject
The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
- Parameters:
subject
- The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subject
The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
This is a convenience method that creates an instance of theSubject.Builder
avoiding the need to create one manually viaSubject.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosubject(Subject)
.- Parameters:
subject
- a consumer that will call methods onSubject.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
audience
The identity that is allowed to use the credentials. This value is always
pods.eks.amazonaws.com
.- Parameters:
audience
- The identity that is allowed to use the credentials. This value is alwayspods.eks.amazonaws.com
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
podIdentityAssociation
AssumeRoleForPodIdentityResponse.Builder podIdentityAssociation(PodIdentityAssociation podIdentityAssociation) The Amazon Resource Name (ARN) and ID of the EKS Pod Identity association.
- Parameters:
podIdentityAssociation
- The Amazon Resource Name (ARN) and ID of the EKS Pod Identity association.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
podIdentityAssociation
default AssumeRoleForPodIdentityResponse.Builder podIdentityAssociation(Consumer<PodIdentityAssociation.Builder> podIdentityAssociation) The Amazon Resource Name (ARN) and ID of the EKS Pod Identity association.
This is a convenience method that creates an instance of thePodIdentityAssociation.Builder
avoiding the need to create one manually viaPodIdentityAssociation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topodIdentityAssociation(PodIdentityAssociation)
.- Parameters:
podIdentityAssociation
- a consumer that will call methods onPodIdentityAssociation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
assumedRoleUser
An object with the permanent IAM role identity and the temporary session name.
The ARN of the IAM role that the temporary credentials authenticate to.
The session name of the temporary session requested to STS. The value is a unique identifier that contains the role ID, a colon (
:
), and the role session name of the role that is being assumed. The role ID is generated by IAM when the role is created. The role session name part of the value follows this format:eks-clustername-podname-random UUID
- Parameters:
assumedRoleUser
- An object with the permanent IAM role identity and the temporary session name.The ARN of the IAM role that the temporary credentials authenticate to.
The session name of the temporary session requested to STS. The value is a unique identifier that contains the role ID, a colon (
:
), and the role session name of the role that is being assumed. The role ID is generated by IAM when the role is created. The role session name part of the value follows this format:eks-clustername-podname-random UUID
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assumedRoleUser
default AssumeRoleForPodIdentityResponse.Builder assumedRoleUser(Consumer<AssumedRoleUser.Builder> assumedRoleUser) An object with the permanent IAM role identity and the temporary session name.
The ARN of the IAM role that the temporary credentials authenticate to.
The session name of the temporary session requested to STS. The value is a unique identifier that contains the role ID, a colon (
This is a convenience method that creates an instance of the:
), and the role session name of the role that is being assumed. The role ID is generated by IAM when the role is created. The role session name part of the value follows this format:eks-clustername-podname-random UUID
AssumedRoleUser.Builder
avoiding the need to create one manually viaAssumedRoleUser.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassumedRoleUser(AssumedRoleUser)
.- Parameters:
assumedRoleUser
- a consumer that will call methods onAssumedRoleUser.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
credentials
The Amazon Web Services Signature Version 4 type of temporary credentials.
- Parameters:
credentials
- The Amazon Web Services Signature Version 4 type of temporary credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
credentials
default AssumeRoleForPodIdentityResponse.Builder credentials(Consumer<Credentials.Builder> credentials) The Amazon Web Services Signature Version 4 type of temporary credentials.
This is a convenience method that creates an instance of theCredentials.Builder
avoiding the need to create one manually viaCredentials.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocredentials(Credentials)
.- Parameters:
credentials
- a consumer that will call methods onCredentials.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-