UNPKG

@pulumi/aws

Version:

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

152 lines (151 loc) 4.41 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's attachment to a resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getAttachment({ * filters: [ * { * name: "transit-gateway-id", * values: [exampleAwsEc2TransitGateway.id], * }, * { * name: "resource-type", * values: ["peering"], * }, * ], * }); * ``` */ export declare function getAttachment(args?: GetAttachmentArgs, opts?: pulumi.InvokeOptions): Promise<GetAttachmentResult>; /** * A collection of arguments for invoking getAttachment. */ export interface GetAttachmentArgs { /** * One or more configuration blocks containing name-values filters. Detailed below. */ filters?: inputs.ec2transitgateway.GetAttachmentFilter[]; /** * 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 attachment. */ tags?: { [key: string]: string; }; /** * ID of the attachment. */ transitGatewayAttachmentId?: string; } /** * A collection of values returned by getAttachment. */ export interface GetAttachmentResult { /** * ARN of the attachment. */ readonly arn: string; /** * The state of the association (see [the underlying AWS API](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_TransitGatewayAttachmentAssociation.html) for valid values). */ readonly associationState: string; /** * The ID of the route table for the transit gateway. */ readonly associationTransitGatewayRouteTableId: string; readonly filters?: outputs.ec2transitgateway.GetAttachmentFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly region: string; /** * ID of the resource. */ readonly resourceId: string; /** * ID of the AWS account that owns the resource. */ readonly resourceOwnerId: string; /** * Resource type. */ readonly resourceType: string; /** * Attachment state. */ readonly state: string; /** * Key-value tags for the attachment. */ readonly tags: { [key: string]: string; }; readonly transitGatewayAttachmentId: string; /** * ID of the transit gateway. */ readonly transitGatewayId: string; /** * The ID of the AWS account that owns the transit gateway. */ readonly transitGatewayOwnerId: string; } /** * Get information on an EC2 Transit Gateway's attachment to a resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getAttachment({ * filters: [ * { * name: "transit-gateway-id", * values: [exampleAwsEc2TransitGateway.id], * }, * { * name: "resource-type", * values: ["peering"], * }, * ], * }); * ``` */ export declare function getAttachmentOutput(args?: GetAttachmentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAttachmentResult>; /** * A collection of arguments for invoking getAttachment. */ export interface GetAttachmentOutputArgs { /** * One or more configuration blocks containing name-values filters. Detailed below. */ filters?: pulumi.Input<pulumi.Input<inputs.ec2transitgateway.GetAttachmentFilterArgs>[]>; /** * 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 attachment. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * ID of the attachment. */ transitGatewayAttachmentId?: pulumi.Input<string>; }