Class CfnFargateProfile.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFargateProfile>
- Enclosing class:
CfnFargateProfile
CfnFargateProfile
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clusterName
(String clusterName) The name of your cluster.static CfnFargateProfile.Builder
fargateProfileName
(String fargateProfileName) The name of the Fargate profile.podExecutionRoleArn
(String podExecutionRoleArn) The Amazon Resource Name (ARN) of thePod
execution role to use for aPod
that matches the selectors in the Fargate profile.The selectors to match for aPod
to use this Fargate profile.selectors
(IResolvable selectors) The selectors to match for aPod
to use this Fargate profile.The IDs of subnets to launch aPod
into.Metadata that assists with categorization and organization.
-
Method Details
-
create
@Stability(Stable) public static CfnFargateProfile.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnFargateProfile.Builder
.
-
clusterName
The name of your cluster.- Parameters:
clusterName
- The name of your cluster. This parameter is required.- Returns:
this
- See Also:
-
podExecutionRoleArn
The Amazon Resource Name (ARN) of thePod
execution role to use for aPod
that matches 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. 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. This parameter is required.- Returns:
this
- See Also:
-
selectors
The selectors to match for aPod
to use this Fargate profile.Each selector must have an associated Kubernetes
namespace
. 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. This parameter is required.- Returns:
this
- See Also:
-
selectors
The selectors to match for aPod
to use this Fargate profile.Each selector must have an associated Kubernetes
namespace
. 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. This parameter is required.- Returns:
this
- See Also:
-
fargateProfileName
The name of the Fargate profile.- Parameters:
fargateProfileName
- The name of the Fargate profile. This parameter is required.- Returns:
this
- See Also:
-
subnets
The IDs of subnets to launch aPod
into.A
Pod
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. This parameter is required.- Returns:
this
- See Also:
-
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 AWS resources.
- Parameters:
tags
- Metadata that assists with categorization and organization. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFargateProfile>
- Returns:
- a newly built instance of
CfnFargateProfile
.
-