Class CfnFargateProfileProps
Properties for defining a CfnFargateProfile
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EKS.Legacy
Assembly: Amazon.CDK.AWS.EKS.Legacy.dll
Syntax (csharp)
public class CfnFargateProfileProps : Object, ICfnFargateProfileProps
Syntax (vb)
Public Class CfnFargateProfileProps
Inherits Object
Implements 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.Legacy;
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
Constructors
CfnFargateProfileProps() |
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. |
Constructors
CfnFargateProfileProps()
public CfnFargateProfileProps()
Properties
ClusterName
The name of the Amazon EKS cluster to apply the Fargate profile to.
public string ClusterName { get; set; }
Property Value
System.String
Remarks
FargateProfileName
The name of the Fargate profile.
public string FargateProfileName { get; set; }
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.
public string PodExecutionRoleArn { get; set; }
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.
public object Selectors { get; set; }
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.
public string[] Subnets { get; set; }
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.
public ICfnTag[] Tags { get; set; }
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.