Class CfnTaskDefinition

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:03.500Z") @Stability(Stable) public class CfnTaskDefinition extends CfnResource implements IInspectable, ITaggable
Creates a gateway task definition.

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.iotwireless.*;
 CfnTaskDefinition cfnTaskDefinition = CfnTaskDefinition.Builder.create(this, "MyCfnTaskDefinition")
         .autoCreateTasks(false)
         // the properties below are optional
         .loRaWanUpdateGatewayTaskEntry(LoRaWANUpdateGatewayTaskEntryProperty.builder()
                 .currentVersion(LoRaWANGatewayVersionProperty.builder()
                         .model("model")
                         .packageVersion("packageVersion")
                         .station("station")
                         .build())
                 .updateVersion(LoRaWANGatewayVersionProperty.builder()
                         .model("model")
                         .packageVersion("packageVersion")
                         .station("station")
                         .build())
                 .build())
         .name("name")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .taskDefinitionType("taskDefinitionType")
         .update(UpdateWirelessGatewayTaskCreateProperty.builder()
                 .loRaWan(LoRaWANUpdateGatewayTaskCreateProperty.builder()
                         .currentVersion(LoRaWANGatewayVersionProperty.builder()
                                 .model("model")
                                 .packageVersion("packageVersion")
                                 .station("station")
                                 .build())
                         .sigKeyCrc(123)
                         .updateSignature("updateSignature")
                         .updateVersion(LoRaWANGatewayVersionProperty.builder()
                                 .model("model")
                                 .packageVersion("packageVersion")
                                 .station("station")
                                 .build())
                         .build())
                 .updateDataRole("updateDataRole")
                 .updateDataSource("updateDataSource")
                 .build())
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnTaskDefinition

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

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

      @Stability(Stable) public CfnTaskDefinition(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTaskDefinitionProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name of the resource.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
      The ID of the new wireless gateway task definition.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getAutoCreateTasks

      @Stability(Stable) @NotNull public Object getAutoCreateTasks()
      Whether to automatically create tasks using this task definition for all gateways with the specified current version.
    • setAutoCreateTasks

      @Stability(Stable) public void setAutoCreateTasks(@NotNull Boolean value)
      Whether to automatically create tasks using this task definition for all gateways with the specified current version.
    • setAutoCreateTasks

      @Stability(Stable) public void setAutoCreateTasks(@NotNull IResolvable value)
      Whether to automatically create tasks using this task definition for all gateways with the specified current version.
    • getLoRaWanUpdateGatewayTaskEntry

      @Stability(Stable) @Nullable public Object getLoRaWanUpdateGatewayTaskEntry()
      LoRaWANUpdateGatewayTaskEntry object.
    • setLoRaWanUpdateGatewayTaskEntry

      @Stability(Stable) public void setLoRaWanUpdateGatewayTaskEntry(@Nullable IResolvable value)
      LoRaWANUpdateGatewayTaskEntry object.
    • setLoRaWanUpdateGatewayTaskEntry

      @Stability(Stable) public void setLoRaWanUpdateGatewayTaskEntry(@Nullable CfnTaskDefinition.LoRaWANUpdateGatewayTaskEntryProperty value)
      LoRaWANUpdateGatewayTaskEntry object.
    • getName

      @Stability(Stable) @Nullable public String getName()
      The name of the new resource.
    • setName

      @Stability(Stable) public void setName(@Nullable String value)
      The name of the new resource.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      The tags are an array of key-value pairs to attach to the specified resource.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      The tags are an array of key-value pairs to attach to the specified resource.
    • getTaskDefinitionType

      @Stability(Stable) @Nullable public String getTaskDefinitionType()
      A filter to list only the wireless gateway task definitions that use this task definition type.
    • setTaskDefinitionType

      @Stability(Stable) public void setTaskDefinitionType(@Nullable String value)
      A filter to list only the wireless gateway task definitions that use this task definition type.
    • getUpdate

      @Stability(Stable) @Nullable public Object getUpdate()
      Information about the gateways to update.
    • setUpdate

      @Stability(Stable) public void setUpdate(@Nullable IResolvable value)
      Information about the gateways to update.
    • setUpdate

      @Stability(Stable) public void setUpdate(@Nullable CfnTaskDefinition.UpdateWirelessGatewayTaskCreateProperty value)
      Information about the gateways to update.