aws-cdk-lib.aws_eks.CfnFargateProfile.SelectorProperty

interface SelectorProperty

LanguageType name
.NETAmazon.CDK.AWS.EKS.CfnFargateProfile.SelectorProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awseks#CfnFargateProfile_SelectorProperty
Javasoftware.amazon.awscdk.services.eks.CfnFargateProfile.SelectorProperty
Pythonaws_cdk.aws_eks.CfnFargateProfile.SelectorProperty
TypeScript aws-cdk-lib » aws_eks » CfnFargateProfile » SelectorProperty

An object representing an AWS Fargate profile selector.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks as eks } from 'aws-cdk-lib';
const selectorProperty: eks.CfnFargateProfile.SelectorProperty = {
  namespace: 'namespace',

  // the properties below are optional
  labels: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
namespacestringThe Kubernetes namespace that the selector should match.
labels?IResolvable | IResolvable | LabelProperty[]The Kubernetes labels that the selector should match.

namespace

Type: string

The Kubernetes namespace that the selector should match.


labels?

Type: IResolvable | IResolvable | LabelProperty[] (optional)

The Kubernetes labels that the selector should match.

A pod must contain all of the labels that are specified in the selector for it to be considered a match.