@Stability(value=Stable) public static final class FargateProfile.Builder extends Object implements software.amazon.jsii.Builder<FargateProfile>
FargateProfile.| Modifier and Type | Method and Description |
|---|---|
FargateProfile |
build() |
FargateProfile.Builder |
cluster(Cluster cluster)
The EKS cluster to apply the Fargate profile to.
|
static FargateProfile.Builder |
create(software.constructs.Construct scope,
String id) |
FargateProfile.Builder |
fargateProfileName(String fargateProfileName)
The name of the Fargate profile.
|
FargateProfile.Builder |
podExecutionRole(IRole podExecutionRole)
The pod execution role to use for pods that match the selectors in the Fargate profile.
|
FargateProfile.Builder |
selectors(List<? extends Selector> selectors)
The selectors to match for pods to use this Fargate profile.
|
FargateProfile.Builder |
subnetSelection(SubnetSelection subnetSelection)
Select which subnets to launch your pods into.
|
FargateProfile.Builder |
vpc(IVpc vpc)
The VPC from which to select subnets to launch your pods into.
|
@Stability(value=Stable) public static FargateProfile.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.FargateProfile.Builder.@Stability(value=Stable) public FargateProfile.Builder selectors(List<? extends Selector> selectors)
Each selector must have an associated namespace. Optionally, you can also specify labels for a namespace.
At least one selector is required and you may specify up to five selectors.
selectors - The selectors to match for pods to use this Fargate profile. This parameter is required.this@Stability(value=Stable) public FargateProfile.Builder fargateProfileName(String fargateProfileName)
Default: - generated
fargateProfileName - The name of the Fargate profile. This parameter is required.this@Stability(value=Stable) public FargateProfile.Builder podExecutionRole(IRole podExecutionRole)
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.
Default: - a role will be automatically created
podExecutionRole - 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 FargateProfile.Builder subnetSelection(SubnetSelection subnetSelection)
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 allowed.
You must specify the VPC to customize the subnet selection
Default: - all private subnets of the VPC are selected.
subnetSelection - Select which subnets to launch your pods into. This parameter is required.this@Stability(value=Stable) public FargateProfile.Builder vpc(IVpc vpc)
By default, all private subnets are selected. You can customize this using
subnetSelection.
Default: - all private subnets used by the EKS cluster
vpc - The VPC from which to select subnets to launch your pods into. This parameter is required.this@Stability(value=Stable) public FargateProfile.Builder cluster(Cluster cluster)
[disable-awslint:ref-via-interface]
cluster - The EKS cluster to apply the Fargate profile to. This parameter is required.this@Stability(value=Stable) public FargateProfile build()
build in interface software.amazon.jsii.Builder<FargateProfile>Copyright © 2022. All rights reserved.