/
getAzureVpcPeeringConnection.go
163 lines (139 loc) · 9.04 KB
/
getAzureVpcPeeringConnection.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package aiven
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// The Azure VPC Peering Connection data source provides information about the existing Aiven VPC Peering Connection.
func LookupAzureVpcPeeringConnection(ctx *pulumi.Context, args *LookupAzureVpcPeeringConnectionArgs, opts ...pulumi.InvokeOption) (*LookupAzureVpcPeeringConnectionResult, error) {
var rv LookupAzureVpcPeeringConnectionResult
err := ctx.Invoke("aiven:index/getAzureVpcPeeringConnection:getAzureVpcPeeringConnection", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getAzureVpcPeeringConnection.
type LookupAzureVpcPeeringConnectionArgs struct {
// Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.
AzureSubscriptionId string `pulumi:"azureSubscriptionId"`
// Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.
PeerAzureAppId string `pulumi:"peerAzureAppId"`
// Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
PeerAzureTenantId string `pulumi:"peerAzureTenantId"`
// Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
PeerResourceGroup string `pulumi:"peerResourceGroup"`
// Azure Network name. This property cannot be changed, doing so forces recreation of the resource.
VnetName string `pulumi:"vnetName"`
// The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
VpcId string `pulumi:"vpcId"`
}
// A collection of values returned by getAzureVpcPeeringConnection.
type LookupAzureVpcPeeringConnectionResult struct {
// Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.
AzureSubscriptionId string `pulumi:"azureSubscriptionId"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.
PeerAzureAppId string `pulumi:"peerAzureAppId"`
// Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
PeerAzureTenantId string `pulumi:"peerAzureTenantId"`
// Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
PeerResourceGroup string `pulumi:"peerResourceGroup"`
// Cloud provider identifier for the peering connection if available
PeeringConnectionId string `pulumi:"peeringConnectionId"`
// State of the peering connection
State string `pulumi:"state"`
// State-specific help or error information
StateInfo map[string]interface{} `pulumi:"stateInfo"`
// Azure Network name. This property cannot be changed, doing so forces recreation of the resource.
VnetName string `pulumi:"vnetName"`
// The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
VpcId string `pulumi:"vpcId"`
}
func LookupAzureVpcPeeringConnectionOutput(ctx *pulumi.Context, args LookupAzureVpcPeeringConnectionOutputArgs, opts ...pulumi.InvokeOption) LookupAzureVpcPeeringConnectionResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupAzureVpcPeeringConnectionResult, error) {
args := v.(LookupAzureVpcPeeringConnectionArgs)
r, err := LookupAzureVpcPeeringConnection(ctx, &args, opts...)
var s LookupAzureVpcPeeringConnectionResult
if r != nil {
s = *r
}
return s, err
}).(LookupAzureVpcPeeringConnectionResultOutput)
}
// A collection of arguments for invoking getAzureVpcPeeringConnection.
type LookupAzureVpcPeeringConnectionOutputArgs struct {
// Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.
AzureSubscriptionId pulumi.StringInput `pulumi:"azureSubscriptionId"`
// Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.
PeerAzureAppId pulumi.StringInput `pulumi:"peerAzureAppId"`
// Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
PeerAzureTenantId pulumi.StringInput `pulumi:"peerAzureTenantId"`
// Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
PeerResourceGroup pulumi.StringInput `pulumi:"peerResourceGroup"`
// Azure Network name. This property cannot be changed, doing so forces recreation of the resource.
VnetName pulumi.StringInput `pulumi:"vnetName"`
// The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
VpcId pulumi.StringInput `pulumi:"vpcId"`
}
func (LookupAzureVpcPeeringConnectionOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupAzureVpcPeeringConnectionArgs)(nil)).Elem()
}
// A collection of values returned by getAzureVpcPeeringConnection.
type LookupAzureVpcPeeringConnectionResultOutput struct{ *pulumi.OutputState }
func (LookupAzureVpcPeeringConnectionResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupAzureVpcPeeringConnectionResult)(nil)).Elem()
}
func (o LookupAzureVpcPeeringConnectionResultOutput) ToLookupAzureVpcPeeringConnectionResultOutput() LookupAzureVpcPeeringConnectionResultOutput {
return o
}
func (o LookupAzureVpcPeeringConnectionResultOutput) ToLookupAzureVpcPeeringConnectionResultOutputWithContext(ctx context.Context) LookupAzureVpcPeeringConnectionResultOutput {
return o
}
// Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.
func (o LookupAzureVpcPeeringConnectionResultOutput) AzureSubscriptionId() pulumi.StringOutput {
return o.ApplyT(func(v LookupAzureVpcPeeringConnectionResult) string { return v.AzureSubscriptionId }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupAzureVpcPeeringConnectionResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupAzureVpcPeeringConnectionResult) string { return v.Id }).(pulumi.StringOutput)
}
// Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.
func (o LookupAzureVpcPeeringConnectionResultOutput) PeerAzureAppId() pulumi.StringOutput {
return o.ApplyT(func(v LookupAzureVpcPeeringConnectionResult) string { return v.PeerAzureAppId }).(pulumi.StringOutput)
}
// Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
func (o LookupAzureVpcPeeringConnectionResultOutput) PeerAzureTenantId() pulumi.StringOutput {
return o.ApplyT(func(v LookupAzureVpcPeeringConnectionResult) string { return v.PeerAzureTenantId }).(pulumi.StringOutput)
}
// Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
func (o LookupAzureVpcPeeringConnectionResultOutput) PeerResourceGroup() pulumi.StringOutput {
return o.ApplyT(func(v LookupAzureVpcPeeringConnectionResult) string { return v.PeerResourceGroup }).(pulumi.StringOutput)
}
// Cloud provider identifier for the peering connection if available
func (o LookupAzureVpcPeeringConnectionResultOutput) PeeringConnectionId() pulumi.StringOutput {
return o.ApplyT(func(v LookupAzureVpcPeeringConnectionResult) string { return v.PeeringConnectionId }).(pulumi.StringOutput)
}
// State of the peering connection
func (o LookupAzureVpcPeeringConnectionResultOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v LookupAzureVpcPeeringConnectionResult) string { return v.State }).(pulumi.StringOutput)
}
// State-specific help or error information
func (o LookupAzureVpcPeeringConnectionResultOutput) StateInfo() pulumi.MapOutput {
return o.ApplyT(func(v LookupAzureVpcPeeringConnectionResult) map[string]interface{} { return v.StateInfo }).(pulumi.MapOutput)
}
// Azure Network name. This property cannot be changed, doing so forces recreation of the resource.
func (o LookupAzureVpcPeeringConnectionResultOutput) VnetName() pulumi.StringOutput {
return o.ApplyT(func(v LookupAzureVpcPeeringConnectionResult) string { return v.VnetName }).(pulumi.StringOutput)
}
// The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
func (o LookupAzureVpcPeeringConnectionResultOutput) VpcId() pulumi.StringOutput {
return o.ApplyT(func(v LookupAzureVpcPeeringConnectionResult) string { return v.VpcId }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupAzureVpcPeeringConnectionResultOutput{})
}