Class CfnCommandPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnCommandPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:20:00.151Z") @Stability(Stable) public class CfnCommandPropsMixin extends Mixin implements software.constructs.IMixin
Represents the resource definition of AWS IoT Command.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.iot.*;
 import software.amazon.awscdk.*;
 IMergeStrategy mergeStrategy;
 CfnCommandPropsMixin cfnCommandPropsMixin = CfnCommandPropsMixin.Builder.create(CfnCommandMixinProps.builder()
         .commandId("commandId")
         .createdAt("createdAt")
         .deprecated(false)
         .description("description")
         .displayName("displayName")
         .lastUpdatedAt("lastUpdatedAt")
         .mandatoryParameters(List.of(CommandParameterProperty.builder()
                 .defaultValue(CommandParameterValueProperty.builder()
                         .b(false)
                         .bin("bin")
                         .d(123)
                         .i(123)
                         .l("l")
                         .s("s")
                         .ul("ul")
                         .build())
                 .description("description")
                 .name("name")
                 .type("type")
                 .value(CommandParameterValueProperty.builder()
                         .b(false)
                         .bin("bin")
                         .d(123)
                         .i(123)
                         .l("l")
                         .s("s")
                         .ul("ul")
                         .build())
                 .valueConditions(List.of(CommandParameterValueConditionProperty.builder()
                         .comparisonOperator("comparisonOperator")
                         .operand(CommandParameterValueComparisonOperandProperty.builder()
                                 .number("number")
                                 .numberRange(CommandParameterValueNumberRangeProperty.builder()
                                         .max("max")
                                         .min("min")
                                         .build())
                                 .numbers(List.of("numbers"))
                                 .string("string")
                                 .strings(List.of("strings"))
                                 .build())
                         .build()))
                 .build()))
         .namespace("namespace")
         .payload(CommandPayloadProperty.builder()
                 .content("content")
                 .contentType("contentType")
                 .build())
         .payloadTemplate("payloadTemplate")
         .pendingDeletion(false)
         .preprocessor(CommandPreprocessorProperty.builder()
                 .awsJsonSubstitution(AwsJsonSubstitutionCommandPreprocessorConfigProperty.builder()
                         .outputFormat("outputFormat")
                         .build())
                 .build())
         .roleArn("roleArn")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnCommandPropsMixin

      protected CfnCommandPropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnCommandPropsMixin

      protected CfnCommandPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnCommandPropsMixin

      @Stability(Stable) public CfnCommandPropsMixin(@NotNull CfnCommandMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::IoT::Command.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnCommandPropsMixin

      @Stability(Stable) public CfnCommandPropsMixin(@NotNull CfnCommandMixinProps props)
      Create a mixin to apply properties to AWS::IoT::Command.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnCommandMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()