-
Notifications
You must be signed in to change notification settings - Fork 151
/
getLocalGatewayVirtualInterface.go
48 lines (43 loc) · 2.43 KB
/
getLocalGatewayVirtualInterface.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package ec2
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides details about an EC2 Local Gateway Virtual Interface. More information can be found in the [Outposts User Guide](https://docs.aws.amazon.com/outposts/latest/userguide/outposts-networking-components.html#routing).
func GetLocalGatewayVirtualInterface(ctx *pulumi.Context, args *GetLocalGatewayVirtualInterfaceArgs, opts ...pulumi.InvokeOption) (*GetLocalGatewayVirtualInterfaceResult, error) {
var rv GetLocalGatewayVirtualInterfaceResult
err := ctx.Invoke("aws:ec2/getLocalGatewayVirtualInterface:getLocalGatewayVirtualInterface", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getLocalGatewayVirtualInterface.
type GetLocalGatewayVirtualInterfaceArgs struct {
// One or more configuration blocks containing name-values filters. See the [EC2 API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLocalGatewayVirtualInterfaces.html) for supported filters. Detailed below.
Filters []GetLocalGatewayVirtualInterfaceFilter `pulumi:"filters"`
// Identifier of EC2 Local Gateway Virtual Interface.
Id *string `pulumi:"id"`
// Key-value map of resource tags, each pair of which must exactly match a pair on the desired local gateway route table.
Tags map[string]string `pulumi:"tags"`
}
// A collection of values returned by getLocalGatewayVirtualInterface.
type GetLocalGatewayVirtualInterfaceResult struct {
Filters []GetLocalGatewayVirtualInterfaceFilter `pulumi:"filters"`
Id string `pulumi:"id"`
// Local address.
LocalAddress string `pulumi:"localAddress"`
// Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the EC2 Local Gateway.
LocalBgpAsn int `pulumi:"localBgpAsn"`
// Identifier of the EC2 Local Gateway.
LocalGatewayId string `pulumi:"localGatewayId"`
LocalGatewayVirtualInterfaceIds []string `pulumi:"localGatewayVirtualInterfaceIds"`
// Peer address.
PeerAddress string `pulumi:"peerAddress"`
// Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the peer.
PeerBgpAsn int `pulumi:"peerBgpAsn"`
Tags map[string]string `pulumi:"tags"`
// Virtual Local Area Network.
Vlan int `pulumi:"vlan"`
}