Class LabelExpression

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable

    @Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
               date="2023-01-26T02:32:34.865Z")
    @Stability(Stable)
    public class LabelExpression
    extends software.amazon.jsii.JsiiObject
    Represents a query that can be performed against resources with labels.
    • Constructor Detail

      • LabelExpression

        protected LabelExpression​(software.amazon.jsii.JsiiObjectRef objRef)
      • LabelExpression

        protected LabelExpression​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Method Detail

      • doesNotExist

        @Stability(Stable)
        @NotNull
        public static LabelExpression doesNotExist​(@NotNull
                                                   String key)
        Requires label `key` to not exist.

        Parameters:
        key - This parameter is required.
      • exists

        @Stability(Stable)
        @NotNull
        public static LabelExpression exists​(@NotNull
                                             String key)
        Requires label `key` to exist.

        Parameters:
        key - This parameter is required.
      • in

        @Stability(Stable)
        @NotNull
        public static LabelExpression in​(@NotNull
                                         String key,
                                         @NotNull
                                         List<String> values)
        Requires value of label `key` to be one of `values`.

        Parameters:
        key - This parameter is required.
        values - This parameter is required.
      • notIn

        @Stability(Stable)
        @NotNull
        public static LabelExpression notIn​(@NotNull
                                            String key,
                                            @NotNull
                                            List<String> values)
        Requires value of label `key` to be none of `values`.

        Parameters:
        key - This parameter is required.
        values - This parameter is required.
      • getKey

        @Stability(Stable)
        @NotNull
        public String getKey()
      • getOperator

        @Stability(Stable)
        @NotNull
        public String getOperator()
      • getValues

        @Stability(Stable)
        @Nullable
        public List<String> getValues()