generated from pulumi/pulumi-component-provider-go-boilerplate
/
getDefaultVpc.go
32 lines (27 loc) · 1009 Bytes
/
getDefaultVpc.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
// Code generated by Pulumi SDK Generator DO NOT EDIT.
// *** WARNING: 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"
)
// [NOT YET IMPLEMENTED] Get the Default VPC for a region.
//
// Deprecated: Waiting for https://github.com/pulumi/pulumi/issues/7583. Use the DefaultVpc resource until resolved.
func GetDefaultVpc(ctx *pulumi.Context, args *GetDefaultVpcArgs, opts ...pulumi.InvokeOption) (*GetDefaultVpcResult, error) {
var rv GetDefaultVpcResult
err := ctx.Invoke("awsx-go:ec2:getDefaultVpc", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// Arguments for getting the default VPC
type GetDefaultVpcArgs struct {
}
// Outputs from the default VPC configuration
type GetDefaultVpcResult struct {
PrivateSubnetIds []string `pulumi:"privateSubnetIds"`
PublicSubnetIds []string `pulumi:"publicSubnetIds"`
// The VPC ID for the default VPC
VpcId string `pulumi:"vpcId"`
}