UNPKG

@pulumi/aws

Version:

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

167 lines (166 loc) 6.03 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a Direct Connect BGP peer resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const peer = new aws.directconnect.BgpPeer("peer", { * virtualInterfaceId: foo.id, * addressFamily: "ipv6", * bgpAsn: 65351, * }); * ``` */ export declare class BgpPeer extends pulumi.CustomResource { /** * Get an existing BgpPeer 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?: BgpPeerState, opts?: pulumi.CustomResourceOptions): BgpPeer; /** * Returns true if the given object is an instance of BgpPeer. 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 BgpPeer; /** * The address family for the BGP peer. `ipv4 ` or `ipv6`. */ readonly addressFamily: pulumi.Output<string>; /** * The IPv4 CIDR address to use to send traffic to Amazon. * Required for IPv4 BGP peers on public virtual interfaces. */ readonly amazonAddress: pulumi.Output<string>; /** * The Direct Connect endpoint on which the BGP peer terminates. */ readonly awsDevice: pulumi.Output<string>; /** * The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. */ readonly bgpAsn: pulumi.Output<number>; /** * The authentication key for BGP configuration. */ readonly bgpAuthKey: pulumi.Output<string>; /** * The ID of the BGP peer. */ readonly bgpPeerId: pulumi.Output<string>; /** * The Up/Down state of the BGP peer. */ readonly bgpStatus: pulumi.Output<string>; /** * The IPv4 CIDR destination address to which Amazon should send traffic. * Required for IPv4 BGP peers on public virtual interfaces. */ readonly customerAddress: pulumi.Output<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. */ readonly region: pulumi.Output<string>; /** * The ID of the Direct Connect virtual interface on which to create the BGP peer. */ readonly virtualInterfaceId: pulumi.Output<string>; /** * Create a BgpPeer 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: BgpPeerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BgpPeer resources. */ export interface BgpPeerState { /** * The address family for the BGP peer. `ipv4 ` or `ipv6`. */ addressFamily?: pulumi.Input<string>; /** * The IPv4 CIDR address to use to send traffic to Amazon. * Required for IPv4 BGP peers on public virtual interfaces. */ amazonAddress?: pulumi.Input<string>; /** * The Direct Connect endpoint on which the BGP peer terminates. */ awsDevice?: pulumi.Input<string>; /** * The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. */ bgpAsn?: pulumi.Input<number>; /** * The authentication key for BGP configuration. */ bgpAuthKey?: pulumi.Input<string>; /** * The ID of the BGP peer. */ bgpPeerId?: pulumi.Input<string>; /** * The Up/Down state of the BGP peer. */ bgpStatus?: pulumi.Input<string>; /** * The IPv4 CIDR destination address to which Amazon should send traffic. * Required for IPv4 BGP peers on public virtual interfaces. */ customerAddress?: 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>; /** * The ID of the Direct Connect virtual interface on which to create the BGP peer. */ virtualInterfaceId?: pulumi.Input<string>; } /** * The set of arguments for constructing a BgpPeer resource. */ export interface BgpPeerArgs { /** * The address family for the BGP peer. `ipv4 ` or `ipv6`. */ addressFamily: pulumi.Input<string>; /** * The IPv4 CIDR address to use to send traffic to Amazon. * Required for IPv4 BGP peers on public virtual interfaces. */ amazonAddress?: pulumi.Input<string>; /** * The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. */ bgpAsn: pulumi.Input<number>; /** * The authentication key for BGP configuration. */ bgpAuthKey?: pulumi.Input<string>; /** * The IPv4 CIDR destination address to which Amazon should send traffic. * Required for IPv4 BGP peers on public virtual interfaces. */ customerAddress?: 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>; /** * The ID of the Direct Connect virtual interface on which to create the BGP peer. */ virtualInterfaceId: pulumi.Input<string>; }