UNPKG

@pulumi/aws

Version:

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

142 lines (141 loc) 3.99 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 Connect. * * ## Example Usage * * ### By Filter * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getConnect({ * filters: [{ * name: "transport-transit-gateway-attachment-id", * values: ["tgw-attach-12345678"], * }], * }); * ``` * * ### By Identifier * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getConnect({ * transitGatewayConnectId: "tgw-attach-12345678", * }); * ``` */ export declare function getConnect(args?: GetConnectArgs, opts?: pulumi.InvokeOptions): Promise<GetConnectResult>; /** * A collection of arguments for invoking getConnect. */ export interface GetConnectArgs { /** * One or more configuration blocks containing name-values filters. Detailed below. */ filters?: inputs.ec2transitgateway.GetConnectFilter[]; /** * 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 Connect */ tags?: { [key: string]: string; }; /** * Identifier of the EC2 Transit Gateway Connect. */ transitGatewayConnectId?: string; } /** * A collection of values returned by getConnect. */ export interface GetConnectResult { readonly filters?: outputs.ec2transitgateway.GetConnectFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Tunnel protocol */ readonly protocol: string; readonly region: string; /** * Key-value tags for the EC2 Transit Gateway Connect */ readonly tags: { [key: string]: string; }; readonly transitGatewayConnectId: string; /** * EC2 Transit Gateway identifier */ readonly transitGatewayId: string; /** * The underlaying VPC attachment */ readonly transportAttachmentId: string; } /** * Get information on an EC2 Transit Gateway Connect. * * ## Example Usage * * ### By Filter * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getConnect({ * filters: [{ * name: "transport-transit-gateway-attachment-id", * values: ["tgw-attach-12345678"], * }], * }); * ``` * * ### By Identifier * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getConnect({ * transitGatewayConnectId: "tgw-attach-12345678", * }); * ``` */ export declare function getConnectOutput(args?: GetConnectOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetConnectResult>; /** * A collection of arguments for invoking getConnect. */ export interface GetConnectOutputArgs { /** * One or more configuration blocks containing name-values filters. Detailed below. */ filters?: pulumi.Input<pulumi.Input<inputs.ec2transitgateway.GetConnectFilterArgs>[]>; /** * 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 Connect */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * Identifier of the EC2 Transit Gateway Connect. */ transitGatewayConnectId?: pulumi.Input<string>; }