-
Notifications
You must be signed in to change notification settings - Fork 117
/
zz_vpcendpoint_types.go
executable file
·311 lines (233 loc) · 16.2 KB
/
zz_vpcendpoint_types.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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by upjet. DO NOT EDIT.
package v1beta2
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type DNSEntryInitParameters struct {
}
type DNSEntryObservation struct {
// The DNS name.
DNSName *string `json:"dnsName,omitempty" tf:"dns_name,omitempty"`
// The ID of the private hosted zone.
HostedZoneID *string `json:"hostedZoneId,omitempty" tf:"hosted_zone_id,omitempty"`
}
type DNSEntryParameters struct {
}
type DNSOptionsInitParameters struct {
// The DNS records created for the endpoint. Valid values are ipv4, dualstack, service-defined, and ipv6.
DNSRecordIPType *string `json:"dnsRecordIpType,omitempty" tf:"dns_record_ip_type,omitempty"`
// Indicates whether to enable private DNS only for inbound endpoints. This option is available only for services that support both gateway and interface endpoints. It routes traffic that originates from the VPC to the gateway endpoint and traffic that originates from on-premises to the interface endpoint. Default is false. Can only be specified if private_dns_enabled is true.
PrivateDNSOnlyForInboundResolverEndpoint *bool `json:"privateDnsOnlyForInboundResolverEndpoint,omitempty" tf:"private_dns_only_for_inbound_resolver_endpoint,omitempty"`
}
type DNSOptionsObservation struct {
// The DNS records created for the endpoint. Valid values are ipv4, dualstack, service-defined, and ipv6.
DNSRecordIPType *string `json:"dnsRecordIpType,omitempty" tf:"dns_record_ip_type,omitempty"`
// Indicates whether to enable private DNS only for inbound endpoints. This option is available only for services that support both gateway and interface endpoints. It routes traffic that originates from the VPC to the gateway endpoint and traffic that originates from on-premises to the interface endpoint. Default is false. Can only be specified if private_dns_enabled is true.
PrivateDNSOnlyForInboundResolverEndpoint *bool `json:"privateDnsOnlyForInboundResolverEndpoint,omitempty" tf:"private_dns_only_for_inbound_resolver_endpoint,omitempty"`
}
type DNSOptionsParameters struct {
// The DNS records created for the endpoint. Valid values are ipv4, dualstack, service-defined, and ipv6.
// +kubebuilder:validation:Optional
DNSRecordIPType *string `json:"dnsRecordIpType,omitempty" tf:"dns_record_ip_type,omitempty"`
// Indicates whether to enable private DNS only for inbound endpoints. This option is available only for services that support both gateway and interface endpoints. It routes traffic that originates from the VPC to the gateway endpoint and traffic that originates from on-premises to the interface endpoint. Default is false. Can only be specified if private_dns_enabled is true.
// +kubebuilder:validation:Optional
PrivateDNSOnlyForInboundResolverEndpoint *bool `json:"privateDnsOnlyForInboundResolverEndpoint,omitempty" tf:"private_dns_only_for_inbound_resolver_endpoint,omitempty"`
}
type VPCEndpointInitParameters struct {
// Accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
AutoAccept *bool `json:"autoAccept,omitempty" tf:"auto_accept,omitempty"`
// The DNS options for the endpoint. See dns_options below.
DNSOptions *DNSOptionsInitParameters `json:"dnsOptions,omitempty" tf:"dns_options,omitempty"`
// The IP address type for the endpoint. Valid values are ipv4, dualstack, and ipv6.
IPAddressType *string `json:"ipAddressType,omitempty" tf:"ip_address_type,omitempty"`
// A policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All Gateway and some Interface endpoints support policies - see the relevant AWS documentation for more details.
Policy *string `json:"policy,omitempty" tf:"policy,omitempty"`
// Whether or not to associate a private hosted zone with the specified VPC. Applicable for endpoints of type Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint.
// Defaults to false.
PrivateDNSEnabled *bool `json:"privateDnsEnabled,omitempty" tf:"private_dns_enabled,omitempty"`
// The service name. For AWS services the service name is usually in the form com.amazonaws.<region>.<service> (the SageMaker Notebook service is an exception to this rule, the service name is in the form aws.sagemaker.<region>.notebook).
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPCEndpointService
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("service_name",true)
ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"`
// Reference to a VPCEndpointService in ec2 to populate serviceName.
// +kubebuilder:validation:Optional
ServiceNameRef *v1.Reference `json:"serviceNameRef,omitempty" tf:"-"`
// Selector for a VPCEndpointService in ec2 to populate serviceName.
// +kubebuilder:validation:Optional
ServiceNameSelector *v1.Selector `json:"serviceNameSelector,omitempty" tf:"-"`
// Key-value map of resource tags.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// The VPC endpoint type, Gateway, GatewayLoadBalancer, or Interface. Defaults to Gateway.
VPCEndpointType *string `json:"vpcEndpointType,omitempty" tf:"vpc_endpoint_type,omitempty"`
// The ID of the VPC in which the endpoint will be used.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC
VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"`
// Reference to a VPC in ec2 to populate vpcId.
// +kubebuilder:validation:Optional
VPCIDRef *v1.Reference `json:"vpcIdRef,omitempty" tf:"-"`
// Selector for a VPC in ec2 to populate vpcId.
// +kubebuilder:validation:Optional
VPCIDSelector *v1.Selector `json:"vpcIdSelector,omitempty" tf:"-"`
}
type VPCEndpointObservation struct {
// The Amazon Resource Name (ARN) of the VPC endpoint.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
AutoAccept *bool `json:"autoAccept,omitempty" tf:"auto_accept,omitempty"`
// The list of CIDR blocks for the exposed AWS service. Applicable for endpoints of type Gateway.
CidrBlocks []*string `json:"cidrBlocks,omitempty" tf:"cidr_blocks,omitempty"`
// The DNS entries for the VPC Endpoint. Applicable for endpoints of type Interface. DNS blocks are documented below.
DNSEntry []DNSEntryObservation `json:"dnsEntry,omitempty" tf:"dns_entry,omitempty"`
// The DNS options for the endpoint. See dns_options below.
DNSOptions *DNSOptionsObservation `json:"dnsOptions,omitempty" tf:"dns_options,omitempty"`
// The ID of the VPC endpoint.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The IP address type for the endpoint. Valid values are ipv4, dualstack, and ipv6.
IPAddressType *string `json:"ipAddressType,omitempty" tf:"ip_address_type,omitempty"`
// One or more network interfaces for the VPC Endpoint. Applicable for endpoints of type Interface.
// +listType=set
NetworkInterfaceIds []*string `json:"networkInterfaceIds,omitempty" tf:"network_interface_ids,omitempty"`
// The ID of the AWS account that owns the VPC endpoint.
OwnerID *string `json:"ownerId,omitempty" tf:"owner_id,omitempty"`
// A policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All Gateway and some Interface endpoints support policies - see the relevant AWS documentation for more details.
Policy *string `json:"policy,omitempty" tf:"policy,omitempty"`
// The prefix list ID of the exposed AWS service. Applicable for endpoints of type Gateway.
PrefixListID *string `json:"prefixListId,omitempty" tf:"prefix_list_id,omitempty"`
// Whether or not to associate a private hosted zone with the specified VPC. Applicable for endpoints of type Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint.
// Defaults to false.
PrivateDNSEnabled *bool `json:"privateDnsEnabled,omitempty" tf:"private_dns_enabled,omitempty"`
// Whether or not the VPC Endpoint is being managed by its service - true or false.
RequesterManaged *bool `json:"requesterManaged,omitempty" tf:"requester_managed,omitempty"`
// One or more route table IDs. Applicable for endpoints of type Gateway.
// +listType=set
RouteTableIds []*string `json:"routeTableIds,omitempty" tf:"route_table_ids,omitempty"`
// The ID of one or more security groups to associate with the network interface. Applicable for endpoints of type Interface.
// If no security groups are specified, the VPC's default security group is associated with the endpoint.
// +listType=set
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// The service name. For AWS services the service name is usually in the form com.amazonaws.<region>.<service> (the SageMaker Notebook service is an exception to this rule, the service name is in the form aws.sagemaker.<region>.notebook).
ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"`
// The state of the VPC endpoint.
State *string `json:"state,omitempty" tf:"state,omitempty"`
// The ID of one or more subnets in which to create a network interface for the endpoint. Applicable for endpoints of type GatewayLoadBalancer and Interface. Interface type endpoints cannot function without being assigned to a subnet.
// +listType=set
SubnetIds []*string `json:"subnetIds,omitempty" tf:"subnet_ids,omitempty"`
// Key-value map of resource tags.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
// +mapType=granular
TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"`
// The VPC endpoint type, Gateway, GatewayLoadBalancer, or Interface. Defaults to Gateway.
VPCEndpointType *string `json:"vpcEndpointType,omitempty" tf:"vpc_endpoint_type,omitempty"`
// The ID of the VPC in which the endpoint will be used.
VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"`
}
type VPCEndpointParameters struct {
// Accept the VPC endpoint (the VPC endpoint and service need to be in the same AWS account).
// +kubebuilder:validation:Optional
AutoAccept *bool `json:"autoAccept,omitempty" tf:"auto_accept,omitempty"`
// The DNS options for the endpoint. See dns_options below.
// +kubebuilder:validation:Optional
DNSOptions *DNSOptionsParameters `json:"dnsOptions,omitempty" tf:"dns_options,omitempty"`
// The IP address type for the endpoint. Valid values are ipv4, dualstack, and ipv6.
// +kubebuilder:validation:Optional
IPAddressType *string `json:"ipAddressType,omitempty" tf:"ip_address_type,omitempty"`
// A policy to attach to the endpoint that controls access to the service. This is a JSON formatted string. Defaults to full access. All Gateway and some Interface endpoints support policies - see the relevant AWS documentation for more details.
// +kubebuilder:validation:Optional
Policy *string `json:"policy,omitempty" tf:"policy,omitempty"`
// Whether or not to associate a private hosted zone with the specified VPC. Applicable for endpoints of type Interface. Most users will want this enabled to allow services within the VPC to automatically use the endpoint.
// Defaults to false.
// +kubebuilder:validation:Optional
PrivateDNSEnabled *bool `json:"privateDnsEnabled,omitempty" tf:"private_dns_enabled,omitempty"`
// Region is the region you'd like your resource to be created in.
// +upjet:crd:field:TFTag=-
// +kubebuilder:validation:Required
Region *string `json:"region" tf:"-"`
// The service name. For AWS services the service name is usually in the form com.amazonaws.<region>.<service> (the SageMaker Notebook service is an exception to this rule, the service name is in the form aws.sagemaker.<region>.notebook).
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPCEndpointService
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("service_name",true)
// +kubebuilder:validation:Optional
ServiceName *string `json:"serviceName,omitempty" tf:"service_name,omitempty"`
// Reference to a VPCEndpointService in ec2 to populate serviceName.
// +kubebuilder:validation:Optional
ServiceNameRef *v1.Reference `json:"serviceNameRef,omitempty" tf:"-"`
// Selector for a VPCEndpointService in ec2 to populate serviceName.
// +kubebuilder:validation:Optional
ServiceNameSelector *v1.Selector `json:"serviceNameSelector,omitempty" tf:"-"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// The VPC endpoint type, Gateway, GatewayLoadBalancer, or Interface. Defaults to Gateway.
// +kubebuilder:validation:Optional
VPCEndpointType *string `json:"vpcEndpointType,omitempty" tf:"vpc_endpoint_type,omitempty"`
// The ID of the VPC in which the endpoint will be used.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.VPC
// +kubebuilder:validation:Optional
VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"`
// Reference to a VPC in ec2 to populate vpcId.
// +kubebuilder:validation:Optional
VPCIDRef *v1.Reference `json:"vpcIdRef,omitempty" tf:"-"`
// Selector for a VPC in ec2 to populate vpcId.
// +kubebuilder:validation:Optional
VPCIDSelector *v1.Selector `json:"vpcIdSelector,omitempty" tf:"-"`
}
// VPCEndpointSpec defines the desired state of VPCEndpoint
type VPCEndpointSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider VPCEndpointParameters `json:"forProvider"`
// THIS IS A BETA FIELD. It will be honored
// unless the Management Policies feature flag is disabled.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider VPCEndpointInitParameters `json:"initProvider,omitempty"`
}
// VPCEndpointStatus defines the observed state of VPCEndpoint.
type VPCEndpointStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider VPCEndpointObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// VPCEndpoint is the Schema for the VPCEndpoints API. Provides a VPC Endpoint resource.
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws}
type VPCEndpoint struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec VPCEndpointSpec `json:"spec"`
Status VPCEndpointStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// VPCEndpointList contains a list of VPCEndpoints
type VPCEndpointList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []VPCEndpoint `json:"items"`
}
// Repository type metadata.
var (
VPCEndpoint_Kind = "VPCEndpoint"
VPCEndpoint_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: VPCEndpoint_Kind}.String()
VPCEndpoint_KindAPIVersion = VPCEndpoint_Kind + "." + CRDGroupVersion.String()
VPCEndpoint_GroupVersionKind = CRDGroupVersion.WithKind(VPCEndpoint_Kind)
)
func init() {
SchemeBuilder.Register(&VPCEndpoint{}, &VPCEndpointList{})
}