/
vpcIngressConnection.go
179 lines (148 loc) · 7.22 KB
/
vpcIngressConnection.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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
// Code generated by pulumi-language-go DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package apprunner
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// The AWS::AppRunner::VpcIngressConnection resource is an App Runner resource that specifies an App Runner VpcIngressConnection.
type VpcIngressConnection struct {
pulumi.CustomResourceState
// The Domain name associated with the VPC Ingress Connection.
DomainName pulumi.StringOutput `pulumi:"domainName"`
IngressVpcConfiguration VpcIngressConnectionIngressVpcConfigurationOutput `pulumi:"ingressVpcConfiguration"`
// The Amazon Resource Name (ARN) of the service.
ServiceArn pulumi.StringOutput `pulumi:"serviceArn"`
// The current status of the VpcIngressConnection.
Status VpcIngressConnectionStatusOutput `pulumi:"status"`
Tags aws.CreateOnlyTagArrayOutput `pulumi:"tags"`
// The Amazon Resource Name (ARN) of the VpcIngressConnection.
VpcIngressConnectionArn pulumi.StringOutput `pulumi:"vpcIngressConnectionArn"`
// The customer-provided Vpc Ingress Connection name.
VpcIngressConnectionName pulumi.StringPtrOutput `pulumi:"vpcIngressConnectionName"`
}
// NewVpcIngressConnection registers a new resource with the given unique name, arguments, and options.
func NewVpcIngressConnection(ctx *pulumi.Context,
name string, args *VpcIngressConnectionArgs, opts ...pulumi.ResourceOption) (*VpcIngressConnection, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.IngressVpcConfiguration == nil {
return nil, errors.New("invalid value for required argument 'IngressVpcConfiguration'")
}
if args.ServiceArn == nil {
return nil, errors.New("invalid value for required argument 'ServiceArn'")
}
replaceOnChanges := pulumi.ReplaceOnChanges([]string{
"serviceArn",
"tags[*]",
"vpcIngressConnectionName",
})
opts = append(opts, replaceOnChanges)
opts = internal.PkgResourceDefaultOpts(opts)
var resource VpcIngressConnection
err := ctx.RegisterResource("aws-native:apprunner:VpcIngressConnection", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetVpcIngressConnection gets an existing VpcIngressConnection resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetVpcIngressConnection(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *VpcIngressConnectionState, opts ...pulumi.ResourceOption) (*VpcIngressConnection, error) {
var resource VpcIngressConnection
err := ctx.ReadResource("aws-native:apprunner:VpcIngressConnection", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering VpcIngressConnection resources.
type vpcIngressConnectionState struct {
}
type VpcIngressConnectionState struct {
}
func (VpcIngressConnectionState) ElementType() reflect.Type {
return reflect.TypeOf((*vpcIngressConnectionState)(nil)).Elem()
}
type vpcIngressConnectionArgs struct {
IngressVpcConfiguration VpcIngressConnectionIngressVpcConfiguration `pulumi:"ingressVpcConfiguration"`
// The Amazon Resource Name (ARN) of the service.
ServiceArn string `pulumi:"serviceArn"`
Tags []aws.CreateOnlyTag `pulumi:"tags"`
// The customer-provided Vpc Ingress Connection name.
VpcIngressConnectionName *string `pulumi:"vpcIngressConnectionName"`
}
// The set of arguments for constructing a VpcIngressConnection resource.
type VpcIngressConnectionArgs struct {
IngressVpcConfiguration VpcIngressConnectionIngressVpcConfigurationInput
// The Amazon Resource Name (ARN) of the service.
ServiceArn pulumi.StringInput
Tags aws.CreateOnlyTagArrayInput
// The customer-provided Vpc Ingress Connection name.
VpcIngressConnectionName pulumi.StringPtrInput
}
func (VpcIngressConnectionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*vpcIngressConnectionArgs)(nil)).Elem()
}
type VpcIngressConnectionInput interface {
pulumi.Input
ToVpcIngressConnectionOutput() VpcIngressConnectionOutput
ToVpcIngressConnectionOutputWithContext(ctx context.Context) VpcIngressConnectionOutput
}
func (*VpcIngressConnection) ElementType() reflect.Type {
return reflect.TypeOf((**VpcIngressConnection)(nil)).Elem()
}
func (i *VpcIngressConnection) ToVpcIngressConnectionOutput() VpcIngressConnectionOutput {
return i.ToVpcIngressConnectionOutputWithContext(context.Background())
}
func (i *VpcIngressConnection) ToVpcIngressConnectionOutputWithContext(ctx context.Context) VpcIngressConnectionOutput {
return pulumi.ToOutputWithContext(ctx, i).(VpcIngressConnectionOutput)
}
type VpcIngressConnectionOutput struct{ *pulumi.OutputState }
func (VpcIngressConnectionOutput) ElementType() reflect.Type {
return reflect.TypeOf((**VpcIngressConnection)(nil)).Elem()
}
func (o VpcIngressConnectionOutput) ToVpcIngressConnectionOutput() VpcIngressConnectionOutput {
return o
}
func (o VpcIngressConnectionOutput) ToVpcIngressConnectionOutputWithContext(ctx context.Context) VpcIngressConnectionOutput {
return o
}
// The Domain name associated with the VPC Ingress Connection.
func (o VpcIngressConnectionOutput) DomainName() pulumi.StringOutput {
return o.ApplyT(func(v *VpcIngressConnection) pulumi.StringOutput { return v.DomainName }).(pulumi.StringOutput)
}
func (o VpcIngressConnectionOutput) IngressVpcConfiguration() VpcIngressConnectionIngressVpcConfigurationOutput {
return o.ApplyT(func(v *VpcIngressConnection) VpcIngressConnectionIngressVpcConfigurationOutput {
return v.IngressVpcConfiguration
}).(VpcIngressConnectionIngressVpcConfigurationOutput)
}
// The Amazon Resource Name (ARN) of the service.
func (o VpcIngressConnectionOutput) ServiceArn() pulumi.StringOutput {
return o.ApplyT(func(v *VpcIngressConnection) pulumi.StringOutput { return v.ServiceArn }).(pulumi.StringOutput)
}
// The current status of the VpcIngressConnection.
func (o VpcIngressConnectionOutput) Status() VpcIngressConnectionStatusOutput {
return o.ApplyT(func(v *VpcIngressConnection) VpcIngressConnectionStatusOutput { return v.Status }).(VpcIngressConnectionStatusOutput)
}
func (o VpcIngressConnectionOutput) Tags() aws.CreateOnlyTagArrayOutput {
return o.ApplyT(func(v *VpcIngressConnection) aws.CreateOnlyTagArrayOutput { return v.Tags }).(aws.CreateOnlyTagArrayOutput)
}
// The Amazon Resource Name (ARN) of the VpcIngressConnection.
func (o VpcIngressConnectionOutput) VpcIngressConnectionArn() pulumi.StringOutput {
return o.ApplyT(func(v *VpcIngressConnection) pulumi.StringOutput { return v.VpcIngressConnectionArn }).(pulumi.StringOutput)
}
// The customer-provided Vpc Ingress Connection name.
func (o VpcIngressConnectionOutput) VpcIngressConnectionName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *VpcIngressConnection) pulumi.StringPtrOutput { return v.VpcIngressConnectionName }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*VpcIngressConnectionInput)(nil)).Elem(), &VpcIngressConnection{})
pulumi.RegisterOutputType(VpcIngressConnectionOutput{})
}