interface EksLabelSelectorProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ResilienceHubV2.CfnService.EksLabelSelectorProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsresiliencehubv2#CfnService_EksLabelSelectorProperty |
Java | software.amazon.awscdk.services.resiliencehubv2.CfnService.EksLabelSelectorProperty |
Python | aws_cdk.aws_resiliencehubv2.CfnService.EksLabelSelectorProperty |
TypeScript | aws-cdk-lib » aws_resiliencehubv2 » CfnService » EksLabelSelectorProperty |
Kubernetes label selector that scopes discovery to matching objects in the specified namespaces.
An object must satisfy both MatchLabels and MatchExpressions. Specify at least one of them; a selector carrying neither is treated as though no selector were supplied, and all supported objects in the specified namespaces are discovered.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_resiliencehubv2 as resiliencehubv2 } from 'aws-cdk-lib';
const eksLabelSelectorProperty: resiliencehubv2.CfnService.EksLabelSelectorProperty = {
matchExpressions: [{
key: 'key',
operator: 'operator',
// the properties below are optional
values: ['values'],
}],
matchLabels: {
matchLabelsKey: 'matchLabels',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| match | IResolvable | (IResolvable | Eks)[] | Label selector requirements an object must satisfy to be discovered. |
| match | IResolvable | { [string]: string } | Label key/value pairs an object must carry to be discovered. |
matchExpressions?
Type:
IResolvable | (IResolvable | Eks)[]
(optional)
Label selector requirements an object must satisfy to be discovered.
Up to 20 requirements, all of which must match.
matchLabels?
Type:
IResolvable | { [string]: string }
(optional)
Label key/value pairs an object must carry to be discovered.
Up to 20 pairs.

.NET
Go
Java
Python
TypeScript