@Stability(value=Stable) public static final class CfnFargateProfile.Builder extends Object implements software.amazon.jsii.Builder<CfnFargateProfile>
CfnFargateProfile.| Modifier and Type | Method and Description |
|---|---|
CfnFargateProfile |
build() |
CfnFargateProfile.Builder |
clusterName(String clusterName)
The name of the Amazon EKS cluster to apply the Fargate profile to.
|
static CfnFargateProfile.Builder |
create(Construct scope,
String id) |
CfnFargateProfile.Builder |
fargateProfileName(String fargateProfileName)
The name of the Fargate profile.
|
CfnFargateProfile.Builder |
podExecutionRoleArn(String podExecutionRoleArn)
The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the Fargate profile.
|
CfnFargateProfile.Builder |
selectors(IResolvable selectors)
The selectors to match for pods to use this Fargate profile.
|
CfnFargateProfile.Builder |
selectors(List<? extends Object> selectors)
The selectors to match for pods to use this Fargate profile.
|
CfnFargateProfile.Builder |
subnets(List<String> subnets)
The IDs of subnets to launch your pods into.
|
CfnFargateProfile.Builder |
tags(List<? extends CfnTag> tags)
The metadata to apply to the Fargate profile to assist with categorization and organization.
|
@Stability(value=Stable) public static CfnFargateProfile.Builder create(Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnFargateProfile.LabelProperty.Builder.@Stability(value=Stable) public CfnFargateProfile.Builder clusterName(String clusterName)
clusterName - The name of the Amazon EKS cluster to apply the Fargate profile to. This parameter is required.this@Stability(value=Stable) public CfnFargateProfile.Builder podExecutionRoleArn(String podExecutionRoleArn)
The pod 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, see Pod Execution Role in the Amazon EKS User Guide .
podExecutionRoleArn - The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the Fargate profile. This parameter is required.this@Stability(value=Stable) public CfnFargateProfile.Builder selectors(IResolvable selectors)
Each selector must have an associated namespace. Optionally, you can also specify labels for a namespace. You may specify up to five selectors in a Fargate profile.
selectors - The selectors to match for pods to use this Fargate profile. This parameter is required.this@Stability(value=Stable) public CfnFargateProfile.Builder selectors(List<? extends Object> selectors)
Each selector must have an associated namespace. Optionally, you can also specify labels for a namespace. You may specify up to five selectors in a Fargate profile.
selectors - The selectors to match for pods to use this Fargate profile. This parameter is required.this@Stability(value=Stable) public CfnFargateProfile.Builder fargateProfileName(String fargateProfileName)
fargateProfileName - The name of the Fargate profile. This parameter is required.this@Stability(value=Stable) public CfnFargateProfile.Builder subnets(List<String> subnets)
At this time, pods running on Fargate are not assigned public IP addresses, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.
subnets - The IDs of subnets to launch your pods into. This parameter is required.this@Stability(value=Stable) public CfnFargateProfile.Builder tags(List<? extends CfnTag> tags)
Each tag consists of a key and an optional value. You define both. Fargate profile tags do not propagate to any other resources associated with the Fargate profile, such as the pods that are scheduled with it.
tags - The metadata to apply to the Fargate profile to assist with categorization and organization. This parameter is required.this@Stability(value=Stable) public CfnFargateProfile build()
build in interface software.amazon.jsii.Builder<CfnFargateProfile>Copyright © 2022. All rights reserved.