Interface CreateFargateProfileRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateFargateProfileRequest.Builder,
,CreateFargateProfileRequest> EksRequest.Builder
,SdkBuilder<CreateFargateProfileRequest.Builder,
,CreateFargateProfileRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateFargateProfileRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken
(String clientRequestToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.clusterName
(String clusterName) The name of your cluster.fargateProfileName
(String fargateProfileName) The name of the Fargate profile.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.podExecutionRoleArn
(String podExecutionRoleArn) The Amazon Resource Name (ARN) of thePod
execution role to use for aPod
that matches the selectors in the Fargate profile.selectors
(Collection<FargateProfileSelector> selectors) The selectors to match for aPod
to use this Fargate profile.selectors
(Consumer<FargateProfileSelector.Builder>... selectors) The selectors to match for aPod
to use this Fargate profile.selectors
(FargateProfileSelector... selectors) The selectors to match for aPod
to use this Fargate profile.The IDs of subnets to launch aPod
into.subnets
(Collection<String> subnets) The IDs of subnets to launch aPod
into.Metadata that assists with categorization and organization.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.eks.model.EksRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
fargateProfileName
The name of the Fargate profile.
- Parameters:
fargateProfileName
- The name of the Fargate profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterName
The name of your cluster.
- Parameters:
clusterName
- The name of your cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
podExecutionRoleArn
The Amazon Resource Name (ARN) of the
Pod
execution role to use for aPod
that matches the selectors in the Fargate profile. ThePod
execution role allows Fargate infrastructure to register with your cluster as a node, and it provides read access to Amazon ECR image repositories. For more information, seePod
execution role in the Amazon EKS User Guide.- Parameters:
podExecutionRoleArn
- The Amazon Resource Name (ARN) of thePod
execution role to use for aPod
that matches the selectors in the Fargate profile. ThePod
execution role allows Fargate infrastructure to register with your cluster as a node, and it provides read access to Amazon ECR image repositories. For more information, seePod
execution role in the Amazon EKS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnets
The IDs of subnets to launch a
Pod
into. APod
running on Fargate isn't assigned a public IP address, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.- Parameters:
subnets
- The IDs of subnets to launch aPod
into. APod
running on Fargate isn't assigned a public IP address, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnets
The IDs of subnets to launch a
Pod
into. APod
running on Fargate isn't assigned a public IP address, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.- Parameters:
subnets
- The IDs of subnets to launch aPod
into. APod
running on Fargate isn't assigned a public IP address, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectors
The selectors to match for a
Pod
to use this Fargate profile. Each selector must have an associated Kubernetesnamespace
. Optionally, you can also specifylabels
for anamespace
. You may specify up to five selectors in a Fargate profile.- Parameters:
selectors
- The selectors to match for aPod
to use this Fargate profile. Each selector must have an associated Kubernetesnamespace
. Optionally, you can also specifylabels
for anamespace
. You may specify up to five selectors in a Fargate profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectors
The selectors to match for a
Pod
to use this Fargate profile. Each selector must have an associated Kubernetesnamespace
. Optionally, you can also specifylabels
for anamespace
. You may specify up to five selectors in a Fargate profile.- Parameters:
selectors
- The selectors to match for aPod
to use this Fargate profile. Each selector must have an associated Kubernetesnamespace
. Optionally, you can also specifylabels
for anamespace
. You may specify up to five selectors in a Fargate profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectors
CreateFargateProfileRequest.Builder selectors(Consumer<FargateProfileSelector.Builder>... selectors) The selectors to match for a
This is a convenience method that creates an instance of thePod
to use this Fargate profile. Each selector must have an associated Kubernetesnamespace
. Optionally, you can also specifylabels
for anamespace
. You may specify up to five selectors in a Fargate profile.FargateProfileSelector.Builder
avoiding the need to create one manually viaFargateProfileSelector.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toselectors(List<FargateProfileSelector>)
.- Parameters:
selectors
- a consumer that will call methods onFargateProfileSelector.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientRequestToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- Parameters:
clientRequestToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.
- Parameters:
tags
- Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or Amazon Web Services resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateFargateProfileRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateFargateProfileRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-