Interface CfnService.EksLabelSelectorProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnService.EksLabelSelectorProperty.Jsii$Proxy
Enclosing class:
CfnService

@Stability(Stable) public static interface CfnService.EksLabelSelectorProperty extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.resiliencehubv2.*;
 EksLabelSelectorProperty eksLabelSelectorProperty = EksLabelSelectorProperty.builder()
         .matchExpressions(List.of(EksLabelSelectorRequirementProperty.builder()
                 .key("key")
                 .operator("operator")
                 // the properties below are optional
                 .values(List.of("values"))
                 .build()))
         .matchLabels(Map.of(
                 "matchLabelsKey", "matchLabels"))
         .build();
 

See Also: