1. Packages
  2. AWS Native
  3. API Docs
  4. ec2
  5. PlacementGroup

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws-native.ec2.PlacementGroup

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi

    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

    The PlacementGroup resource accepts the following input properties:

    PartitionCount int
    The number of partitions. Valid only when Strategy is set to partition
    SpreadLevel 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.
    Tags List<Pulumi.AwsNative.Inputs.CreateOnlyTag>
    An array of key-value pairs to apply to this resource.
    PartitionCount int
    The number of partitions. Valid only when Strategy is set to partition
    SpreadLevel 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.
    Tags CreateOnlyTagArgs
    An array of key-value pairs to apply to this resource.
    partitionCount Integer
    The number of partitions. Valid only when Strategy is set to partition
    spreadLevel 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.
    tags List<CreateOnlyTag>
    An array of key-value pairs to apply to this resource.
    partitionCount number
    The number of partitions. Valid only when Strategy is set to partition
    spreadLevel 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.
    tags CreateOnlyTag[]
    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.
    tags Sequence[CreateOnlyTagArgs]
    An array of key-value pairs to apply to this resource.
    partitionCount Number
    The number of partitions. Valid only when Strategy is set to partition
    spreadLevel 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.
    tags 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:

    GroupName string
    The Group Name of Placement Group.
    Id string
    The provider-assigned unique ID for this managed resource.
    GroupName string
    The Group Name of Placement Group.
    Id string
    The provider-assigned unique ID for this managed resource.
    groupName String
    The Group Name of Placement Group.
    id String
    The provider-assigned unique ID for this managed resource.
    groupName string
    The Group Name of Placement Group.
    id string
    The provider-assigned unique ID for this managed resource.
    group_name str
    The Group Name of Placement Group.
    id str
    The provider-assigned unique ID for this managed resource.
    groupName String
    The Group Name of Placement Group.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    CreateOnlyTag, CreateOnlyTagArgs

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi