Class Workload

    • Constructor Detail

      • Workload

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

        protected Workload​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • Workload

        @Stability(Stable)
        protected Workload​(@NotNull
                           software.constructs.Construct scope,
                           @NotNull
                           String id,
                           @Nullable
                           WorkloadProps props)
        Parameters:
        scope - This parameter is required.
        id - This parameter is required.
        props -
      • Workload

        @Stability(Stable)
        protected Workload​(@NotNull
                           software.constructs.Construct scope,
                           @NotNull
                           String id)
        Parameters:
        scope - This parameter is required.
        id - This parameter is required.
    • Method Detail

      • select

        @Stability(Stable)
        public void select​(@NotNull
                           @NotNull LabelSelector... selectors)
        Configure selectors for this workload.

        Parameters:
        selectors - This parameter is required.
      • getConnections

        @Stability(Stable)
        @NotNull
        public PodConnections getConnections()
      • getMatchExpressions

        @Stability(Stable)
        @NotNull
        public List<LabelSelectorRequirement> getMatchExpressions()
        The expression matchers this workload will use in order to select pods.

        Returns a a copy. Use select() to add expression matchers.

      • getMatchLabels

        @Stability(Stable)
        @NotNull
        public Map<String,​String> getMatchLabels()
        The label matchers this workload will use in order to select pods.

        Returns a a copy. Use select() to add label matchers.

      • getPodMetadata

        @Stability(Stable)
        @NotNull
        public org.cdk8s.ApiObjectMetadataDefinition getPodMetadata()
        The metadata of pods in this workload.
        Specified by:
        getPodMetadata in class AbstractPod