UNPKG

@pulumi/aws

Version:

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

100 lines (99 loc) 3.38 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a Direct Connect Gateway. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.directconnect.Gateway("example", { * name: "tf-dxg-example", * amazonSideAsn: "64512", * }); * ``` * * ## Import * * Using `pulumi import`, import Direct Connect Gateways using the gateway `id`. For example: * * ```sh * $ pulumi import aws:directconnect/gateway:Gateway test abcd1234-dcba-5678-be23-cdef9876ab45 * ``` */ export declare class Gateway extends pulumi.CustomResource { /** * Get an existing Gateway resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GatewayState, opts?: pulumi.CustomResourceOptions): Gateway; /** * Returns true if the given object is an instance of Gateway. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Gateway; /** * The ASN to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. */ readonly amazonSideAsn: pulumi.Output<string>; /** * The ARN of the gateway. */ readonly arn: pulumi.Output<string>; /** * The name of the connection. */ readonly name: pulumi.Output<string>; /** * AWS Account ID of the gateway. */ readonly ownerAccountId: pulumi.Output<string>; /** * Create a Gateway resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: GatewayArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Gateway resources. */ export interface GatewayState { /** * The ASN to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. */ amazonSideAsn?: pulumi.Input<string>; /** * The ARN of the gateway. */ arn?: pulumi.Input<string>; /** * The name of the connection. */ name?: pulumi.Input<string>; /** * AWS Account ID of the gateway. */ ownerAccountId?: pulumi.Input<string>; } /** * The set of arguments for constructing a Gateway resource. */ export interface GatewayArgs { /** * The ASN to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. */ amazonSideAsn: pulumi.Input<string>; /** * The name of the connection. */ name?: pulumi.Input<string>; }