@Stability(value=Stable) public static final class FargateProfileOptions.Builder extends Object implements software.amazon.jsii.Builder<FargateProfileOptions>
FargateProfileOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
FargateProfileOptions |
build()
Builds the configured instance.
|
FargateProfileOptions.Builder |
fargateProfileName(String fargateProfileName)
Sets the value of
FargateProfileOptions.getFargateProfileName() |
FargateProfileOptions.Builder |
podExecutionRole(IRole podExecutionRole)
Sets the value of
FargateProfileOptions.getPodExecutionRole() |
FargateProfileOptions.Builder |
selectors(List<? extends Selector> selectors)
Sets the value of
FargateProfileOptions.getSelectors() |
FargateProfileOptions.Builder |
subnetSelection(SubnetSelection subnetSelection)
Sets the value of
FargateProfileOptions.getSubnetSelection() |
FargateProfileOptions.Builder |
vpc(IVpc vpc)
Sets the value of
FargateProfileOptions.getVpc() |
@Stability(value=Stable) public FargateProfileOptions.Builder selectors(List<? extends Selector> selectors)
FargateProfileOptions.getSelectors()selectors - The selectors to match for pods to use this Fargate profile. This parameter is required.
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.
this@Stability(value=Stable) public FargateProfileOptions.Builder fargateProfileName(String fargateProfileName)
FargateProfileOptions.getFargateProfileName()fargateProfileName - The name of the Fargate profile.this@Stability(value=Stable) public FargateProfileOptions.Builder podExecutionRole(IRole podExecutionRole)
FargateProfileOptions.getPodExecutionRole()podExecutionRole - The pod execution role to use for pods that match the selectors in the Fargate profile.
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.this@Stability(value=Stable) public FargateProfileOptions.Builder subnetSelection(SubnetSelection subnetSelection)
FargateProfileOptions.getSubnetSelection()subnetSelection - Select which subnets to launch your pods into.
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.this@Stability(value=Stable) public FargateProfileOptions.Builder vpc(IVpc vpc)
FargateProfileOptions.getVpc()vpc - The VPC from which to select subnets to launch your pods into.
By default, all private subnets are selected. You can customize this using
subnetSelection.this@Stability(value=Stable) public FargateProfileOptions build()
build in interface software.amazon.jsii.Builder<FargateProfileOptions>FargateProfileOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.