UNPKG

@pulumi/aws

Version:

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

185 lines (184 loc) 5.28 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. * * ## Example Usage * * ### By Filter * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getTransitGateway({ * filters: [{ * name: "options.amazon-side-asn", * values: ["64512"], * }], * }); * ``` * * ### By Identifier * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getTransitGateway({ * id: "tgw-12345678", * }); * ``` */ export declare function getTransitGateway(args?: GetTransitGatewayArgs, opts?: pulumi.InvokeOptions): Promise<GetTransitGatewayResult>; /** * A collection of arguments for invoking getTransitGateway. */ export interface GetTransitGatewayArgs { /** * One or more configuration blocks containing name-values filters. Detailed below. */ filters?: inputs.ec2transitgateway.GetTransitGatewayFilter[]; /** * Identifier of the EC2 Transit Gateway. */ 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 */ tags?: { [key: string]: string; }; } /** * A collection of values returned by getTransitGateway. */ export interface GetTransitGatewayResult { /** * Private Autonomous System Number (ASN) for the Amazon side of a BGP session */ readonly amazonSideAsn: number; /** * EC2 Transit Gateway ARN */ readonly arn: string; /** * Identifier of the default association route table */ readonly associationDefaultRouteTableId: string; /** * Whether resource attachment requests are automatically accepted */ readonly autoAcceptSharedAttachments: string; /** * Whether resource attachments are automatically associated with the default association route table */ readonly defaultRouteTableAssociation: string; /** * Whether resource attachments automatically propagate routes to the default propagation route table */ readonly defaultRouteTablePropagation: string; /** * Description of the EC2 Transit Gateway */ readonly description: string; /** * Whether DNS support is enabled */ readonly dnsSupport: string; readonly filters?: outputs.ec2transitgateway.GetTransitGatewayFilter[]; /** * EC2 Transit Gateway identifier */ readonly id: string; /** * Whether Multicast support is enabled */ readonly multicastSupport: string; /** * Identifier of the AWS account that owns the EC2 Transit Gateway */ readonly ownerId: string; /** * Identifier of the default propagation route table */ readonly propagationDefaultRouteTableId: string; readonly region: string; /** * Whether Security Group Referencing Support is enabled */ readonly securityGroupReferencingSupport: string; /** * Key-value tags for the EC2 Transit Gateway */ readonly tags: { [key: string]: string; }; /** * The list of associated CIDR blocks */ readonly transitGatewayCidrBlocks: string[]; /** * Whether VPN Equal Cost Multipath Protocol support is enabled */ readonly vpnEcmpSupport: string; } /** * Get information on an EC2 Transit Gateway. * * ## Example Usage * * ### By Filter * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getTransitGateway({ * filters: [{ * name: "options.amazon-side-asn", * values: ["64512"], * }], * }); * ``` * * ### By Identifier * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getTransitGateway({ * id: "tgw-12345678", * }); * ``` */ export declare function getTransitGatewayOutput(args?: GetTransitGatewayOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTransitGatewayResult>; /** * A collection of arguments for invoking getTransitGateway. */ export interface GetTransitGatewayOutputArgs { /** * One or more configuration blocks containing name-values filters. Detailed below. */ filters?: pulumi.Input<pulumi.Input<inputs.ec2transitgateway.GetTransitGatewayFilterArgs>[]>; /** * Identifier of the EC2 Transit Gateway. */ 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 */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; }