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 the Amazon EKS cluster to apply the Fargate profile to.static CfnFargateProfile.Builder
fargateProfileName
(String fargateProfileName) The name of the Fargate profile.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.The selectors to match for pods to use this Fargate profile.selectors
(IResolvable selectors) The selectors to match for pods to use this Fargate profile.The IDs of subnets to launch your pods into.The metadata to apply to the Fargate profile to assist with categorization and organization.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnFargateProfile.Builder
.
-
clusterName
The name of the Amazon EKS cluster to apply the Fargate profile to.- Parameters:
clusterName
- The name of the Amazon EKS cluster to apply the Fargate profile to. This parameter is required.- Returns:
this
-
podExecutionRoleArn
The Amazon Resource Name (ARN) of 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. For more information, see Pod Execution Role in the Amazon EKS User Guide .
- Parameters:
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.- Returns:
this
-
selectors
The selectors to match for pods to use this Fargate profile.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.
- Parameters:
selectors
- The selectors to match for pods to use this Fargate profile. This parameter is required.- Returns:
this
-
selectors
The selectors to match for pods to use this Fargate profile.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.
- Parameters:
selectors
- The selectors to match for pods to use this Fargate profile. This parameter is required.- Returns:
this
-
fargateProfileName
The name of the Fargate profile.- Parameters:
fargateProfileName
- The name of the Fargate profile. This parameter is required.- Returns:
this
-
subnets
The IDs of 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 accepted for this parameter.
- Parameters:
subnets
- The IDs of subnets to launch your pods into. This parameter is required.- Returns:
this
-
tags
The metadata to apply to the Fargate profile to assist with categorization and organization.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.
- Parameters:
tags
- The metadata to apply to the Fargate profile to assist with categorization and organization. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFargateProfile>
- Returns:
- a newly built instance of
CfnFargateProfile
.
-