Interface CfnFargateProfileProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFargateProfileProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-14T03:24:58.042Z")
@Stability(Stable)
public interface CfnFargateProfileProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
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.*; 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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnFargateProfileProps
static final class
An implementation forCfnFargateProfileProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The name of your cluster.default String
The name of the Fargate profile.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.The IDs of subnets to launch aPod
into.getTags()
Metadata that assists with categorization and organization.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getClusterName
The name of your cluster.- See Also:
-
getPodExecutionRoleArn
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 .- See Also:
-
getSelectors
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.- See Also:
-
getFargateProfileName
The name of the Fargate profile.- See Also:
-
getSubnets
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.- See Also:
-
getTags
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.
- See Also:
-
builder
- Returns:
- a
CfnFargateProfileProps.Builder
ofCfnFargateProfileProps
-