UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

165 lines (164 loc) 4.52 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Get information on an EC2 Transit Gateway VPC Attachment. * * ## Example Usage * * ### By Filter * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getVpcAttachment({ * filters: [{ * name: "vpc-id", * values: ["vpc-12345678"], * }], * }); * ``` * * ### By Identifier * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getVpcAttachment({ * id: "tgw-attach-12345678", * }); * ``` */ export declare function getVpcAttachment(args?: GetVpcAttachmentArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcAttachmentResult>; /** * A collection of arguments for invoking getVpcAttachment. */ export interface GetVpcAttachmentArgs { /** * One or more configuration blocks containing name-values filters. Detailed below. */ filters?: inputs.ec2transitgateway.GetVpcAttachmentFilter[]; /** * Identifier of the EC2 Transit Gateway VPC Attachment. */ id?: string; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; /** * Key-value tags for the EC2 Transit Gateway VPC Attachment */ tags?: { [key: string]: string; }; } /** * A collection of values returned by getVpcAttachment. */ export interface GetVpcAttachmentResult { /** * Whether Appliance Mode support is enabled. */ readonly applianceModeSupport: string; /** * ARN of the attachment. */ readonly arn: string; /** * Whether DNS support is enabled. */ readonly dnsSupport: string; readonly filters?: outputs.ec2transitgateway.GetVpcAttachmentFilter[]; /** * EC2 Transit Gateway VPC Attachment identifier */ readonly id: string; /** * Whether IPv6 support is enabled. */ readonly ipv6Support: string; readonly region: string; /** * Whether Security Group Referencing Support is enabled. */ readonly securityGroupReferencingSupport: string; /** * Identifiers of EC2 Subnets. */ readonly subnetIds: string[]; /** * Key-value tags for the EC2 Transit Gateway VPC Attachment */ readonly tags: { [key: string]: string; }; /** * EC2 Transit Gateway identifier */ readonly transitGatewayId: string; /** * Identifier of EC2 VPC. */ readonly vpcId: string; /** * Identifier of the AWS account that owns the EC2 VPC. */ readonly vpcOwnerId: string; } /** * Get information on an EC2 Transit Gateway VPC Attachment. * * ## Example Usage * * ### By Filter * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getVpcAttachment({ * filters: [{ * name: "vpc-id", * values: ["vpc-12345678"], * }], * }); * ``` * * ### By Identifier * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getVpcAttachment({ * id: "tgw-attach-12345678", * }); * ``` */ export declare function getVpcAttachmentOutput(args?: GetVpcAttachmentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVpcAttachmentResult>; /** * A collection of arguments for invoking getVpcAttachment. */ export interface GetVpcAttachmentOutputArgs { /** * One or more configuration blocks containing name-values filters. Detailed below. */ filters?: pulumi.Input<pulumi.Input<inputs.ec2transitgateway.GetVpcAttachmentFilterArgs>[]>; /** * Identifier of the EC2 Transit Gateway VPC Attachment. */ id?: pulumi.Input<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; /** * Key-value tags for the EC2 Transit Gateway VPC Attachment */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; }