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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnService.EksLabelSelectorPropertystatic final classAn implementation forCfnService.EksLabelSelectorProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMatchExpressions
Label selector requirements an object must satisfy to be discovered.Up to 20 requirements, all of which must match.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnService.EksLabelSelectorRequirementProperty>- See Also:
-
getMatchLabels
Label key/value pairs an object must carry to be discovered.Up to 20 pairs.
Returns union: either
IResolvableor Mapinvalid input: '<'String,String>- See Also:
-
builder
-