Class LaunchTemplateState


  • public final class LaunchTemplateState
    extends com.pulumi.resources.ResourceArgs
    • Method Detail

      • arn

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> arn()
        Returns:
        ARN of the launch template.
      • blockDeviceMappings

        public java.util.Optional<com.pulumi.core.Output<java.util.List<LaunchTemplateBlockDeviceMappingArgs>>> blockDeviceMappings()
        Returns:
        Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.
      • capacityReservationSpecification

        public java.util.Optional<com.pulumi.core.Output<LaunchTemplateCapacityReservationSpecificationArgs>> capacityReservationSpecification()
        Returns:
        Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
      • cpuOptions

        public java.util.Optional<com.pulumi.core.Output<LaunchTemplateCpuOptionsArgs>> cpuOptions()
        Returns:
        The CPU options for the instance. See CPU Options below for more details.
      • creditSpecification

        public java.util.Optional<com.pulumi.core.Output<LaunchTemplateCreditSpecificationArgs>> creditSpecification()
        Returns:
        Customize the credit specification of the instance. See Credit Specification below for more details.
      • defaultVersion

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> defaultVersion()
        Returns:
        Default Version of the launch template.
      • description

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> description()
        Returns:
        Description of the launch template version (`VersionDescription` in the [EC2 API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateLaunchTemplateVersion.html)). Launch templates in AWS do not have a template-level description; whenever a change to this resource creates a new version, the new version is created with this description. To give each version a distinct description, update this argument in the same apply as the other changes.
      • disableApiStop

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> disableApiStop()
        Returns:
        If true, enables [EC2 Instance Stop Protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html).
      • disableApiTermination

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> disableApiTermination()
        Returns:
        If `true`, enables [EC2 Instance Termination Protection](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_ChangingDisableAPITermination.html)
      • ebsOptimized

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> ebsOptimized()
        Returns:
        If `true`, the launched EC2 instance will be EBS-optimized.
      • enclaveOptions

        public java.util.Optional<com.pulumi.core.Output<LaunchTemplateEnclaveOptionsArgs>> enclaveOptions()
        Returns:
        Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
      • hibernationOptions

        public java.util.Optional<com.pulumi.core.Output<LaunchTemplateHibernationOptionsArgs>> hibernationOptions()
        Returns:
        The hibernation options for the instance. See Hibernation Options below for more details.
      • iamInstanceProfile

        public java.util.Optional<com.pulumi.core.Output<LaunchTemplateIamInstanceProfileArgs>> iamInstanceProfile()
        Returns:
        The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.
      • imageId

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> imageId()
        Returns:
        The AMI from which to launch the instance or use a Systems Manager parameter convention e.g. `resolve:ssm:parameter-name`. See [docs](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-launch-template.html#use-an-ssm-parameter-instead-of-an-ami-id) for more details.
      • instanceInitiatedShutdownBehavior

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> instanceInitiatedShutdownBehavior()
        Returns:
        Shutdown behavior for the instance. Can be `stop` or `terminate`. (Default: `stop`).
      • instanceMarketOptions

        public java.util.Optional<com.pulumi.core.Output<LaunchTemplateInstanceMarketOptionsArgs>> instanceMarketOptions()
        Returns:
        The market (purchasing) option for the instance. See Market Options below for details.
      • instanceRequirements

        public java.util.Optional<com.pulumi.core.Output<LaunchTemplateInstanceRequirementsArgs>> instanceRequirements()
        Returns:
        The attribute requirements for the type of instance. If present then `instanceType` cannot be present.
      • instanceType

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> instanceType()
        Returns:
        The type of the instance. If present then `instanceRequirements` cannot be present.
      • kernelId

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> kernelId()
        Returns:
        The kernel ID.
      • keyName

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> keyName()
        Returns:
        The key name to use for the instance.
      • latestVersion

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> latestVersion()
        Returns:
        The latest version of the launch template.
      • licenseSpecifications

        public java.util.Optional<com.pulumi.core.Output<java.util.List<LaunchTemplateLicenseSpecificationArgs>>> licenseSpecifications()
        Returns:
        A list of license specifications to associate with. See License Specification below for more details.
      • maintenanceOptions

        public java.util.Optional<com.pulumi.core.Output<LaunchTemplateMaintenanceOptionsArgs>> maintenanceOptions()
        Returns:
        The maintenance options for the instance. See Maintenance Options below for more details.
      • metadataOptions

        public java.util.Optional<com.pulumi.core.Output<LaunchTemplateMetadataOptionsArgs>> metadataOptions()
        Returns:
        Customize the metadata options for the instance. See Metadata Options below for more details.
      • monitoring

        public java.util.Optional<com.pulumi.core.Output<LaunchTemplateMonitoringArgs>> monitoring()
        Returns:
        The monitoring option for the instance. See Monitoring below for more details.
      • name

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> name()
        Returns:
        The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.
      • namePrefix

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> namePrefix()
        Returns:
        Creates a unique name beginning with the specified prefix. Conflicts with `name`.
      • networkInterfaces

        public java.util.Optional<com.pulumi.core.Output<java.util.List<LaunchTemplateNetworkInterfaceArgs>>> networkInterfaces()
        Returns:
        Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.
      • placement

        public java.util.Optional<com.pulumi.core.Output<LaunchTemplatePlacementArgs>> placement()
        Returns:
        The placement of the instance. See Placement below for more details.
      • privateDnsNameOptions

        public java.util.Optional<com.pulumi.core.Output<LaunchTemplatePrivateDnsNameOptionsArgs>> privateDnsNameOptions()
        Returns:
        The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.
      • ramDiskId

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> ramDiskId()
        Returns:
        The ID of the RAM disk.
      • region

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • secondaryInterfaces

        public java.util.Optional<com.pulumi.core.Output<java.util.List<LaunchTemplateSecondaryInterfaceArgs>>> secondaryInterfaces()
        Returns:
        Secondary interfaces to associate with instances launched from the template. See Secondary Interfaces below for more details.
      • securityGroupNames

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> securityGroupNames()
        Returns:
        A list of security group names to associate with. If you are creating Instances in a VPC, use `vpcSecurityGroupIds` instead.
      • tagSpecifications

        public java.util.Optional<com.pulumi.core.Output<java.util.List<LaunchTemplateTagSpecificationArgs>>> tagSpecifications()
        Returns:
        The tags to apply to the resources during launch. See Tag Specifications below for more details. Default tags are currently not propagated to ASG created resources so you may wish to inject your default tags into this variable against the relevant child resource types created.
      • tags

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        A map of tags to assign to the launch template. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
      • tagsAll

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> tagsAll()
        Returns:
        A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
      • updateDefaultVersion

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> updateDefaultVersion()
        Returns:
        Whether to update Default Version each update. Conflicts with `defaultVersion`.
      • userData

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> userData()
        Returns:
        The base64-encoded user data to provide when launching the instance.
      • vpcSecurityGroupIds

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> vpcSecurityGroupIds()
        Returns:
        A list of security group IDs to associate with. Conflicts with `network_interfaces.security_groups`