LaunchTemplateState constructor
- Input<
String?> ? arn, - Input<
List< ? blockDeviceMappings,LaunchTemplateBlockDeviceMapping> ?> - Input<
LaunchTemplateCapacityReservationSpecification?> ? capacityReservationSpecification, - Input<
LaunchTemplateCpuOptions?> ? cpuOptions, - Input<
LaunchTemplateCreditSpecification?> ? creditSpecification, - Input<
int?> ? defaultVersion, - Input<
String?> ? description, - Input<
bool?> ? disableApiStop, - Input<
bool?> ? disableApiTermination, - Input<
String?> ? ebsOptimized, - Input<
LaunchTemplateEnclaveOptions?> ? enclaveOptions, - Input<
LaunchTemplateHibernationOptions?> ? hibernationOptions, - Input<
LaunchTemplateIamInstanceProfile?> ? iamInstanceProfile, - Input<
String?> ? imageId, - Input<
String?> ? instanceInitiatedShutdownBehavior, - Input<
LaunchTemplateInstanceMarketOptions?> ? instanceMarketOptions, - Input<
LaunchTemplateInstanceRequirements?> ? instanceRequirements, - Input<
String?> ? instanceType, - Input<
String?> ? kernelId, - Input<
String?> ? keyName, - Input<
int?> ? latestVersion, - Input<
List< ? licenseSpecifications,LaunchTemplateLicenseSpecification> ?> - Input<
LaunchTemplateMaintenanceOptions?> ? maintenanceOptions, - Input<
LaunchTemplateMetadataOptions?> ? metadataOptions, - Input<
LaunchTemplateMonitoring?> ? monitoring, - Input<
String?> ? name, - Input<
String?> ? namePrefix, - Input<
List< ? networkInterfaces,LaunchTemplateNetworkInterface> ?> - Input<
LaunchTemplateNetworkPerformanceOptions?> ? networkPerformanceOptions, - Input<
LaunchTemplatePlacement?> ? placement, - Input<
LaunchTemplatePrivateDnsNameOptions?> ? privateDnsNameOptions, - Input<
String?> ? ramDiskId, - Input<
String?> ? region, - Input<
List< ? secondaryInterfaces,LaunchTemplateSecondaryInterface> ?> - Input<
List< ? securityGroupNames,String> ?> - Input<
List< ? tagSpecifications,LaunchTemplateTagSpecification> ?> - Input<
Map< ? tags,String, String> ?> - Input<
Map< ? tagsAll,String, String> ?> - Input<
bool?> ? updateDefaultVersion, - Input<
String?> ? userData, - Input<
List< ? vpcSecurityGroupIds,String> ?>
Creates a new LaunchTemplateState.
arn ARN of the launch template.
blockDeviceMappings Specify volumes to attach to the instance besides the volumes specified by the AMI.
capacityReservationSpecification Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
cpuOptions The CPU options for the instance. See CPU Options below for more details.
creditSpecification Customize the credit specification of the instance. See Credit
defaultVersion Default Version of the launch template.
description Description of the launch template version (VersionDescription in the EC2 API). 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 If true, enables EC2 Instance Stop Protection.
disableApiTermination If true, enables [EC2 Instance
ebsOptimized If true, the launched EC2 instance will be EBS-optimized.
enclaveOptions Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
hibernationOptions The hibernation options for the instance. See Hibernation Options below for more details.
iamInstanceProfile The IAM Instance Profile to launch the instance with. See Instance Profile
imageId The AMI from which to launch the instance or use a Systems Manager parameter convention e.g. resolve:ssm:parameter-name. See docs for more details.
instanceInitiatedShutdownBehavior Shutdown behavior for the instance. Can be stop or terminate.
instanceMarketOptions The market (purchasing) option for the instance. See Market Options
instanceRequirements The attribute requirements for the type of instance. If present then instanceType cannot be present.
instanceType The type of the instance. If present then instanceRequirements cannot be present.
kernelId The kernel ID.
keyName The key name to use for the instance.
latestVersion The latest version of the launch template.
licenseSpecifications A list of license specifications to associate with. See License Specification below for more details.
maintenanceOptions The maintenance options for the instance. See Maintenance Options below for more details.
metadataOptions Customize the metadata options for the instance. See Metadata Options below for more details.
monitoring The monitoring option for the instance. See Monitoring below for more details.
name The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.
namePrefix Creates a unique name beginning with the specified prefix. Conflicts with name.
networkInterfaces Customize network interfaces to be attached at instance boot time. See Network
networkPerformanceOptions Optional.
placement The placement of the instance. See Placement below for more details.
privateDnsNameOptions The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.
ramDiskId The ID of the RAM disk.
region Region where this resource will be managed. Defaults to the Region set in the provider configuration.
secondaryInterfaces Secondary interfaces to associate with instances launched from the template. See Secondary
securityGroupNames A list of security group names to associate with. If you are creating Instances in a VPC, use
tagSpecifications 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 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 A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
updateDefaultVersion Whether to update Default Version each update. Conflicts with defaultVersion.
userData The base64-encoded user data to provide when launching the instance.
vpcSecurityGroupIds A list of security group IDs to associate with. Conflicts with network_interfaces.security_groups
Implementation
const LaunchTemplateState({
this.arn,
this.blockDeviceMappings,
this.capacityReservationSpecification,
this.cpuOptions,
this.creditSpecification,
this.defaultVersion,
this.description,
this.disableApiStop,
this.disableApiTermination,
this.ebsOptimized,
this.enclaveOptions,
this.hibernationOptions,
this.iamInstanceProfile,
this.imageId,
this.instanceInitiatedShutdownBehavior,
this.instanceMarketOptions,
this.instanceRequirements,
this.instanceType,
this.kernelId,
this.keyName,
this.latestVersion,
this.licenseSpecifications,
this.maintenanceOptions,
this.metadataOptions,
this.monitoring,
this.name,
this.namePrefix,
this.networkInterfaces,
this.networkPerformanceOptions,
this.placement,
this.privateDnsNameOptions,
this.ramDiskId,
this.region,
this.secondaryInterfaces,
this.securityGroupNames,
this.tagSpecifications,
this.tags,
this.tagsAll,
this.updateDefaultVersion,
this.userData,
this.vpcSecurityGroupIds,
});