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.
Describes the launch specification for an instance.
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z
public class LaunchSpecification
The LaunchSpecification type exposes the following members
Name | Description | |
---|---|---|
![]() |
LaunchSpecification() |
Name | Type | Description | |
---|---|---|---|
![]() |
AddressingType | System.String |
Gets and sets the property AddressingType. Deprecated. |
![]() |
AllSecurityGroups | System.Collections.Generic.List<Amazon.EC2.Model.GroupIdentifier> |
Gets and sets the property AllSecurityGroups. The IDs of the security groups. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
![]() |
BlockDeviceMappings | System.Collections.Generic.List<Amazon.EC2.Model.BlockDeviceMapping> |
Gets and sets the property BlockDeviceMappings. The block device mapping entries. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
![]() |
EbsOptimized | System.Nullable<System.Boolean> |
Gets and sets the property EbsOptimized. Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
Default: |
![]() |
IamInstanceProfile | Amazon.EC2.Model.IamInstanceProfileSpecification |
Gets and sets the property IamInstanceProfile. The IAM instance profile. |
![]() |
ImageId | System.String |
Gets and sets the property ImageId. The ID of the AMI. |
![]() |
InstanceType | Amazon.EC2.InstanceType |
Gets and sets the property InstanceType. The instance type. Only one instance type can be specified. |
![]() |
KernelId | System.String |
Gets and sets the property KernelId. The ID of the kernel. |
![]() |
KeyName | System.String |
Gets and sets the property KeyName. The name of the key pair. |
![]() |
MonitoringEnabled | System.Nullable<System.Boolean> |
Gets and sets the property MonitoringEnabled. |
![]() |
NetworkInterfaces | System.Collections.Generic.List<Amazon.EC2.Model.InstanceNetworkInterfaceSpecification> |
Gets and sets the property NetworkInterfaces. The network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
![]() |
Placement | Amazon.EC2.Model.SpotPlacement |
Gets and sets the property Placement. The placement information for the instance. |
![]() |
RamdiskId | System.String |
Gets and sets the property RamdiskId. The ID of the RAM disk. |
![]() |
SecurityGroups | System.Collections.Generic.List<System.String> |
Gets and sets the property SecurityGroups. One or more security group names. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true. |
![]() |
SubnetId | System.String |
Gets and sets the property SubnetId. The ID of the subnet in which to launch the instance. |
![]() |
UserData | System.String |
Gets and sets the property UserData. The base64-encoded user data that instances use when starting up. User data is limited to 16 KB. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer