interface EksSourceProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ResilienceHubV2.CfnService.EksSourceProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsresiliencehubv2#CfnService_EksSourceProperty |
Java | software.amazon.awscdk.services.resiliencehubv2.CfnService.EksSourceProperty |
Python | aws_cdk.aws_resiliencehubv2.CfnService.EksSourceProperty |
TypeScript | aws-cdk-lib » aws_resiliencehubv2 » CfnService » EksSourceProperty |
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 eksSourceProperty: resiliencehubv2.CfnService.EksSourceProperty = {
clusterArn: 'clusterArn',
namespaces: ['namespaces'],
// the properties below are optional
labelSelector: {
matchExpressions: [{
key: 'key',
operator: 'operator',
// the properties below are optional
values: ['values'],
}],
matchLabels: {
matchLabelsKey: 'matchLabels',
},
},
};
Properties
| Name | Type | Description |
|---|---|---|
| cluster | string | ARN of the EKS cluster. |
| namespaces | string[] | EKS namespaces. |
| label | IResolvable | Eks | Kubernetes label selector that scopes discovery to matching objects in the specified namespaces. |
clusterArn
Type:
string
ARN of the EKS cluster.
namespaces
Type:
string[]
EKS namespaces.
labelSelector?
Type:
IResolvable | Eks
(optional)
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.

.NET
Go
Java
Python
TypeScript