Class CfnDeviceDefinition.Builder

java.lang.Object
software.amazon.awscdk.services.greengrass.CfnDeviceDefinition.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeviceDefinition>
Enclosing class:
CfnDeviceDefinition

@Stability(Stable) public static final class CfnDeviceDefinition.Builder extends Object implements software.amazon.jsii.Builder<CfnDeviceDefinition>
A fluent builder for CfnDeviceDefinition.
  • Method Details

    • create

      @Stability(Stable) public static CfnDeviceDefinition.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnDeviceDefinition.Builder.
    • name

      @Stability(Stable) public CfnDeviceDefinition.Builder name(String name)
      The name of the device definition.

      Parameters:
      name - The name of the device definition. This parameter is required.
      Returns:
      this
    • initialVersion

      @Stability(Stable) public CfnDeviceDefinition.Builder initialVersion(IResolvable initialVersion)
      The device definition version to include when the device definition is created.

      A device definition version contains a list of device property types.

      To associate a device definition version after the device definition is created, create an AWS::Greengrass::DeviceDefinitionVersion resource and specify the ID of this device definition.

      Parameters:
      initialVersion - The device definition version to include when the device definition is created. This parameter is required.
      Returns:
      this
    • initialVersion

      @Stability(Stable) public CfnDeviceDefinition.Builder initialVersion(CfnDeviceDefinition.DeviceDefinitionVersionProperty initialVersion)
      The device definition version to include when the device definition is created.

      A device definition version contains a list of device property types.

      To associate a device definition version after the device definition is created, create an AWS::Greengrass::DeviceDefinitionVersion resource and specify the ID of this device definition.

      Parameters:
      initialVersion - The device definition version to include when the device definition is created. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnDeviceDefinition.Builder tags(Object tags)
      Application-specific metadata to attach to the device definition.

      You can use tags in IAM policies to control access to AWS IoT Greengrass resources. You can also use tags to categorize your resources. For more information, see Tagging Your AWS IoT Greengrass Resources in the Developer Guide .

      This Json property type is processed as a map of key-value pairs. It uses the following format, which is different from most Tags implementations in AWS CloudFormation templates.

       "Tags": { "KeyName0": "value", "KeyName1": "value", "KeyName2": "value"
       }
       

      Parameters:
      tags - Application-specific metadata to attach to the device definition. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnDeviceDefinition build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDeviceDefinition>
      Returns:
      a newly built instance of CfnDeviceDefinition.