Interface Selector

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
Selector.Jsii$Proxy

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-11T15:55:57.999Z") @Stability(Stable) public interface Selector extends software.amazon.jsii.JsiiSerializable
Fargate profile selector.

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();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for Selector
    static final class 
    An implementation for Selector
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default Map<String,String>
    The Kubernetes labels that the selector should match.
    The Kubernetes namespace that the selector should match.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getNamespace

      @Stability(Stable) @NotNull String getNamespace()
      The Kubernetes namespace that the selector should match.

      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.

    • getLabels

      @Stability(Stable) @Nullable default Map<String,String> getLabels()
      The Kubernetes labels that the selector should match.

      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.

    • builder

      @Stability(Stable) static Selector.Builder builder()
      Returns:
      a Selector.Builder of Selector