@Stability(value=Stable)
public static interface CfnFargateProfile.SelectorProperty
extends software.amazon.jsii.JsiiSerializable
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.eks.*;
SelectorProperty selectorProperty = SelectorProperty.builder()
.namespace("namespace")
// the properties below are optional
.labels(List.of(LabelProperty.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnFargateProfile.SelectorProperty.Builder
A builder for
CfnFargateProfile.SelectorProperty |
static class |
CfnFargateProfile.SelectorProperty.Jsii$Proxy
An implementation for
CfnFargateProfile.SelectorProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnFargateProfile.SelectorProperty.Builder |
builder() |
default Object |
getLabels()
The Kubernetes labels that the selector should match.
|
String |
getNamespace()
The Kubernetes namespace that the selector should match.
|
@Stability(value=Stable) @NotNull String getNamespace()
@Stability(value=Stable) @Nullable default Object getLabels()
A pod must contain all of the labels that are specified in the selector for it to be considered a match.
@Stability(value=Stable) static CfnFargateProfile.SelectorProperty.Builder builder()
Copyright © 2022. All rights reserved.