AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

The information for a launch template.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.ResponseLaunchTemplateData

Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public class ResponseLaunchTemplateData

The ResponseLaunchTemplateData type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property BlockDeviceMappings System.Collections.Generic.List<Amazon.EC2.Model.LaunchTemplateBlockDeviceMapping>

Gets and sets the property BlockDeviceMappings.

The block device mappings.

Public Property CapacityReservationSpecification Amazon.EC2.Model.LaunchTemplateCapacityReservationSpecificationResponse

Gets and sets the property CapacityReservationSpecification.

Information about the Capacity Reservation targeting option.

Public Property CpuOptions Amazon.EC2.Model.LaunchTemplateCpuOptions

Gets and sets the property CpuOptions.

The CPU options for the instance. For more information, see Optimizing CPU options in the Amazon Elastic Compute Cloud User Guide.

Public Property CreditSpecification Amazon.EC2.Model.CreditSpecification

Gets and sets the property CreditSpecification.

The credit option for CPU usage of the instance.

Public Property DisableApiStop System.Boolean

Gets and sets the property DisableApiStop.

Indicates whether the instance is enabled for stop protection. For more information, see Stop protection in the Amazon Elastic Compute Cloud User Guide.

Public Property DisableApiTermination System.Boolean

Gets and sets the property DisableApiTermination.

If set to true, indicates that the instance cannot be terminated using the Amazon EC2 console, command line tool, or API.

Public Property EbsOptimized System.Boolean

Gets and sets the property EbsOptimized.

Indicates whether the instance is optimized for Amazon EBS I/O.

Public Property ElasticGpuSpecifications System.Collections.Generic.List<Amazon.EC2.Model.ElasticGpuSpecificationResponse>

Gets and sets the property ElasticGpuSpecifications.

Deprecated.

Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.

Public Property ElasticInferenceAccelerators System.Collections.Generic.List<Amazon.EC2.Model.LaunchTemplateElasticInferenceAcceleratorResponse>

Gets and sets the property ElasticInferenceAccelerators.

An elastic inference accelerator to associate with the instance. Elastic inference accelerators are a resource you can attach to your Amazon EC2 instances to accelerate your Deep Learning (DL) inference workloads.

You cannot specify accelerators from different generations in the same request.

Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.

Public Property EnclaveOptions Amazon.EC2.Model.LaunchTemplateEnclaveOptions

Gets and sets the property EnclaveOptions.

Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.

Public Property HibernationOptions Amazon.EC2.Model.LaunchTemplateHibernationOptions

Gets and sets the property HibernationOptions.

Indicates whether an instance is configured for hibernation. For more information, see Hibernate your instance in the Amazon Elastic Compute Cloud User Guide.

Public Property IamInstanceProfile Amazon.EC2.Model.LaunchTemplateIamInstanceProfileSpecification

Gets and sets the property IamInstanceProfile.

The IAM instance profile.

Public Property ImageId System.String

Gets and sets the property ImageId.

The ID of the AMI or a Systems Manager parameter. The Systems Manager parameter will resolve to the ID of the AMI at instance launch.

The value depends on what you specified in the request. The possible values are:

  • If an AMI ID was specified in the request, then this is the AMI ID.

  • If a Systems Manager parameter was specified in the request, and ResolveAlias was configured as true, then this is the AMI ID that the parameter is mapped to in the Parameter Store.

  • If a Systems Manager parameter was specified in the request, and ResolveAlias was configured as false, then this is the parameter value.

For more information, see Use a Systems Manager parameter instead of an AMI ID in the Amazon Elastic Compute Cloud User Guide.

Public Property InstanceInitiatedShutdownBehavior Amazon.EC2.ShutdownBehavior

Gets and sets the property InstanceInitiatedShutdownBehavior.

Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

Public Property InstanceMarketOptions Amazon.EC2.Model.LaunchTemplateInstanceMarketOptions

Gets and sets the property InstanceMarketOptions.

The market (purchasing) option for the instances.

Public Property InstanceRequirements Amazon.EC2.Model.InstanceRequirements

Gets and sets the property InstanceRequirements.

The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.

If you specify InstanceRequirements, you can't specify InstanceTypes.

Public Property InstanceType Amazon.EC2.InstanceType

Gets and sets the property InstanceType.

The instance type.

Public Property KernelId System.String

Gets and sets the property KernelId.

The ID of the kernel, if applicable.

Public Property KeyName System.String

Gets and sets the property KeyName.

The name of the key pair.

Public Property LicenseSpecifications System.Collections.Generic.List<Amazon.EC2.Model.LaunchTemplateLicenseConfiguration>

Gets and sets the property LicenseSpecifications.

The license configurations.

Public Property MaintenanceOptions Amazon.EC2.Model.LaunchTemplateInstanceMaintenanceOptions

Gets and sets the property MaintenanceOptions.

The maintenance options for your instance.

Public Property MetadataOptions Amazon.EC2.Model.LaunchTemplateInstanceMetadataOptions

Gets and sets the property MetadataOptions.

The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon Elastic Compute Cloud User Guide.

Public Property Monitoring Amazon.EC2.Model.LaunchTemplatesMonitoring

Gets and sets the property Monitoring.

The monitoring for the instance.

Public Property NetworkInterfaces System.Collections.Generic.List<Amazon.EC2.Model.LaunchTemplateInstanceNetworkInterfaceSpecification>

Gets and sets the property NetworkInterfaces.

The network interfaces.

Public Property Placement Amazon.EC2.Model.LaunchTemplatePlacement

Gets and sets the property Placement.

The placement of the instance.

Public Property PrivateDnsNameOptions Amazon.EC2.Model.LaunchTemplatePrivateDnsNameOptions

Gets and sets the property PrivateDnsNameOptions.

The options for the instance hostname.

Public Property RamDiskId System.String

Gets and sets the property RamDiskId.

The ID of the RAM disk, if applicable.

Public Property SecurityGroupIds System.Collections.Generic.List<System.String>

Gets and sets the property SecurityGroupIds.

The security group IDs.

Public Property SecurityGroups System.Collections.Generic.List<System.String>

Gets and sets the property SecurityGroups.

The security group names.

Public Property TagSpecifications System.Collections.Generic.List<Amazon.EC2.Model.LaunchTemplateTagSpecification>

Gets and sets the property TagSpecifications.

The tags that are applied to the resources that are created during instance launch.

Public Property UserData System.String

Gets and sets the property UserData.

The user data for the instance.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5