Interface CfnFargateProfileProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFargateProfileProps.Jsii$Proxy
CfnFargateProfile
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.eks.legacy.*; CfnFargateProfileProps cfnFargateProfileProps = CfnFargateProfileProps.builder() .clusterName("clusterName") .podExecutionRoleArn("podExecutionRoleArn") .selectors(List.of(SelectorProperty.builder() .namespace("namespace") // the properties below are optional .labels(List.of(LabelProperty.builder() .key("key") .value("value") .build())) .build())) // the properties below are optional .fargateProfileName("fargateProfileName") .subnets(List.of("subnets")) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnFargateProfileProps
static final class
An implementation forCfnFargateProfileProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The name of the Amazon EKS cluster to apply the Fargate profile to.default String
The name of the Fargate profile.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.The IDs of subnets to launch your pods into.getTags()
The metadata to apply to the Fargate profile to assist with categorization and organization.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getClusterName
The name of the Amazon EKS cluster to apply the Fargate profile to. -
getPodExecutionRoleArn
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 .
-
getSelectors
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.
-
getFargateProfileName
The name of the Fargate profile. -
getSubnets
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.
-
getTags
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.
-
builder
- Returns:
- a
CfnFargateProfileProps.Builder
ofCfnFargateProfileProps
-