Show / Hide Table of Contents

Interface CfnLaunchTemplate.IPlacementProperty

Specifies the placement of an instance.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnLaunchTemplate.IPlacementProperty
Syntax (vb)
Public Interface 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

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.

Properties

Affinity

The affinity setting for an instance on a Dedicated Host.

string? Affinity { get; }
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.

string? AvailabilityZone { get; }
Property Value

string

Remarks

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.

string? GroupId { get; }
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.

string? GroupName { get; }
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.

string? HostId { get; }
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.

string? HostResourceGroupArn { get; }
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.

double? PartitionNumber { get; }
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.

string? SpreadDomain { get; }
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.

string? Tenancy { get; }
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

Back to top Generated by DocFX