import * as core from "@terrascript/core"; export interface VpcSettingsArgs extends core.SchemaArgs { subnetIds: core.Array | core.ArrayOut; vpcId: string | core.StringOut; } export class VpcSettings extends core.Schema { @core.attr(String, { kind: "array" }) public subnetIds!: core.Array | core.ArrayOut; @core.attr(String) public vpcId!: string | core.StringOut; } export interface DirectoryServiceRegionArgs extends core.ResourceArgs { /** * (Optional) The number of domain controllers desired in the replicated directory. Minimum value of `2 * . */ desiredNumberOfDomainControllers?: number | core.NumberOut; /** * (Required) The identifier of the directory to which you want to add Region replication. */ directoryId: string | core.StringOut; /** * (Required) The name of the Region where you want to add domain controllers for replication. */ regionName: string | core.StringOut; /** * (Optional) Map of tags to assign to this resource. If configured with a provider [`default_tags` con * figuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration- * 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://www.terraform.io/docs/providers/aws/index.html#default_tags-configurati * on-block). */ tagsAll?: core.Map | core.MapOut; /** * (Required) VPC information in the replicated Region. Detailed below. */ vpcSettings: VpcSettings; } export class DirectoryServiceRegion extends core.Resource { /** * (Optional) The number of domain controllers desired in the replicated directory. Minimum value of `2 * . */ @core.attr(Number, { computed: true }) public desiredNumberOfDomainControllers?: number | core.NumberOut; /** * (Required) The identifier of the directory to which you want to add Region replication. */ @core.attr(String) public directoryId!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the Region where you want to add domain controllers for replication. */ @core.attr(String) public regionName!: string | core.StringOut; /** * (Optional) Map of tags to assign to this resource. If configured with a provider [`default_tags` con * figuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration- * 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://www.terraform.io/docs/providers/aws/index.html#default_tags-configurati * on-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * (Required) VPC information in the replicated Region. Detailed below. */ @core.attr(VpcSettings) public vpcSettings!: VpcSettings; constructor(name: string, args?: DirectoryServiceRegionArgs) { super(name, "aws_directory_service_region", args); } public override getNamespace(): string { return "aws_ds"; } }