import * as core from "@terrascript/core"; export interface FilterArgs extends core.SchemaArgs { name: string | core.StringOut; values: core.Array | core.ArrayOut; } export class Filter extends core.Schema { @core.attr(String) public name!: string | core.StringOut; @core.attr(String, { kind: "array" }) public values!: core.Array | core.ArrayOut; } export interface CidrBlockAssociationsArgs extends core.SchemaArgs { associationId: string | core.StringOut; cidrBlock: string | core.StringOut; state: string | core.StringOut; } export class CidrBlockAssociations extends core.Schema { @core.attr(String, { computed: true }) public associationId!: string | core.StringOut; @core.attr(String, { computed: true }) public cidrBlock!: string | core.StringOut; @core.attr(String, { computed: true }) public state!: string | core.StringOut; } export interface DsMainArgs { /** * (Optional) The cidr block of the desired VPC. */ cidrBlock?: string | core.StringOut; /** * (Optional) Boolean constraint on whether the desired VPC is */ default?: boolean | core.BooleanOut; /** * (Optional) The DHCP options id of the desired VPC. */ dhcpOptionsId?: string | core.StringOut; /** * (Optional) Custom filter block as described below. */ filter?: core.Array | core.ArrayOut; /** * (Optional) The id of the specific VPC to retrieve. */ id?: string | core.StringOut; /** * (Optional) The current state of the desired VPC. */ state?: string | core.StringOut; /** * (Optional) A map of tags, each pair of which must exactly match */ tags?: core.Map | core.MapOut; } export class DsMain extends core.Data { /** * Amazon Resource Name (ARN) of VPC */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The cidr block of the desired VPC. */ @core.attr(String, { computed: true }) public cidrBlock?: string | core.StringOut; @core.attr(CidrBlockAssociations, { computed: true, kind: "array" }) public cidrBlockAssociations!: | core.Array | core.ArrayOut; /** * (Optional) Boolean constraint on whether the desired VPC is */ @core.attr(Boolean, { computed: true }) public default?: boolean | core.BooleanOut; /** * (Optional) The DHCP options id of the desired VPC. */ @core.attr(String, { computed: true }) public dhcpOptionsId?: string | core.StringOut; /** * Whether or not the VPC has DNS hostname support */ @core.attr(Boolean, { computed: true }) public enableDnsHostnames!: boolean | core.BooleanOut; /** * Whether or not the VPC has DNS support */ @core.attr(Boolean, { computed: true }) public enableDnsSupport!: boolean | core.BooleanOut; /** * (Optional) Custom filter block as described below. */ @core.attr(Filter, { kind: "array" }) public filter?: core.Array | core.ArrayOut; /** * (Optional) The id of the specific VPC to retrieve. */ @core.attr(String, { computed: true }) public id?: string | core.StringOut; /** * The allowed tenancy of instances launched into the */ @core.attr(String, { computed: true }) public instanceTenancy!: string | core.StringOut; /** * The association ID for the IPv6 CIDR block. */ @core.attr(String, { computed: true }) public ipv6AssociationId!: string | core.StringOut; /** * The IPv6 CIDR block. */ @core.attr(String, { computed: true }) public ipv6CidrBlock!: string | core.StringOut; /** * The ID of the main route table associated with this VPC. */ @core.attr(String, { computed: true }) public mainRouteTableId!: string | core.StringOut; /** * The ID of the AWS account that owns the VPC. */ @core.attr(String, { computed: true }) public ownerId!: string | core.StringOut; /** * (Optional) The current state of the desired VPC. */ @core.attr(String, { computed: true }) public state?: string | core.StringOut; /** * (Optional) A map of tags, each pair of which must exactly match */ @core.attr(String, { computed: true, kind: "map" }) public tags?: core.Map | core.MapOut; constructor(name: string, args?: DsMainArgs) { super(name, "aws_vpc", args); } public override getNamespace(): string { return "aws_vpc"; } }