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 DsEc2TransitGatewayAttachmentArgs { /** * (Optional) One or more configuration blocks containing name-values filters. Detailed below. */ filter?: core.Array | core.ArrayOut; /** * Key-value tags for the attachment. */ tags?: core.Map | core.MapOut; /** * (Optional) The ID of the attachment. */ transitGatewayAttachmentId?: string | core.StringOut; } export class DsEc2TransitGatewayAttachment extends core.Data { /** * The ARN of the attachment. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) One or more configuration blocks containing name-values filters. Detailed below. */ @core.attr(Filter, { kind: "array" }) public filter?: core.Array | core.ArrayOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The ID of the resource. */ @core.attr(String, { computed: true }) public resourceId!: string | core.StringOut; /** * The ID of the AWS account that owns the resource. */ @core.attr(String, { computed: true }) public resourceOwnerId!: string | core.StringOut; /** * The resource type. */ @core.attr(String, { computed: true }) public resourceType!: string | core.StringOut; /** * The attachment state. */ @core.attr(String, { computed: true }) public state!: string | core.StringOut; /** * Key-value tags for the attachment. */ @core.attr(String, { computed: true, kind: "map" }) public tags?: core.Map | core.MapOut; /** * (Optional) The ID of the attachment. */ @core.attr(String, { computed: true }) public transitGatewayAttachmentId?: string | core.StringOut; /** * The ID of the transit gateway. */ @core.attr(String, { computed: true }) public transitGatewayId!: string | core.StringOut; /** * The ID of the AWS account that owns the transit gateway. */ @core.attr(String, { computed: true }) public transitGatewayOwnerId!: string | core.StringOut; constructor(name: string, args?: DsEc2TransitGatewayAttachmentArgs) { super(name, "aws_ec2_transit_gateway_attachment", args); } public override getNamespace(): string { return "aws_transit_gateway"; } }