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.

Describes the placement of an instance.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.Placement

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

Syntax

C#
public class Placement

The Placement type exposes the following members

Constructors

NameDescription
Public Method Placement()

Empty constructor used to set properties independently even when a simple constructor is available

Public Method Placement(string)

Instantiates Placement with the parameterized properties

Properties

NameTypeDescription
Public Property Affinity System.String

Gets and sets the property Affinity.

The affinity setting for the instance on the Dedicated Host.

This parameter is not supported for CreateFleet or ImportInstance.

Public Property AvailabilityZone System.String

Gets and sets the property AvailabilityZone.

The Availability Zone of the instance.

If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.

This parameter is not supported for CreateFleet.

Public Property GroupId System.String

Gets and sets the property GroupId.

The ID of the placement group that the instance is in. If you specify GroupId, you can't specify GroupName.

Public Property GroupName System.String

Gets and sets the property GroupName.

The name of the placement group that the instance is in. If you specify GroupName, you can't specify GroupId.

Public Property HostId System.String

Gets and sets the property HostId.

The ID of the Dedicated Host on which the instance resides.

This parameter is not supported for CreateFleet or ImportInstance.

Public Property HostResourceGroupArn System.String

Gets and sets the property HostResourceGroupArn.

The ARN of the host resource group in which to launch the instances.

If you specify this parameter, either omit the Tenancy parameter or set it to host.

This parameter is not supported for CreateFleet.

Public Property PartitionNumber System.Int32

Gets and sets the property PartitionNumber.

The number of the partition that the instance is in. Valid only if the placement group strategy is set to partition.

This parameter is not supported for CreateFleet.

Public Property SpreadDomain System.String

Gets and sets the property SpreadDomain.

Reserved for future use.

Public Property Tenancy Amazon.EC2.Tenancy

Gets and sets the property Tenancy.

The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware.

This parameter is not supported for CreateFleet. The host tenancy is not supported for ImportInstance or for T3 instances that are configured for the unlimited CPU credit option.

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