Class CfnPlacementGroup
Specifies a placement group in which to launch instances.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPlacementGroup : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnPlacementGroup
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
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 .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-placementgroup.html
CloudformationResource: AWS::EC2::PlacementGroup
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(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 |
CfnPlacementGroup(Construct, String, ICfnPlacementGroupProps) |
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 | Tag Manager which manages the tags for this resource. |
TagsRaw | 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(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
CfnPlacementGroup(Construct, String, ICfnPlacementGroupProps)
public CfnPlacementGroup(Construct scope, string id, ICfnPlacementGroupProps props = null)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnPlacementGroupProps
Resource properties.
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>
SpreadLevel
Determines how placement groups spread instances.
public virtual string SpreadLevel { get; set; }
Property Value
System.String
Strategy
The placement strategy.
public virtual string Strategy { get; set; }
Property Value
System.String
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
The tags to apply to the new placement group.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
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>