import * as core from "@terrascript/core"; export interface SubnetGroupArgs extends core.ResourceArgs { /** * (Optional) Description for the subnet group. Defaults to `"Managed by Terraform"`. */ description?: string | core.StringOut; /** * (Optional, Forces new resource) Name of the subnet group. If omitted, Terraform will assign a random * , unique name. Conflicts with `name_prefix`. */ name?: string | core.StringOut; /** * (Optional, Forces new resource) Creates a unique name beginning with the specified prefix. Conflicts * with `name`. */ namePrefix?: string | core.StringOut; /** * (Required) Set of VPC Subnet ID-s for the subnet group. At least one subnet must be provided. */ subnetIds: core.Array | core.ArrayOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ 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 SubnetGroup extends core.Resource { /** * The ARN of the subnet group. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) Description for the subnet group. Defaults to `"Managed by Terraform"`. */ @core.attr(String) public description?: string | core.StringOut; /** * The name of the subnet group. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional, Forces new resource) Name of the subnet group. If omitted, Terraform will assign a random * , unique name. Conflicts with `name_prefix`. */ @core.attr(String, { computed: true }) public name?: string | core.StringOut; /** * (Optional, Forces new resource) Creates a unique name beginning with the specified prefix. Conflicts * with `name`. */ @core.attr(String, { computed: true }) public namePrefix?: string | core.StringOut; /** * (Required) Set of VPC Subnet ID-s for the subnet group. At least one subnet must be provided. */ @core.attr(String, { kind: "array" }) public subnetIds!: core.Array | core.ArrayOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @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; /** * The VPC in which the subnet group exists. */ @core.attr(String, { computed: true }) public vpcId!: string | core.StringOut; constructor(name: string, args?: SubnetGroupArgs) { super(name, "aws_memorydb_subnet_group", args); } public override getNamespace(): string { return "aws_memorydb"; } }