Interface ICfnFargateProfileProps
Properties for defining a CfnFargateProfile
.
Namespace: Amazon.CDK.AWS.EKS
Assembly: Amazon.CDK.AWS.EKS.dll
Syntax (csharp)
public interface ICfnFargateProfileProps
Syntax (vb)
Public Interface ICfnFargateProfileProps
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-fargateprofile.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EKS;
var cfnFargateProfileProps = new CfnFargateProfileProps {
ClusterName = "clusterName",
PodExecutionRoleArn = "podExecutionRoleArn",
Selectors = new [] { new SelectorProperty {
Namespace = "namespace",
// the properties below are optional
Labels = new [] { new LabelProperty {
Key = "key",
Value = "value"
} }
} },
// the properties below are optional
FargateProfileName = "fargateProfileName",
Subnets = new [] { "subnets" },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Properties
ClusterName | The name of the Amazon EKS cluster to apply the Fargate profile to. |
FargateProfileName | The name of the Fargate profile. |
PodExecutionRoleArn | The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the Fargate profile. |
Selectors | The selectors to match for pods to use this Fargate profile. |
Subnets | The IDs of subnets to launch your pods into. |
Tags | The metadata to apply to the Fargate profile to assist with categorization and organization. |
Properties
ClusterName
The name of the Amazon EKS cluster to apply the Fargate profile to.
string ClusterName { get; }
Property Value
System.String
Remarks
FargateProfileName
The name of the Fargate profile.
virtual string FargateProfileName { get; }
Property Value
System.String
Remarks
PodExecutionRoleArn
The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the Fargate profile.
string PodExecutionRoleArn { get; }
Property Value
System.String
Remarks
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 .
Selectors
The selectors to match for pods to use this Fargate profile.
object Selectors { get; }
Property Value
System.Object
Remarks
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.
Subnets
The IDs of subnets to launch your pods into.
virtual string[] Subnets { get; }
Property Value
System.String[]
Remarks
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.
Tags
The metadata to apply to the Fargate profile to assist with categorization and organization.
virtual ICfnTag[] Tags { get; }
Property Value
ICfnTag[]
Remarks
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.