Class LaunchTemplateConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • blockDeviceMappings

        @Stability(Stable)
        public LaunchTemplateConfig.Builder blockDeviceMappings​(com.hashicorp.cdktf.IResolvable blockDeviceMappings)
        Parameters:
        blockDeviceMappings - block_device_mappings block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#block_device_mappings LaunchTemplate#block_device_mappings}
        Returns:
        this
      • defaultVersion

        @Stability(Stable)
        public LaunchTemplateConfig.Builder defaultVersion​(Number defaultVersion)
        Parameters:
        defaultVersion - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#default_version LaunchTemplate#default_version}.
        Returns:
        this
      • description

        @Stability(Stable)
        public LaunchTemplateConfig.Builder description​(String description)
        Parameters:
        description - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#description LaunchTemplate#description}.
        Returns:
        this
      • disableApiStop

        @Stability(Stable)
        public LaunchTemplateConfig.Builder disableApiStop​(Boolean disableApiStop)
        Parameters:
        disableApiStop - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#disable_api_stop LaunchTemplate#disable_api_stop}.
        Returns:
        this
      • disableApiStop

        @Stability(Stable)
        public LaunchTemplateConfig.Builder disableApiStop​(com.hashicorp.cdktf.IResolvable disableApiStop)
        Parameters:
        disableApiStop - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#disable_api_stop LaunchTemplate#disable_api_stop}.
        Returns:
        this
      • disableApiTermination

        @Stability(Stable)
        public LaunchTemplateConfig.Builder disableApiTermination​(Boolean disableApiTermination)
        Parameters:
        disableApiTermination - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#disable_api_termination LaunchTemplate#disable_api_termination}.
        Returns:
        this
      • disableApiTermination

        @Stability(Stable)
        public LaunchTemplateConfig.Builder disableApiTermination​(com.hashicorp.cdktf.IResolvable disableApiTermination)
        Parameters:
        disableApiTermination - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#disable_api_termination LaunchTemplate#disable_api_termination}.
        Returns:
        this
      • ebsOptimized

        @Stability(Stable)
        public LaunchTemplateConfig.Builder ebsOptimized​(String ebsOptimized)
        Parameters:
        ebsOptimized - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#ebs_optimized LaunchTemplate#ebs_optimized}.
        Returns:
        this
      • elasticGpuSpecifications

        @Stability(Stable)
        public LaunchTemplateConfig.Builder elasticGpuSpecifications​(com.hashicorp.cdktf.IResolvable elasticGpuSpecifications)
        Parameters:
        elasticGpuSpecifications - elastic_gpu_specifications block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#elastic_gpu_specifications LaunchTemplate#elastic_gpu_specifications}
        Returns:
        this
      • id

        @Stability(Stable)
        public LaunchTemplateConfig.Builder id​(String id)
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#id LaunchTemplate#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
        Returns:
        this
      • imageId

        @Stability(Stable)
        public LaunchTemplateConfig.Builder imageId​(String imageId)
        Parameters:
        imageId - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#image_id LaunchTemplate#image_id}.
        Returns:
        this
      • instanceInitiatedShutdownBehavior

        @Stability(Stable)
        public LaunchTemplateConfig.Builder instanceInitiatedShutdownBehavior​(String instanceInitiatedShutdownBehavior)
        Parameters:
        instanceInitiatedShutdownBehavior - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#instance_initiated_shutdown_behavior LaunchTemplate#instance_initiated_shutdown_behavior}.
        Returns:
        this
      • instanceType

        @Stability(Stable)
        public LaunchTemplateConfig.Builder instanceType​(String instanceType)
        Parameters:
        instanceType - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#instance_type LaunchTemplate#instance_type}.
        Returns:
        this
      • kernelId

        @Stability(Stable)
        public LaunchTemplateConfig.Builder kernelId​(String kernelId)
        Parameters:
        kernelId - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#kernel_id LaunchTemplate#kernel_id}.
        Returns:
        this
      • keyName

        @Stability(Stable)
        public LaunchTemplateConfig.Builder keyName​(String keyName)
        Parameters:
        keyName - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#key_name LaunchTemplate#key_name}.
        Returns:
        this
      • licenseSpecification

        @Stability(Stable)
        public LaunchTemplateConfig.Builder licenseSpecification​(com.hashicorp.cdktf.IResolvable licenseSpecification)
        Parameters:
        licenseSpecification - license_specification block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#license_specification LaunchTemplate#license_specification}
        Returns:
        this
      • name

        @Stability(Stable)
        public LaunchTemplateConfig.Builder name​(String name)
        Parameters:
        name - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#name LaunchTemplate#name}.
        Returns:
        this
      • namePrefix

        @Stability(Stable)
        public LaunchTemplateConfig.Builder namePrefix​(String namePrefix)
        Parameters:
        namePrefix - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#name_prefix LaunchTemplate#name_prefix}.
        Returns:
        this
      • networkInterfaces

        @Stability(Stable)
        public LaunchTemplateConfig.Builder networkInterfaces​(com.hashicorp.cdktf.IResolvable networkInterfaces)
        Parameters:
        networkInterfaces - network_interfaces block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#network_interfaces LaunchTemplate#network_interfaces}
        Returns:
        this
      • ramDiskId

        @Stability(Stable)
        public LaunchTemplateConfig.Builder ramDiskId​(String ramDiskId)
        Parameters:
        ramDiskId - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#ram_disk_id LaunchTemplate#ram_disk_id}.
        Returns:
        this
      • securityGroupNames

        @Stability(Stable)
        public LaunchTemplateConfig.Builder securityGroupNames​(List<String> securityGroupNames)
        Parameters:
        securityGroupNames - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#security_group_names LaunchTemplate#security_group_names}.
        Returns:
        this
      • tagSpecifications

        @Stability(Stable)
        public LaunchTemplateConfig.Builder tagSpecifications​(com.hashicorp.cdktf.IResolvable tagSpecifications)
        Parameters:
        tagSpecifications - tag_specifications block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#tag_specifications LaunchTemplate#tag_specifications}
        Returns:
        this
      • updateDefaultVersion

        @Stability(Stable)
        public LaunchTemplateConfig.Builder updateDefaultVersion​(Boolean updateDefaultVersion)
        Parameters:
        updateDefaultVersion - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#update_default_version LaunchTemplate#update_default_version}.
        Returns:
        this
      • updateDefaultVersion

        @Stability(Stable)
        public LaunchTemplateConfig.Builder updateDefaultVersion​(com.hashicorp.cdktf.IResolvable updateDefaultVersion)
        Parameters:
        updateDefaultVersion - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#update_default_version LaunchTemplate#update_default_version}.
        Returns:
        this
      • userData

        @Stability(Stable)
        public LaunchTemplateConfig.Builder userData​(String userData)
        Parameters:
        userData - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#user_data LaunchTemplate#user_data}.
        Returns:
        this
      • vpcSecurityGroupIds

        @Stability(Stable)
        public LaunchTemplateConfig.Builder vpcSecurityGroupIds​(List<String> vpcSecurityGroupIds)
        Parameters:
        vpcSecurityGroupIds - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/launch_template#vpc_security_group_ids LaunchTemplate#vpc_security_group_ids}.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public LaunchTemplateConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public LaunchTemplateConfig.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public LaunchTemplateConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public LaunchTemplateConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public LaunchTemplateConfig.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Sets the value of TerraformMetaArguments.getDependsOn()
        Parameters:
        dependsOn - the value to be set.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public LaunchTemplateConfig.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Sets the value of TerraformMetaArguments.getForEach()
        Parameters:
        forEach - the value to be set.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public LaunchTemplateConfig.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Sets the value of TerraformMetaArguments.getLifecycle()
        Parameters:
        lifecycle - the value to be set.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public LaunchTemplateConfig.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Sets the value of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public LaunchTemplateConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this