Class CfnPlacementGroup
A CloudFormation AWS::EC2::PlacementGroup
.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CfnPlacementGroup : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnPlacementGroup
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Specifies a placement group in which to launch instances. The strategy of the placement group determines how the instances are organized within the group.
A cluster
placement group is a logical grouping of instances within a single Availability Zone that benefit from low network latency, high network throughput. A spread
placement group places instances on distinct hardware. A partition
placement group places groups of instances in different partitions, where instances in one partition do not share the same hardware with instances in another partition.
For more information, see Placement Groups in the Amazon EC2 User Guide .
CloudformationResource: AWS::EC2::PlacementGroup
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-placementgroup.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 cfnPlacementGroup = new CfnPlacementGroup(this, "MyCfnPlacementGroup", new CfnPlacementGroupProps {
PartitionCount = 123,
SpreadLevel = "spreadLevel",
Strategy = "strategy",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnPlacementGroup(Construct, String, ICfnPlacementGroupProps) | Create a new |
CfnPlacementGroup(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnPlacementGroup(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrGroupName | The name of the placement group. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
PartitionCount | The number of partitions. |
SpreadLevel | Determines how placement groups spread instances. |
Strategy | The placement strategy. |
Tags | The tags to apply to the new placement group. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnPlacementGroup(Construct, String, ICfnPlacementGroupProps)
Create a new AWS::EC2::PlacementGroup
.
public CfnPlacementGroup(Construct scope, string id, ICfnPlacementGroupProps props = null)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnPlacementGroupProps
- resource properties.
CfnPlacementGroup(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnPlacementGroup(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnPlacementGroup(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnPlacementGroup(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrGroupName
The name of the placement group.
public virtual string AttrGroupName { get; }
Property Value
System.String
Remarks
CloudformationAttribute: GroupName
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
PartitionCount
The number of partitions.
public virtual Nullable<double> PartitionCount { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Valid only when Strategy is set to partition
.
SpreadLevel
Determines how placement groups spread instances.
public virtual string SpreadLevel { get; set; }
Property Value
System.String
Remarks
Strategy
The placement strategy.
public virtual string Strategy { get; set; }
Property Value
System.String
Remarks
Tags
The tags to apply to the new placement group.
public virtual TagManager Tags { get; }
Property Value
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>