LaunchTemplateState class
Input properties used for looking up and filtering LaunchTemplate resources.
Constructors
-
LaunchTemplateState({Input<
String?> ? arn, Input<List< ? blockDeviceMappings, Input<LaunchTemplateBlockDeviceMapping> ?>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, Input<LaunchTemplateLicenseSpecification> ?>LaunchTemplateMaintenanceOptions?> ? maintenanceOptions, Input<LaunchTemplateMetadataOptions?> ? metadataOptions, Input<LaunchTemplateMonitoring?> ? monitoring, Input<String?> ? name, Input<String?> ? namePrefix, Input<List< ? networkInterfaces, Input<LaunchTemplateNetworkInterface> ?>LaunchTemplateNetworkPerformanceOptions?> ? networkPerformanceOptions, Input<LaunchTemplatePlacement?> ? placement, Input<LaunchTemplatePrivateDnsNameOptions?> ? privateDnsNameOptions, Input<String?> ? ramDiskId, Input<String?> ? region, Input<List< ? secondaryInterfaces, Input<LaunchTemplateSecondaryInterface> ?>List< ? securityGroupNames, Input<String> ?>List< ? tagSpecifications, Input<LaunchTemplateTagSpecification> ?>Map< ? tags, Input<String, String> ?>Map< ? tagsAll, Input<String, String> ?>bool?> ? updateDefaultVersion, Input<String?> ? userData, Input<List< ? vpcSecurityGroupIds})String> ?> -
Creates a new LaunchTemplateState.
arnARN of the launch template.blockDeviceMappingsSpecify volumes to attach to the instance besides the volumes specified by the AMI.capacityReservationSpecificationTargeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.cpuOptionsThe CPU options for the instance. See CPU Options below for more details.creditSpecificationCustomize the credit specification of the instance. See CreditdefaultVersionDefault Version of the launch template.descriptionDescription of the launch template version (VersionDescriptionin 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.disableApiStopIf true, enables EC2 Instance Stop Protection.disableApiTerminationIftrue, enables [EC2 InstanceebsOptimizedIftrue, the launched EC2 instance will be EBS-optimized.enclaveOptionsEnable Nitro Enclaves on launched instances. See Enclave Options below for more details.hibernationOptionsThe hibernation options for the instance. See Hibernation Options below for more details.iamInstanceProfileThe IAM Instance Profile to launch the instance with. See Instance ProfileimageIdThe 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.instanceInitiatedShutdownBehaviorShutdown behavior for the instance. Can bestoporterminate.instanceMarketOptionsThe market (purchasing) option for the instance. See Market OptionsinstanceRequirementsThe attribute requirements for the type of instance. If present theninstanceTypecannot be present.instanceTypeThe type of the instance. If present theninstanceRequirementscannot be present.kernelIdThe kernel ID.keyNameThe key name to use for the instance.latestVersionThe latest version of the launch template.licenseSpecificationsA list of license specifications to associate with. See License Specification below for more details.maintenanceOptionsThe maintenance options for the instance. See Maintenance Options below for more details.metadataOptionsCustomize the metadata options for the instance. See Metadata Options below for more details.monitoringThe monitoring option for the instance. See Monitoring below for more details.nameThe name of the launch template. If you leave this blank, the provider will auto-generate a unique name.namePrefixCreates a unique name beginning with the specified prefix. Conflicts withname.networkInterfacesCustomize network interfaces to be attached at instance boot time. See NetworknetworkPerformanceOptionsOptional.placementThe placement of the instance. See Placement below for more details.privateDnsNameOptionsThe options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.ramDiskIdThe ID of the RAM disk.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.secondaryInterfacesSecondary interfaces to associate with instances launched from the template. See SecondarysecurityGroupNamesA list of security group names to associate with. If you are creating Instances in a VPC, usetagSpecificationsThe 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.tagsA map of tags to assign to the launch template. If configured with a providerdefaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.tagsAllA map of tags assigned to the resource, including those inherited from the providerdefaultTagsconfiguration block.updateDefaultVersionWhether to update Default Version each update. Conflicts withdefaultVersion.userDataThe base64-encoded user data to provide when launching the instance.vpcSecurityGroupIdsA list of security group IDs to associate with. Conflicts withnetwork_interfaces.security_groupsconst -
LaunchTemplateState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
arn
→ Input<
String?> ? -
ARN of the launch template.
final
-
blockDeviceMappings
→ Input<
List< ?LaunchTemplateBlockDeviceMapping> ?> -
Specify volumes to attach to the instance besides the volumes specified by the AMI.
See Block Devices below for details.
final
-
capacityReservationSpecification
→ Input<
LaunchTemplateCapacityReservationSpecification?> ? -
Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
final
-
cpuOptions
→ Input<
LaunchTemplateCpuOptions?> ? -
The CPU options for the instance. See CPU Options below for more details.
final
-
creditSpecification
→ Input<
LaunchTemplateCreditSpecification?> ? -
Customize the credit specification of the instance. See Credit
Specification below for more details.
final
-
defaultVersion
→ Input<
int?> ? -
Default Version of the launch template.
final
-
description
→ Input<
String?> ? -
Description of the launch template version (
VersionDescriptionin 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.final -
disableApiStop
→ Input<
bool?> ? -
If true, enables EC2 Instance Stop Protection.
final
-
disableApiTermination
→ Input<
bool?> ? -
If
true, enables EC2 Instance Termination Protectionfinal -
ebsOptimized
→ Input<
String?> ? -
If
true, the launched EC2 instance will be EBS-optimized.final -
enclaveOptions
→ Input<
LaunchTemplateEnclaveOptions?> ? -
Enable Nitro Enclaves on launched instances. See Enclave Options below for more details.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hibernationOptions
→ Input<
LaunchTemplateHibernationOptions?> ? -
The hibernation options for the instance. See Hibernation Options below for more details.
final
-
iamInstanceProfile
→ Input<
LaunchTemplateIamInstanceProfile?> ? -
The IAM Instance Profile to launch the instance with. See Instance Profile
below for more details.
final
-
imageId
→ Input<
String?> ? -
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.final -
instanceInitiatedShutdownBehavior
→ Input<
String?> ? -
Shutdown behavior for the instance. Can be
stoporterminate. (Default:stop).final -
instanceMarketOptions
→ Input<
LaunchTemplateInstanceMarketOptions?> ? -
The market (purchasing) option for the instance. See Market Options
below for details.
final
-
instanceRequirements
→ Input<
LaunchTemplateInstanceRequirements?> ? -
The attribute requirements for the type of instance. If present then
instanceTypecannot be present.final -
instanceType
→ Input<
String?> ? -
The type of the instance. If present then
instanceRequirementscannot be present.final -
kernelId
→ Input<
String?> ? -
The kernel ID.
final
-
keyName
→ Input<
String?> ? -
The key name to use for the instance.
final
-
latestVersion
→ Input<
int?> ? -
The latest version of the launch template.
final
-
licenseSpecifications
→ Input<
List< ?LaunchTemplateLicenseSpecification> ?> -
A list of license specifications to associate with. See License Specification below for more details.
final
-
maintenanceOptions
→ Input<
LaunchTemplateMaintenanceOptions?> ? -
The maintenance options for the instance. See Maintenance Options below for more details.
final
-
metadataOptions
→ Input<
LaunchTemplateMetadataOptions?> ? -
Customize the metadata options for the instance. See Metadata Options below for more details.
final
-
monitoring
→ Input<
LaunchTemplateMonitoring?> ? -
The monitoring option for the instance. See Monitoring below for more details.
final
-
name
→ Input<
String?> ? -
The name of the launch template. If you leave this blank, the provider will auto-generate a unique name.
final
-
namePrefix
→ Input<
String?> ? -
Creates a unique name beginning with the specified prefix. Conflicts with
name.final -
networkInterfaces
→ Input<
List< ?LaunchTemplateNetworkInterface> ?> -
Customize network interfaces to be attached at instance boot time. See Network
Interfaces below for more details.
final
-
networkPerformanceOptions
→ Input<
LaunchTemplateNetworkPerformanceOptions?> ? -
final
-
placement
→ Input<
LaunchTemplatePlacement?> ? -
The placement of the instance. See Placement below for more details.
final
-
privateDnsNameOptions
→ Input<
LaunchTemplatePrivateDnsNameOptions?> ? -
The options for the instance hostname. The default values are inherited from the subnet. See Private DNS Name Options below for more details.
final
-
ramDiskId
→ Input<
String?> ? -
The ID of the RAM disk.
final
-
region
→ Input<
String?> ? -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
secondaryInterfaces
→ Input<
List< ?LaunchTemplateSecondaryInterface> ?> -
Secondary interfaces to associate with instances launched from the template. See Secondary
Interfaces below for more details.
final
-
securityGroupNames
→ Input<
List< ?String> ?> -
A list of security group names to associate with. If you are creating Instances in a VPC, use
vpcSecurityGroupIdsinstead.final -
A map of tags to assign to the launch template. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.final -
A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.final -
tagSpecifications
→ Input<
List< ?LaunchTemplateTagSpecification> ?> -
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.
final
-
updateDefaultVersion
→ Input<
bool?> ? -
Whether to update Default Version each update. Conflicts with
defaultVersion.final -
userData
→ Input<
String?> ? -
The base64-encoded user data to provide when launching the instance.
final
-
vpcSecurityGroupIds
→ Input<
List< ?String> ?> -
A list of security group IDs to associate with. Conflicts with
network_interfaces.security_groupsfinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited