We recommend new projects start with resources from the AWS provider.
aws-native.ec2.PlacementGroup
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::EC2::PlacementGroup
Create PlacementGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PlacementGroup(name: string, args?: PlacementGroupArgs, opts?: CustomResourceOptions);
@overload
def PlacementGroup(resource_name: str,
args: Optional[PlacementGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def PlacementGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
partition_count: Optional[int] = None,
spread_level: Optional[str] = None,
strategy: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.CreateOnlyTagArgs]] = None)
func NewPlacementGroup(ctx *Context, name string, args *PlacementGroupArgs, opts ...ResourceOption) (*PlacementGroup, error)
public PlacementGroup(string name, PlacementGroupArgs? args = null, CustomResourceOptions? opts = null)
public PlacementGroup(String name, PlacementGroupArgs args)
public PlacementGroup(String name, PlacementGroupArgs args, CustomResourceOptions options)
type: aws-native:ec2:PlacementGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PlacementGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PlacementGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PlacementGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PlacementGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PlacementGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
PlacementGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PlacementGroup resource accepts the following input properties:
- Partition
Count int - The number of partitions. Valid only when Strategy is set to
partition
- Spread
Level string - The Spread Level of Placement Group is an enum where it accepts either host or rack when strategy is spread
- Strategy string
- The placement strategy.
- List<Pulumi.
Aws Native. Inputs. Create Only Tag> - An array of key-value pairs to apply to this resource.
- Partition
Count int - The number of partitions. Valid only when Strategy is set to
partition
- Spread
Level string - The Spread Level of Placement Group is an enum where it accepts either host or rack when strategy is spread
- Strategy string
- The placement strategy.
- Create
Only Tag Args - An array of key-value pairs to apply to this resource.
- partition
Count Integer - The number of partitions. Valid only when Strategy is set to
partition
- spread
Level String - The Spread Level of Placement Group is an enum where it accepts either host or rack when strategy is spread
- strategy String
- The placement strategy.
- List<Create
Only Tag> - An array of key-value pairs to apply to this resource.
- partition
Count number - The number of partitions. Valid only when Strategy is set to
partition
- spread
Level string - The Spread Level of Placement Group is an enum where it accepts either host or rack when strategy is spread
- strategy string
- The placement strategy.
- Create
Only Tag[] - An array of key-value pairs to apply to this resource.
- partition_
count int - The number of partitions. Valid only when Strategy is set to
partition
- spread_
level str - The Spread Level of Placement Group is an enum where it accepts either host or rack when strategy is spread
- strategy str
- The placement strategy.
- Sequence[Create
Only Tag Args] - An array of key-value pairs to apply to this resource.
- partition
Count Number - The number of partitions. Valid only when Strategy is set to
partition
- spread
Level String - The Spread Level of Placement Group is an enum where it accepts either host or rack when strategy is spread
- strategy String
- The placement strategy.
- List<Property Map>
- An array of key-value pairs to apply to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PlacementGroup resource produces the following output properties:
- group_
name str - The Group Name of Placement Group.
- id str
- The provider-assigned unique ID for this managed resource.
Supporting Types
CreateOnlyTag, CreateOnlyTagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.