aws-cdk-lib.aws_ec2.CfnPlacementGroupProps

interface CfnPlacementGroupProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnPlacementGroupProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnPlacementGroupProps
Javasoftware.amazon.awscdk.services.ec2.CfnPlacementGroupProps
Pythonaws_cdk.aws_ec2.CfnPlacementGroupProps
TypeScript aws-cdk-lib » aws_ec2 » CfnPlacementGroupProps

Properties for defining a CfnPlacementGroup.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnPlacementGroupProps: ec2.CfnPlacementGroupProps = {
  partitionCount: 123,
  spreadLevel: 'spreadLevel',
  strategy: 'strategy',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
partitionCount?numberThe number of partitions.
spreadLevel?stringDetermines how placement groups spread instances.
strategy?stringThe placement strategy.
tags?CfnTag[]The tags to apply to the new placement group.

partitionCount?

Type: number (optional)

The number of partitions.

Valid only when Strategy is set to partition .


spreadLevel?

Type: string (optional)

Determines how placement groups spread instances.

  • Host – You can use host only with Outpost placement groups.
  • Rack – No usage restrictions.

strategy?

Type: string (optional)

The placement strategy.


tags?

Type: CfnTag[] (optional)

The tags to apply to the new placement group.