import * as core from "@terrascript/core"; export interface PlacementGroupArgs extends core.ResourceArgs { /** * (Required) The name of the placement group. */ name: string | core.StringOut; /** * (Optional) The number of partitions to create in the */ partitionCount?: number | core.NumberOut; /** * (Optional) Determines how placement groups spread instances. Can only be used */ spreadLevel?: string | core.StringOut; /** * (Required) The placement strategy. Can be `"cluster"`, `"partition"` or `"spread"`. */ strategy: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class PlacementGroup extends core.Resource { /** * Amazon Resource Name (ARN) of the placement group. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The name of the placement group. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the placement group. */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) The number of partitions to create in the */ @core.attr(Number, { computed: true }) public partitionCount?: number | core.NumberOut; /** * The ID of the placement group. */ @core.attr(String, { computed: true }) public placementGroupId!: string | core.StringOut; /** * (Optional) Determines how placement groups spread instances. Can only be used */ @core.attr(String) public spreadLevel?: string | core.StringOut; /** * (Required) The placement strategy. Can be `"cluster"`, `"partition"` or `"spread"`. */ @core.attr(String) public strategy!: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: PlacementGroupArgs) { super(name, "aws_placement_group", args); } public override getNamespace(): string { return "aws_ec2"; } }