Interface CfnServicePropsMixin.EksLabelSelectorProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnServicePropsMixin.EksLabelSelectorProperty.Jsii$Proxy
- Enclosing class:
CfnServicePropsMixin
@Stability(Stable)
public static interface CfnServicePropsMixin.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.cfnpropertymixins.services.resiliencehubv2.*;
EksLabelSelectorProperty eksLabelSelectorProperty = EksLabelSelectorProperty.builder()
.matchExpressions(List.of(EksLabelSelectorRequirementProperty.builder()
.key("key")
.operator("operator")
.values(List.of("values"))
.build()))
.matchLabels(Map.of(
"matchLabelsKey", "matchLabels"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnServicePropsMixin.EksLabelSelectorPropertystatic final classAn implementation forCfnServicePropsMixin.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: '<'eitherIResolvableorCfnServicePropsMixin.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
-