Class LaunchTemplateArgs
Inherited Members
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public sealed class LaunchTemplateArgs : ResourceArgs
Constructors
View SourceLaunchTemplateArgs()
Declaration
public LaunchTemplateArgs()
Properties
View SourceBlockDeviceMappings
Specify volumes to attach to the instance besides the volumes specified by the AMI. See Block Devices below for details.
Declaration
public InputList<LaunchTemplateBlockDeviceMappingArgs> BlockDeviceMappings { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<LaunchTemplateBlockDeviceMappingArgs> |
CapacityReservationSpecification
Targeting for EC2 capacity reservations. See Capacity Reservation Specification below for more details.
Declaration
public Input<LaunchTemplateCapacityReservationSpecificationArgs> CapacityReservationSpecification { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<LaunchTemplateCapacityReservationSpecificationArgs> |
CpuOptions
The CPU options for the instance. See CPU Options below for more details.
Declaration
public Input<LaunchTemplateCpuOptionsArgs> CpuOptions { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<LaunchTemplateCpuOptionsArgs> |
CreditSpecification
Customize the credit specification of the instance. See Credit Specification below for more details.
Declaration
public Input<LaunchTemplateCreditSpecificationArgs> CreditSpecification { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<LaunchTemplateCreditSpecificationArgs> |
Description
Description of the launch template.
Declaration
public Input<string> Description { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
DisableApiTermination
If true, enables EC2 Instance
Termination Protection
Declaration
public Input<bool> DisableApiTermination { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
EbsOptimized
If true, the launched EC2 instance will be EBS-optimized.
Declaration
public Input<string> EbsOptimized { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ElasticGpuSpecifications
The elastic GPU to attach to the instance. See Elastic GPU below for more details.
Declaration
public InputList<LaunchTemplateElasticGpuSpecificationArgs> ElasticGpuSpecifications { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<LaunchTemplateElasticGpuSpecificationArgs> |
ElasticInferenceAccelerator
Configuration block containing an Elastic Inference Accelerator to attach to the instance. See Elastic Inference Accelerator below for more details.
Declaration
public Input<LaunchTemplateElasticInferenceAcceleratorArgs> ElasticInferenceAccelerator { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<LaunchTemplateElasticInferenceAcceleratorArgs> |
HibernationOptions
The hibernation options for the instance. See Hibernation Options below for more details.
Declaration
public Input<LaunchTemplateHibernationOptionsArgs> HibernationOptions { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<LaunchTemplateHibernationOptionsArgs> |
IamInstanceProfile
The IAM Instance Profile to launch the instance with. See Instance Profile below for more details.
Declaration
public Input<LaunchTemplateIamInstanceProfileArgs> IamInstanceProfile { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<LaunchTemplateIamInstanceProfileArgs> |
ImageId
The AMI from which to launch the instance.
Declaration
public Input<string> ImageId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
InstanceInitiatedShutdownBehavior
Shutdown behavior for the instance. Can be stop or terminate.
(Default: stop).
Declaration
public Input<string> InstanceInitiatedShutdownBehavior { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
InstanceMarketOptions
The market (purchasing) option for the instance. See Market Options below for details.
Declaration
public Input<LaunchTemplateInstanceMarketOptionsArgs> InstanceMarketOptions { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<LaunchTemplateInstanceMarketOptionsArgs> |
InstanceType
The type of the instance.
Declaration
public Input<string> InstanceType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
KernelId
The kernel ID.
Declaration
public Input<string> KernelId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
KeyName
The key name to use for the instance.
Declaration
public Input<string> KeyName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
LicenseSpecifications
A list of license specifications to associate with. See License Specification below for more details.
Declaration
public InputList<LaunchTemplateLicenseSpecificationArgs> LicenseSpecifications { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<LaunchTemplateLicenseSpecificationArgs> |
MetadataOptions
Customize the metadata options for the instance. See Metadata Options below for more details.
Declaration
public Input<LaunchTemplateMetadataOptionsArgs> MetadataOptions { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<LaunchTemplateMetadataOptionsArgs> |
Monitoring
The monitoring option for the instance. See Monitoring below for more details.
Declaration
public Input<LaunchTemplateMonitoringArgs> Monitoring { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<LaunchTemplateMonitoringArgs> |
Name
The name of the launch template. If you leave this blank, this provider will auto-generate a unique name.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
NamePrefix
Creates a unique name beginning with the specified prefix. Conflicts with name.
Declaration
public Input<string> NamePrefix { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
NetworkInterfaces
Customize network interfaces to be attached at instance boot time. See Network Interfaces below for more details.
Declaration
public InputList<LaunchTemplateNetworkInterfaceArgs> NetworkInterfaces { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<LaunchTemplateNetworkInterfaceArgs> |
Placement
The placement of the instance. See Placement below for more details.
Declaration
public Input<LaunchTemplatePlacementArgs> Placement { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<LaunchTemplatePlacementArgs> |
RamDiskId
The ID of the RAM disk.
Declaration
public Input<string> RamDiskId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SecurityGroupNames
A list of security group names to associate with. If you are creating Instances in a VPC, use
vpc_security_group_ids instead.
Declaration
public InputList<string> SecurityGroupNames { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Tags
A map of tags to assign to the launch template.
Declaration
public InputMap<object> Tags { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.Object> |
TagSpecifications
The tags to apply to the resources during launch. See Tag Specifications below for more details.
Declaration
public InputList<LaunchTemplateTagSpecificationArgs> TagSpecifications { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<LaunchTemplateTagSpecificationArgs> |
UserData
The Base64-encoded user data to provide when launching the instance.
Declaration
public Input<string> UserData { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
VpcSecurityGroupIds
A list of security group IDs to associate with.
Declaration
public InputList<string> VpcSecurityGroupIds { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |