Show / Hide Table of Contents

Class CfnLaunchTemplate.PlacementProperty

Specifies the placement of an instance.

Inheritance
object
CfnLaunchTemplate.PlacementProperty
Implements
CfnLaunchTemplate.IPlacementProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnLaunchTemplate.PlacementProperty : CfnLaunchTemplate.IPlacementProperty
Syntax (vb)
Public Class CfnLaunchTemplate.PlacementProperty Implements CfnLaunchTemplate.IPlacementProperty
Remarks

Placement is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-placement.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EC2;

             var placementProperty = new PlacementProperty {
                 Affinity = "affinity",
                 AvailabilityZone = "availabilityZone",
                 GroupId = "groupId",
                 GroupName = "groupName",
                 HostId = "hostId",
                 HostResourceGroupArn = "hostResourceGroupArn",
                 PartitionNumber = 123,
                 SpreadDomain = "spreadDomain",
                 Tenancy = "tenancy"
             };

Synopsis

Constructors

PlacementProperty()

Specifies the placement of an instance.

Properties

Affinity

The affinity setting for an instance on a Dedicated Host.

AvailabilityZone

The Availability Zone for the instance.

GroupId

The Group Id of a placement group.

GroupName

The name of the placement group for the instance.

HostId

The ID of the Dedicated Host for the instance.

HostResourceGroupArn

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

PartitionNumber

The number of the partition the instance should launch in.

SpreadDomain

Reserved for future use.

Tenancy

The tenancy of the instance.

Constructors

PlacementProperty()

Specifies the placement of an instance.

public PlacementProperty()
Remarks

Placement is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-placement.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EC2;

             var placementProperty = new PlacementProperty {
                 Affinity = "affinity",
                 AvailabilityZone = "availabilityZone",
                 GroupId = "groupId",
                 GroupName = "groupName",
                 HostId = "hostId",
                 HostResourceGroupArn = "hostResourceGroupArn",
                 PartitionNumber = 123,
                 SpreadDomain = "spreadDomain",
                 Tenancy = "tenancy"
             };

Properties

Affinity

The affinity setting for an instance on a Dedicated Host.

public string? Affinity { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-placement.html#cfn-ec2-launchtemplate-placement-affinity

AvailabilityZone

The Availability Zone for the instance.

public string? AvailabilityZone { get; set; }
Property Value

string

Remarks

Either AvailabilityZone or AvailabilityZoneId can be specified, but not both

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-placement.html#cfn-ec2-launchtemplate-placement-availabilityzone

GroupId

The Group Id of a placement group.

public string? GroupId { get; set; }
Property Value

string

Remarks

You must specify the Placement Group Group Id to launch an instance in a shared placement group.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-placement.html#cfn-ec2-launchtemplate-placement-groupid

GroupName

The name of the placement group for the instance.

public string? GroupName { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-placement.html#cfn-ec2-launchtemplate-placement-groupname

HostId

The ID of the Dedicated Host for the instance.

public string? HostId { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-placement.html#cfn-ec2-launchtemplate-placement-hostid

HostResourceGroupArn

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

public string? HostResourceGroupArn { get; set; }
Property Value

string

Remarks

If you specify a host resource group ARN, omit the Tenancy parameter or set it to host .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-placement.html#cfn-ec2-launchtemplate-placement-hostresourcegrouparn

PartitionNumber

The number of the partition the instance should launch in.

public double? PartitionNumber { get; set; }
Property Value

double?

Remarks

Valid only if the placement group strategy is set to partition .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-placement.html#cfn-ec2-launchtemplate-placement-partitionnumber

SpreadDomain

Reserved for future use.

public string? SpreadDomain { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-placement.html#cfn-ec2-launchtemplate-placement-spreaddomain

Tenancy

The tenancy of the instance.

public string? Tenancy { get; set; }
Property Value

string

Remarks

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-placement.html#cfn-ec2-launchtemplate-placement-tenancy

Implements

CfnLaunchTemplate.IPlacementProperty
Back to top Generated by DocFX