@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.960Z") @Stability(value=Stable) public interface Selector 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.*;
Selector selector = Selector.builder()
.namespace("namespace")
// the properties below are optional
.labels(Map.of(
"labelsKey", "labels"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
Selector.Builder
A builder for
Selector |
static class |
Selector.Jsii$Proxy
An implementation for
Selector |
| Modifier and Type | Method and Description |
|---|---|
static Selector.Builder |
builder() |
default Map<String,String> |
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()
You must specify a namespace for a selector. The selector only matches pods that are created in this namespace, but you can create multiple selectors to target multiple namespaces.
@Stability(value=Stable) @Nullable default Map<String,String> getLabels()
A pod must contain all of the labels that are specified in the selector for it to be considered a match.
Default: - all pods within the namespace will be selected.
@Stability(value=Stable) static Selector.Builder builder()
Selector.Builder of SelectorCopyright © 2022. All rights reserved.