diff --git a/apis/autoscaling/v1alpha1/zz_attachment_types.go b/apis/autoscaling/v1alpha1/zz_attachment_types.go index 023c88dc7..bd7168c00 100755 --- a/apis/autoscaling/v1alpha1/zz_attachment_types.go +++ b/apis/autoscaling/v1alpha1/zz_attachment_types.go @@ -31,7 +31,7 @@ type AttachmentObservation struct { type AttachmentParameters struct { - // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/elasticloadbalancing/v1alpha1.TargetGroup + // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/elbv2/v1alpha1.LBTargetGroup // +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-jet-aws/config/common.ARNExtractor() // +kubebuilder:validation:Optional ALBTargetGroupArn *string `json:"albTargetGroupArn,omitempty" tf:"alb_target_group_arn,omitempty"` diff --git a/apis/autoscaling/v1alpha1/zz_generated.resolvers.go b/apis/autoscaling/v1alpha1/zz_generated.resolvers.go index 3c93163e1..e79e454eb 100644 --- a/apis/autoscaling/v1alpha1/zz_generated.resolvers.go +++ b/apis/autoscaling/v1alpha1/zz_generated.resolvers.go @@ -20,7 +20,7 @@ package v1alpha1 import ( "context" v1alpha11 "github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha1" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/elasticloadbalancing/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/elbv2/v1alpha1" common "github.com/crossplane-contrib/provider-jet-aws/config/common" reference "github.com/crossplane/crossplane-runtime/pkg/reference" errors "github.com/pkg/errors" @@ -40,8 +40,8 @@ func (mg *Attachment) ResolveReferences(ctx context.Context, c client.Reader) er Reference: mg.Spec.ForProvider.ALBTargetGroupArnRef, Selector: mg.Spec.ForProvider.ALBTargetGroupArnSelector, To: reference.To{ - List: &v1alpha1.TargetGroupList{}, - Managed: &v1alpha1.TargetGroup{}, + List: &v1alpha1.LBTargetGroupList{}, + Managed: &v1alpha1.LBTargetGroup{}, }, }) if err != nil { diff --git a/apis/ebs/v1alpha1/zz_generated.deepcopy.go b/apis/ebs/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index 07ac2dc15..000000000 --- a/apis/ebs/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,254 +0,0 @@ -// +build !ignore_autogenerated - -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by controller-gen. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/crossplane/crossplane-runtime/apis/common/v1" - runtime "k8s.io/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Volume) DeepCopyInto(out *Volume) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Volume. -func (in *Volume) DeepCopy() *Volume { - if in == nil { - return nil - } - out := new(Volume) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Volume) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeList) DeepCopyInto(out *VolumeList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Volume, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeList. -func (in *VolumeList) DeepCopy() *VolumeList { - if in == nil { - return nil - } - out := new(VolumeList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VolumeList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeObservation) DeepCopyInto(out *VolumeObservation) { - *out = *in - if in.Arn != nil { - in, out := &in.Arn, &out.Arn - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.TagsAll != nil { - in, out := &in.TagsAll, &out.TagsAll - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeObservation. -func (in *VolumeObservation) DeepCopy() *VolumeObservation { - if in == nil { - return nil - } - out := new(VolumeObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeParameters) DeepCopyInto(out *VolumeParameters) { - *out = *in - if in.AvailabilityZone != nil { - in, out := &in.AvailabilityZone, &out.AvailabilityZone - *out = new(string) - **out = **in - } - if in.Encrypted != nil { - in, out := &in.Encrypted, &out.Encrypted - *out = new(bool) - **out = **in - } - if in.Iops != nil { - in, out := &in.Iops, &out.Iops - *out = new(int64) - **out = **in - } - if in.KMSKeyID != nil { - in, out := &in.KMSKeyID, &out.KMSKeyID - *out = new(string) - **out = **in - } - if in.KMSKeyIDRef != nil { - in, out := &in.KMSKeyIDRef, &out.KMSKeyIDRef - *out = new(v1.Reference) - **out = **in - } - if in.KMSKeyIDSelector != nil { - in, out := &in.KMSKeyIDSelector, &out.KMSKeyIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.MultiAttachEnabled != nil { - in, out := &in.MultiAttachEnabled, &out.MultiAttachEnabled - *out = new(bool) - **out = **in - } - if in.OutpostArn != nil { - in, out := &in.OutpostArn, &out.OutpostArn - *out = new(string) - **out = **in - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.Size != nil { - in, out := &in.Size, &out.Size - *out = new(int64) - **out = **in - } - if in.SnapshotID != nil { - in, out := &in.SnapshotID, &out.SnapshotID - *out = new(string) - **out = **in - } - if in.Tags != nil { - in, out := &in.Tags, &out.Tags - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.Throughput != nil { - in, out := &in.Throughput, &out.Throughput - *out = new(int64) - **out = **in - } - if in.Type != nil { - in, out := &in.Type, &out.Type - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeParameters. -func (in *VolumeParameters) DeepCopy() *VolumeParameters { - if in == nil { - return nil - } - out := new(VolumeParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSpec) DeepCopyInto(out *VolumeSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSpec. -func (in *VolumeSpec) DeepCopy() *VolumeSpec { - if in == nil { - return nil - } - out := new(VolumeSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeStatus) DeepCopyInto(out *VolumeStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeStatus. -func (in *VolumeStatus) DeepCopy() *VolumeStatus { - if in == nil { - return nil - } - out := new(VolumeStatus) - in.DeepCopyInto(out) - return out -} diff --git a/apis/ebs/v1alpha1/zz_generated.managed.go b/apis/ebs/v1alpha1/zz_generated.managed.go deleted file mode 100644 index cd7a150d9..000000000 --- a/apis/ebs/v1alpha1/zz_generated.managed.go +++ /dev/null @@ -1,76 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -// Code generated by angryjet. DO NOT EDIT. - -package v1alpha1 - -import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - -// GetCondition of this Volume. -func (mg *Volume) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this Volume. -func (mg *Volume) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this Volume. -func (mg *Volume) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this Volume. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *Volume) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this Volume. -func (mg *Volume) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this Volume. -func (mg *Volume) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this Volume. -func (mg *Volume) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this Volume. -func (mg *Volume) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this Volume. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *Volume) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this Volume. -func (mg *Volume) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} diff --git a/apis/ebs/v1alpha1/zz_generated.managedlist.go b/apis/ebs/v1alpha1/zz_generated.managedlist.go deleted file mode 100644 index 80264f628..000000000 --- a/apis/ebs/v1alpha1/zz_generated.managedlist.go +++ /dev/null @@ -1,29 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -// Code generated by angryjet. DO NOT EDIT. - -package v1alpha1 - -import resource "github.com/crossplane/crossplane-runtime/pkg/resource" - -// GetItems of this VolumeList. -func (l *VolumeList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} diff --git a/apis/ebs/v1alpha1/zz_generated.resolvers.go b/apis/ebs/v1alpha1/zz_generated.resolvers.go deleted file mode 100644 index faa9d0f2b..000000000 --- a/apis/ebs/v1alpha1/zz_generated.resolvers.go +++ /dev/null @@ -1,52 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -// Code generated by angryjet. DO NOT EDIT. - -package v1alpha1 - -import ( - "context" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/kms/v1alpha1" - reference "github.com/crossplane/crossplane-runtime/pkg/reference" - errors "github.com/pkg/errors" - client "sigs.k8s.io/controller-runtime/pkg/client" -) - -// ResolveReferences of this Volume. -func (mg *Volume) ResolveReferences(ctx context.Context, c client.Reader) error { - r := reference.NewAPIResolver(c, mg) - - var rsp reference.ResolutionResponse - var err error - - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.KMSKeyID), - Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.KMSKeyIDRef, - Selector: mg.Spec.ForProvider.KMSKeyIDSelector, - To: reference.To{ - List: &v1alpha1.KeyList{}, - Managed: &v1alpha1.Key{}, - }, - }) - if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.KMSKeyID") - } - mg.Spec.ForProvider.KMSKeyID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.KMSKeyIDRef = rsp.ResolvedReference - - return nil -} diff --git a/apis/ec2/v1alpha1/zz_elasticip_terraformed.go b/apis/ec2/v1alpha1/zz_ebsvolume_terraformed.go similarity index 69% rename from apis/ec2/v1alpha1/zz_elasticip_terraformed.go rename to apis/ec2/v1alpha1/zz_ebsvolume_terraformed.go index c6e331842..9590a33b4 100755 --- a/apis/ec2/v1alpha1/zz_elasticip_terraformed.go +++ b/apis/ec2/v1alpha1/zz_ebsvolume_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ElasticIP -func (mg *ElasticIP) GetTerraformResourceType() string { - return "aws_eip" +// GetTerraformResourceType returns Terraform resource type for this EBSVolume +func (mg *EBSVolume) GetTerraformResourceType() string { + return "aws_ebs_volume" } -// GetConnectionDetailsMapping for this ElasticIP -func (tr *ElasticIP) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this EBSVolume +func (tr *EBSVolume) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ElasticIP -func (tr *ElasticIP) GetObservation() (map[string]interface{}, error) { +// GetObservation of this EBSVolume +func (tr *EBSVolume) GetObservation() (map[string]interface{}, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -45,8 +45,8 @@ func (tr *ElasticIP) GetObservation() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this ElasticIP -func (tr *ElasticIP) SetObservation(obs map[string]interface{}) error { +// SetObservation for this EBSVolume +func (tr *EBSVolume) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,16 +54,16 @@ func (tr *ElasticIP) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this ElasticIP -func (tr *ElasticIP) GetID() string { +// GetID returns ID of underlying Terraform resource of this EBSVolume +func (tr *EBSVolume) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this ElasticIP -func (tr *ElasticIP) GetParameters() (map[string]interface{}, error) { +// GetParameters of this EBSVolume +func (tr *EBSVolume) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -72,8 +72,8 @@ func (tr *ElasticIP) GetParameters() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this ElasticIP -func (tr *ElasticIP) SetParameters(params map[string]interface{}) error { +// SetParameters for this EBSVolume +func (tr *EBSVolume) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -81,10 +81,10 @@ func (tr *ElasticIP) SetParameters(params map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this ElasticIP using its observed tfState. +// LateInitialize this EBSVolume using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *ElasticIP) LateInitialize(attrs []byte) (bool, error) { - params := &ElasticIPParameters{} +func (tr *EBSVolume) LateInitialize(attrs []byte) (bool, error) { + params := &EBSVolumeParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -95,6 +95,6 @@ func (tr *ElasticIP) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ElasticIP) GetTerraformSchemaVersion() int { +func (tr *EBSVolume) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/ebs/v1alpha1/zz_volume_types.go b/apis/ec2/v1alpha1/zz_ebsvolume_types.go similarity index 78% rename from apis/ebs/v1alpha1/zz_volume_types.go rename to apis/ec2/v1alpha1/zz_ebsvolume_types.go index ccbcdaa3f..8e255a45f 100755 --- a/apis/ebs/v1alpha1/zz_volume_types.go +++ b/apis/ec2/v1alpha1/zz_ebsvolume_types.go @@ -25,7 +25,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type VolumeObservation struct { +type EBSVolumeObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` @@ -33,7 +33,7 @@ type VolumeObservation struct { TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } -type VolumeParameters struct { +type EBSVolumeParameters struct { // +kubebuilder:validation:Required AvailabilityZone *string `json:"availabilityZone" tf:"availability_zone,omitempty"` @@ -81,51 +81,51 @@ type VolumeParameters struct { Type *string `json:"type,omitempty" tf:"type,omitempty"` } -// VolumeSpec defines the desired state of Volume -type VolumeSpec struct { +// EBSVolumeSpec defines the desired state of EBSVolume +type EBSVolumeSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider VolumeParameters `json:"forProvider"` + ForProvider EBSVolumeParameters `json:"forProvider"` } -// VolumeStatus defines the observed state of Volume. -type VolumeStatus struct { +// EBSVolumeStatus defines the observed state of EBSVolume. +type EBSVolumeStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider VolumeObservation `json:"atProvider,omitempty"` + AtProvider EBSVolumeObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// Volume is the Schema for the Volumes API +// EBSVolume is the Schema for the EBSVolumes API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type Volume struct { +type EBSVolume struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec VolumeSpec `json:"spec"` - Status VolumeStatus `json:"status,omitempty"` + Spec EBSVolumeSpec `json:"spec"` + Status EBSVolumeStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// VolumeList contains a list of Volumes -type VolumeList struct { +// EBSVolumeList contains a list of EBSVolumes +type EBSVolumeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []Volume `json:"items"` + Items []EBSVolume `json:"items"` } // Repository type metadata. var ( - Volume_Kind = "Volume" - Volume_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Volume_Kind}.String() - Volume_KindAPIVersion = Volume_Kind + "." + CRDGroupVersion.String() - Volume_GroupVersionKind = CRDGroupVersion.WithKind(Volume_Kind) + EBSVolume_Kind = "EBSVolume" + EBSVolume_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: EBSVolume_Kind}.String() + EBSVolume_KindAPIVersion = EBSVolume_Kind + "." + CRDGroupVersion.String() + EBSVolume_GroupVersionKind = CRDGroupVersion.WithKind(EBSVolume_Kind) ) func init() { - SchemeBuilder.Register(&Volume{}, &VolumeList{}) + SchemeBuilder.Register(&EBSVolume{}, &EBSVolumeList{}) } diff --git a/apis/ec2/v1alpha1/zz_eip_terraformed.go b/apis/ec2/v1alpha1/zz_eip_terraformed.go new file mode 100755 index 000000000..53b406542 --- /dev/null +++ b/apis/ec2/v1alpha1/zz_eip_terraformed.go @@ -0,0 +1,100 @@ +/* +Copyright 2021 The Crossplane Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by terrajet. DO NOT EDIT. + +package v1alpha1 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this EIP +func (mg *EIP) GetTerraformResourceType() string { + return "aws_eip" +} + +// GetConnectionDetailsMapping for this EIP +func (tr *EIP) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this EIP +func (tr *EIP) GetObservation() (map[string]interface{}, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this EIP +func (tr *EIP) SetObservation(obs map[string]interface{}) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this EIP +func (tr *EIP) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this EIP +func (tr *EIP) GetParameters() (map[string]interface{}, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this EIP +func (tr *EIP) SetParameters(params map[string]interface{}) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this EIP using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *EIP) LateInitialize(attrs []byte) (bool, error) { + params := &EIPParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *EIP) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/ec2/v1alpha1/zz_elasticip_types.go b/apis/ec2/v1alpha1/zz_eip_types.go similarity index 81% rename from apis/ec2/v1alpha1/zz_elasticip_types.go rename to apis/ec2/v1alpha1/zz_eip_types.go index 556c7fba2..39bfaff13 100755 --- a/apis/ec2/v1alpha1/zz_elasticip_types.go +++ b/apis/ec2/v1alpha1/zz_eip_types.go @@ -25,7 +25,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type ElasticIPObservation struct { +type EIPObservation struct { AllocationID *string `json:"allocationId,omitempty" tf:"allocation_id,omitempty"` AssociationID *string `json:"associationId,omitempty" tf:"association_id,omitempty"` @@ -49,7 +49,7 @@ type ElasticIPObservation struct { TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } -type ElasticIPParameters struct { +type EIPParameters struct { // +kubebuilder:validation:Optional Address *string `json:"address,omitempty" tf:"address,omitempty"` @@ -98,51 +98,51 @@ type ElasticIPParameters struct { VPC *bool `json:"vpc,omitempty" tf:"vpc,omitempty"` } -// ElasticIPSpec defines the desired state of ElasticIP -type ElasticIPSpec struct { +// EIPSpec defines the desired state of EIP +type EIPSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ElasticIPParameters `json:"forProvider"` + ForProvider EIPParameters `json:"forProvider"` } -// ElasticIPStatus defines the observed state of ElasticIP. -type ElasticIPStatus struct { +// EIPStatus defines the observed state of EIP. +type EIPStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ElasticIPObservation `json:"atProvider,omitempty"` + AtProvider EIPObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ElasticIP is the Schema for the ElasticIPs API +// EIP is the Schema for the EIPs API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type ElasticIP struct { +type EIP struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec ElasticIPSpec `json:"spec"` - Status ElasticIPStatus `json:"status,omitempty"` + Spec EIPSpec `json:"spec"` + Status EIPStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ElasticIPList contains a list of ElasticIPs -type ElasticIPList struct { +// EIPList contains a list of EIPs +type EIPList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ElasticIP `json:"items"` + Items []EIP `json:"items"` } // Repository type metadata. var ( - ElasticIP_Kind = "ElasticIP" - ElasticIP_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ElasticIP_Kind}.String() - ElasticIP_KindAPIVersion = ElasticIP_Kind + "." + CRDGroupVersion.String() - ElasticIP_GroupVersionKind = CRDGroupVersion.WithKind(ElasticIP_Kind) + EIP_Kind = "EIP" + EIP_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: EIP_Kind}.String() + EIP_KindAPIVersion = EIP_Kind + "." + CRDGroupVersion.String() + EIP_GroupVersionKind = CRDGroupVersion.WithKind(EIP_Kind) ) func init() { - SchemeBuilder.Register(&ElasticIP{}, &ElasticIPList{}) + SchemeBuilder.Register(&EIP{}, &EIPList{}) } diff --git a/apis/ec2/v1alpha1/zz_generated.deepcopy.go b/apis/ec2/v1alpha1/zz_generated.deepcopy.go index 841894e46..077e771e7 100644 --- a/apis/ec2/v1alpha1/zz_generated.deepcopy.go +++ b/apis/ec2/v1alpha1/zz_generated.deepcopy.go @@ -590,151 +590,235 @@ func (in *EBSParameters) DeepCopy() *EBSParameters { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EgressObservation) DeepCopyInto(out *EgressObservation) { +func (in *EBSVolume) DeepCopyInto(out *EBSVolume) { *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressObservation. -func (in *EgressObservation) DeepCopy() *EgressObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EBSVolume. +func (in *EBSVolume) DeepCopy() *EBSVolume { if in == nil { return nil } - out := new(EgressObservation) + out := new(EBSVolume) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EBSVolume) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EgressParameters) DeepCopyInto(out *EgressParameters) { +func (in *EBSVolumeList) DeepCopyInto(out *EBSVolumeList) { *out = *in - if in.CidrBlocks != nil { - in, out := &in.CidrBlocks, &out.CidrBlocks - *out = make([]*string, len(*in)) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]EBSVolume, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.Description != nil { - in, out := &in.Description, &out.Description +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EBSVolumeList. +func (in *EBSVolumeList) DeepCopy() *EBSVolumeList { + if in == nil { + return nil + } + out := new(EBSVolumeList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EBSVolumeList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EBSVolumeObservation) DeepCopyInto(out *EBSVolumeObservation) { + *out = *in + if in.Arn != nil { + in, out := &in.Arn, &out.Arn *out = new(string) **out = **in } - if in.FromPort != nil { - in, out := &in.FromPort, &out.FromPort - *out = new(int64) + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) **out = **in } - if in.IPv6CidrBlocks != nil { - in, out := &in.IPv6CidrBlocks, &out.IPv6CidrBlocks - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] + if in.TagsAll != nil { + in, out := &in.TagsAll, &out.TagsAll + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal *out = new(string) **out = **in } + (*out)[key] = outVal } } - if in.PrefixListIds != nil { - in, out := &in.PrefixListIds, &out.PrefixListIds - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EBSVolumeObservation. +func (in *EBSVolumeObservation) DeepCopy() *EBSVolumeObservation { + if in == nil { + return nil } - if in.Protocol != nil { - in, out := &in.Protocol, &out.Protocol + out := new(EBSVolumeObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EBSVolumeParameters) DeepCopyInto(out *EBSVolumeParameters) { + *out = *in + if in.AvailabilityZone != nil { + in, out := &in.AvailabilityZone, &out.AvailabilityZone *out = new(string) **out = **in } - if in.SecurityGroupRefs != nil { - in, out := &in.SecurityGroupRefs, &out.SecurityGroupRefs - *out = make([]v1.Reference, len(*in)) - copy(*out, *in) + if in.Encrypted != nil { + in, out := &in.Encrypted, &out.Encrypted + *out = new(bool) + **out = **in } - if in.SecurityGroupSelector != nil { - in, out := &in.SecurityGroupSelector, &out.SecurityGroupSelector + if in.Iops != nil { + in, out := &in.Iops, &out.Iops + *out = new(int64) + **out = **in + } + if in.KMSKeyID != nil { + in, out := &in.KMSKeyID, &out.KMSKeyID + *out = new(string) + **out = **in + } + if in.KMSKeyIDRef != nil { + in, out := &in.KMSKeyIDRef, &out.KMSKeyIDRef + *out = new(v1.Reference) + **out = **in + } + if in.KMSKeyIDSelector != nil { + in, out := &in.KMSKeyIDSelector, &out.KMSKeyIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.SecurityGroups != nil { - in, out := &in.SecurityGroups, &out.SecurityGroups - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] + if in.MultiAttachEnabled != nil { + in, out := &in.MultiAttachEnabled, &out.MultiAttachEnabled + *out = new(bool) + **out = **in + } + if in.OutpostArn != nil { + in, out := &in.OutpostArn, &out.OutpostArn + *out = new(string) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.Size != nil { + in, out := &in.Size, &out.Size + *out = new(int64) + **out = **in + } + if in.SnapshotID != nil { + in, out := &in.SnapshotID, &out.SnapshotID + *out = new(string) + **out = **in + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal *out = new(string) **out = **in } + (*out)[key] = outVal } } - if in.Self != nil { - in, out := &in.Self, &out.Self - *out = new(bool) + if in.Throughput != nil { + in, out := &in.Throughput, &out.Throughput + *out = new(int64) **out = **in } - if in.ToPort != nil { - in, out := &in.ToPort, &out.ToPort - *out = new(int64) + if in.Type != nil { + in, out := &in.Type, &out.Type + *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressParameters. -func (in *EgressParameters) DeepCopy() *EgressParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EBSVolumeParameters. +func (in *EBSVolumeParameters) DeepCopy() *EBSVolumeParameters { if in == nil { return nil } - out := new(EgressParameters) + out := new(EBSVolumeParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ElasticGpuSpecificationsObservation) DeepCopyInto(out *ElasticGpuSpecificationsObservation) { +func (in *EBSVolumeSpec) DeepCopyInto(out *EBSVolumeSpec) { *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticGpuSpecificationsObservation. -func (in *ElasticGpuSpecificationsObservation) DeepCopy() *ElasticGpuSpecificationsObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EBSVolumeSpec. +func (in *EBSVolumeSpec) DeepCopy() *EBSVolumeSpec { if in == nil { return nil } - out := new(ElasticGpuSpecificationsObservation) + out := new(EBSVolumeSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ElasticGpuSpecificationsParameters) DeepCopyInto(out *ElasticGpuSpecificationsParameters) { +func (in *EBSVolumeStatus) DeepCopyInto(out *EBSVolumeStatus) { *out = *in - if in.Type != nil { - in, out := &in.Type, &out.Type - *out = new(string) - **out = **in - } + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticGpuSpecificationsParameters. -func (in *ElasticGpuSpecificationsParameters) DeepCopy() *ElasticGpuSpecificationsParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EBSVolumeStatus. +func (in *EBSVolumeStatus) DeepCopy() *EBSVolumeStatus { if in == nil { return nil } - out := new(ElasticGpuSpecificationsParameters) + out := new(EBSVolumeStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ElasticIP) DeepCopyInto(out *ElasticIP) { +func (in *EIP) DeepCopyInto(out *EIP) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -742,18 +826,18 @@ func (in *ElasticIP) DeepCopyInto(out *ElasticIP) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticIP. -func (in *ElasticIP) DeepCopy() *ElasticIP { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EIP. +func (in *EIP) DeepCopy() *EIP { if in == nil { return nil } - out := new(ElasticIP) + out := new(EIP) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ElasticIP) DeepCopyObject() runtime.Object { +func (in *EIP) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -761,31 +845,31 @@ func (in *ElasticIP) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ElasticIPList) DeepCopyInto(out *ElasticIPList) { +func (in *EIPList) DeepCopyInto(out *EIPList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ElasticIP, len(*in)) + *out = make([]EIP, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticIPList. -func (in *ElasticIPList) DeepCopy() *ElasticIPList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EIPList. +func (in *EIPList) DeepCopy() *EIPList { if in == nil { return nil } - out := new(ElasticIPList) + out := new(EIPList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ElasticIPList) DeepCopyObject() runtime.Object { +func (in *EIPList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -793,7 +877,7 @@ func (in *ElasticIPList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ElasticIPObservation) DeepCopyInto(out *ElasticIPObservation) { +func (in *EIPObservation) DeepCopyInto(out *EIPObservation) { *out = *in if in.AllocationID != nil { in, out := &in.AllocationID, &out.AllocationID @@ -862,18 +946,18 @@ func (in *ElasticIPObservation) DeepCopyInto(out *ElasticIPObservation) { } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticIPObservation. -func (in *ElasticIPObservation) DeepCopy() *ElasticIPObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EIPObservation. +func (in *EIPObservation) DeepCopy() *EIPObservation { if in == nil { return nil } - out := new(ElasticIPObservation) + out := new(EIPObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ElasticIPParameters) DeepCopyInto(out *ElasticIPParameters) { +func (in *EIPParameters) DeepCopyInto(out *EIPParameters) { *out = *in if in.Address != nil { in, out := &in.Address, &out.Address @@ -957,110 +1041,254 @@ func (in *ElasticIPParameters) DeepCopyInto(out *ElasticIPParameters) { } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticIPParameters. -func (in *ElasticIPParameters) DeepCopy() *ElasticIPParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EIPParameters. +func (in *EIPParameters) DeepCopy() *EIPParameters { if in == nil { return nil } - out := new(ElasticIPParameters) + out := new(EIPParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ElasticIPSpec) DeepCopyInto(out *ElasticIPSpec) { +func (in *EIPSpec) DeepCopyInto(out *EIPSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticIPSpec. -func (in *ElasticIPSpec) DeepCopy() *ElasticIPSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EIPSpec. +func (in *EIPSpec) DeepCopy() *EIPSpec { if in == nil { return nil } - out := new(ElasticIPSpec) + out := new(EIPSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ElasticIPStatus) DeepCopyInto(out *ElasticIPStatus) { +func (in *EIPStatus) DeepCopyInto(out *EIPStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticIPStatus. -func (in *ElasticIPStatus) DeepCopy() *ElasticIPStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EIPStatus. +func (in *EIPStatus) DeepCopy() *EIPStatus { if in == nil { return nil } - out := new(ElasticIPStatus) + out := new(EIPStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ElasticInferenceAcceleratorObservation) DeepCopyInto(out *ElasticInferenceAcceleratorObservation) { +func (in *EgressObservation) DeepCopyInto(out *EgressObservation) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticInferenceAcceleratorObservation. -func (in *ElasticInferenceAcceleratorObservation) DeepCopy() *ElasticInferenceAcceleratorObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressObservation. +func (in *EgressObservation) DeepCopy() *EgressObservation { if in == nil { return nil } - out := new(ElasticInferenceAcceleratorObservation) + out := new(EgressObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ElasticInferenceAcceleratorParameters) DeepCopyInto(out *ElasticInferenceAcceleratorParameters) { +func (in *EgressParameters) DeepCopyInto(out *EgressParameters) { *out = *in - if in.Type != nil { - in, out := &in.Type, &out.Type + if in.CidrBlocks != nil { + in, out := &in.CidrBlocks, &out.CidrBlocks + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Description != nil { + in, out := &in.Description, &out.Description *out = new(string) **out = **in } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticInferenceAcceleratorParameters. -func (in *ElasticInferenceAcceleratorParameters) DeepCopy() *ElasticInferenceAcceleratorParameters { - if in == nil { - return nil - } - out := new(ElasticInferenceAcceleratorParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnclaveOptionsObservation) DeepCopyInto(out *EnclaveOptionsObservation) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnclaveOptionsObservation. -func (in *EnclaveOptionsObservation) DeepCopy() *EnclaveOptionsObservation { - if in == nil { - return nil - } - out := new(EnclaveOptionsObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EnclaveOptionsParameters) DeepCopyInto(out *EnclaveOptionsParameters) { - *out = *in - if in.Enabled != nil { - in, out := &in.Enabled, &out.Enabled - *out = new(bool) + if in.FromPort != nil { + in, out := &in.FromPort, &out.FromPort + *out = new(int64) **out = **in } -} - + if in.IPv6CidrBlocks != nil { + in, out := &in.IPv6CidrBlocks, &out.IPv6CidrBlocks + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.PrefixListIds != nil { + in, out := &in.PrefixListIds, &out.PrefixListIds + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Protocol != nil { + in, out := &in.Protocol, &out.Protocol + *out = new(string) + **out = **in + } + if in.SecurityGroupRefs != nil { + in, out := &in.SecurityGroupRefs, &out.SecurityGroupRefs + *out = make([]v1.Reference, len(*in)) + copy(*out, *in) + } + if in.SecurityGroupSelector != nil { + in, out := &in.SecurityGroupSelector, &out.SecurityGroupSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.SecurityGroups != nil { + in, out := &in.SecurityGroups, &out.SecurityGroups + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Self != nil { + in, out := &in.Self, &out.Self + *out = new(bool) + **out = **in + } + if in.ToPort != nil { + in, out := &in.ToPort, &out.ToPort + *out = new(int64) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EgressParameters. +func (in *EgressParameters) DeepCopy() *EgressParameters { + if in == nil { + return nil + } + out := new(EgressParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ElasticGpuSpecificationsObservation) DeepCopyInto(out *ElasticGpuSpecificationsObservation) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticGpuSpecificationsObservation. +func (in *ElasticGpuSpecificationsObservation) DeepCopy() *ElasticGpuSpecificationsObservation { + if in == nil { + return nil + } + out := new(ElasticGpuSpecificationsObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ElasticGpuSpecificationsParameters) DeepCopyInto(out *ElasticGpuSpecificationsParameters) { + *out = *in + if in.Type != nil { + in, out := &in.Type, &out.Type + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticGpuSpecificationsParameters. +func (in *ElasticGpuSpecificationsParameters) DeepCopy() *ElasticGpuSpecificationsParameters { + if in == nil { + return nil + } + out := new(ElasticGpuSpecificationsParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ElasticInferenceAcceleratorObservation) DeepCopyInto(out *ElasticInferenceAcceleratorObservation) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticInferenceAcceleratorObservation. +func (in *ElasticInferenceAcceleratorObservation) DeepCopy() *ElasticInferenceAcceleratorObservation { + if in == nil { + return nil + } + out := new(ElasticInferenceAcceleratorObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ElasticInferenceAcceleratorParameters) DeepCopyInto(out *ElasticInferenceAcceleratorParameters) { + *out = *in + if in.Type != nil { + in, out := &in.Type, &out.Type + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticInferenceAcceleratorParameters. +func (in *ElasticInferenceAcceleratorParameters) DeepCopy() *ElasticInferenceAcceleratorParameters { + if in == nil { + return nil + } + out := new(ElasticInferenceAcceleratorParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnclaveOptionsObservation) DeepCopyInto(out *EnclaveOptionsObservation) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnclaveOptionsObservation. +func (in *EnclaveOptionsObservation) DeepCopy() *EnclaveOptionsObservation { + if in == nil { + return nil + } + out := new(EnclaveOptionsObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EnclaveOptionsParameters) DeepCopyInto(out *EnclaveOptionsParameters) { + *out = *in + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = new(bool) + **out = **in + } +} + // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnclaveOptionsParameters. func (in *EnclaveOptionsParameters) DeepCopy() *EnclaveOptionsParameters { if in == nil { @@ -1212,221 +1440,68 @@ func (in *IAMInstanceProfileParameters) DeepCopy() *IAMInstanceProfileParameters } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IPv4CIDRBlockAssociation) DeepCopyInto(out *IPv4CIDRBlockAssociation) { +func (in *IngressObservation) DeepCopyInto(out *IngressObservation) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPv4CIDRBlockAssociation. -func (in *IPv4CIDRBlockAssociation) DeepCopy() *IPv4CIDRBlockAssociation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressObservation. +func (in *IngressObservation) DeepCopy() *IngressObservation { if in == nil { return nil } - out := new(IPv4CIDRBlockAssociation) + out := new(IngressObservation) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *IPv4CIDRBlockAssociation) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IPv4CIDRBlockAssociationList) DeepCopyInto(out *IPv4CIDRBlockAssociationList) { +func (in *IngressParameters) DeepCopyInto(out *IngressParameters) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]IPv4CIDRBlockAssociation, len(*in)) + if in.CidrBlocks != nil { + in, out := &in.CidrBlocks, &out.CidrBlocks + *out = make([]*string, len(*in)) for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } } } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPv4CIDRBlockAssociationList. -func (in *IPv4CIDRBlockAssociationList) DeepCopy() *IPv4CIDRBlockAssociationList { - if in == nil { - return nil - } - out := new(IPv4CIDRBlockAssociationList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *IPv4CIDRBlockAssociationList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IPv4CIDRBlockAssociationObservation) DeepCopyInto(out *IPv4CIDRBlockAssociationObservation) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID + if in.Description != nil { + in, out := &in.Description, &out.Description *out = new(string) **out = **in } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPv4CIDRBlockAssociationObservation. -func (in *IPv4CIDRBlockAssociationObservation) DeepCopy() *IPv4CIDRBlockAssociationObservation { - if in == nil { - return nil + if in.FromPort != nil { + in, out := &in.FromPort, &out.FromPort + *out = new(int64) + **out = **in } - out := new(IPv4CIDRBlockAssociationObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IPv4CIDRBlockAssociationParameters) DeepCopyInto(out *IPv4CIDRBlockAssociationParameters) { - *out = *in - if in.CidrBlock != nil { - in, out := &in.CidrBlock, &out.CidrBlock - *out = new(string) - **out = **in - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.VPCID != nil { - in, out := &in.VPCID, &out.VPCID - *out = new(string) - **out = **in - } - if in.VPCIDRef != nil { - in, out := &in.VPCIDRef, &out.VPCIDRef - *out = new(v1.Reference) - **out = **in - } - if in.VPCIDSelector != nil { - in, out := &in.VPCIDSelector, &out.VPCIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPv4CIDRBlockAssociationParameters. -func (in *IPv4CIDRBlockAssociationParameters) DeepCopy() *IPv4CIDRBlockAssociationParameters { - if in == nil { - return nil - } - out := new(IPv4CIDRBlockAssociationParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IPv4CIDRBlockAssociationSpec) DeepCopyInto(out *IPv4CIDRBlockAssociationSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPv4CIDRBlockAssociationSpec. -func (in *IPv4CIDRBlockAssociationSpec) DeepCopy() *IPv4CIDRBlockAssociationSpec { - if in == nil { - return nil - } - out := new(IPv4CIDRBlockAssociationSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IPv4CIDRBlockAssociationStatus) DeepCopyInto(out *IPv4CIDRBlockAssociationStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPv4CIDRBlockAssociationStatus. -func (in *IPv4CIDRBlockAssociationStatus) DeepCopy() *IPv4CIDRBlockAssociationStatus { - if in == nil { - return nil - } - out := new(IPv4CIDRBlockAssociationStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressObservation) DeepCopyInto(out *IngressObservation) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressObservation. -func (in *IngressObservation) DeepCopy() *IngressObservation { - if in == nil { - return nil - } - out := new(IngressObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IngressParameters) DeepCopyInto(out *IngressParameters) { - *out = *in - if in.CidrBlocks != nil { - in, out := &in.CidrBlocks, &out.CidrBlocks - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } - } - if in.Description != nil { - in, out := &in.Description, &out.Description - *out = new(string) - **out = **in - } - if in.FromPort != nil { - in, out := &in.FromPort, &out.FromPort - *out = new(int64) - **out = **in - } - if in.IPv6CidrBlocks != nil { - in, out := &in.IPv6CidrBlocks, &out.IPv6CidrBlocks - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } - } - if in.PrefixListIds != nil { - in, out := &in.PrefixListIds, &out.PrefixListIds - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } - } - if in.Protocol != nil { - in, out := &in.Protocol, &out.Protocol + if in.IPv6CidrBlocks != nil { + in, out := &in.IPv6CidrBlocks, &out.IPv6CidrBlocks + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.PrefixListIds != nil { + in, out := &in.PrefixListIds, &out.PrefixListIds + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Protocol != nil { + in, out := &in.Protocol, &out.Protocol *out = new(string) **out = **in } @@ -3176,49 +3251,92 @@ func (in *NetworkInterfacesParameters) DeepCopy() *NetworkInterfacesParameters { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PeeringConnectionAccepter) DeepCopyInto(out *PeeringConnectionAccepter) { +func (in *PlacementObservation) DeepCopyInto(out *PlacementObservation) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringConnectionAccepter. -func (in *PeeringConnectionAccepter) DeepCopy() *PeeringConnectionAccepter { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlacementObservation. +func (in *PlacementObservation) DeepCopy() *PlacementObservation { if in == nil { return nil } - out := new(PeeringConnectionAccepter) + out := new(PlacementObservation) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PeeringConnectionAccepter) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PlacementParameters) DeepCopyInto(out *PlacementParameters) { + *out = *in + if in.Affinity != nil { + in, out := &in.Affinity, &out.Affinity + *out = new(string) + **out = **in } - return nil + if in.AvailabilityZone != nil { + in, out := &in.AvailabilityZone, &out.AvailabilityZone + *out = new(string) + **out = **in + } + if in.GroupName != nil { + in, out := &in.GroupName, &out.GroupName + *out = new(string) + **out = **in + } + if in.HostID != nil { + in, out := &in.HostID, &out.HostID + *out = new(string) + **out = **in + } + if in.HostResourceGroupArn != nil { + in, out := &in.HostResourceGroupArn, &out.HostResourceGroupArn + *out = new(string) + **out = **in + } + if in.PartitionNumber != nil { + in, out := &in.PartitionNumber, &out.PartitionNumber + *out = new(int64) + **out = **in + } + if in.SpreadDomain != nil { + in, out := &in.SpreadDomain, &out.SpreadDomain + *out = new(string) + **out = **in + } + if in.Tenancy != nil { + in, out := &in.Tenancy, &out.Tenancy + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlacementParameters. +func (in *PlacementParameters) DeepCopy() *PlacementParameters { + if in == nil { + return nil + } + out := new(PlacementParameters) + in.DeepCopyInto(out) + return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PeeringConnectionAccepterAccepterObservation) DeepCopyInto(out *PeeringConnectionAccepterAccepterObservation) { +func (in *RequesterObservation) DeepCopyInto(out *RequesterObservation) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringConnectionAccepterAccepterObservation. -func (in *PeeringConnectionAccepterAccepterObservation) DeepCopy() *PeeringConnectionAccepterAccepterObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequesterObservation. +func (in *RequesterObservation) DeepCopy() *RequesterObservation { if in == nil { return nil } - out := new(PeeringConnectionAccepterAccepterObservation) + out := new(RequesterObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PeeringConnectionAccepterAccepterParameters) DeepCopyInto(out *PeeringConnectionAccepterAccepterParameters) { +func (in *RequesterParameters) DeepCopyInto(out *RequesterParameters) { *out = *in if in.AllowClassicLinkToRemoteVPC != nil { in, out := &in.AllowClassicLinkToRemoteVPC, &out.AllowClassicLinkToRemoteVPC @@ -3237,134 +3355,73 @@ func (in *PeeringConnectionAccepterAccepterParameters) DeepCopyInto(out *Peering } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringConnectionAccepterAccepterParameters. -func (in *PeeringConnectionAccepterAccepterParameters) DeepCopy() *PeeringConnectionAccepterAccepterParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequesterParameters. +func (in *RequesterParameters) DeepCopy() *RequesterParameters { if in == nil { return nil } - out := new(PeeringConnectionAccepterAccepterParameters) + out := new(RequesterParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PeeringConnectionAccepterList) DeepCopyInto(out *PeeringConnectionAccepterList) { +func (in *RootBlockDeviceObservation) DeepCopyInto(out *RootBlockDeviceObservation) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]PeeringConnectionAccepter, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.DeviceName != nil { + in, out := &in.DeviceName, &out.DeviceName + *out = new(string) + **out = **in + } + if in.VolumeID != nil { + in, out := &in.VolumeID, &out.VolumeID + *out = new(string) + **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringConnectionAccepterList. -func (in *PeeringConnectionAccepterList) DeepCopy() *PeeringConnectionAccepterList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RootBlockDeviceObservation. +func (in *RootBlockDeviceObservation) DeepCopy() *RootBlockDeviceObservation { if in == nil { return nil } - out := new(PeeringConnectionAccepterList) + out := new(RootBlockDeviceObservation) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PeeringConnectionAccepterList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PeeringConnectionAccepterObservation) DeepCopyInto(out *PeeringConnectionAccepterObservation) { +func (in *RootBlockDeviceParameters) DeepCopyInto(out *RootBlockDeviceParameters) { *out = *in - if in.AcceptStatus != nil { - in, out := &in.AcceptStatus, &out.AcceptStatus - *out = new(string) + if in.DeleteOnTermination != nil { + in, out := &in.DeleteOnTermination, &out.DeleteOnTermination + *out = new(bool) **out = **in } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) + if in.Encrypted != nil { + in, out := &in.Encrypted, &out.Encrypted + *out = new(bool) **out = **in } - if in.PeerOwnerID != nil { - in, out := &in.PeerOwnerID, &out.PeerOwnerID - *out = new(string) + if in.Iops != nil { + in, out := &in.Iops, &out.Iops + *out = new(int64) **out = **in } - if in.PeerRegion != nil { - in, out := &in.PeerRegion, &out.PeerRegion + if in.KMSKeyID != nil { + in, out := &in.KMSKeyID, &out.KMSKeyID *out = new(string) **out = **in } - if in.PeerVPCID != nil { - in, out := &in.PeerVPCID, &out.PeerVPCID - *out = new(string) + if in.KMSKeyIDRef != nil { + in, out := &in.KMSKeyIDRef, &out.KMSKeyIDRef + *out = new(v1.Reference) **out = **in } - if in.TagsAll != nil { - in, out := &in.TagsAll, &out.TagsAll - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.VPCID != nil { - in, out := &in.VPCID, &out.VPCID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringConnectionAccepterObservation. -func (in *PeeringConnectionAccepterObservation) DeepCopy() *PeeringConnectionAccepterObservation { - if in == nil { - return nil - } - out := new(PeeringConnectionAccepterObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PeeringConnectionAccepterParameters) DeepCopyInto(out *PeeringConnectionAccepterParameters) { - *out = *in - if in.Accepter != nil { - in, out := &in.Accepter, &out.Accepter - *out = make([]PeeringConnectionAccepterAccepterParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.AutoAccept != nil { - in, out := &in.AutoAccept, &out.AutoAccept - *out = new(bool) - **out = **in - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.Requester != nil { - in, out := &in.Requester, &out.Requester - *out = make([]PeeringConnectionAccepterRequesterParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.KMSKeyIDSelector != nil { + in, out := &in.KMSKeyIDSelector, &out.KMSKeyIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } if in.Tags != nil { in, out := &in.Tags, &out.Tags @@ -3381,319 +3438,313 @@ func (in *PeeringConnectionAccepterParameters) DeepCopyInto(out *PeeringConnecti (*out)[key] = outVal } } - if in.VPCPeeringConnectionID != nil { - in, out := &in.VPCPeeringConnectionID, &out.VPCPeeringConnectionID + if in.Throughput != nil { + in, out := &in.Throughput, &out.Throughput + *out = new(int64) + **out = **in + } + if in.VolumeSize != nil { + in, out := &in.VolumeSize, &out.VolumeSize + *out = new(int64) + **out = **in + } + if in.VolumeType != nil { + in, out := &in.VolumeType, &out.VolumeType *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringConnectionAccepterParameters. -func (in *PeeringConnectionAccepterParameters) DeepCopy() *PeeringConnectionAccepterParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RootBlockDeviceParameters. +func (in *RootBlockDeviceParameters) DeepCopy() *RootBlockDeviceParameters { if in == nil { return nil } - out := new(PeeringConnectionAccepterParameters) + out := new(RootBlockDeviceParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PeeringConnectionAccepterRequesterObservation) DeepCopyInto(out *PeeringConnectionAccepterRequesterObservation) { +func (in *Route) DeepCopyInto(out *Route) { *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringConnectionAccepterRequesterObservation. -func (in *PeeringConnectionAccepterRequesterObservation) DeepCopy() *PeeringConnectionAccepterRequesterObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route. +func (in *Route) DeepCopy() *Route { if in == nil { return nil } - out := new(PeeringConnectionAccepterRequesterObservation) + out := new(Route) in.DeepCopyInto(out) return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PeeringConnectionAccepterRequesterParameters) DeepCopyInto(out *PeeringConnectionAccepterRequesterParameters) { - *out = *in - if in.AllowClassicLinkToRemoteVPC != nil { - in, out := &in.AllowClassicLinkToRemoteVPC, &out.AllowClassicLinkToRemoteVPC - *out = new(bool) - **out = **in - } - if in.AllowRemoteVPCDNSResolution != nil { - in, out := &in.AllowRemoteVPCDNSResolution, &out.AllowRemoteVPCDNSResolution - *out = new(bool) - **out = **in - } - if in.AllowVPCToRemoteClassicLink != nil { - in, out := &in.AllowVPCToRemoteClassicLink, &out.AllowVPCToRemoteClassicLink - *out = new(bool) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringConnectionAccepterRequesterParameters. -func (in *PeeringConnectionAccepterRequesterParameters) DeepCopy() *PeeringConnectionAccepterRequesterParameters { - if in == nil { - return nil +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Route) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - out := new(PeeringConnectionAccepterRequesterParameters) - in.DeepCopyInto(out) - return out + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PeeringConnectionAccepterSpec) DeepCopyInto(out *PeeringConnectionAccepterSpec) { +func (in *RouteList) DeepCopyInto(out *RouteList) { *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Route, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringConnectionAccepterSpec. -func (in *PeeringConnectionAccepterSpec) DeepCopy() *PeeringConnectionAccepterSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteList. +func (in *RouteList) DeepCopy() *RouteList { if in == nil { return nil } - out := new(PeeringConnectionAccepterSpec) + out := new(RouteList) in.DeepCopyInto(out) return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PeeringConnectionAccepterStatus) DeepCopyInto(out *PeeringConnectionAccepterStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringConnectionAccepterStatus. -func (in *PeeringConnectionAccepterStatus) DeepCopy() *PeeringConnectionAccepterStatus { - if in == nil { - return nil +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RouteList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - out := new(PeeringConnectionAccepterStatus) - in.DeepCopyInto(out) - return out + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PlacementObservation) DeepCopyInto(out *PlacementObservation) { +func (in *RouteObservation) DeepCopyInto(out *RouteObservation) { *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.InstanceOwnerID != nil { + in, out := &in.InstanceOwnerID, &out.InstanceOwnerID + *out = new(string) + **out = **in + } + if in.Origin != nil { + in, out := &in.Origin, &out.Origin + *out = new(string) + **out = **in + } + if in.State != nil { + in, out := &in.State, &out.State + *out = new(string) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlacementObservation. -func (in *PlacementObservation) DeepCopy() *PlacementObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteObservation. +func (in *RouteObservation) DeepCopy() *RouteObservation { if in == nil { return nil } - out := new(PlacementObservation) + out := new(RouteObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PlacementParameters) DeepCopyInto(out *PlacementParameters) { +func (in *RouteParameters) DeepCopyInto(out *RouteParameters) { *out = *in - if in.Affinity != nil { - in, out := &in.Affinity, &out.Affinity + if in.CarrierGatewayID != nil { + in, out := &in.CarrierGatewayID, &out.CarrierGatewayID *out = new(string) **out = **in } - if in.AvailabilityZone != nil { - in, out := &in.AvailabilityZone, &out.AvailabilityZone + if in.DestinationCidrBlock != nil { + in, out := &in.DestinationCidrBlock, &out.DestinationCidrBlock *out = new(string) **out = **in } - if in.GroupName != nil { - in, out := &in.GroupName, &out.GroupName + if in.DestinationIPv6CidrBlock != nil { + in, out := &in.DestinationIPv6CidrBlock, &out.DestinationIPv6CidrBlock *out = new(string) **out = **in } - if in.HostID != nil { - in, out := &in.HostID, &out.HostID + if in.DestinationPrefixListID != nil { + in, out := &in.DestinationPrefixListID, &out.DestinationPrefixListID *out = new(string) **out = **in } - if in.HostResourceGroupArn != nil { - in, out := &in.HostResourceGroupArn, &out.HostResourceGroupArn + if in.EgressOnlyGatewayID != nil { + in, out := &in.EgressOnlyGatewayID, &out.EgressOnlyGatewayID *out = new(string) **out = **in } - if in.PartitionNumber != nil { - in, out := &in.PartitionNumber, &out.PartitionNumber - *out = new(int64) + if in.GatewayID != nil { + in, out := &in.GatewayID, &out.GatewayID + *out = new(string) **out = **in } - if in.SpreadDomain != nil { - in, out := &in.SpreadDomain, &out.SpreadDomain + if in.InstanceID != nil { + in, out := &in.InstanceID, &out.InstanceID *out = new(string) **out = **in } - if in.Tenancy != nil { - in, out := &in.Tenancy, &out.Tenancy - *out = new(string) + if in.InstanceIDRef != nil { + in, out := &in.InstanceIDRef, &out.InstanceIDRef + *out = new(v1.Reference) **out = **in } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlacementParameters. -func (in *PlacementParameters) DeepCopy() *PlacementParameters { - if in == nil { - return nil + if in.InstanceIDSelector != nil { + in, out := &in.InstanceIDSelector, &out.InstanceIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } - out := new(PlacementParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RequesterObservation) DeepCopyInto(out *RequesterObservation) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequesterObservation. -func (in *RequesterObservation) DeepCopy() *RequesterObservation { - if in == nil { - return nil + if in.LocalGatewayID != nil { + in, out := &in.LocalGatewayID, &out.LocalGatewayID + *out = new(string) + **out = **in } - out := new(RequesterObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RequesterParameters) DeepCopyInto(out *RequesterParameters) { - *out = *in - if in.AllowClassicLinkToRemoteVPC != nil { - in, out := &in.AllowClassicLinkToRemoteVPC, &out.AllowClassicLinkToRemoteVPC - *out = new(bool) + if in.NATGatewayID != nil { + in, out := &in.NATGatewayID, &out.NATGatewayID + *out = new(string) **out = **in } - if in.AllowRemoteVPCDNSResolution != nil { - in, out := &in.AllowRemoteVPCDNSResolution, &out.AllowRemoteVPCDNSResolution - *out = new(bool) + if in.NetworkInterfaceID != nil { + in, out := &in.NetworkInterfaceID, &out.NetworkInterfaceID + *out = new(string) **out = **in } - if in.AllowVPCToRemoteClassicLink != nil { - in, out := &in.AllowVPCToRemoteClassicLink, &out.AllowVPCToRemoteClassicLink - *out = new(bool) + if in.NetworkInterfaceIDRef != nil { + in, out := &in.NetworkInterfaceIDRef, &out.NetworkInterfaceIDRef + *out = new(v1.Reference) **out = **in } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequesterParameters. -func (in *RequesterParameters) DeepCopy() *RequesterParameters { - if in == nil { - return nil + if in.NetworkInterfaceIDSelector != nil { + in, out := &in.NetworkInterfaceIDSelector, &out.NetworkInterfaceIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } - out := new(RequesterParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RootBlockDeviceObservation) DeepCopyInto(out *RootBlockDeviceObservation) { - *out = *in - if in.DeviceName != nil { - in, out := &in.DeviceName, &out.DeviceName + if in.Region != nil { + in, out := &in.Region, &out.Region *out = new(string) **out = **in } - if in.VolumeID != nil { - in, out := &in.VolumeID, &out.VolumeID + if in.RouteTableID != nil { + in, out := &in.RouteTableID, &out.RouteTableID *out = new(string) **out = **in } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RootBlockDeviceObservation. -func (in *RootBlockDeviceObservation) DeepCopy() *RootBlockDeviceObservation { - if in == nil { - return nil - } - out := new(RootBlockDeviceObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RootBlockDeviceParameters) DeepCopyInto(out *RootBlockDeviceParameters) { - *out = *in - if in.DeleteOnTermination != nil { - in, out := &in.DeleteOnTermination, &out.DeleteOnTermination - *out = new(bool) + if in.RouteTableIDRef != nil { + in, out := &in.RouteTableIDRef, &out.RouteTableIDRef + *out = new(v1.Reference) **out = **in } - if in.Encrypted != nil { - in, out := &in.Encrypted, &out.Encrypted - *out = new(bool) + if in.RouteTableIDSelector != nil { + in, out := &in.RouteTableIDSelector, &out.RouteTableIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.TransitGatewayID != nil { + in, out := &in.TransitGatewayID, &out.TransitGatewayID + *out = new(string) **out = **in } - if in.Iops != nil { - in, out := &in.Iops, &out.Iops - *out = new(int64) + if in.TransitGatewayIDRef != nil { + in, out := &in.TransitGatewayIDRef, &out.TransitGatewayIDRef + *out = new(v1.Reference) **out = **in } - if in.KMSKeyID != nil { - in, out := &in.KMSKeyID, &out.KMSKeyID + if in.TransitGatewayIDSelector != nil { + in, out := &in.TransitGatewayIDSelector, &out.TransitGatewayIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.VPCEndpointID != nil { + in, out := &in.VPCEndpointID, &out.VPCEndpointID *out = new(string) **out = **in } - if in.KMSKeyIDRef != nil { - in, out := &in.KMSKeyIDRef, &out.KMSKeyIDRef + if in.VPCEndpointIDRef != nil { + in, out := &in.VPCEndpointIDRef, &out.VPCEndpointIDRef *out = new(v1.Reference) **out = **in } - if in.KMSKeyIDSelector != nil { - in, out := &in.KMSKeyIDSelector, &out.KMSKeyIDSelector + if in.VPCEndpointIDSelector != nil { + in, out := &in.VPCEndpointIDSelector, &out.VPCEndpointIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.Tags != nil { - in, out := &in.Tags, &out.Tags - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.Throughput != nil { - in, out := &in.Throughput, &out.Throughput - *out = new(int64) + if in.VPCPeeringConnectionID != nil { + in, out := &in.VPCPeeringConnectionID, &out.VPCPeeringConnectionID + *out = new(string) **out = **in } - if in.VolumeSize != nil { - in, out := &in.VolumeSize, &out.VolumeSize - *out = new(int64) + if in.VPCPeeringConnectionIDRef != nil { + in, out := &in.VPCPeeringConnectionIDRef, &out.VPCPeeringConnectionIDRef + *out = new(v1.Reference) **out = **in } - if in.VolumeType != nil { - in, out := &in.VolumeType, &out.VolumeType - *out = new(string) - **out = **in + if in.VPCPeeringConnectionIDSelector != nil { + in, out := &in.VPCPeeringConnectionIDSelector, &out.VPCPeeringConnectionIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RootBlockDeviceParameters. -func (in *RootBlockDeviceParameters) DeepCopy() *RootBlockDeviceParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteParameters. +func (in *RouteParameters) DeepCopy() *RouteParameters { if in == nil { return nil } - out := new(RootBlockDeviceParameters) + out := new(RouteParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Route) DeepCopyInto(out *Route) { +func (in *RouteSpec) DeepCopyInto(out *RouteSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteSpec. +func (in *RouteSpec) DeepCopy() *RouteSpec { + if in == nil { + return nil + } + out := new(RouteSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RouteStatus) DeepCopyInto(out *RouteStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteStatus. +func (in *RouteStatus) DeepCopy() *RouteStatus { + if in == nil { + return nil + } + out := new(RouteStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RouteTable) DeepCopyInto(out *RouteTable) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -3701,18 +3752,18 @@ func (in *Route) DeepCopyInto(out *Route) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route. -func (in *Route) DeepCopy() *Route { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTable. +func (in *RouteTable) DeepCopy() *RouteTable { if in == nil { return nil } - out := new(Route) + out := new(RouteTable) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Route) DeepCopyObject() runtime.Object { +func (in *RouteTable) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3720,31 +3771,58 @@ func (in *Route) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteList) DeepCopyInto(out *RouteList) { +func (in *RouteTableAssociation) DeepCopyInto(out *RouteTableAssociation) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableAssociation. +func (in *RouteTableAssociation) DeepCopy() *RouteTableAssociation { + if in == nil { + return nil + } + out := new(RouteTableAssociation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RouteTableAssociation) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RouteTableAssociationList) DeepCopyInto(out *RouteTableAssociationList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Route, len(*in)) + *out = make([]RouteTableAssociation, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteList. -func (in *RouteList) DeepCopy() *RouteList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableAssociationList. +func (in *RouteTableAssociationList) DeepCopy() *RouteTableAssociationList { if in == nil { return nil } - out := new(RouteList) + out := new(RouteTableAssociationList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RouteList) DeepCopyObject() runtime.Object { +func (in *RouteTableAssociationList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3752,245 +3830,140 @@ func (in *RouteList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteObservation) DeepCopyInto(out *RouteObservation) { +func (in *RouteTableAssociationObservation) DeepCopyInto(out *RouteTableAssociationObservation) { *out = *in if in.ID != nil { in, out := &in.ID, &out.ID *out = new(string) **out = **in } - if in.InstanceOwnerID != nil { - in, out := &in.InstanceOwnerID, &out.InstanceOwnerID - *out = new(string) - **out = **in - } - if in.Origin != nil { - in, out := &in.Origin, &out.Origin - *out = new(string) - **out = **in - } - if in.State != nil { - in, out := &in.State, &out.State - *out = new(string) - **out = **in - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteObservation. -func (in *RouteObservation) DeepCopy() *RouteObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableAssociationObservation. +func (in *RouteTableAssociationObservation) DeepCopy() *RouteTableAssociationObservation { if in == nil { return nil } - out := new(RouteObservation) + out := new(RouteTableAssociationObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteParameters) DeepCopyInto(out *RouteParameters) { +func (in *RouteTableAssociationParameters) DeepCopyInto(out *RouteTableAssociationParameters) { *out = *in - if in.CarrierGatewayID != nil { - in, out := &in.CarrierGatewayID, &out.CarrierGatewayID + if in.GatewayID != nil { + in, out := &in.GatewayID, &out.GatewayID *out = new(string) **out = **in } - if in.DestinationCidrBlock != nil { - in, out := &in.DestinationCidrBlock, &out.DestinationCidrBlock + if in.Region != nil { + in, out := &in.Region, &out.Region *out = new(string) **out = **in } - if in.DestinationIPv6CidrBlock != nil { - in, out := &in.DestinationIPv6CidrBlock, &out.DestinationIPv6CidrBlock + if in.RouteTableID != nil { + in, out := &in.RouteTableID, &out.RouteTableID *out = new(string) **out = **in } - if in.DestinationPrefixListID != nil { - in, out := &in.DestinationPrefixListID, &out.DestinationPrefixListID - *out = new(string) + if in.RouteTableIDRef != nil { + in, out := &in.RouteTableIDRef, &out.RouteTableIDRef + *out = new(v1.Reference) **out = **in } - if in.EgressOnlyGatewayID != nil { - in, out := &in.EgressOnlyGatewayID, &out.EgressOnlyGatewayID - *out = new(string) - **out = **in + if in.RouteTableIDSelector != nil { + in, out := &in.RouteTableIDSelector, &out.RouteTableIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } - if in.GatewayID != nil { - in, out := &in.GatewayID, &out.GatewayID + if in.SubnetID != nil { + in, out := &in.SubnetID, &out.SubnetID *out = new(string) **out = **in } - if in.InstanceID != nil { - in, out := &in.InstanceID, &out.InstanceID - *out = new(string) - **out = **in - } - if in.InstanceIDRef != nil { - in, out := &in.InstanceIDRef, &out.InstanceIDRef - *out = new(v1.Reference) - **out = **in - } - if in.InstanceIDSelector != nil { - in, out := &in.InstanceIDSelector, &out.InstanceIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.LocalGatewayID != nil { - in, out := &in.LocalGatewayID, &out.LocalGatewayID - *out = new(string) - **out = **in - } - if in.NATGatewayID != nil { - in, out := &in.NATGatewayID, &out.NATGatewayID - *out = new(string) - **out = **in - } - if in.NetworkInterfaceID != nil { - in, out := &in.NetworkInterfaceID, &out.NetworkInterfaceID - *out = new(string) - **out = **in - } - if in.NetworkInterfaceIDRef != nil { - in, out := &in.NetworkInterfaceIDRef, &out.NetworkInterfaceIDRef - *out = new(v1.Reference) - **out = **in - } - if in.NetworkInterfaceIDSelector != nil { - in, out := &in.NetworkInterfaceIDSelector, &out.NetworkInterfaceIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.RouteTableID != nil { - in, out := &in.RouteTableID, &out.RouteTableID - *out = new(string) - **out = **in - } - if in.RouteTableIDRef != nil { - in, out := &in.RouteTableIDRef, &out.RouteTableIDRef - *out = new(v1.Reference) - **out = **in - } - if in.RouteTableIDSelector != nil { - in, out := &in.RouteTableIDSelector, &out.RouteTableIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.TransitGatewayID != nil { - in, out := &in.TransitGatewayID, &out.TransitGatewayID - *out = new(string) - **out = **in - } - if in.TransitGatewayIDRef != nil { - in, out := &in.TransitGatewayIDRef, &out.TransitGatewayIDRef - *out = new(v1.Reference) - **out = **in - } - if in.TransitGatewayIDSelector != nil { - in, out := &in.TransitGatewayIDSelector, &out.TransitGatewayIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.VPCEndpointID != nil { - in, out := &in.VPCEndpointID, &out.VPCEndpointID - *out = new(string) - **out = **in - } - if in.VPCEndpointIDRef != nil { - in, out := &in.VPCEndpointIDRef, &out.VPCEndpointIDRef - *out = new(v1.Reference) - **out = **in - } - if in.VPCEndpointIDSelector != nil { - in, out := &in.VPCEndpointIDSelector, &out.VPCEndpointIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.VPCPeeringConnectionID != nil { - in, out := &in.VPCPeeringConnectionID, &out.VPCPeeringConnectionID - *out = new(string) - **out = **in - } - if in.VPCPeeringConnectionIDRef != nil { - in, out := &in.VPCPeeringConnectionIDRef, &out.VPCPeeringConnectionIDRef + if in.SubnetIDRef != nil { + in, out := &in.SubnetIDRef, &out.SubnetIDRef *out = new(v1.Reference) **out = **in } - if in.VPCPeeringConnectionIDSelector != nil { - in, out := &in.VPCPeeringConnectionIDSelector, &out.VPCPeeringConnectionIDSelector + if in.SubnetIDSelector != nil { + in, out := &in.SubnetIDSelector, &out.SubnetIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteParameters. -func (in *RouteParameters) DeepCopy() *RouteParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableAssociationParameters. +func (in *RouteTableAssociationParameters) DeepCopy() *RouteTableAssociationParameters { if in == nil { return nil } - out := new(RouteParameters) + out := new(RouteTableAssociationParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteSpec) DeepCopyInto(out *RouteSpec) { +func (in *RouteTableAssociationSpec) DeepCopyInto(out *RouteTableAssociationSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteSpec. -func (in *RouteSpec) DeepCopy() *RouteSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableAssociationSpec. +func (in *RouteTableAssociationSpec) DeepCopy() *RouteTableAssociationSpec { if in == nil { return nil } - out := new(RouteSpec) + out := new(RouteTableAssociationSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteStatus) DeepCopyInto(out *RouteStatus) { +func (in *RouteTableAssociationStatus) DeepCopyInto(out *RouteTableAssociationStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteStatus. -func (in *RouteStatus) DeepCopy() *RouteStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableAssociationStatus. +func (in *RouteTableAssociationStatus) DeepCopy() *RouteTableAssociationStatus { if in == nil { return nil } - out := new(RouteStatus) + out := new(RouteTableAssociationStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteTable) DeepCopyInto(out *RouteTable) { +func (in *RouteTableList) DeepCopyInto(out *RouteTableList) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]RouteTable, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTable. -func (in *RouteTable) DeepCopy() *RouteTable { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableList. +func (in *RouteTableList) DeepCopy() *RouteTableList { if in == nil { return nil } - out := new(RouteTable) + out := new(RouteTableList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RouteTable) DeepCopyObject() runtime.Object { +func (in *RouteTableList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3998,199 +3971,340 @@ func (in *RouteTable) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteTableAssociation) DeepCopyInto(out *RouteTableAssociation) { +func (in *RouteTableObservation) DeepCopyInto(out *RouteTableObservation) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + if in.Arn != nil { + in, out := &in.Arn, &out.Arn + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.OwnerID != nil { + in, out := &in.OwnerID, &out.OwnerID + *out = new(string) + **out = **in + } + if in.TagsAll != nil { + in, out := &in.TagsAll, &out.TagsAll + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableAssociation. -func (in *RouteTableAssociation) DeepCopy() *RouteTableAssociation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableObservation. +func (in *RouteTableObservation) DeepCopy() *RouteTableObservation { if in == nil { return nil } - out := new(RouteTableAssociation) + out := new(RouteTableObservation) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RouteTableAssociation) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteTableAssociationList) DeepCopyInto(out *RouteTableAssociationList) { +func (in *RouteTableParameters) DeepCopyInto(out *RouteTableParameters) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RouteTableAssociation, len(*in)) + if in.PropagatingVgws != nil { + in, out := &in.PropagatingVgws, &out.PropagatingVgws + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.Route != nil { + in, out := &in.Route, &out.Route + *out = make([]RouteTableRouteParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.VPCID != nil { + in, out := &in.VPCID, &out.VPCID + *out = new(string) + **out = **in + } + if in.VPCIDRef != nil { + in, out := &in.VPCIDRef, &out.VPCIDRef + *out = new(v1.Reference) + **out = **in + } + if in.VPCIDSelector != nil { + in, out := &in.VPCIDSelector, &out.VPCIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableAssociationList. -func (in *RouteTableAssociationList) DeepCopy() *RouteTableAssociationList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableParameters. +func (in *RouteTableParameters) DeepCopy() *RouteTableParameters { if in == nil { return nil } - out := new(RouteTableAssociationList) + out := new(RouteTableParameters) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RouteTableAssociationList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteTableAssociationObservation) DeepCopyInto(out *RouteTableAssociationObservation) { +func (in *RouteTableRouteObservation) DeepCopyInto(out *RouteTableRouteObservation) { *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableAssociationObservation. -func (in *RouteTableAssociationObservation) DeepCopy() *RouteTableAssociationObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableRouteObservation. +func (in *RouteTableRouteObservation) DeepCopy() *RouteTableRouteObservation { if in == nil { return nil } - out := new(RouteTableAssociationObservation) + out := new(RouteTableRouteObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteTableAssociationParameters) DeepCopyInto(out *RouteTableAssociationParameters) { +func (in *RouteTableRouteParameters) DeepCopyInto(out *RouteTableRouteParameters) { *out = *in + if in.CarrierGatewayID != nil { + in, out := &in.CarrierGatewayID, &out.CarrierGatewayID + *out = new(string) + **out = **in + } + if in.CidrBlock != nil { + in, out := &in.CidrBlock, &out.CidrBlock + *out = new(string) + **out = **in + } + if in.DestinationPrefixListID != nil { + in, out := &in.DestinationPrefixListID, &out.DestinationPrefixListID + *out = new(string) + **out = **in + } + if in.EgressOnlyGatewayID != nil { + in, out := &in.EgressOnlyGatewayID, &out.EgressOnlyGatewayID + *out = new(string) + **out = **in + } if in.GatewayID != nil { in, out := &in.GatewayID, &out.GatewayID *out = new(string) **out = **in } - if in.Region != nil { - in, out := &in.Region, &out.Region + if in.IPv6CidrBlock != nil { + in, out := &in.IPv6CidrBlock, &out.IPv6CidrBlock *out = new(string) **out = **in } - if in.RouteTableID != nil { - in, out := &in.RouteTableID, &out.RouteTableID + if in.InstanceID != nil { + in, out := &in.InstanceID, &out.InstanceID *out = new(string) **out = **in } - if in.RouteTableIDRef != nil { - in, out := &in.RouteTableIDRef, &out.RouteTableIDRef + if in.InstanceIDRef != nil { + in, out := &in.InstanceIDRef, &out.InstanceIDRef *out = new(v1.Reference) **out = **in } - if in.RouteTableIDSelector != nil { - in, out := &in.RouteTableIDSelector, &out.RouteTableIDSelector + if in.InstanceIDSelector != nil { + in, out := &in.InstanceIDSelector, &out.InstanceIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.SubnetID != nil { - in, out := &in.SubnetID, &out.SubnetID + if in.LocalGatewayID != nil { + in, out := &in.LocalGatewayID, &out.LocalGatewayID *out = new(string) **out = **in } - if in.SubnetIDRef != nil { - in, out := &in.SubnetIDRef, &out.SubnetIDRef + if in.NATGatewayID != nil { + in, out := &in.NATGatewayID, &out.NATGatewayID + *out = new(string) + **out = **in + } + if in.NetworkInterfaceID != nil { + in, out := &in.NetworkInterfaceID, &out.NetworkInterfaceID + *out = new(string) + **out = **in + } + if in.NetworkInterfaceIDRef != nil { + in, out := &in.NetworkInterfaceIDRef, &out.NetworkInterfaceIDRef *out = new(v1.Reference) **out = **in } - if in.SubnetIDSelector != nil { - in, out := &in.SubnetIDSelector, &out.SubnetIDSelector + if in.NetworkInterfaceIDSelector != nil { + in, out := &in.NetworkInterfaceIDSelector, &out.NetworkInterfaceIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.TransitGatewayID != nil { + in, out := &in.TransitGatewayID, &out.TransitGatewayID + *out = new(string) + **out = **in + } + if in.VPCEndpointID != nil { + in, out := &in.VPCEndpointID, &out.VPCEndpointID + *out = new(string) + **out = **in + } + if in.VPCEndpointIDRef != nil { + in, out := &in.VPCEndpointIDRef, &out.VPCEndpointIDRef + *out = new(v1.Reference) + **out = **in + } + if in.VPCEndpointIDSelector != nil { + in, out := &in.VPCEndpointIDSelector, &out.VPCEndpointIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.VPCPeeringConnectionID != nil { + in, out := &in.VPCPeeringConnectionID, &out.VPCPeeringConnectionID + *out = new(string) + **out = **in + } + if in.VPCPeeringConnectionIDRef != nil { + in, out := &in.VPCPeeringConnectionIDRef, &out.VPCPeeringConnectionIDRef + *out = new(v1.Reference) + **out = **in + } + if in.VPCPeeringConnectionIDSelector != nil { + in, out := &in.VPCPeeringConnectionIDSelector, &out.VPCPeeringConnectionIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableAssociationParameters. -func (in *RouteTableAssociationParameters) DeepCopy() *RouteTableAssociationParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableRouteParameters. +func (in *RouteTableRouteParameters) DeepCopy() *RouteTableRouteParameters { if in == nil { return nil } - out := new(RouteTableAssociationParameters) + out := new(RouteTableRouteParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteTableAssociationSpec) DeepCopyInto(out *RouteTableAssociationSpec) { +func (in *RouteTableSpec) DeepCopyInto(out *RouteTableSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableAssociationSpec. -func (in *RouteTableAssociationSpec) DeepCopy() *RouteTableAssociationSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableSpec. +func (in *RouteTableSpec) DeepCopy() *RouteTableSpec { if in == nil { return nil } - out := new(RouteTableAssociationSpec) + out := new(RouteTableSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteTableAssociationStatus) DeepCopyInto(out *RouteTableAssociationStatus) { +func (in *RouteTableStatus) DeepCopyInto(out *RouteTableStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableAssociationStatus. -func (in *RouteTableAssociationStatus) DeepCopy() *RouteTableAssociationStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableStatus. +func (in *RouteTableStatus) DeepCopy() *RouteTableStatus { if in == nil { return nil } - out := new(RouteTableAssociationStatus) + out := new(RouteTableStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteTableList) DeepCopyInto(out *RouteTableList) { +func (in *SecurityGroup) DeepCopyInto(out *SecurityGroup) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroup. +func (in *SecurityGroup) DeepCopy() *SecurityGroup { + if in == nil { + return nil + } + out := new(SecurityGroup) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SecurityGroup) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SecurityGroupList) DeepCopyInto(out *SecurityGroupList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]RouteTable, len(*in)) + *out = make([]SecurityGroup, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableList. -func (in *RouteTableList) DeepCopy() *RouteTableList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupList. +func (in *SecurityGroupList) DeepCopy() *SecurityGroupList { if in == nil { return nil } - out := new(RouteTableList) + out := new(SecurityGroupList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RouteTableList) DeepCopyObject() runtime.Object { +func (in *SecurityGroupList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4198,7 +4312,7 @@ func (in *RouteTableList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteTableObservation) DeepCopyInto(out *RouteTableObservation) { +func (in *SecurityGroupObservation) DeepCopyInto(out *SecurityGroupObservation) { *out = *in if in.Arn != nil { in, out := &in.Arn, &out.Arn @@ -4232,41 +4346,57 @@ func (in *RouteTableObservation) DeepCopyInto(out *RouteTableObservation) { } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableObservation. -func (in *RouteTableObservation) DeepCopy() *RouteTableObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupObservation. +func (in *SecurityGroupObservation) DeepCopy() *SecurityGroupObservation { if in == nil { return nil } - out := new(RouteTableObservation) + out := new(SecurityGroupObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteTableParameters) DeepCopyInto(out *RouteTableParameters) { +func (in *SecurityGroupParameters) DeepCopyInto(out *SecurityGroupParameters) { *out = *in - if in.PropagatingVgws != nil { - in, out := &in.PropagatingVgws, &out.PropagatingVgws - *out = make([]*string, len(*in)) + if in.Description != nil { + in, out := &in.Description, &out.Description + *out = new(string) + **out = **in + } + if in.Egress != nil { + in, out := &in.Egress, &out.Egress + *out = make([]EgressParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Ingress != nil { + in, out := &in.Ingress, &out.Ingress + *out = make([]IngressParameters, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.NamePrefix != nil { + in, out := &in.NamePrefix, &out.NamePrefix + *out = new(string) + **out = **in + } if in.Region != nil { in, out := &in.Region, &out.Region *out = new(string) **out = **in } - if in.Route != nil { - in, out := &in.Route, &out.Route - *out = make([]RouteTableRouteParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.RevokeRulesOnDelete != nil { + in, out := &in.RevokeRulesOnDelete, &out.RevokeRulesOnDelete + *out = new(bool) + **out = **in } if in.Tags != nil { in, out := &in.Tags, &out.Tags @@ -4300,375 +4430,323 @@ func (in *RouteTableParameters) DeepCopyInto(out *RouteTableParameters) { } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableParameters. -func (in *RouteTableParameters) DeepCopy() *RouteTableParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupParameters. +func (in *SecurityGroupParameters) DeepCopy() *SecurityGroupParameters { if in == nil { return nil } - out := new(RouteTableParameters) + out := new(SecurityGroupParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteTableRouteObservation) DeepCopyInto(out *RouteTableRouteObservation) { +func (in *SecurityGroupRule) DeepCopyInto(out *SecurityGroupRule) { *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableRouteObservation. -func (in *RouteTableRouteObservation) DeepCopy() *RouteTableRouteObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupRule. +func (in *SecurityGroupRule) DeepCopy() *SecurityGroupRule { if in == nil { return nil } - out := new(RouteTableRouteObservation) + out := new(SecurityGroupRule) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SecurityGroupRule) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteTableRouteParameters) DeepCopyInto(out *RouteTableRouteParameters) { +func (in *SecurityGroupRuleList) DeepCopyInto(out *SecurityGroupRuleList) { *out = *in - if in.CarrierGatewayID != nil { - in, out := &in.CarrierGatewayID, &out.CarrierGatewayID - *out = new(string) - **out = **in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SecurityGroupRule, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } - if in.CidrBlock != nil { - in, out := &in.CidrBlock, &out.CidrBlock - *out = new(string) - **out = **in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupRuleList. +func (in *SecurityGroupRuleList) DeepCopy() *SecurityGroupRuleList { + if in == nil { + return nil } - if in.DestinationPrefixListID != nil { - in, out := &in.DestinationPrefixListID, &out.DestinationPrefixListID - *out = new(string) - **out = **in + out := new(SecurityGroupRuleList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SecurityGroupRuleList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - if in.EgressOnlyGatewayID != nil { - in, out := &in.EgressOnlyGatewayID, &out.EgressOnlyGatewayID + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SecurityGroupRuleObservation) DeepCopyInto(out *SecurityGroupRuleObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID *out = new(string) **out = **in } - if in.GatewayID != nil { - in, out := &in.GatewayID, &out.GatewayID - *out = new(string) - **out = **in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupRuleObservation. +func (in *SecurityGroupRuleObservation) DeepCopy() *SecurityGroupRuleObservation { + if in == nil { + return nil } - if in.IPv6CidrBlock != nil { - in, out := &in.IPv6CidrBlock, &out.IPv6CidrBlock - *out = new(string) - **out = **in + out := new(SecurityGroupRuleObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SecurityGroupRuleParameters) DeepCopyInto(out *SecurityGroupRuleParameters) { + *out = *in + if in.CidrBlocks != nil { + in, out := &in.CidrBlocks, &out.CidrBlocks + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } } - if in.InstanceID != nil { - in, out := &in.InstanceID, &out.InstanceID + if in.Description != nil { + in, out := &in.Description, &out.Description *out = new(string) **out = **in } - if in.InstanceIDRef != nil { - in, out := &in.InstanceIDRef, &out.InstanceIDRef - *out = new(v1.Reference) + if in.FromPort != nil { + in, out := &in.FromPort, &out.FromPort + *out = new(int64) **out = **in } - if in.InstanceIDSelector != nil { - in, out := &in.InstanceIDSelector, &out.InstanceIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) + if in.IPv6CidrBlocks != nil { + in, out := &in.IPv6CidrBlocks, &out.IPv6CidrBlocks + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } } - if in.LocalGatewayID != nil { - in, out := &in.LocalGatewayID, &out.LocalGatewayID + if in.PrefixListIds != nil { + in, out := &in.PrefixListIds, &out.PrefixListIds + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Protocol != nil { + in, out := &in.Protocol, &out.Protocol *out = new(string) **out = **in } - if in.NATGatewayID != nil { - in, out := &in.NATGatewayID, &out.NATGatewayID + if in.Region != nil { + in, out := &in.Region, &out.Region *out = new(string) **out = **in } - if in.NetworkInterfaceID != nil { - in, out := &in.NetworkInterfaceID, &out.NetworkInterfaceID + if in.SecurityGroupID != nil { + in, out := &in.SecurityGroupID, &out.SecurityGroupID *out = new(string) **out = **in } - if in.NetworkInterfaceIDRef != nil { - in, out := &in.NetworkInterfaceIDRef, &out.NetworkInterfaceIDRef + if in.SecurityGroupIDRef != nil { + in, out := &in.SecurityGroupIDRef, &out.SecurityGroupIDRef *out = new(v1.Reference) **out = **in } - if in.NetworkInterfaceIDSelector != nil { - in, out := &in.NetworkInterfaceIDSelector, &out.NetworkInterfaceIDSelector + if in.SecurityGroupIDSelector != nil { + in, out := &in.SecurityGroupIDSelector, &out.SecurityGroupIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.TransitGatewayID != nil { - in, out := &in.TransitGatewayID, &out.TransitGatewayID - *out = new(string) + if in.Self != nil { + in, out := &in.Self, &out.Self + *out = new(bool) **out = **in } - if in.VPCEndpointID != nil { - in, out := &in.VPCEndpointID, &out.VPCEndpointID + if in.SourceSecurityGroupID != nil { + in, out := &in.SourceSecurityGroupID, &out.SourceSecurityGroupID *out = new(string) **out = **in } - if in.VPCEndpointIDRef != nil { - in, out := &in.VPCEndpointIDRef, &out.VPCEndpointIDRef - *out = new(v1.Reference) + if in.ToPort != nil { + in, out := &in.ToPort, &out.ToPort + *out = new(int64) **out = **in } - if in.VPCEndpointIDSelector != nil { - in, out := &in.VPCEndpointIDSelector, &out.VPCEndpointIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.VPCPeeringConnectionID != nil { - in, out := &in.VPCPeeringConnectionID, &out.VPCPeeringConnectionID + if in.Type != nil { + in, out := &in.Type, &out.Type *out = new(string) **out = **in } - if in.VPCPeeringConnectionIDRef != nil { - in, out := &in.VPCPeeringConnectionIDRef, &out.VPCPeeringConnectionIDRef - *out = new(v1.Reference) - **out = **in - } - if in.VPCPeeringConnectionIDSelector != nil { - in, out := &in.VPCPeeringConnectionIDSelector, &out.VPCPeeringConnectionIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableRouteParameters. -func (in *RouteTableRouteParameters) DeepCopy() *RouteTableRouteParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupRuleParameters. +func (in *SecurityGroupRuleParameters) DeepCopy() *SecurityGroupRuleParameters { if in == nil { return nil } - out := new(RouteTableRouteParameters) + out := new(SecurityGroupRuleParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteTableSpec) DeepCopyInto(out *RouteTableSpec) { +func (in *SecurityGroupRuleSpec) DeepCopyInto(out *SecurityGroupRuleSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableSpec. -func (in *RouteTableSpec) DeepCopy() *RouteTableSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupRuleSpec. +func (in *SecurityGroupRuleSpec) DeepCopy() *SecurityGroupRuleSpec { if in == nil { return nil } - out := new(RouteTableSpec) + out := new(SecurityGroupRuleSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RouteTableStatus) DeepCopyInto(out *RouteTableStatus) { +func (in *SecurityGroupRuleStatus) DeepCopyInto(out *SecurityGroupRuleStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableStatus. -func (in *RouteTableStatus) DeepCopy() *RouteTableStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupRuleStatus. +func (in *SecurityGroupRuleStatus) DeepCopy() *SecurityGroupRuleStatus { if in == nil { return nil } - out := new(RouteTableStatus) + out := new(SecurityGroupRuleStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecurityGroup) DeepCopyInto(out *SecurityGroup) { +func (in *SecurityGroupSpec) DeepCopyInto(out *SecurityGroupSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroup. -func (in *SecurityGroup) DeepCopy() *SecurityGroup { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupSpec. +func (in *SecurityGroupSpec) DeepCopy() *SecurityGroupSpec { if in == nil { return nil } - out := new(SecurityGroup) + out := new(SecurityGroupSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SecurityGroup) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecurityGroupList) DeepCopyInto(out *SecurityGroupList) { +func (in *SecurityGroupStatus) DeepCopyInto(out *SecurityGroupStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]SecurityGroup, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupList. -func (in *SecurityGroupList) DeepCopy() *SecurityGroupList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupStatus. +func (in *SecurityGroupStatus) DeepCopy() *SecurityGroupStatus { if in == nil { return nil } - out := new(SecurityGroupList) + out := new(SecurityGroupStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SecurityGroupList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecurityGroupObservation) DeepCopyInto(out *SecurityGroupObservation) { +func (in *SpotOptionsObservation) DeepCopyInto(out *SpotOptionsObservation) { *out = *in - if in.Arn != nil { - in, out := &in.Arn, &out.Arn - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.OwnerID != nil { - in, out := &in.OwnerID, &out.OwnerID - *out = new(string) - **out = **in - } - if in.TagsAll != nil { - in, out := &in.TagsAll, &out.TagsAll - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupObservation. -func (in *SecurityGroupObservation) DeepCopy() *SecurityGroupObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpotOptionsObservation. +func (in *SpotOptionsObservation) DeepCopy() *SpotOptionsObservation { if in == nil { return nil } - out := new(SecurityGroupObservation) + out := new(SpotOptionsObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecurityGroupParameters) DeepCopyInto(out *SecurityGroupParameters) { +func (in *SpotOptionsParameters) DeepCopyInto(out *SpotOptionsParameters) { *out = *in - if in.Description != nil { - in, out := &in.Description, &out.Description - *out = new(string) + if in.BlockDurationMinutes != nil { + in, out := &in.BlockDurationMinutes, &out.BlockDurationMinutes + *out = new(int64) **out = **in } - if in.Egress != nil { - in, out := &in.Egress, &out.Egress - *out = make([]EgressParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Ingress != nil { - in, out := &in.Ingress, &out.Ingress - *out = make([]IngressParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Name != nil { - in, out := &in.Name, &out.Name + if in.InstanceInterruptionBehavior != nil { + in, out := &in.InstanceInterruptionBehavior, &out.InstanceInterruptionBehavior *out = new(string) **out = **in } - if in.NamePrefix != nil { - in, out := &in.NamePrefix, &out.NamePrefix + if in.MaxPrice != nil { + in, out := &in.MaxPrice, &out.MaxPrice *out = new(string) **out = **in } - if in.Region != nil { - in, out := &in.Region, &out.Region + if in.SpotInstanceType != nil { + in, out := &in.SpotInstanceType, &out.SpotInstanceType *out = new(string) **out = **in } - if in.RevokeRulesOnDelete != nil { - in, out := &in.RevokeRulesOnDelete, &out.RevokeRulesOnDelete - *out = new(bool) - **out = **in - } - if in.Tags != nil { - in, out := &in.Tags, &out.Tags - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.VPCID != nil { - in, out := &in.VPCID, &out.VPCID + if in.ValidUntil != nil { + in, out := &in.ValidUntil, &out.ValidUntil *out = new(string) **out = **in } - if in.VPCIDRef != nil { - in, out := &in.VPCIDRef, &out.VPCIDRef - *out = new(v1.Reference) - **out = **in - } - if in.VPCIDSelector != nil { - in, out := &in.VPCIDSelector, &out.VPCIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupParameters. -func (in *SecurityGroupParameters) DeepCopy() *SecurityGroupParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpotOptionsParameters. +func (in *SpotOptionsParameters) DeepCopy() *SpotOptionsParameters { if in == nil { return nil } - out := new(SecurityGroupParameters) + out := new(SpotOptionsParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecurityGroupRule) DeepCopyInto(out *SecurityGroupRule) { +func (in *Subnet) DeepCopyInto(out *Subnet) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -4676,18 +4754,18 @@ func (in *SecurityGroupRule) DeepCopyInto(out *SecurityGroupRule) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupRule. -func (in *SecurityGroupRule) DeepCopy() *SecurityGroupRule { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subnet. +func (in *Subnet) DeepCopy() *Subnet { if in == nil { return nil } - out := new(SecurityGroupRule) + out := new(Subnet) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SecurityGroupRule) DeepCopyObject() runtime.Object { +func (in *Subnet) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4695,31 +4773,31 @@ func (in *SecurityGroupRule) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecurityGroupRuleList) DeepCopyInto(out *SecurityGroupRuleList) { +func (in *SubnetList) DeepCopyInto(out *SubnetList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]SecurityGroupRule, len(*in)) + *out = make([]Subnet, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupRuleList. -func (in *SecurityGroupRuleList) DeepCopy() *SecurityGroupRuleList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetList. +func (in *SubnetList) DeepCopy() *SubnetList { if in == nil { return nil } - out := new(SecurityGroupRuleList) + out := new(SubnetList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SecurityGroupRuleList) DeepCopyObject() runtime.Object { +func (in *SubnetList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -4727,253 +4805,420 @@ func (in *SecurityGroupRuleList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecurityGroupRuleObservation) DeepCopyInto(out *SecurityGroupRuleObservation) { +func (in *SubnetObservation) DeepCopyInto(out *SubnetObservation) { *out = *in + if in.Arn != nil { + in, out := &in.Arn, &out.Arn + *out = new(string) + **out = **in + } if in.ID != nil { in, out := &in.ID, &out.ID *out = new(string) **out = **in } + if in.IPv6CidrBlockAssociationID != nil { + in, out := &in.IPv6CidrBlockAssociationID, &out.IPv6CidrBlockAssociationID + *out = new(string) + **out = **in + } + if in.OwnerID != nil { + in, out := &in.OwnerID, &out.OwnerID + *out = new(string) + **out = **in + } + if in.TagsAll != nil { + in, out := &in.TagsAll, &out.TagsAll + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupRuleObservation. -func (in *SecurityGroupRuleObservation) DeepCopy() *SecurityGroupRuleObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetObservation. +func (in *SubnetObservation) DeepCopy() *SubnetObservation { if in == nil { return nil } - out := new(SecurityGroupRuleObservation) + out := new(SubnetObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecurityGroupRuleParameters) DeepCopyInto(out *SecurityGroupRuleParameters) { +func (in *SubnetParameters) DeepCopyInto(out *SubnetParameters) { *out = *in - if in.CidrBlocks != nil { - in, out := &in.CidrBlocks, &out.CidrBlocks - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } - } - if in.Description != nil { - in, out := &in.Description, &out.Description - *out = new(string) - **out = **in - } - if in.FromPort != nil { - in, out := &in.FromPort, &out.FromPort - *out = new(int64) - **out = **in - } - if in.IPv6CidrBlocks != nil { - in, out := &in.IPv6CidrBlocks, &out.IPv6CidrBlocks - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } - } - if in.PrefixListIds != nil { - in, out := &in.PrefixListIds, &out.PrefixListIds - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } + if in.AssignIPv6AddressOnCreation != nil { + in, out := &in.AssignIPv6AddressOnCreation, &out.AssignIPv6AddressOnCreation + *out = new(bool) + **out = **in } - if in.Protocol != nil { - in, out := &in.Protocol, &out.Protocol + if in.AvailabilityZone != nil { + in, out := &in.AvailabilityZone, &out.AvailabilityZone *out = new(string) **out = **in } - if in.Region != nil { - in, out := &in.Region, &out.Region + if in.AvailabilityZoneID != nil { + in, out := &in.AvailabilityZoneID, &out.AvailabilityZoneID *out = new(string) **out = **in } - if in.SecurityGroupID != nil { - in, out := &in.SecurityGroupID, &out.SecurityGroupID + if in.CidrBlock != nil { + in, out := &in.CidrBlock, &out.CidrBlock *out = new(string) **out = **in } - if in.SecurityGroupIDRef != nil { - in, out := &in.SecurityGroupIDRef, &out.SecurityGroupIDRef - *out = new(v1.Reference) + if in.CustomerOwnedIPv4Pool != nil { + in, out := &in.CustomerOwnedIPv4Pool, &out.CustomerOwnedIPv4Pool + *out = new(string) **out = **in } - if in.SecurityGroupIDSelector != nil { - in, out := &in.SecurityGroupIDSelector, &out.SecurityGroupIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) + if in.IPv6CidrBlock != nil { + in, out := &in.IPv6CidrBlock, &out.IPv6CidrBlock + *out = new(string) + **out = **in } - if in.Self != nil { - in, out := &in.Self, &out.Self + if in.MapCustomerOwnedIPOnLaunch != nil { + in, out := &in.MapCustomerOwnedIPOnLaunch, &out.MapCustomerOwnedIPOnLaunch *out = new(bool) **out = **in } - if in.SourceSecurityGroupID != nil { - in, out := &in.SourceSecurityGroupID, &out.SourceSecurityGroupID + if in.MapPublicIPOnLaunch != nil { + in, out := &in.MapPublicIPOnLaunch, &out.MapPublicIPOnLaunch + *out = new(bool) + **out = **in + } + if in.OutpostArn != nil { + in, out := &in.OutpostArn, &out.OutpostArn *out = new(string) **out = **in } - if in.ToPort != nil { - in, out := &in.ToPort, &out.ToPort - *out = new(int64) + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) **out = **in } - if in.Type != nil { - in, out := &in.Type, &out.Type + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.VPCID != nil { + in, out := &in.VPCID, &out.VPCID *out = new(string) **out = **in } + if in.VPCIDRef != nil { + in, out := &in.VPCIDRef, &out.VPCIDRef + *out = new(v1.Reference) + **out = **in + } + if in.VPCIDSelector != nil { + in, out := &in.VPCIDSelector, &out.VPCIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupRuleParameters. -func (in *SecurityGroupRuleParameters) DeepCopy() *SecurityGroupRuleParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetParameters. +func (in *SubnetParameters) DeepCopy() *SubnetParameters { if in == nil { return nil } - out := new(SecurityGroupRuleParameters) + out := new(SubnetParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecurityGroupRuleSpec) DeepCopyInto(out *SecurityGroupRuleSpec) { +func (in *SubnetSpec) DeepCopyInto(out *SubnetSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupRuleSpec. -func (in *SecurityGroupRuleSpec) DeepCopy() *SecurityGroupRuleSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetSpec. +func (in *SubnetSpec) DeepCopy() *SubnetSpec { if in == nil { return nil } - out := new(SecurityGroupRuleSpec) + out := new(SubnetSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecurityGroupRuleStatus) DeepCopyInto(out *SecurityGroupRuleStatus) { +func (in *SubnetStatus) DeepCopyInto(out *SubnetStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupRuleStatus. -func (in *SecurityGroupRuleStatus) DeepCopy() *SecurityGroupRuleStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetStatus. +func (in *SubnetStatus) DeepCopy() *SubnetStatus { if in == nil { return nil } - out := new(SecurityGroupRuleStatus) + out := new(SubnetStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecurityGroupSpec) DeepCopyInto(out *SecurityGroupSpec) { +func (in *TagSpecificationsObservation) DeepCopyInto(out *TagSpecificationsObservation) { *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupSpec. -func (in *SecurityGroupSpec) DeepCopy() *SecurityGroupSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TagSpecificationsObservation. +func (in *TagSpecificationsObservation) DeepCopy() *TagSpecificationsObservation { if in == nil { return nil } - out := new(SecurityGroupSpec) + out := new(TagSpecificationsObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SecurityGroupStatus) DeepCopyInto(out *SecurityGroupStatus) { +func (in *TagSpecificationsParameters) DeepCopyInto(out *TagSpecificationsParameters) { *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) + if in.ResourceType != nil { + in, out := &in.ResourceType, &out.ResourceType + *out = new(string) + **out = **in + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupStatus. -func (in *SecurityGroupStatus) DeepCopy() *SecurityGroupStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TagSpecificationsParameters. +func (in *TagSpecificationsParameters) DeepCopy() *TagSpecificationsParameters { if in == nil { return nil } - out := new(SecurityGroupStatus) + out := new(TagSpecificationsParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SpotOptionsObservation) DeepCopyInto(out *SpotOptionsObservation) { +func (in *TransitGateway) DeepCopyInto(out *TransitGateway) { *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpotOptionsObservation. -func (in *SpotOptionsObservation) DeepCopy() *SpotOptionsObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGateway. +func (in *TransitGateway) DeepCopy() *TransitGateway { if in == nil { return nil } - out := new(SpotOptionsObservation) + out := new(TransitGateway) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TransitGateway) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SpotOptionsParameters) DeepCopyInto(out *SpotOptionsParameters) { +func (in *TransitGatewayList) DeepCopyInto(out *TransitGatewayList) { *out = *in - if in.BlockDurationMinutes != nil { - in, out := &in.BlockDurationMinutes, &out.BlockDurationMinutes + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]TransitGateway, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayList. +func (in *TransitGatewayList) DeepCopy() *TransitGatewayList { + if in == nil { + return nil + } + out := new(TransitGatewayList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TransitGatewayList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TransitGatewayObservation) DeepCopyInto(out *TransitGatewayObservation) { + *out = *in + if in.Arn != nil { + in, out := &in.Arn, &out.Arn + *out = new(string) + **out = **in + } + if in.AssociationDefaultRouteTableID != nil { + in, out := &in.AssociationDefaultRouteTableID, &out.AssociationDefaultRouteTableID + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.OwnerID != nil { + in, out := &in.OwnerID, &out.OwnerID + *out = new(string) + **out = **in + } + if in.PropagationDefaultRouteTableID != nil { + in, out := &in.PropagationDefaultRouteTableID, &out.PropagationDefaultRouteTableID + *out = new(string) + **out = **in + } + if in.TagsAll != nil { + in, out := &in.TagsAll, &out.TagsAll + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayObservation. +func (in *TransitGatewayObservation) DeepCopy() *TransitGatewayObservation { + if in == nil { + return nil + } + out := new(TransitGatewayObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TransitGatewayParameters) DeepCopyInto(out *TransitGatewayParameters) { + *out = *in + if in.AmazonSideAsn != nil { + in, out := &in.AmazonSideAsn, &out.AmazonSideAsn *out = new(int64) **out = **in } - if in.InstanceInterruptionBehavior != nil { - in, out := &in.InstanceInterruptionBehavior, &out.InstanceInterruptionBehavior + if in.AutoAcceptSharedAttachments != nil { + in, out := &in.AutoAcceptSharedAttachments, &out.AutoAcceptSharedAttachments + *out = new(string) + **out = **in + } + if in.DNSSupport != nil { + in, out := &in.DNSSupport, &out.DNSSupport *out = new(string) **out = **in } - if in.MaxPrice != nil { - in, out := &in.MaxPrice, &out.MaxPrice + if in.DefaultRouteTableAssociation != nil { + in, out := &in.DefaultRouteTableAssociation, &out.DefaultRouteTableAssociation *out = new(string) **out = **in } - if in.SpotInstanceType != nil { - in, out := &in.SpotInstanceType, &out.SpotInstanceType + if in.DefaultRouteTablePropagation != nil { + in, out := &in.DefaultRouteTablePropagation, &out.DefaultRouteTablePropagation *out = new(string) **out = **in } - if in.ValidUntil != nil { - in, out := &in.ValidUntil, &out.ValidUntil + if in.Description != nil { + in, out := &in.Description, &out.Description + *out = new(string) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.VPNEcmpSupport != nil { + in, out := &in.VPNEcmpSupport, &out.VPNEcmpSupport *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpotOptionsParameters. -func (in *SpotOptionsParameters) DeepCopy() *SpotOptionsParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayParameters. +func (in *TransitGatewayParameters) DeepCopy() *TransitGatewayParameters { if in == nil { return nil } - out := new(SpotOptionsParameters) + out := new(TransitGatewayParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Subnet) DeepCopyInto(out *Subnet) { +func (in *TransitGatewayRoute) DeepCopyInto(out *TransitGatewayRoute) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -4981,18 +5226,18 @@ func (in *Subnet) DeepCopyInto(out *Subnet) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subnet. -func (in *Subnet) DeepCopy() *Subnet { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRoute. +func (in *TransitGatewayRoute) DeepCopy() *TransitGatewayRoute { if in == nil { return nil } - out := new(Subnet) + out := new(TransitGatewayRoute) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Subnet) DeepCopyObject() runtime.Object { +func (in *TransitGatewayRoute) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5000,31 +5245,31 @@ func (in *Subnet) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubnetList) DeepCopyInto(out *SubnetList) { +func (in *TransitGatewayRouteList) DeepCopyInto(out *TransitGatewayRouteList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]Subnet, len(*in)) + *out = make([]TransitGatewayRoute, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetList. -func (in *SubnetList) DeepCopy() *SubnetList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteList. +func (in *TransitGatewayRouteList) DeepCopy() *TransitGatewayRouteList { if in == nil { return nil } - out := new(SubnetList) + out := new(TransitGatewayRouteList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SubnetList) DeepCopyObject() runtime.Object { +func (in *TransitGatewayRouteList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5032,287 +5277,345 @@ func (in *SubnetList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubnetObservation) DeepCopyInto(out *SubnetObservation) { +func (in *TransitGatewayRouteObservation) DeepCopyInto(out *TransitGatewayRouteObservation) { *out = *in - if in.Arn != nil { - in, out := &in.Arn, &out.Arn - *out = new(string) - **out = **in - } if in.ID != nil { in, out := &in.ID, &out.ID *out = new(string) **out = **in } - if in.IPv6CidrBlockAssociationID != nil { - in, out := &in.IPv6CidrBlockAssociationID, &out.IPv6CidrBlockAssociationID - *out = new(string) - **out = **in - } - if in.OwnerID != nil { - in, out := &in.OwnerID, &out.OwnerID - *out = new(string) - **out = **in - } - if in.TagsAll != nil { - in, out := &in.TagsAll, &out.TagsAll - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetObservation. -func (in *SubnetObservation) DeepCopy() *SubnetObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteObservation. +func (in *TransitGatewayRouteObservation) DeepCopy() *TransitGatewayRouteObservation { if in == nil { return nil } - out := new(SubnetObservation) + out := new(TransitGatewayRouteObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubnetParameters) DeepCopyInto(out *SubnetParameters) { +func (in *TransitGatewayRouteParameters) DeepCopyInto(out *TransitGatewayRouteParameters) { *out = *in - if in.AssignIPv6AddressOnCreation != nil { - in, out := &in.AssignIPv6AddressOnCreation, &out.AssignIPv6AddressOnCreation + if in.Blackhole != nil { + in, out := &in.Blackhole, &out.Blackhole *out = new(bool) **out = **in } - if in.AvailabilityZone != nil { - in, out := &in.AvailabilityZone, &out.AvailabilityZone - *out = new(string) - **out = **in - } - if in.AvailabilityZoneID != nil { - in, out := &in.AvailabilityZoneID, &out.AvailabilityZoneID - *out = new(string) - **out = **in - } - if in.CidrBlock != nil { - in, out := &in.CidrBlock, &out.CidrBlock - *out = new(string) - **out = **in - } - if in.CustomerOwnedIPv4Pool != nil { - in, out := &in.CustomerOwnedIPv4Pool, &out.CustomerOwnedIPv4Pool + if in.DestinationCidrBlock != nil { + in, out := &in.DestinationCidrBlock, &out.DestinationCidrBlock *out = new(string) **out = **in } - if in.IPv6CidrBlock != nil { - in, out := &in.IPv6CidrBlock, &out.IPv6CidrBlock + if in.Region != nil { + in, out := &in.Region, &out.Region *out = new(string) **out = **in } - if in.MapCustomerOwnedIPOnLaunch != nil { - in, out := &in.MapCustomerOwnedIPOnLaunch, &out.MapCustomerOwnedIPOnLaunch - *out = new(bool) - **out = **in - } - if in.MapPublicIPOnLaunch != nil { - in, out := &in.MapPublicIPOnLaunch, &out.MapPublicIPOnLaunch - *out = new(bool) - **out = **in - } - if in.OutpostArn != nil { - in, out := &in.OutpostArn, &out.OutpostArn + if in.TransitGatewayAttachmentID != nil { + in, out := &in.TransitGatewayAttachmentID, &out.TransitGatewayAttachmentID *out = new(string) **out = **in } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) + if in.TransitGatewayAttachmentIDRef != nil { + in, out := &in.TransitGatewayAttachmentIDRef, &out.TransitGatewayAttachmentIDRef + *out = new(v1.Reference) **out = **in } - if in.Tags != nil { - in, out := &in.Tags, &out.Tags - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } + if in.TransitGatewayAttachmentIDSelector != nil { + in, out := &in.TransitGatewayAttachmentIDSelector, &out.TransitGatewayAttachmentIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } - if in.VPCID != nil { - in, out := &in.VPCID, &out.VPCID + if in.TransitGatewayRouteTableID != nil { + in, out := &in.TransitGatewayRouteTableID, &out.TransitGatewayRouteTableID *out = new(string) **out = **in } - if in.VPCIDRef != nil { - in, out := &in.VPCIDRef, &out.VPCIDRef + if in.TransitGatewayRouteTableIDRef != nil { + in, out := &in.TransitGatewayRouteTableIDRef, &out.TransitGatewayRouteTableIDRef *out = new(v1.Reference) **out = **in } - if in.VPCIDSelector != nil { - in, out := &in.VPCIDSelector, &out.VPCIDSelector + if in.TransitGatewayRouteTableIDSelector != nil { + in, out := &in.TransitGatewayRouteTableIDSelector, &out.TransitGatewayRouteTableIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetParameters. -func (in *SubnetParameters) DeepCopy() *SubnetParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteParameters. +func (in *TransitGatewayRouteParameters) DeepCopy() *TransitGatewayRouteParameters { if in == nil { return nil } - out := new(SubnetParameters) + out := new(TransitGatewayRouteParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubnetSpec) DeepCopyInto(out *SubnetSpec) { +func (in *TransitGatewayRouteSpec) DeepCopyInto(out *TransitGatewayRouteSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetSpec. -func (in *SubnetSpec) DeepCopy() *SubnetSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteSpec. +func (in *TransitGatewayRouteSpec) DeepCopy() *TransitGatewayRouteSpec { + if in == nil { + return nil + } + out := new(TransitGatewayRouteSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TransitGatewayRouteStatus) DeepCopyInto(out *TransitGatewayRouteStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteStatus. +func (in *TransitGatewayRouteStatus) DeepCopy() *TransitGatewayRouteStatus { + if in == nil { + return nil + } + out := new(TransitGatewayRouteStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TransitGatewayRouteTable) DeepCopyInto(out *TransitGatewayRouteTable) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTable. +func (in *TransitGatewayRouteTable) DeepCopy() *TransitGatewayRouteTable { + if in == nil { + return nil + } + out := new(TransitGatewayRouteTable) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TransitGatewayRouteTable) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TransitGatewayRouteTableAssociation) DeepCopyInto(out *TransitGatewayRouteTableAssociation) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableAssociation. +func (in *TransitGatewayRouteTableAssociation) DeepCopy() *TransitGatewayRouteTableAssociation { if in == nil { return nil } - out := new(SubnetSpec) + out := new(TransitGatewayRouteTableAssociation) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TransitGatewayRouteTableAssociation) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubnetStatus) DeepCopyInto(out *SubnetStatus) { +func (in *TransitGatewayRouteTableAssociationList) DeepCopyInto(out *TransitGatewayRouteTableAssociationList) { *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]TransitGatewayRouteTableAssociation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetStatus. -func (in *SubnetStatus) DeepCopy() *SubnetStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableAssociationList. +func (in *TransitGatewayRouteTableAssociationList) DeepCopy() *TransitGatewayRouteTableAssociationList { if in == nil { return nil } - out := new(SubnetStatus) + out := new(TransitGatewayRouteTableAssociationList) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TransitGatewayRouteTableAssociationList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TagSpecificationsObservation) DeepCopyInto(out *TagSpecificationsObservation) { +func (in *TransitGatewayRouteTableAssociationObservation) DeepCopyInto(out *TransitGatewayRouteTableAssociationObservation) { *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.ResourceID != nil { + in, out := &in.ResourceID, &out.ResourceID + *out = new(string) + **out = **in + } + if in.ResourceType != nil { + in, out := &in.ResourceType, &out.ResourceType + *out = new(string) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TagSpecificationsObservation. -func (in *TagSpecificationsObservation) DeepCopy() *TagSpecificationsObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableAssociationObservation. +func (in *TransitGatewayRouteTableAssociationObservation) DeepCopy() *TransitGatewayRouteTableAssociationObservation { if in == nil { return nil } - out := new(TagSpecificationsObservation) + out := new(TransitGatewayRouteTableAssociationObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TagSpecificationsParameters) DeepCopyInto(out *TagSpecificationsParameters) { +func (in *TransitGatewayRouteTableAssociationParameters) DeepCopyInto(out *TransitGatewayRouteTableAssociationParameters) { *out = *in - if in.ResourceType != nil { - in, out := &in.ResourceType, &out.ResourceType + if in.Region != nil { + in, out := &in.Region, &out.Region *out = new(string) **out = **in } - if in.Tags != nil { - in, out := &in.Tags, &out.Tags - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } + if in.TransitGatewayAttachmentID != nil { + in, out := &in.TransitGatewayAttachmentID, &out.TransitGatewayAttachmentID + *out = new(string) + **out = **in + } + if in.TransitGatewayAttachmentIDRef != nil { + in, out := &in.TransitGatewayAttachmentIDRef, &out.TransitGatewayAttachmentIDRef + *out = new(v1.Reference) + **out = **in + } + if in.TransitGatewayAttachmentIDSelector != nil { + in, out := &in.TransitGatewayAttachmentIDSelector, &out.TransitGatewayAttachmentIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.TransitGatewayRouteTableID != nil { + in, out := &in.TransitGatewayRouteTableID, &out.TransitGatewayRouteTableID + *out = new(string) + **out = **in + } + if in.TransitGatewayRouteTableIDRef != nil { + in, out := &in.TransitGatewayRouteTableIDRef, &out.TransitGatewayRouteTableIDRef + *out = new(v1.Reference) + **out = **in + } + if in.TransitGatewayRouteTableIDSelector != nil { + in, out := &in.TransitGatewayRouteTableIDSelector, &out.TransitGatewayRouteTableIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TagSpecificationsParameters. -func (in *TagSpecificationsParameters) DeepCopy() *TagSpecificationsParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableAssociationParameters. +func (in *TransitGatewayRouteTableAssociationParameters) DeepCopy() *TransitGatewayRouteTableAssociationParameters { if in == nil { return nil } - out := new(TagSpecificationsParameters) + out := new(TransitGatewayRouteTableAssociationParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGateway) DeepCopyInto(out *TransitGateway) { +func (in *TransitGatewayRouteTableAssociationSpec) DeepCopyInto(out *TransitGatewayRouteTableAssociationSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGateway. -func (in *TransitGateway) DeepCopy() *TransitGateway { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableAssociationSpec. +func (in *TransitGatewayRouteTableAssociationSpec) DeepCopy() *TransitGatewayRouteTableAssociationSpec { if in == nil { return nil } - out := new(TransitGateway) + out := new(TransitGatewayRouteTableAssociationSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TransitGateway) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TransitGatewayRouteTableAssociationStatus) DeepCopyInto(out *TransitGatewayRouteTableAssociationStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableAssociationStatus. +func (in *TransitGatewayRouteTableAssociationStatus) DeepCopy() *TransitGatewayRouteTableAssociationStatus { + if in == nil { + return nil } - return nil + out := new(TransitGatewayRouteTableAssociationStatus) + in.DeepCopyInto(out) + return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayList) DeepCopyInto(out *TransitGatewayList) { +func (in *TransitGatewayRouteTableList) DeepCopyInto(out *TransitGatewayRouteTableList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]TransitGateway, len(*in)) + *out = make([]TransitGatewayRouteTable, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayList. -func (in *TransitGatewayList) DeepCopy() *TransitGatewayList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableList. +func (in *TransitGatewayRouteTableList) DeepCopy() *TransitGatewayRouteTableList { if in == nil { return nil } - out := new(TransitGatewayList) + out := new(TransitGatewayRouteTableList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TransitGatewayList) DeepCopyObject() runtime.Object { +func (in *TransitGatewayRouteTableList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5320,30 +5623,25 @@ func (in *TransitGatewayList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayObservation) DeepCopyInto(out *TransitGatewayObservation) { +func (in *TransitGatewayRouteTableObservation) DeepCopyInto(out *TransitGatewayRouteTableObservation) { *out = *in if in.Arn != nil { in, out := &in.Arn, &out.Arn *out = new(string) **out = **in } - if in.AssociationDefaultRouteTableID != nil { - in, out := &in.AssociationDefaultRouteTableID, &out.AssociationDefaultRouteTableID - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) + if in.DefaultAssociationRouteTable != nil { + in, out := &in.DefaultAssociationRouteTable, &out.DefaultAssociationRouteTable + *out = new(bool) **out = **in } - if in.OwnerID != nil { - in, out := &in.OwnerID, &out.OwnerID - *out = new(string) + if in.DefaultPropagationRouteTable != nil { + in, out := &in.DefaultPropagationRouteTable, &out.DefaultPropagationRouteTable + *out = new(bool) **out = **in } - if in.PropagationDefaultRouteTableID != nil { - in, out := &in.PropagationDefaultRouteTableID, &out.PropagationDefaultRouteTableID + if in.ID != nil { + in, out := &in.ID, &out.ID *out = new(string) **out = **in } @@ -5364,49 +5662,19 @@ func (in *TransitGatewayObservation) DeepCopyInto(out *TransitGatewayObservation } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayObservation. -func (in *TransitGatewayObservation) DeepCopy() *TransitGatewayObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableObservation. +func (in *TransitGatewayRouteTableObservation) DeepCopy() *TransitGatewayRouteTableObservation { if in == nil { return nil } - out := new(TransitGatewayObservation) + out := new(TransitGatewayRouteTableObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayParameters) DeepCopyInto(out *TransitGatewayParameters) { +func (in *TransitGatewayRouteTableParameters) DeepCopyInto(out *TransitGatewayRouteTableParameters) { *out = *in - if in.AmazonSideAsn != nil { - in, out := &in.AmazonSideAsn, &out.AmazonSideAsn - *out = new(int64) - **out = **in - } - if in.AutoAcceptSharedAttachments != nil { - in, out := &in.AutoAcceptSharedAttachments, &out.AutoAcceptSharedAttachments - *out = new(string) - **out = **in - } - if in.DNSSupport != nil { - in, out := &in.DNSSupport, &out.DNSSupport - *out = new(string) - **out = **in - } - if in.DefaultRouteTableAssociation != nil { - in, out := &in.DefaultRouteTableAssociation, &out.DefaultRouteTableAssociation - *out = new(string) - **out = **in - } - if in.DefaultRouteTablePropagation != nil { - in, out := &in.DefaultRouteTablePropagation, &out.DefaultRouteTablePropagation - *out = new(string) - **out = **in - } - if in.Description != nil { - in, out := &in.Description, &out.Description - *out = new(string) - **out = **in - } if in.Region != nil { in, out := &in.Region, &out.Region *out = new(string) @@ -5427,25 +5695,35 @@ func (in *TransitGatewayParameters) DeepCopyInto(out *TransitGatewayParameters) (*out)[key] = outVal } } - if in.VPNEcmpSupport != nil { - in, out := &in.VPNEcmpSupport, &out.VPNEcmpSupport + if in.TransitGatewayID != nil { + in, out := &in.TransitGatewayID, &out.TransitGatewayID *out = new(string) **out = **in } + if in.TransitGatewayIDRef != nil { + in, out := &in.TransitGatewayIDRef, &out.TransitGatewayIDRef + *out = new(v1.Reference) + **out = **in + } + if in.TransitGatewayIDSelector != nil { + in, out := &in.TransitGatewayIDSelector, &out.TransitGatewayIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayParameters. -func (in *TransitGatewayParameters) DeepCopy() *TransitGatewayParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableParameters. +func (in *TransitGatewayRouteTableParameters) DeepCopy() *TransitGatewayRouteTableParameters { if in == nil { return nil } - out := new(TransitGatewayParameters) + out := new(TransitGatewayRouteTableParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRoute) DeepCopyInto(out *TransitGatewayRoute) { +func (in *TransitGatewayRouteTablePropagation) DeepCopyInto(out *TransitGatewayRouteTablePropagation) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -5453,18 +5731,18 @@ func (in *TransitGatewayRoute) DeepCopyInto(out *TransitGatewayRoute) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRoute. -func (in *TransitGatewayRoute) DeepCopy() *TransitGatewayRoute { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTablePropagation. +func (in *TransitGatewayRouteTablePropagation) DeepCopy() *TransitGatewayRouteTablePropagation { if in == nil { return nil } - out := new(TransitGatewayRoute) + out := new(TransitGatewayRouteTablePropagation) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TransitGatewayRoute) DeepCopyObject() runtime.Object { +func (in *TransitGatewayRouteTablePropagation) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5472,31 +5750,31 @@ func (in *TransitGatewayRoute) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteList) DeepCopyInto(out *TransitGatewayRouteList) { +func (in *TransitGatewayRouteTablePropagationList) DeepCopyInto(out *TransitGatewayRouteTablePropagationList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]TransitGatewayRoute, len(*in)) + *out = make([]TransitGatewayRouteTablePropagation, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteList. -func (in *TransitGatewayRouteList) DeepCopy() *TransitGatewayRouteList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTablePropagationList. +func (in *TransitGatewayRouteTablePropagationList) DeepCopy() *TransitGatewayRouteTablePropagationList { if in == nil { return nil } - out := new(TransitGatewayRouteList) + out := new(TransitGatewayRouteTablePropagationList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TransitGatewayRouteList) DeepCopyObject() runtime.Object { +func (in *TransitGatewayRouteTablePropagationList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5504,38 +5782,38 @@ func (in *TransitGatewayRouteList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteObservation) DeepCopyInto(out *TransitGatewayRouteObservation) { +func (in *TransitGatewayRouteTablePropagationObservation) DeepCopyInto(out *TransitGatewayRouteTablePropagationObservation) { *out = *in if in.ID != nil { in, out := &in.ID, &out.ID *out = new(string) **out = **in } + if in.ResourceID != nil { + in, out := &in.ResourceID, &out.ResourceID + *out = new(string) + **out = **in + } + if in.ResourceType != nil { + in, out := &in.ResourceType, &out.ResourceType + *out = new(string) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteObservation. -func (in *TransitGatewayRouteObservation) DeepCopy() *TransitGatewayRouteObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTablePropagationObservation. +func (in *TransitGatewayRouteTablePropagationObservation) DeepCopy() *TransitGatewayRouteTablePropagationObservation { if in == nil { return nil } - out := new(TransitGatewayRouteObservation) + out := new(TransitGatewayRouteTablePropagationObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteParameters) DeepCopyInto(out *TransitGatewayRouteParameters) { +func (in *TransitGatewayRouteTablePropagationParameters) DeepCopyInto(out *TransitGatewayRouteTablePropagationParameters) { *out = *in - if in.Blackhole != nil { - in, out := &in.Blackhole, &out.Blackhole - *out = new(bool) - **out = **in - } - if in.DestinationCidrBlock != nil { - in, out := &in.DestinationCidrBlock, &out.DestinationCidrBlock - *out = new(string) - **out = **in - } if in.Region != nil { in, out := &in.Region, &out.Region *out = new(string) @@ -5573,276 +5851,198 @@ func (in *TransitGatewayRouteParameters) DeepCopyInto(out *TransitGatewayRoutePa } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteParameters. -func (in *TransitGatewayRouteParameters) DeepCopy() *TransitGatewayRouteParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTablePropagationParameters. +func (in *TransitGatewayRouteTablePropagationParameters) DeepCopy() *TransitGatewayRouteTablePropagationParameters { if in == nil { return nil } - out := new(TransitGatewayRouteParameters) + out := new(TransitGatewayRouteTablePropagationParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteSpec) DeepCopyInto(out *TransitGatewayRouteSpec) { +func (in *TransitGatewayRouteTablePropagationSpec) DeepCopyInto(out *TransitGatewayRouteTablePropagationSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteSpec. -func (in *TransitGatewayRouteSpec) DeepCopy() *TransitGatewayRouteSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTablePropagationSpec. +func (in *TransitGatewayRouteTablePropagationSpec) DeepCopy() *TransitGatewayRouteTablePropagationSpec { if in == nil { return nil } - out := new(TransitGatewayRouteSpec) + out := new(TransitGatewayRouteTablePropagationSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteStatus) DeepCopyInto(out *TransitGatewayRouteStatus) { +func (in *TransitGatewayRouteTablePropagationStatus) DeepCopyInto(out *TransitGatewayRouteTablePropagationStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteStatus. -func (in *TransitGatewayRouteStatus) DeepCopy() *TransitGatewayRouteStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTablePropagationStatus. +func (in *TransitGatewayRouteTablePropagationStatus) DeepCopy() *TransitGatewayRouteTablePropagationStatus { if in == nil { return nil } - out := new(TransitGatewayRouteStatus) + out := new(TransitGatewayRouteTablePropagationStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTable) DeepCopyInto(out *TransitGatewayRouteTable) { +func (in *TransitGatewayRouteTableSpec) DeepCopyInto(out *TransitGatewayRouteTableSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTable. -func (in *TransitGatewayRouteTable) DeepCopy() *TransitGatewayRouteTable { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableSpec. +func (in *TransitGatewayRouteTableSpec) DeepCopy() *TransitGatewayRouteTableSpec { if in == nil { return nil } - out := new(TransitGatewayRouteTable) + out := new(TransitGatewayRouteTableSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TransitGatewayRouteTable) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTableAssociation) DeepCopyInto(out *TransitGatewayRouteTableAssociation) { +func (in *TransitGatewayRouteTableStatus) DeepCopyInto(out *TransitGatewayRouteTableStatus) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableAssociation. -func (in *TransitGatewayRouteTableAssociation) DeepCopy() *TransitGatewayRouteTableAssociation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableStatus. +func (in *TransitGatewayRouteTableStatus) DeepCopy() *TransitGatewayRouteTableStatus { if in == nil { return nil } - out := new(TransitGatewayRouteTableAssociation) + out := new(TransitGatewayRouteTableStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TransitGatewayRouteTableAssociation) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTableAssociationList) DeepCopyInto(out *TransitGatewayRouteTableAssociationList) { +func (in *TransitGatewaySpec) DeepCopyInto(out *TransitGatewaySpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]TransitGatewayRouteTableAssociation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableAssociationList. -func (in *TransitGatewayRouteTableAssociationList) DeepCopy() *TransitGatewayRouteTableAssociationList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewaySpec. +func (in *TransitGatewaySpec) DeepCopy() *TransitGatewaySpec { if in == nil { return nil } - out := new(TransitGatewayRouteTableAssociationList) + out := new(TransitGatewaySpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TransitGatewayRouteTableAssociationList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTableAssociationObservation) DeepCopyInto(out *TransitGatewayRouteTableAssociationObservation) { +func (in *TransitGatewayStatus) DeepCopyInto(out *TransitGatewayStatus) { *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.ResourceID != nil { - in, out := &in.ResourceID, &out.ResourceID - *out = new(string) - **out = **in - } - if in.ResourceType != nil { - in, out := &in.ResourceType, &out.ResourceType - *out = new(string) - **out = **in - } + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableAssociationObservation. -func (in *TransitGatewayRouteTableAssociationObservation) DeepCopy() *TransitGatewayRouteTableAssociationObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayStatus. +func (in *TransitGatewayStatus) DeepCopy() *TransitGatewayStatus { if in == nil { return nil } - out := new(TransitGatewayRouteTableAssociationObservation) + out := new(TransitGatewayStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTableAssociationParameters) DeepCopyInto(out *TransitGatewayRouteTableAssociationParameters) { +func (in *TransitGatewayVPCAttachment) DeepCopyInto(out *TransitGatewayVPCAttachment) { *out = *in - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.TransitGatewayAttachmentID != nil { - in, out := &in.TransitGatewayAttachmentID, &out.TransitGatewayAttachmentID - *out = new(string) - **out = **in - } - if in.TransitGatewayAttachmentIDRef != nil { - in, out := &in.TransitGatewayAttachmentIDRef, &out.TransitGatewayAttachmentIDRef - *out = new(v1.Reference) - **out = **in - } - if in.TransitGatewayAttachmentIDSelector != nil { - in, out := &in.TransitGatewayAttachmentIDSelector, &out.TransitGatewayAttachmentIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.TransitGatewayRouteTableID != nil { - in, out := &in.TransitGatewayRouteTableID, &out.TransitGatewayRouteTableID - *out = new(string) - **out = **in - } - if in.TransitGatewayRouteTableIDRef != nil { - in, out := &in.TransitGatewayRouteTableIDRef, &out.TransitGatewayRouteTableIDRef - *out = new(v1.Reference) - **out = **in - } - if in.TransitGatewayRouteTableIDSelector != nil { - in, out := &in.TransitGatewayRouteTableIDSelector, &out.TransitGatewayRouteTableIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableAssociationParameters. -func (in *TransitGatewayRouteTableAssociationParameters) DeepCopy() *TransitGatewayRouteTableAssociationParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachment. +func (in *TransitGatewayVPCAttachment) DeepCopy() *TransitGatewayVPCAttachment { if in == nil { return nil } - out := new(TransitGatewayRouteTableAssociationParameters) + out := new(TransitGatewayVPCAttachment) in.DeepCopyInto(out) return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTableAssociationSpec) DeepCopyInto(out *TransitGatewayRouteTableAssociationSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableAssociationSpec. -func (in *TransitGatewayRouteTableAssociationSpec) DeepCopy() *TransitGatewayRouteTableAssociationSpec { - if in == nil { - return nil +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TransitGatewayVPCAttachment) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - out := new(TransitGatewayRouteTableAssociationSpec) - in.DeepCopyInto(out) - return out + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTableAssociationStatus) DeepCopyInto(out *TransitGatewayRouteTableAssociationStatus) { +func (in *TransitGatewayVPCAttachmentAccepter) DeepCopyInto(out *TransitGatewayVPCAttachmentAccepter) { *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableAssociationStatus. -func (in *TransitGatewayRouteTableAssociationStatus) DeepCopy() *TransitGatewayRouteTableAssociationStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentAccepter. +func (in *TransitGatewayVPCAttachmentAccepter) DeepCopy() *TransitGatewayVPCAttachmentAccepter { if in == nil { return nil } - out := new(TransitGatewayRouteTableAssociationStatus) + out := new(TransitGatewayVPCAttachmentAccepter) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *TransitGatewayVPCAttachmentAccepter) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTableList) DeepCopyInto(out *TransitGatewayRouteTableList) { +func (in *TransitGatewayVPCAttachmentAccepterList) DeepCopyInto(out *TransitGatewayVPCAttachmentAccepterList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]TransitGatewayRouteTable, len(*in)) + *out = make([]TransitGatewayVPCAttachmentAccepter, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableList. -func (in *TransitGatewayRouteTableList) DeepCopy() *TransitGatewayRouteTableList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentAccepterList. +func (in *TransitGatewayVPCAttachmentAccepterList) DeepCopy() *TransitGatewayVPCAttachmentAccepterList { if in == nil { return nil } - out := new(TransitGatewayRouteTableList) + out := new(TransitGatewayVPCAttachmentAccepterList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TransitGatewayRouteTableList) DeepCopyObject() runtime.Object { +func (in *TransitGatewayVPCAttachmentAccepterList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -5850,21 +6050,16 @@ func (in *TransitGatewayRouteTableList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTableObservation) DeepCopyInto(out *TransitGatewayRouteTableObservation) { +func (in *TransitGatewayVPCAttachmentAccepterObservation) DeepCopyInto(out *TransitGatewayVPCAttachmentAccepterObservation) { *out = *in - if in.Arn != nil { - in, out := &in.Arn, &out.Arn + if in.ApplianceModeSupport != nil { + in, out := &in.ApplianceModeSupport, &out.ApplianceModeSupport *out = new(string) **out = **in } - if in.DefaultAssociationRouteTable != nil { - in, out := &in.DefaultAssociationRouteTable, &out.DefaultAssociationRouteTable - *out = new(bool) - **out = **in - } - if in.DefaultPropagationRouteTable != nil { - in, out := &in.DefaultPropagationRouteTable, &out.DefaultPropagationRouteTable - *out = new(bool) + if in.DNSSupport != nil { + in, out := &in.DNSSupport, &out.DNSSupport + *out = new(string) **out = **in } if in.ID != nil { @@ -5872,6 +6067,22 @@ func (in *TransitGatewayRouteTableObservation) DeepCopyInto(out *TransitGatewayR *out = new(string) **out = **in } + if in.IPv6Support != nil { + in, out := &in.IPv6Support, &out.IPv6Support + *out = new(string) + **out = **in + } + if in.SubnetIds != nil { + in, out := &in.SubnetIds, &out.SubnetIds + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } if in.TagsAll != nil { in, out := &in.TagsAll, &out.TagsAll *out = make(map[string]*string, len(*in)) @@ -5887,20 +6098,35 @@ func (in *TransitGatewayRouteTableObservation) DeepCopyInto(out *TransitGatewayR (*out)[key] = outVal } } + if in.TransitGatewayID != nil { + in, out := &in.TransitGatewayID, &out.TransitGatewayID + *out = new(string) + **out = **in + } + if in.VPCID != nil { + in, out := &in.VPCID, &out.VPCID + *out = new(string) + **out = **in + } + if in.VPCOwnerID != nil { + in, out := &in.VPCOwnerID, &out.VPCOwnerID + *out = new(string) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableObservation. -func (in *TransitGatewayRouteTableObservation) DeepCopy() *TransitGatewayRouteTableObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentAccepterObservation. +func (in *TransitGatewayVPCAttachmentAccepterObservation) DeepCopy() *TransitGatewayVPCAttachmentAccepterObservation { if in == nil { return nil } - out := new(TransitGatewayRouteTableObservation) + out := new(TransitGatewayVPCAttachmentAccepterObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTableParameters) DeepCopyInto(out *TransitGatewayRouteTableParameters) { +func (in *TransitGatewayVPCAttachmentAccepterParameters) DeepCopyInto(out *TransitGatewayVPCAttachmentAccepterParameters) { *out = *in if in.Region != nil { in, out := &in.Region, &out.Region @@ -5922,86 +6148,103 @@ func (in *TransitGatewayRouteTableParameters) DeepCopyInto(out *TransitGatewayRo (*out)[key] = outVal } } - if in.TransitGatewayID != nil { - in, out := &in.TransitGatewayID, &out.TransitGatewayID + if in.TransitGatewayAttachmentID != nil { + in, out := &in.TransitGatewayAttachmentID, &out.TransitGatewayAttachmentID *out = new(string) **out = **in } - if in.TransitGatewayIDRef != nil { - in, out := &in.TransitGatewayIDRef, &out.TransitGatewayIDRef + if in.TransitGatewayAttachmentIDRef != nil { + in, out := &in.TransitGatewayAttachmentIDRef, &out.TransitGatewayAttachmentIDRef *out = new(v1.Reference) **out = **in } - if in.TransitGatewayIDSelector != nil { - in, out := &in.TransitGatewayIDSelector, &out.TransitGatewayIDSelector + if in.TransitGatewayAttachmentIDSelector != nil { + in, out := &in.TransitGatewayAttachmentIDSelector, &out.TransitGatewayAttachmentIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } + if in.TransitGatewayDefaultRouteTableAssociation != nil { + in, out := &in.TransitGatewayDefaultRouteTableAssociation, &out.TransitGatewayDefaultRouteTableAssociation + *out = new(bool) + **out = **in + } + if in.TransitGatewayDefaultRouteTablePropagation != nil { + in, out := &in.TransitGatewayDefaultRouteTablePropagation, &out.TransitGatewayDefaultRouteTablePropagation + *out = new(bool) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableParameters. -func (in *TransitGatewayRouteTableParameters) DeepCopy() *TransitGatewayRouteTableParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentAccepterParameters. +func (in *TransitGatewayVPCAttachmentAccepterParameters) DeepCopy() *TransitGatewayVPCAttachmentAccepterParameters { if in == nil { return nil } - out := new(TransitGatewayRouteTableParameters) + out := new(TransitGatewayVPCAttachmentAccepterParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTablePropagation) DeepCopyInto(out *TransitGatewayRouteTablePropagation) { +func (in *TransitGatewayVPCAttachmentAccepterSpec) DeepCopyInto(out *TransitGatewayVPCAttachmentAccepterSpec) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTablePropagation. -func (in *TransitGatewayRouteTablePropagation) DeepCopy() *TransitGatewayRouteTablePropagation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentAccepterSpec. +func (in *TransitGatewayVPCAttachmentAccepterSpec) DeepCopy() *TransitGatewayVPCAttachmentAccepterSpec { if in == nil { return nil } - out := new(TransitGatewayRouteTablePropagation) + out := new(TransitGatewayVPCAttachmentAccepterSpec) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TransitGatewayRouteTablePropagation) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TransitGatewayVPCAttachmentAccepterStatus) DeepCopyInto(out *TransitGatewayVPCAttachmentAccepterStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentAccepterStatus. +func (in *TransitGatewayVPCAttachmentAccepterStatus) DeepCopy() *TransitGatewayVPCAttachmentAccepterStatus { + if in == nil { + return nil } - return nil + out := new(TransitGatewayVPCAttachmentAccepterStatus) + in.DeepCopyInto(out) + return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTablePropagationList) DeepCopyInto(out *TransitGatewayRouteTablePropagationList) { +func (in *TransitGatewayVPCAttachmentList) DeepCopyInto(out *TransitGatewayVPCAttachmentList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]TransitGatewayRouteTablePropagation, len(*in)) + *out = make([]TransitGatewayVPCAttachment, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTablePropagationList. -func (in *TransitGatewayRouteTablePropagationList) DeepCopy() *TransitGatewayRouteTablePropagationList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentList. +func (in *TransitGatewayVPCAttachmentList) DeepCopy() *TransitGatewayVPCAttachmentList { if in == nil { return nil } - out := new(TransitGatewayRouteTablePropagationList) + out := new(TransitGatewayVPCAttachmentList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TransitGatewayRouteTablePropagationList) DeepCopyObject() runtime.Object { +func (in *TransitGatewayVPCAttachmentList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6009,189 +6252,219 @@ func (in *TransitGatewayRouteTablePropagationList) DeepCopyObject() runtime.Obje } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTablePropagationObservation) DeepCopyInto(out *TransitGatewayRouteTablePropagationObservation) { +func (in *TransitGatewayVPCAttachmentObservation) DeepCopyInto(out *TransitGatewayVPCAttachmentObservation) { *out = *in if in.ID != nil { in, out := &in.ID, &out.ID *out = new(string) **out = **in } - if in.ResourceID != nil { - in, out := &in.ResourceID, &out.ResourceID - *out = new(string) - **out = **in + if in.TagsAll != nil { + in, out := &in.TagsAll, &out.TagsAll + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } } - if in.ResourceType != nil { - in, out := &in.ResourceType, &out.ResourceType + if in.VPCOwnerID != nil { + in, out := &in.VPCOwnerID, &out.VPCOwnerID *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTablePropagationObservation. -func (in *TransitGatewayRouteTablePropagationObservation) DeepCopy() *TransitGatewayRouteTablePropagationObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentObservation. +func (in *TransitGatewayVPCAttachmentObservation) DeepCopy() *TransitGatewayVPCAttachmentObservation { if in == nil { return nil } - out := new(TransitGatewayRouteTablePropagationObservation) + out := new(TransitGatewayVPCAttachmentObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTablePropagationParameters) DeepCopyInto(out *TransitGatewayRouteTablePropagationParameters) { +func (in *TransitGatewayVPCAttachmentParameters) DeepCopyInto(out *TransitGatewayVPCAttachmentParameters) { *out = *in - if in.Region != nil { - in, out := &in.Region, &out.Region + if in.ApplianceModeSupport != nil { + in, out := &in.ApplianceModeSupport, &out.ApplianceModeSupport *out = new(string) **out = **in } - if in.TransitGatewayAttachmentID != nil { - in, out := &in.TransitGatewayAttachmentID, &out.TransitGatewayAttachmentID + if in.DNSSupport != nil { + in, out := &in.DNSSupport, &out.DNSSupport *out = new(string) **out = **in } - if in.TransitGatewayAttachmentIDRef != nil { - in, out := &in.TransitGatewayAttachmentIDRef, &out.TransitGatewayAttachmentIDRef - *out = new(v1.Reference) + if in.IPv6Support != nil { + in, out := &in.IPv6Support, &out.IPv6Support + *out = new(string) **out = **in } - if in.TransitGatewayAttachmentIDSelector != nil { - in, out := &in.TransitGatewayAttachmentIDSelector, &out.TransitGatewayAttachmentIDSelector + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.SubnetIdRefs != nil { + in, out := &in.SubnetIdRefs, &out.SubnetIdRefs + *out = make([]v1.Reference, len(*in)) + copy(*out, *in) + } + if in.SubnetIdSelector != nil { + in, out := &in.SubnetIdSelector, &out.SubnetIdSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.TransitGatewayRouteTableID != nil { - in, out := &in.TransitGatewayRouteTableID, &out.TransitGatewayRouteTableID + if in.SubnetIds != nil { + in, out := &in.SubnetIds, &out.SubnetIds + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.TransitGatewayDefaultRouteTableAssociation != nil { + in, out := &in.TransitGatewayDefaultRouteTableAssociation, &out.TransitGatewayDefaultRouteTableAssociation + *out = new(bool) + **out = **in + } + if in.TransitGatewayDefaultRouteTablePropagation != nil { + in, out := &in.TransitGatewayDefaultRouteTablePropagation, &out.TransitGatewayDefaultRouteTablePropagation + *out = new(bool) + **out = **in + } + if in.TransitGatewayID != nil { + in, out := &in.TransitGatewayID, &out.TransitGatewayID *out = new(string) **out = **in } - if in.TransitGatewayRouteTableIDRef != nil { - in, out := &in.TransitGatewayRouteTableIDRef, &out.TransitGatewayRouteTableIDRef + if in.TransitGatewayIDRef != nil { + in, out := &in.TransitGatewayIDRef, &out.TransitGatewayIDRef *out = new(v1.Reference) **out = **in } - if in.TransitGatewayRouteTableIDSelector != nil { - in, out := &in.TransitGatewayRouteTableIDSelector, &out.TransitGatewayRouteTableIDSelector + if in.TransitGatewayIDSelector != nil { + in, out := &in.TransitGatewayIDSelector, &out.TransitGatewayIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTablePropagationParameters. -func (in *TransitGatewayRouteTablePropagationParameters) DeepCopy() *TransitGatewayRouteTablePropagationParameters { - if in == nil { - return nil + if in.VPCID != nil { + in, out := &in.VPCID, &out.VPCID + *out = new(string) + **out = **in + } + if in.VPCIDRef != nil { + in, out := &in.VPCIDRef, &out.VPCIDRef + *out = new(v1.Reference) + **out = **in } - out := new(TransitGatewayRouteTablePropagationParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTablePropagationSpec) DeepCopyInto(out *TransitGatewayRouteTablePropagationSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTablePropagationSpec. -func (in *TransitGatewayRouteTablePropagationSpec) DeepCopy() *TransitGatewayRouteTablePropagationSpec { - if in == nil { - return nil + if in.VPCIDSelector != nil { + in, out := &in.VPCIDSelector, &out.VPCIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } - out := new(TransitGatewayRouteTablePropagationSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTablePropagationStatus) DeepCopyInto(out *TransitGatewayRouteTablePropagationStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTablePropagationStatus. -func (in *TransitGatewayRouteTablePropagationStatus) DeepCopy() *TransitGatewayRouteTablePropagationStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentParameters. +func (in *TransitGatewayVPCAttachmentParameters) DeepCopy() *TransitGatewayVPCAttachmentParameters { if in == nil { return nil } - out := new(TransitGatewayRouteTablePropagationStatus) + out := new(TransitGatewayVPCAttachmentParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTableSpec) DeepCopyInto(out *TransitGatewayRouteTableSpec) { +func (in *TransitGatewayVPCAttachmentSpec) DeepCopyInto(out *TransitGatewayVPCAttachmentSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableSpec. -func (in *TransitGatewayRouteTableSpec) DeepCopy() *TransitGatewayRouteTableSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentSpec. +func (in *TransitGatewayVPCAttachmentSpec) DeepCopy() *TransitGatewayVPCAttachmentSpec { if in == nil { return nil } - out := new(TransitGatewayRouteTableSpec) + out := new(TransitGatewayVPCAttachmentSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayRouteTableStatus) DeepCopyInto(out *TransitGatewayRouteTableStatus) { +func (in *TransitGatewayVPCAttachmentStatus) DeepCopyInto(out *TransitGatewayVPCAttachmentStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteTableStatus. -func (in *TransitGatewayRouteTableStatus) DeepCopy() *TransitGatewayRouteTableStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentStatus. +func (in *TransitGatewayVPCAttachmentStatus) DeepCopy() *TransitGatewayVPCAttachmentStatus { if in == nil { return nil } - out := new(TransitGatewayRouteTableStatus) + out := new(TransitGatewayVPCAttachmentStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewaySpec) DeepCopyInto(out *TransitGatewaySpec) { +func (in *VPC) DeepCopyInto(out *VPC) { *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewaySpec. -func (in *TransitGatewaySpec) DeepCopy() *TransitGatewaySpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPC. +func (in *VPC) DeepCopy() *VPC { if in == nil { return nil } - out := new(TransitGatewaySpec) + out := new(VPC) in.DeepCopyInto(out) return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayStatus) DeepCopyInto(out *TransitGatewayStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayStatus. -func (in *TransitGatewayStatus) DeepCopy() *TransitGatewayStatus { - if in == nil { - return nil +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VPC) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } - out := new(TransitGatewayStatus) - in.DeepCopyInto(out) - return out + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayVPCAttachment) DeepCopyInto(out *TransitGatewayVPCAttachment) { +func (in *VPCEndpoint) DeepCopyInto(out *VPCEndpoint) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -6199,18 +6472,18 @@ func (in *TransitGatewayVPCAttachment) DeepCopyInto(out *TransitGatewayVPCAttach in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachment. -func (in *TransitGatewayVPCAttachment) DeepCopy() *TransitGatewayVPCAttachment { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCEndpoint. +func (in *VPCEndpoint) DeepCopy() *VPCEndpoint { if in == nil { return nil } - out := new(TransitGatewayVPCAttachment) + out := new(VPCEndpoint) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TransitGatewayVPCAttachment) DeepCopyObject() runtime.Object { +func (in *VPCEndpoint) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6218,26 +6491,31 @@ func (in *TransitGatewayVPCAttachment) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayVPCAttachmentAccepter) DeepCopyInto(out *TransitGatewayVPCAttachmentAccepter) { +func (in *VPCEndpointList) DeepCopyInto(out *VPCEndpointList) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]VPCEndpoint, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentAccepter. -func (in *TransitGatewayVPCAttachmentAccepter) DeepCopy() *TransitGatewayVPCAttachmentAccepter { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCEndpointList. +func (in *VPCEndpointList) DeepCopy() *VPCEndpointList { if in == nil { return nil } - out := new(TransitGatewayVPCAttachmentAccepter) + out := new(VPCEndpointList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TransitGatewayVPCAttachmentAccepter) DeepCopyObject() runtime.Object { +func (in *VPCEndpointList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6245,59 +6523,173 @@ func (in *TransitGatewayVPCAttachmentAccepter) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayVPCAttachmentAccepterList) DeepCopyInto(out *TransitGatewayVPCAttachmentAccepterList) { +func (in *VPCEndpointObservation) DeepCopyInto(out *VPCEndpointObservation) { *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]TransitGatewayVPCAttachmentAccepter, len(*in)) + if in.Arn != nil { + in, out := &in.Arn, &out.Arn + *out = new(string) + **out = **in + } + if in.CidrBlocks != nil { + in, out := &in.CidrBlocks, &out.CidrBlocks + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.DNSEntry != nil { + in, out := &in.DNSEntry, &out.DNSEntry + *out = make([]DNSEntryObservation, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.NetworkInterfaceIds != nil { + in, out := &in.NetworkInterfaceIds, &out.NetworkInterfaceIds + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.OwnerID != nil { + in, out := &in.OwnerID, &out.OwnerID + *out = new(string) + **out = **in + } + if in.PrefixListID != nil { + in, out := &in.PrefixListID, &out.PrefixListID + *out = new(string) + **out = **in + } + if in.RequesterManaged != nil { + in, out := &in.RequesterManaged, &out.RequesterManaged + *out = new(bool) + **out = **in + } + if in.State != nil { + in, out := &in.State, &out.State + *out = new(string) + **out = **in + } + if in.TagsAll != nil { + in, out := &in.TagsAll, &out.TagsAll + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentAccepterList. -func (in *TransitGatewayVPCAttachmentAccepterList) DeepCopy() *TransitGatewayVPCAttachmentAccepterList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCEndpointObservation. +func (in *VPCEndpointObservation) DeepCopy() *VPCEndpointObservation { if in == nil { return nil } - out := new(TransitGatewayVPCAttachmentAccepterList) + out := new(VPCEndpointObservation) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TransitGatewayVPCAttachmentAccepterList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VPCEndpointParameters) DeepCopyInto(out *VPCEndpointParameters) { + *out = *in + if in.AutoAccept != nil { + in, out := &in.AutoAccept, &out.AutoAccept + *out = new(bool) + **out = **in + } + if in.Policy != nil { + in, out := &in.Policy, &out.Policy + *out = new(string) + **out = **in + } + if in.PrivateDNSEnabled != nil { + in, out := &in.PrivateDNSEnabled, &out.PrivateDNSEnabled + *out = new(bool) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.RouteTableIdRefs != nil { + in, out := &in.RouteTableIdRefs, &out.RouteTableIdRefs + *out = make([]v1.Reference, len(*in)) + copy(*out, *in) + } + if in.RouteTableIdSelector != nil { + in, out := &in.RouteTableIdSelector, &out.RouteTableIdSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.RouteTableIds != nil { + in, out := &in.RouteTableIds, &out.RouteTableIds + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.SecurityGroupIdRefs != nil { + in, out := &in.SecurityGroupIdRefs, &out.SecurityGroupIdRefs + *out = make([]v1.Reference, len(*in)) + copy(*out, *in) + } + if in.SecurityGroupIdSelector != nil { + in, out := &in.SecurityGroupIdSelector, &out.SecurityGroupIdSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayVPCAttachmentAccepterObservation) DeepCopyInto(out *TransitGatewayVPCAttachmentAccepterObservation) { - *out = *in - if in.ApplianceModeSupport != nil { - in, out := &in.ApplianceModeSupport, &out.ApplianceModeSupport - *out = new(string) - **out = **in + if in.SecurityGroupIds != nil { + in, out := &in.SecurityGroupIds, &out.SecurityGroupIds + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } } - if in.DNSSupport != nil { - in, out := &in.DNSSupport, &out.DNSSupport + if in.ServiceName != nil { + in, out := &in.ServiceName, &out.ServiceName *out = new(string) **out = **in } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in + if in.SubnetIdRefs != nil { + in, out := &in.SubnetIdRefs, &out.SubnetIdRefs + *out = make([]v1.Reference, len(*in)) + copy(*out, *in) } - if in.IPv6Support != nil { - in, out := &in.IPv6Support, &out.IPv6Support - *out = new(string) - **out = **in + if in.SubnetIdSelector != nil { + in, out := &in.SubnetIdSelector, &out.SubnetIdSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) } if in.SubnetIds != nil { in, out := &in.SubnetIds, &out.SubnetIds @@ -6310,8 +6702,8 @@ func (in *TransitGatewayVPCAttachmentAccepterObservation) DeepCopyInto(out *Tran } } } - if in.TagsAll != nil { - in, out := &in.TagsAll, &out.TagsAll + if in.Tags != nil { + in, out := &in.Tags, &out.Tags *out = make(map[string]*string, len(*in)) for key, val := range *in { var outVal *string @@ -6325,8 +6717,8 @@ func (in *TransitGatewayVPCAttachmentAccepterObservation) DeepCopyInto(out *Tran (*out)[key] = outVal } } - if in.TransitGatewayID != nil { - in, out := &in.TransitGatewayID, &out.TransitGatewayID + if in.VPCEndpointType != nil { + in, out := &in.VPCEndpointType, &out.VPCEndpointType *out = new(string) **out = **in } @@ -6335,143 +6727,115 @@ func (in *TransitGatewayVPCAttachmentAccepterObservation) DeepCopyInto(out *Tran *out = new(string) **out = **in } - if in.VPCOwnerID != nil { - in, out := &in.VPCOwnerID, &out.VPCOwnerID - *out = new(string) + if in.VPCIDRef != nil { + in, out := &in.VPCIDRef, &out.VPCIDRef + *out = new(v1.Reference) **out = **in } + if in.VPCIDSelector != nil { + in, out := &in.VPCIDSelector, &out.VPCIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentAccepterObservation. -func (in *TransitGatewayVPCAttachmentAccepterObservation) DeepCopy() *TransitGatewayVPCAttachmentAccepterObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCEndpointParameters. +func (in *VPCEndpointParameters) DeepCopy() *VPCEndpointParameters { if in == nil { return nil } - out := new(TransitGatewayVPCAttachmentAccepterObservation) + out := new(VPCEndpointParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayVPCAttachmentAccepterParameters) DeepCopyInto(out *TransitGatewayVPCAttachmentAccepterParameters) { +func (in *VPCEndpointSpec) DeepCopyInto(out *VPCEndpointSpec) { *out = *in - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.Tags != nil { - in, out := &in.Tags, &out.Tags - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.TransitGatewayAttachmentID != nil { - in, out := &in.TransitGatewayAttachmentID, &out.TransitGatewayAttachmentID - *out = new(string) - **out = **in - } - if in.TransitGatewayAttachmentIDRef != nil { - in, out := &in.TransitGatewayAttachmentIDRef, &out.TransitGatewayAttachmentIDRef - *out = new(v1.Reference) - **out = **in - } - if in.TransitGatewayAttachmentIDSelector != nil { - in, out := &in.TransitGatewayAttachmentIDSelector, &out.TransitGatewayAttachmentIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.TransitGatewayDefaultRouteTableAssociation != nil { - in, out := &in.TransitGatewayDefaultRouteTableAssociation, &out.TransitGatewayDefaultRouteTableAssociation - *out = new(bool) - **out = **in - } - if in.TransitGatewayDefaultRouteTablePropagation != nil { - in, out := &in.TransitGatewayDefaultRouteTablePropagation, &out.TransitGatewayDefaultRouteTablePropagation - *out = new(bool) - **out = **in - } + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentAccepterParameters. -func (in *TransitGatewayVPCAttachmentAccepterParameters) DeepCopy() *TransitGatewayVPCAttachmentAccepterParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCEndpointSpec. +func (in *VPCEndpointSpec) DeepCopy() *VPCEndpointSpec { if in == nil { return nil } - out := new(TransitGatewayVPCAttachmentAccepterParameters) + out := new(VPCEndpointSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayVPCAttachmentAccepterSpec) DeepCopyInto(out *TransitGatewayVPCAttachmentAccepterSpec) { +func (in *VPCEndpointStatus) DeepCopyInto(out *VPCEndpointStatus) { *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentAccepterSpec. -func (in *TransitGatewayVPCAttachmentAccepterSpec) DeepCopy() *TransitGatewayVPCAttachmentAccepterSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCEndpointStatus. +func (in *VPCEndpointStatus) DeepCopy() *VPCEndpointStatus { if in == nil { return nil } - out := new(TransitGatewayVPCAttachmentAccepterSpec) + out := new(VPCEndpointStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayVPCAttachmentAccepterStatus) DeepCopyInto(out *TransitGatewayVPCAttachmentAccepterStatus) { +func (in *VPCIPv4CidrBlockAssociation) DeepCopyInto(out *VPCIPv4CidrBlockAssociation) { *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentAccepterStatus. -func (in *TransitGatewayVPCAttachmentAccepterStatus) DeepCopy() *TransitGatewayVPCAttachmentAccepterStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCIPv4CidrBlockAssociation. +func (in *VPCIPv4CidrBlockAssociation) DeepCopy() *VPCIPv4CidrBlockAssociation { if in == nil { return nil } - out := new(TransitGatewayVPCAttachmentAccepterStatus) + out := new(VPCIPv4CidrBlockAssociation) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VPCIPv4CidrBlockAssociation) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayVPCAttachmentList) DeepCopyInto(out *TransitGatewayVPCAttachmentList) { +func (in *VPCIPv4CidrBlockAssociationList) DeepCopyInto(out *VPCIPv4CidrBlockAssociationList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]TransitGatewayVPCAttachment, len(*in)) + *out = make([]VPCIPv4CidrBlockAssociation, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentList. -func (in *TransitGatewayVPCAttachmentList) DeepCopy() *TransitGatewayVPCAttachmentList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCIPv4CidrBlockAssociationList. +func (in *VPCIPv4CidrBlockAssociationList) DeepCopy() *VPCIPv4CidrBlockAssociationList { if in == nil { return nil } - out := new(TransitGatewayVPCAttachmentList) + out := new(VPCIPv4CidrBlockAssociationList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TransitGatewayVPCAttachmentList) DeepCopyObject() runtime.Object { +func (in *VPCIPv4CidrBlockAssociationList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6479,128 +6843,37 @@ func (in *TransitGatewayVPCAttachmentList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayVPCAttachmentObservation) DeepCopyInto(out *TransitGatewayVPCAttachmentObservation) { +func (in *VPCIPv4CidrBlockAssociationObservation) DeepCopyInto(out *VPCIPv4CidrBlockAssociationObservation) { *out = *in if in.ID != nil { in, out := &in.ID, &out.ID *out = new(string) **out = **in } - if in.TagsAll != nil { - in, out := &in.TagsAll, &out.TagsAll - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.VPCOwnerID != nil { - in, out := &in.VPCOwnerID, &out.VPCOwnerID - *out = new(string) - **out = **in - } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentObservation. -func (in *TransitGatewayVPCAttachmentObservation) DeepCopy() *TransitGatewayVPCAttachmentObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCIPv4CidrBlockAssociationObservation. +func (in *VPCIPv4CidrBlockAssociationObservation) DeepCopy() *VPCIPv4CidrBlockAssociationObservation { if in == nil { return nil } - out := new(TransitGatewayVPCAttachmentObservation) + out := new(VPCIPv4CidrBlockAssociationObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayVPCAttachmentParameters) DeepCopyInto(out *TransitGatewayVPCAttachmentParameters) { +func (in *VPCIPv4CidrBlockAssociationParameters) DeepCopyInto(out *VPCIPv4CidrBlockAssociationParameters) { *out = *in - if in.ApplianceModeSupport != nil { - in, out := &in.ApplianceModeSupport, &out.ApplianceModeSupport - *out = new(string) - **out = **in - } - if in.DNSSupport != nil { - in, out := &in.DNSSupport, &out.DNSSupport - *out = new(string) - **out = **in - } - if in.IPv6Support != nil { - in, out := &in.IPv6Support, &out.IPv6Support + if in.CidrBlock != nil { + in, out := &in.CidrBlock, &out.CidrBlock *out = new(string) **out = **in } if in.Region != nil { in, out := &in.Region, &out.Region *out = new(string) - **out = **in - } - if in.SubnetIdRefs != nil { - in, out := &in.SubnetIdRefs, &out.SubnetIdRefs - *out = make([]v1.Reference, len(*in)) - copy(*out, *in) - } - if in.SubnetIdSelector != nil { - in, out := &in.SubnetIdSelector, &out.SubnetIdSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.SubnetIds != nil { - in, out := &in.SubnetIds, &out.SubnetIds - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } - } - if in.Tags != nil { - in, out := &in.Tags, &out.Tags - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.TransitGatewayDefaultRouteTableAssociation != nil { - in, out := &in.TransitGatewayDefaultRouteTableAssociation, &out.TransitGatewayDefaultRouteTableAssociation - *out = new(bool) - **out = **in - } - if in.TransitGatewayDefaultRouteTablePropagation != nil { - in, out := &in.TransitGatewayDefaultRouteTablePropagation, &out.TransitGatewayDefaultRouteTablePropagation - *out = new(bool) - **out = **in - } - if in.TransitGatewayID != nil { - in, out := &in.TransitGatewayID, &out.TransitGatewayID - *out = new(string) - **out = **in - } - if in.TransitGatewayIDRef != nil { - in, out := &in.TransitGatewayIDRef, &out.TransitGatewayIDRef - *out = new(v1.Reference) - **out = **in - } - if in.TransitGatewayIDSelector != nil { - in, out := &in.TransitGatewayIDSelector, &out.TransitGatewayIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) + **out = **in } if in.VPCID != nil { in, out := &in.VPCID, &out.VPCID @@ -6619,130 +6892,76 @@ func (in *TransitGatewayVPCAttachmentParameters) DeepCopyInto(out *TransitGatewa } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentParameters. -func (in *TransitGatewayVPCAttachmentParameters) DeepCopy() *TransitGatewayVPCAttachmentParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCIPv4CidrBlockAssociationParameters. +func (in *VPCIPv4CidrBlockAssociationParameters) DeepCopy() *VPCIPv4CidrBlockAssociationParameters { if in == nil { return nil } - out := new(TransitGatewayVPCAttachmentParameters) + out := new(VPCIPv4CidrBlockAssociationParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayVPCAttachmentSpec) DeepCopyInto(out *TransitGatewayVPCAttachmentSpec) { +func (in *VPCIPv4CidrBlockAssociationSpec) DeepCopyInto(out *VPCIPv4CidrBlockAssociationSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentSpec. -func (in *TransitGatewayVPCAttachmentSpec) DeepCopy() *TransitGatewayVPCAttachmentSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCIPv4CidrBlockAssociationSpec. +func (in *VPCIPv4CidrBlockAssociationSpec) DeepCopy() *VPCIPv4CidrBlockAssociationSpec { if in == nil { return nil } - out := new(TransitGatewayVPCAttachmentSpec) + out := new(VPCIPv4CidrBlockAssociationSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TransitGatewayVPCAttachmentStatus) DeepCopyInto(out *TransitGatewayVPCAttachmentStatus) { +func (in *VPCIPv4CidrBlockAssociationStatus) DeepCopyInto(out *VPCIPv4CidrBlockAssociationStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayVPCAttachmentStatus. -func (in *TransitGatewayVPCAttachmentStatus) DeepCopy() *TransitGatewayVPCAttachmentStatus { - if in == nil { - return nil - } - out := new(TransitGatewayVPCAttachmentStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VPC) DeepCopyInto(out *VPC) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPC. -func (in *VPC) DeepCopy() *VPC { - if in == nil { - return nil - } - out := new(VPC) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VPC) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VPCEndpoint) DeepCopyInto(out *VPCEndpoint) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCEndpoint. -func (in *VPCEndpoint) DeepCopy() *VPCEndpoint { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCIPv4CidrBlockAssociationStatus. +func (in *VPCIPv4CidrBlockAssociationStatus) DeepCopy() *VPCIPv4CidrBlockAssociationStatus { if in == nil { return nil } - out := new(VPCEndpoint) + out := new(VPCIPv4CidrBlockAssociationStatus) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VPCEndpoint) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VPCEndpointList) DeepCopyInto(out *VPCEndpointList) { +func (in *VPCList) DeepCopyInto(out *VPCList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]VPCEndpoint, len(*in)) + *out = make([]VPC, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCEndpointList. -func (in *VPCEndpointList) DeepCopy() *VPCEndpointList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCList. +func (in *VPCList) DeepCopy() *VPCList { if in == nil { return nil } - out := new(VPCEndpointList) + out := new(VPCList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VPCEndpointList) DeepCopyObject() runtime.Object { +func (in *VPCList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -6750,64 +6969,55 @@ func (in *VPCEndpointList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VPCEndpointObservation) DeepCopyInto(out *VPCEndpointObservation) { +func (in *VPCObservation) DeepCopyInto(out *VPCObservation) { *out = *in if in.Arn != nil { in, out := &in.Arn, &out.Arn *out = new(string) **out = **in } - if in.CidrBlocks != nil { - in, out := &in.CidrBlocks, &out.CidrBlocks - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } + if in.DHCPOptionsID != nil { + in, out := &in.DHCPOptionsID, &out.DHCPOptionsID + *out = new(string) + **out = **in } - if in.DNSEntry != nil { - in, out := &in.DNSEntry, &out.DNSEntry - *out = make([]DNSEntryObservation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + if in.DefaultNetworkACLID != nil { + in, out := &in.DefaultNetworkACLID, &out.DefaultNetworkACLID + *out = new(string) + **out = **in + } + if in.DefaultRouteTableID != nil { + in, out := &in.DefaultRouteTableID, &out.DefaultRouteTableID + *out = new(string) + **out = **in + } + if in.DefaultSecurityGroupID != nil { + in, out := &in.DefaultSecurityGroupID, &out.DefaultSecurityGroupID + *out = new(string) + **out = **in } if in.ID != nil { in, out := &in.ID, &out.ID *out = new(string) **out = **in } - if in.NetworkInterfaceIds != nil { - in, out := &in.NetworkInterfaceIds, &out.NetworkInterfaceIds - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } - } - if in.OwnerID != nil { - in, out := &in.OwnerID, &out.OwnerID + if in.IPv6AssociationID != nil { + in, out := &in.IPv6AssociationID, &out.IPv6AssociationID *out = new(string) **out = **in } - if in.PrefixListID != nil { - in, out := &in.PrefixListID, &out.PrefixListID + if in.IPv6CidrBlock != nil { + in, out := &in.IPv6CidrBlock, &out.IPv6CidrBlock *out = new(string) **out = **in } - if in.RequesterManaged != nil { - in, out := &in.RequesterManaged, &out.RequesterManaged - *out = new(bool) + if in.MainRouteTableID != nil { + in, out := &in.MainRouteTableID, &out.MainRouteTableID + *out = new(string) **out = **in } - if in.State != nil { - in, out := &in.State, &out.State + if in.OwnerID != nil { + in, out := &in.OwnerID, &out.OwnerID *out = new(string) **out = **in } @@ -6828,106 +7038,58 @@ func (in *VPCEndpointObservation) DeepCopyInto(out *VPCEndpointObservation) { } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCEndpointObservation. -func (in *VPCEndpointObservation) DeepCopy() *VPCEndpointObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCObservation. +func (in *VPCObservation) DeepCopy() *VPCObservation { if in == nil { return nil } - out := new(VPCEndpointObservation) + out := new(VPCObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VPCEndpointParameters) DeepCopyInto(out *VPCEndpointParameters) { +func (in *VPCParameters) DeepCopyInto(out *VPCParameters) { *out = *in - if in.AutoAccept != nil { - in, out := &in.AutoAccept, &out.AutoAccept + if in.AssignGeneratedIPv6CidrBlock != nil { + in, out := &in.AssignGeneratedIPv6CidrBlock, &out.AssignGeneratedIPv6CidrBlock *out = new(bool) **out = **in } - if in.Policy != nil { - in, out := &in.Policy, &out.Policy + if in.CidrBlock != nil { + in, out := &in.CidrBlock, &out.CidrBlock *out = new(string) **out = **in } - if in.PrivateDNSEnabled != nil { - in, out := &in.PrivateDNSEnabled, &out.PrivateDNSEnabled + if in.EnableClassiclink != nil { + in, out := &in.EnableClassiclink, &out.EnableClassiclink *out = new(bool) **out = **in } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) + if in.EnableClassiclinkDNSSupport != nil { + in, out := &in.EnableClassiclinkDNSSupport, &out.EnableClassiclinkDNSSupport + *out = new(bool) **out = **in } - if in.RouteTableIdRefs != nil { - in, out := &in.RouteTableIdRefs, &out.RouteTableIdRefs - *out = make([]v1.Reference, len(*in)) - copy(*out, *in) - } - if in.RouteTableIdSelector != nil { - in, out := &in.RouteTableIdSelector, &out.RouteTableIdSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.RouteTableIds != nil { - in, out := &in.RouteTableIds, &out.RouteTableIds - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } - } - if in.SecurityGroupIdRefs != nil { - in, out := &in.SecurityGroupIdRefs, &out.SecurityGroupIdRefs - *out = make([]v1.Reference, len(*in)) - copy(*out, *in) - } - if in.SecurityGroupIdSelector != nil { - in, out := &in.SecurityGroupIdSelector, &out.SecurityGroupIdSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) + if in.EnableDNSHostnames != nil { + in, out := &in.EnableDNSHostnames, &out.EnableDNSHostnames + *out = new(bool) + **out = **in } - if in.SecurityGroupIds != nil { - in, out := &in.SecurityGroupIds, &out.SecurityGroupIds - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } + if in.EnableDNSSupport != nil { + in, out := &in.EnableDNSSupport, &out.EnableDNSSupport + *out = new(bool) + **out = **in } - if in.ServiceName != nil { - in, out := &in.ServiceName, &out.ServiceName + if in.InstanceTenancy != nil { + in, out := &in.InstanceTenancy, &out.InstanceTenancy *out = new(string) **out = **in } - if in.SubnetIdRefs != nil { - in, out := &in.SubnetIdRefs, &out.SubnetIdRefs - *out = make([]v1.Reference, len(*in)) - copy(*out, *in) - } - if in.SubnetIdSelector != nil { - in, out := &in.SubnetIdSelector, &out.SubnetIdSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.SubnetIds != nil { - in, out := &in.SubnetIds, &out.SubnetIds - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in } if in.Tags != nil { in, out := &in.Tags, &out.Tags @@ -6944,98 +7106,143 @@ func (in *VPCEndpointParameters) DeepCopyInto(out *VPCEndpointParameters) { (*out)[key] = outVal } } - if in.VPCEndpointType != nil { - in, out := &in.VPCEndpointType, &out.VPCEndpointType - *out = new(string) - **out = **in - } - if in.VPCID != nil { - in, out := &in.VPCID, &out.VPCID - *out = new(string) - **out = **in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCParameters. +func (in *VPCParameters) DeepCopy() *VPCParameters { + if in == nil { + return nil } - if in.VPCIDRef != nil { - in, out := &in.VPCIDRef, &out.VPCIDRef - *out = new(v1.Reference) - **out = **in + out := new(VPCParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VPCPeeringConnection) DeepCopyInto(out *VPCPeeringConnection) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCPeeringConnection. +func (in *VPCPeeringConnection) DeepCopy() *VPCPeeringConnection { + if in == nil { + return nil } - if in.VPCIDSelector != nil { - in, out := &in.VPCIDSelector, &out.VPCIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) + out := new(VPCPeeringConnection) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VPCPeeringConnection) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c } + return nil } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCEndpointParameters. -func (in *VPCEndpointParameters) DeepCopy() *VPCEndpointParameters { +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VPCPeeringConnectionAccepter) DeepCopyInto(out *VPCPeeringConnectionAccepter) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCPeeringConnectionAccepter. +func (in *VPCPeeringConnectionAccepter) DeepCopy() *VPCPeeringConnectionAccepter { if in == nil { return nil } - out := new(VPCEndpointParameters) + out := new(VPCPeeringConnectionAccepter) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VPCPeeringConnectionAccepter) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VPCEndpointSpec) DeepCopyInto(out *VPCEndpointSpec) { +func (in *VPCPeeringConnectionAccepterAccepterObservation) DeepCopyInto(out *VPCPeeringConnectionAccepterAccepterObservation) { *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCEndpointSpec. -func (in *VPCEndpointSpec) DeepCopy() *VPCEndpointSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCPeeringConnectionAccepterAccepterObservation. +func (in *VPCPeeringConnectionAccepterAccepterObservation) DeepCopy() *VPCPeeringConnectionAccepterAccepterObservation { if in == nil { return nil } - out := new(VPCEndpointSpec) + out := new(VPCPeeringConnectionAccepterAccepterObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VPCEndpointStatus) DeepCopyInto(out *VPCEndpointStatus) { +func (in *VPCPeeringConnectionAccepterAccepterParameters) DeepCopyInto(out *VPCPeeringConnectionAccepterAccepterParameters) { *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) + if in.AllowClassicLinkToRemoteVPC != nil { + in, out := &in.AllowClassicLinkToRemoteVPC, &out.AllowClassicLinkToRemoteVPC + *out = new(bool) + **out = **in + } + if in.AllowRemoteVPCDNSResolution != nil { + in, out := &in.AllowRemoteVPCDNSResolution, &out.AllowRemoteVPCDNSResolution + *out = new(bool) + **out = **in + } + if in.AllowVPCToRemoteClassicLink != nil { + in, out := &in.AllowVPCToRemoteClassicLink, &out.AllowVPCToRemoteClassicLink + *out = new(bool) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCEndpointStatus. -func (in *VPCEndpointStatus) DeepCopy() *VPCEndpointStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCPeeringConnectionAccepterAccepterParameters. +func (in *VPCPeeringConnectionAccepterAccepterParameters) DeepCopy() *VPCPeeringConnectionAccepterAccepterParameters { if in == nil { return nil } - out := new(VPCEndpointStatus) + out := new(VPCPeeringConnectionAccepterAccepterParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VPCList) DeepCopyInto(out *VPCList) { +func (in *VPCPeeringConnectionAccepterList) DeepCopyInto(out *VPCPeeringConnectionAccepterList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]VPC, len(*in)) + *out = make([]VPCPeeringConnectionAccepter, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCList. -func (in *VPCList) DeepCopy() *VPCList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCPeeringConnectionAccepterList. +func (in *VPCPeeringConnectionAccepterList) DeepCopy() *VPCPeeringConnectionAccepterList { if in == nil { return nil } - out := new(VPCList) + out := new(VPCPeeringConnectionAccepterList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VPCList) DeepCopyObject() runtime.Object { +func (in *VPCPeeringConnectionAccepterList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -7043,30 +7250,10 @@ func (in *VPCList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VPCObservation) DeepCopyInto(out *VPCObservation) { +func (in *VPCPeeringConnectionAccepterObservation) DeepCopyInto(out *VPCPeeringConnectionAccepterObservation) { *out = *in - if in.Arn != nil { - in, out := &in.Arn, &out.Arn - *out = new(string) - **out = **in - } - if in.DHCPOptionsID != nil { - in, out := &in.DHCPOptionsID, &out.DHCPOptionsID - *out = new(string) - **out = **in - } - if in.DefaultNetworkACLID != nil { - in, out := &in.DefaultNetworkACLID, &out.DefaultNetworkACLID - *out = new(string) - **out = **in - } - if in.DefaultRouteTableID != nil { - in, out := &in.DefaultRouteTableID, &out.DefaultRouteTableID - *out = new(string) - **out = **in - } - if in.DefaultSecurityGroupID != nil { - in, out := &in.DefaultSecurityGroupID, &out.DefaultSecurityGroupID + if in.AcceptStatus != nil { + in, out := &in.AcceptStatus, &out.AcceptStatus *out = new(string) **out = **in } @@ -7075,23 +7262,18 @@ func (in *VPCObservation) DeepCopyInto(out *VPCObservation) { *out = new(string) **out = **in } - if in.IPv6AssociationID != nil { - in, out := &in.IPv6AssociationID, &out.IPv6AssociationID - *out = new(string) - **out = **in - } - if in.IPv6CidrBlock != nil { - in, out := &in.IPv6CidrBlock, &out.IPv6CidrBlock + if in.PeerOwnerID != nil { + in, out := &in.PeerOwnerID, &out.PeerOwnerID *out = new(string) **out = **in } - if in.MainRouteTableID != nil { - in, out := &in.MainRouteTableID, &out.MainRouteTableID + if in.PeerRegion != nil { + in, out := &in.PeerRegion, &out.PeerRegion *out = new(string) **out = **in } - if in.OwnerID != nil { - in, out := &in.OwnerID, &out.OwnerID + if in.PeerVPCID != nil { + in, out := &in.PeerVPCID, &out.PeerVPCID *out = new(string) **out = **in } @@ -7110,61 +7292,50 @@ func (in *VPCObservation) DeepCopyInto(out *VPCObservation) { (*out)[key] = outVal } } + if in.VPCID != nil { + in, out := &in.VPCID, &out.VPCID + *out = new(string) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCObservation. -func (in *VPCObservation) DeepCopy() *VPCObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCPeeringConnectionAccepterObservation. +func (in *VPCPeeringConnectionAccepterObservation) DeepCopy() *VPCPeeringConnectionAccepterObservation { if in == nil { return nil } - out := new(VPCObservation) + out := new(VPCPeeringConnectionAccepterObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VPCParameters) DeepCopyInto(out *VPCParameters) { +func (in *VPCPeeringConnectionAccepterParameters) DeepCopyInto(out *VPCPeeringConnectionAccepterParameters) { *out = *in - if in.AssignGeneratedIPv6CidrBlock != nil { - in, out := &in.AssignGeneratedIPv6CidrBlock, &out.AssignGeneratedIPv6CidrBlock - *out = new(bool) - **out = **in - } - if in.CidrBlock != nil { - in, out := &in.CidrBlock, &out.CidrBlock - *out = new(string) - **out = **in - } - if in.EnableClassiclink != nil { - in, out := &in.EnableClassiclink, &out.EnableClassiclink - *out = new(bool) - **out = **in - } - if in.EnableClassiclinkDNSSupport != nil { - in, out := &in.EnableClassiclinkDNSSupport, &out.EnableClassiclinkDNSSupport - *out = new(bool) - **out = **in - } - if in.EnableDNSHostnames != nil { - in, out := &in.EnableDNSHostnames, &out.EnableDNSHostnames - *out = new(bool) - **out = **in + if in.Accepter != nil { + in, out := &in.Accepter, &out.Accepter + *out = make([]VPCPeeringConnectionAccepterAccepterParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } - if in.EnableDNSSupport != nil { - in, out := &in.EnableDNSSupport, &out.EnableDNSSupport + if in.AutoAccept != nil { + in, out := &in.AutoAccept, &out.AutoAccept *out = new(bool) **out = **in } - if in.InstanceTenancy != nil { - in, out := &in.InstanceTenancy, &out.InstanceTenancy - *out = new(string) - **out = **in - } if in.Region != nil { in, out := &in.Region, &out.Region *out = new(string) **out = **in } + if in.Requester != nil { + in, out := &in.Requester, &out.Requester + *out = make([]VPCPeeringConnectionAccepterRequesterParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } if in.Tags != nil { in, out := &in.Tags, &out.Tags *out = make(map[string]*string, len(*in)) @@ -7180,43 +7351,100 @@ func (in *VPCParameters) DeepCopyInto(out *VPCParameters) { (*out)[key] = outVal } } + if in.VPCPeeringConnectionID != nil { + in, out := &in.VPCPeeringConnectionID, &out.VPCPeeringConnectionID + *out = new(string) + **out = **in + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCParameters. -func (in *VPCParameters) DeepCopy() *VPCParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCPeeringConnectionAccepterParameters. +func (in *VPCPeeringConnectionAccepterParameters) DeepCopy() *VPCPeeringConnectionAccepterParameters { if in == nil { return nil } - out := new(VPCParameters) + out := new(VPCPeeringConnectionAccepterParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VPCPeeringConnection) DeepCopyInto(out *VPCPeeringConnection) { +func (in *VPCPeeringConnectionAccepterRequesterObservation) DeepCopyInto(out *VPCPeeringConnectionAccepterRequesterObservation) { *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCPeeringConnection. -func (in *VPCPeeringConnection) DeepCopy() *VPCPeeringConnection { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCPeeringConnectionAccepterRequesterObservation. +func (in *VPCPeeringConnectionAccepterRequesterObservation) DeepCopy() *VPCPeeringConnectionAccepterRequesterObservation { if in == nil { return nil } - out := new(VPCPeeringConnection) + out := new(VPCPeeringConnectionAccepterRequesterObservation) in.DeepCopyInto(out) return out } -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VPCPeeringConnection) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VPCPeeringConnectionAccepterRequesterParameters) DeepCopyInto(out *VPCPeeringConnectionAccepterRequesterParameters) { + *out = *in + if in.AllowClassicLinkToRemoteVPC != nil { + in, out := &in.AllowClassicLinkToRemoteVPC, &out.AllowClassicLinkToRemoteVPC + *out = new(bool) + **out = **in } - return nil + if in.AllowRemoteVPCDNSResolution != nil { + in, out := &in.AllowRemoteVPCDNSResolution, &out.AllowRemoteVPCDNSResolution + *out = new(bool) + **out = **in + } + if in.AllowVPCToRemoteClassicLink != nil { + in, out := &in.AllowVPCToRemoteClassicLink, &out.AllowVPCToRemoteClassicLink + *out = new(bool) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCPeeringConnectionAccepterRequesterParameters. +func (in *VPCPeeringConnectionAccepterRequesterParameters) DeepCopy() *VPCPeeringConnectionAccepterRequesterParameters { + if in == nil { + return nil + } + out := new(VPCPeeringConnectionAccepterRequesterParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VPCPeeringConnectionAccepterSpec) DeepCopyInto(out *VPCPeeringConnectionAccepterSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCPeeringConnectionAccepterSpec. +func (in *VPCPeeringConnectionAccepterSpec) DeepCopy() *VPCPeeringConnectionAccepterSpec { + if in == nil { + return nil + } + out := new(VPCPeeringConnectionAccepterSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VPCPeeringConnectionAccepterStatus) DeepCopyInto(out *VPCPeeringConnectionAccepterStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCPeeringConnectionAccepterStatus. +func (in *VPCPeeringConnectionAccepterStatus) DeepCopy() *VPCPeeringConnectionAccepterStatus { + if in == nil { + return nil + } + out := new(VPCPeeringConnectionAccepterStatus) + in.DeepCopyInto(out) + return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. diff --git a/apis/ec2/v1alpha1/zz_generated.managed.go b/apis/ec2/v1alpha1/zz_generated.managed.go index acf0c2851..926e18232 100644 --- a/apis/ec2/v1alpha1/zz_generated.managed.go +++ b/apis/ec2/v1alpha1/zz_generated.managed.go @@ -19,115 +19,115 @@ package v1alpha1 import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" -// GetCondition of this ElasticIP. -func (mg *ElasticIP) GetCondition(ct xpv1.ConditionType) xpv1.Condition { +// GetCondition of this EBSVolume. +func (mg *EBSVolume) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) } -// GetDeletionPolicy of this ElasticIP. -func (mg *ElasticIP) GetDeletionPolicy() xpv1.DeletionPolicy { +// GetDeletionPolicy of this EBSVolume. +func (mg *EBSVolume) GetDeletionPolicy() xpv1.DeletionPolicy { return mg.Spec.DeletionPolicy } -// GetProviderConfigReference of this ElasticIP. -func (mg *ElasticIP) GetProviderConfigReference() *xpv1.Reference { +// GetProviderConfigReference of this EBSVolume. +func (mg *EBSVolume) GetProviderConfigReference() *xpv1.Reference { return mg.Spec.ProviderConfigReference } /* -GetProviderReference of this ElasticIP. +GetProviderReference of this EBSVolume. Deprecated: Use GetProviderConfigReference. */ -func (mg *ElasticIP) GetProviderReference() *xpv1.Reference { +func (mg *EBSVolume) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } -// GetWriteConnectionSecretToReference of this ElasticIP. -func (mg *ElasticIP) GetWriteConnectionSecretToReference() *xpv1.SecretReference { +// GetWriteConnectionSecretToReference of this EBSVolume. +func (mg *EBSVolume) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference } -// SetConditions of this ElasticIP. -func (mg *ElasticIP) SetConditions(c ...xpv1.Condition) { +// SetConditions of this EBSVolume. +func (mg *EBSVolume) SetConditions(c ...xpv1.Condition) { mg.Status.SetConditions(c...) } -// SetDeletionPolicy of this ElasticIP. -func (mg *ElasticIP) SetDeletionPolicy(r xpv1.DeletionPolicy) { +// SetDeletionPolicy of this EBSVolume. +func (mg *EBSVolume) SetDeletionPolicy(r xpv1.DeletionPolicy) { mg.Spec.DeletionPolicy = r } -// SetProviderConfigReference of this ElasticIP. -func (mg *ElasticIP) SetProviderConfigReference(r *xpv1.Reference) { +// SetProviderConfigReference of this EBSVolume. +func (mg *EBSVolume) SetProviderConfigReference(r *xpv1.Reference) { mg.Spec.ProviderConfigReference = r } /* -SetProviderReference of this ElasticIP. +SetProviderReference of this EBSVolume. Deprecated: Use SetProviderConfigReference. */ -func (mg *ElasticIP) SetProviderReference(r *xpv1.Reference) { +func (mg *EBSVolume) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } -// SetWriteConnectionSecretToReference of this ElasticIP. -func (mg *ElasticIP) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { +// SetWriteConnectionSecretToReference of this EBSVolume. +func (mg *EBSVolume) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } -// GetCondition of this IPv4CIDRBlockAssociation. -func (mg *IPv4CIDRBlockAssociation) GetCondition(ct xpv1.ConditionType) xpv1.Condition { +// GetCondition of this EIP. +func (mg *EIP) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) } -// GetDeletionPolicy of this IPv4CIDRBlockAssociation. -func (mg *IPv4CIDRBlockAssociation) GetDeletionPolicy() xpv1.DeletionPolicy { +// GetDeletionPolicy of this EIP. +func (mg *EIP) GetDeletionPolicy() xpv1.DeletionPolicy { return mg.Spec.DeletionPolicy } -// GetProviderConfigReference of this IPv4CIDRBlockAssociation. -func (mg *IPv4CIDRBlockAssociation) GetProviderConfigReference() *xpv1.Reference { +// GetProviderConfigReference of this EIP. +func (mg *EIP) GetProviderConfigReference() *xpv1.Reference { return mg.Spec.ProviderConfigReference } /* -GetProviderReference of this IPv4CIDRBlockAssociation. +GetProviderReference of this EIP. Deprecated: Use GetProviderConfigReference. */ -func (mg *IPv4CIDRBlockAssociation) GetProviderReference() *xpv1.Reference { +func (mg *EIP) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } -// GetWriteConnectionSecretToReference of this IPv4CIDRBlockAssociation. -func (mg *IPv4CIDRBlockAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { +// GetWriteConnectionSecretToReference of this EIP. +func (mg *EIP) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference } -// SetConditions of this IPv4CIDRBlockAssociation. -func (mg *IPv4CIDRBlockAssociation) SetConditions(c ...xpv1.Condition) { +// SetConditions of this EIP. +func (mg *EIP) SetConditions(c ...xpv1.Condition) { mg.Status.SetConditions(c...) } -// SetDeletionPolicy of this IPv4CIDRBlockAssociation. -func (mg *IPv4CIDRBlockAssociation) SetDeletionPolicy(r xpv1.DeletionPolicy) { +// SetDeletionPolicy of this EIP. +func (mg *EIP) SetDeletionPolicy(r xpv1.DeletionPolicy) { mg.Spec.DeletionPolicy = r } -// SetProviderConfigReference of this IPv4CIDRBlockAssociation. -func (mg *IPv4CIDRBlockAssociation) SetProviderConfigReference(r *xpv1.Reference) { +// SetProviderConfigReference of this EIP. +func (mg *EIP) SetProviderConfigReference(r *xpv1.Reference) { mg.Spec.ProviderConfigReference = r } /* -SetProviderReference of this IPv4CIDRBlockAssociation. +SetProviderReference of this EIP. Deprecated: Use SetProviderConfigReference. */ -func (mg *IPv4CIDRBlockAssociation) SetProviderReference(r *xpv1.Reference) { +func (mg *EIP) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } -// SetWriteConnectionSecretToReference of this IPv4CIDRBlockAssociation. -func (mg *IPv4CIDRBlockAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { +// SetWriteConnectionSecretToReference of this EIP. +func (mg *EIP) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } @@ -299,62 +299,6 @@ func (mg *NetworkInterface) SetWriteConnectionSecretToReference(r *xpv1.SecretRe mg.Spec.WriteConnectionSecretToReference = r } -// GetCondition of this PeeringConnectionAccepter. -func (mg *PeeringConnectionAccepter) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this PeeringConnectionAccepter. -func (mg *PeeringConnectionAccepter) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this PeeringConnectionAccepter. -func (mg *PeeringConnectionAccepter) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this PeeringConnectionAccepter. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *PeeringConnectionAccepter) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this PeeringConnectionAccepter. -func (mg *PeeringConnectionAccepter) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this PeeringConnectionAccepter. -func (mg *PeeringConnectionAccepter) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this PeeringConnectionAccepter. -func (mg *PeeringConnectionAccepter) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this PeeringConnectionAccepter. -func (mg *PeeringConnectionAccepter) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this PeeringConnectionAccepter. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *PeeringConnectionAccepter) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this PeeringConnectionAccepter. -func (mg *PeeringConnectionAccepter) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - // GetCondition of this Route. func (mg *Route) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) @@ -1195,6 +1139,62 @@ func (mg *VPCEndpoint) SetWriteConnectionSecretToReference(r *xpv1.SecretReferen mg.Spec.WriteConnectionSecretToReference = r } +// GetCondition of this VPCIPv4CidrBlockAssociation. +func (mg *VPCIPv4CidrBlockAssociation) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this VPCIPv4CidrBlockAssociation. +func (mg *VPCIPv4CidrBlockAssociation) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this VPCIPv4CidrBlockAssociation. +func (mg *VPCIPv4CidrBlockAssociation) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this VPCIPv4CidrBlockAssociation. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *VPCIPv4CidrBlockAssociation) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this VPCIPv4CidrBlockAssociation. +func (mg *VPCIPv4CidrBlockAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this VPCIPv4CidrBlockAssociation. +func (mg *VPCIPv4CidrBlockAssociation) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this VPCIPv4CidrBlockAssociation. +func (mg *VPCIPv4CidrBlockAssociation) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this VPCIPv4CidrBlockAssociation. +func (mg *VPCIPv4CidrBlockAssociation) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this VPCIPv4CidrBlockAssociation. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *VPCIPv4CidrBlockAssociation) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this VPCIPv4CidrBlockAssociation. +func (mg *VPCIPv4CidrBlockAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + // GetCondition of this VPCPeeringConnection. func (mg *VPCPeeringConnection) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) @@ -1250,3 +1250,59 @@ func (mg *VPCPeeringConnection) SetProviderReference(r *xpv1.Reference) { func (mg *VPCPeeringConnection) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } + +// GetCondition of this VPCPeeringConnectionAccepter. +func (mg *VPCPeeringConnectionAccepter) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this VPCPeeringConnectionAccepter. +func (mg *VPCPeeringConnectionAccepter) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this VPCPeeringConnectionAccepter. +func (mg *VPCPeeringConnectionAccepter) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this VPCPeeringConnectionAccepter. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *VPCPeeringConnectionAccepter) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this VPCPeeringConnectionAccepter. +func (mg *VPCPeeringConnectionAccepter) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this VPCPeeringConnectionAccepter. +func (mg *VPCPeeringConnectionAccepter) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this VPCPeeringConnectionAccepter. +func (mg *VPCPeeringConnectionAccepter) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this VPCPeeringConnectionAccepter. +func (mg *VPCPeeringConnectionAccepter) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this VPCPeeringConnectionAccepter. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *VPCPeeringConnectionAccepter) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this VPCPeeringConnectionAccepter. +func (mg *VPCPeeringConnectionAccepter) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} diff --git a/apis/ec2/v1alpha1/zz_generated.managedlist.go b/apis/ec2/v1alpha1/zz_generated.managedlist.go index 6e610694e..965d76cf3 100644 --- a/apis/ec2/v1alpha1/zz_generated.managedlist.go +++ b/apis/ec2/v1alpha1/zz_generated.managedlist.go @@ -19,8 +19,8 @@ package v1alpha1 import resource "github.com/crossplane/crossplane-runtime/pkg/resource" -// GetItems of this ElasticIPList. -func (l *ElasticIPList) GetItems() []resource.Managed { +// GetItems of this EBSVolumeList. +func (l *EBSVolumeList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] @@ -28,8 +28,8 @@ func (l *ElasticIPList) GetItems() []resource.Managed { return items } -// GetItems of this IPv4CIDRBlockAssociationList. -func (l *IPv4CIDRBlockAssociationList) GetItems() []resource.Managed { +// GetItems of this EIPList. +func (l *EIPList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] @@ -64,15 +64,6 @@ func (l *NetworkInterfaceList) GetItems() []resource.Managed { return items } -// GetItems of this PeeringConnectionAccepterList. -func (l *PeeringConnectionAccepterList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} - // GetItems of this RouteList. func (l *RouteList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) @@ -199,6 +190,15 @@ func (l *VPCEndpointList) GetItems() []resource.Managed { return items } +// GetItems of this VPCIPv4CidrBlockAssociationList. +func (l *VPCIPv4CidrBlockAssociationList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + // GetItems of this VPCList. func (l *VPCList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) @@ -208,6 +208,15 @@ func (l *VPCList) GetItems() []resource.Managed { return items } +// GetItems of this VPCPeeringConnectionAccepterList. +func (l *VPCPeeringConnectionAccepterList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + // GetItems of this VPCPeeringConnectionList. func (l *VPCPeeringConnectionList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) diff --git a/apis/ec2/v1alpha1/zz_generated.resolvers.go b/apis/ec2/v1alpha1/zz_generated.resolvers.go index 5c2577e33..8b2779ad6 100644 --- a/apis/ec2/v1alpha1/zz_generated.resolvers.go +++ b/apis/ec2/v1alpha1/zz_generated.resolvers.go @@ -27,8 +27,34 @@ import ( client "sigs.k8s.io/controller-runtime/pkg/client" ) -// ResolveReferences of this ElasticIP. -func (mg *ElasticIP) ResolveReferences(ctx context.Context, c client.Reader) error { +// ResolveReferences of this EBSVolume. +func (mg *EBSVolume) ResolveReferences(ctx context.Context, c client.Reader) error { + r := reference.NewAPIResolver(c, mg) + + var rsp reference.ResolutionResponse + var err error + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.KMSKeyID), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.KMSKeyIDRef, + Selector: mg.Spec.ForProvider.KMSKeyIDSelector, + To: reference.To{ + List: &v1alpha1.KeyList{}, + Managed: &v1alpha1.Key{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.KMSKeyID") + } + mg.Spec.ForProvider.KMSKeyID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.KMSKeyIDRef = rsp.ResolvedReference + + return nil +} + +// ResolveReferences of this EIP. +func (mg *EIP) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse @@ -69,32 +95,6 @@ func (mg *ElasticIP) ResolveReferences(ctx context.Context, c client.Reader) err return nil } -// ResolveReferences of this IPv4CIDRBlockAssociation. -func (mg *IPv4CIDRBlockAssociation) ResolveReferences(ctx context.Context, c client.Reader) error { - r := reference.NewAPIResolver(c, mg) - - var rsp reference.ResolutionResponse - var err error - - rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VPCID), - Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.VPCIDRef, - Selector: mg.Spec.ForProvider.VPCIDSelector, - To: reference.To{ - List: &VPCList{}, - Managed: &VPC{}, - }, - }) - if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.VPCID") - } - mg.Spec.ForProvider.VPCID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.VPCIDRef = rsp.ResolvedReference - - return nil -} - // ResolveReferences of this Instance. func (mg *Instance) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) @@ -1095,6 +1095,32 @@ func (mg *VPCEndpoint) ResolveReferences(ctx context.Context, c client.Reader) e return nil } +// ResolveReferences of this VPCIPv4CidrBlockAssociation. +func (mg *VPCIPv4CidrBlockAssociation) ResolveReferences(ctx context.Context, c client.Reader) error { + r := reference.NewAPIResolver(c, mg) + + var rsp reference.ResolutionResponse + var err error + + rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VPCID), + Extract: reference.ExternalName(), + Reference: mg.Spec.ForProvider.VPCIDRef, + Selector: mg.Spec.ForProvider.VPCIDSelector, + To: reference.To{ + List: &VPCList{}, + Managed: &VPC{}, + }, + }) + if err != nil { + return errors.Wrap(err, "mg.Spec.ForProvider.VPCID") + } + mg.Spec.ForProvider.VPCID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.VPCIDRef = rsp.ResolvedReference + + return nil +} + // ResolveReferences of this VPCPeeringConnection. func (mg *VPCPeeringConnection) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) diff --git a/apis/ec2/v1alpha1/zz_ipv4cidrblockassociation_terraformed.go b/apis/ec2/v1alpha1/zz_vpcipv4cidrblockassociation_terraformed.go similarity index 62% rename from apis/ec2/v1alpha1/zz_ipv4cidrblockassociation_terraformed.go rename to apis/ec2/v1alpha1/zz_vpcipv4cidrblockassociation_terraformed.go index b3a0dc728..feb7bf7ea 100755 --- a/apis/ec2/v1alpha1/zz_ipv4cidrblockassociation_terraformed.go +++ b/apis/ec2/v1alpha1/zz_vpcipv4cidrblockassociation_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this IPv4CIDRBlockAssociation -func (mg *IPv4CIDRBlockAssociation) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this VPCIPv4CidrBlockAssociation +func (mg *VPCIPv4CidrBlockAssociation) GetTerraformResourceType() string { return "aws_vpc_ipv4_cidr_block_association" } -// GetConnectionDetailsMapping for this IPv4CIDRBlockAssociation -func (tr *IPv4CIDRBlockAssociation) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this VPCIPv4CidrBlockAssociation +func (tr *VPCIPv4CidrBlockAssociation) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this IPv4CIDRBlockAssociation -func (tr *IPv4CIDRBlockAssociation) GetObservation() (map[string]interface{}, error) { +// GetObservation of this VPCIPv4CidrBlockAssociation +func (tr *VPCIPv4CidrBlockAssociation) GetObservation() (map[string]interface{}, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -45,8 +45,8 @@ func (tr *IPv4CIDRBlockAssociation) GetObservation() (map[string]interface{}, er return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this IPv4CIDRBlockAssociation -func (tr *IPv4CIDRBlockAssociation) SetObservation(obs map[string]interface{}) error { +// SetObservation for this VPCIPv4CidrBlockAssociation +func (tr *VPCIPv4CidrBlockAssociation) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,16 +54,16 @@ func (tr *IPv4CIDRBlockAssociation) SetObservation(obs map[string]interface{}) e return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this IPv4CIDRBlockAssociation -func (tr *IPv4CIDRBlockAssociation) GetID() string { +// GetID returns ID of underlying Terraform resource of this VPCIPv4CidrBlockAssociation +func (tr *VPCIPv4CidrBlockAssociation) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this IPv4CIDRBlockAssociation -func (tr *IPv4CIDRBlockAssociation) GetParameters() (map[string]interface{}, error) { +// GetParameters of this VPCIPv4CidrBlockAssociation +func (tr *VPCIPv4CidrBlockAssociation) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -72,8 +72,8 @@ func (tr *IPv4CIDRBlockAssociation) GetParameters() (map[string]interface{}, err return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this IPv4CIDRBlockAssociation -func (tr *IPv4CIDRBlockAssociation) SetParameters(params map[string]interface{}) error { +// SetParameters for this VPCIPv4CidrBlockAssociation +func (tr *VPCIPv4CidrBlockAssociation) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -81,10 +81,10 @@ func (tr *IPv4CIDRBlockAssociation) SetParameters(params map[string]interface{}) return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this IPv4CIDRBlockAssociation using its observed tfState. +// LateInitialize this VPCIPv4CidrBlockAssociation using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *IPv4CIDRBlockAssociation) LateInitialize(attrs []byte) (bool, error) { - params := &IPv4CIDRBlockAssociationParameters{} +func (tr *VPCIPv4CidrBlockAssociation) LateInitialize(attrs []byte) (bool, error) { + params := &VPCIPv4CidrBlockAssociationParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -95,6 +95,6 @@ func (tr *IPv4CIDRBlockAssociation) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *IPv4CIDRBlockAssociation) GetTerraformSchemaVersion() int { +func (tr *VPCIPv4CidrBlockAssociation) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/ec2/v1alpha1/zz_ipv4cidrblockassociation_types.go b/apis/ec2/v1alpha1/zz_vpcipv4cidrblockassociation_types.go similarity index 60% rename from apis/ec2/v1alpha1/zz_ipv4cidrblockassociation_types.go rename to apis/ec2/v1alpha1/zz_vpcipv4cidrblockassociation_types.go index 3449edb74..83c16b266 100755 --- a/apis/ec2/v1alpha1/zz_ipv4cidrblockassociation_types.go +++ b/apis/ec2/v1alpha1/zz_vpcipv4cidrblockassociation_types.go @@ -25,11 +25,11 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type IPv4CIDRBlockAssociationObservation struct { +type VPCIPv4CidrBlockAssociationObservation struct { ID *string `json:"id,omitempty" tf:"id,omitempty"` } -type IPv4CIDRBlockAssociationParameters struct { +type VPCIPv4CidrBlockAssociationParameters struct { // +kubebuilder:validation:Required CidrBlock *string `json:"cidrBlock" tf:"cidr_block,omitempty"` @@ -50,51 +50,51 @@ type IPv4CIDRBlockAssociationParameters struct { VPCIDSelector *v1.Selector `json:"vpcidSelector,omitempty" tf:"-"` } -// IPv4CIDRBlockAssociationSpec defines the desired state of IPv4CIDRBlockAssociation -type IPv4CIDRBlockAssociationSpec struct { +// VPCIPv4CidrBlockAssociationSpec defines the desired state of VPCIPv4CidrBlockAssociation +type VPCIPv4CidrBlockAssociationSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider IPv4CIDRBlockAssociationParameters `json:"forProvider"` + ForProvider VPCIPv4CidrBlockAssociationParameters `json:"forProvider"` } -// IPv4CIDRBlockAssociationStatus defines the observed state of IPv4CIDRBlockAssociation. -type IPv4CIDRBlockAssociationStatus struct { +// VPCIPv4CidrBlockAssociationStatus defines the observed state of VPCIPv4CidrBlockAssociation. +type VPCIPv4CidrBlockAssociationStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider IPv4CIDRBlockAssociationObservation `json:"atProvider,omitempty"` + AtProvider VPCIPv4CidrBlockAssociationObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// IPv4CIDRBlockAssociation is the Schema for the IPv4CIDRBlockAssociations API +// VPCIPv4CidrBlockAssociation is the Schema for the VPCIPv4CidrBlockAssociations API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type IPv4CIDRBlockAssociation struct { +type VPCIPv4CidrBlockAssociation struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec IPv4CIDRBlockAssociationSpec `json:"spec"` - Status IPv4CIDRBlockAssociationStatus `json:"status,omitempty"` + Spec VPCIPv4CidrBlockAssociationSpec `json:"spec"` + Status VPCIPv4CidrBlockAssociationStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// IPv4CIDRBlockAssociationList contains a list of IPv4CIDRBlockAssociations -type IPv4CIDRBlockAssociationList struct { +// VPCIPv4CidrBlockAssociationList contains a list of VPCIPv4CidrBlockAssociations +type VPCIPv4CidrBlockAssociationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []IPv4CIDRBlockAssociation `json:"items"` + Items []VPCIPv4CidrBlockAssociation `json:"items"` } // Repository type metadata. var ( - IPv4CIDRBlockAssociation_Kind = "IPv4CIDRBlockAssociation" - IPv4CIDRBlockAssociation_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: IPv4CIDRBlockAssociation_Kind}.String() - IPv4CIDRBlockAssociation_KindAPIVersion = IPv4CIDRBlockAssociation_Kind + "." + CRDGroupVersion.String() - IPv4CIDRBlockAssociation_GroupVersionKind = CRDGroupVersion.WithKind(IPv4CIDRBlockAssociation_Kind) + VPCIPv4CidrBlockAssociation_Kind = "VPCIPv4CidrBlockAssociation" + VPCIPv4CidrBlockAssociation_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: VPCIPv4CidrBlockAssociation_Kind}.String() + VPCIPv4CidrBlockAssociation_KindAPIVersion = VPCIPv4CidrBlockAssociation_Kind + "." + CRDGroupVersion.String() + VPCIPv4CidrBlockAssociation_GroupVersionKind = CRDGroupVersion.WithKind(VPCIPv4CidrBlockAssociation_Kind) ) func init() { - SchemeBuilder.Register(&IPv4CIDRBlockAssociation{}, &IPv4CIDRBlockAssociationList{}) + SchemeBuilder.Register(&VPCIPv4CidrBlockAssociation{}, &VPCIPv4CidrBlockAssociationList{}) } diff --git a/apis/ec2/v1alpha1/zz_peeringconnectionaccepter_terraformed.go b/apis/ec2/v1alpha1/zz_vpcpeeringconnectionaccepter_terraformed.go similarity index 62% rename from apis/ec2/v1alpha1/zz_peeringconnectionaccepter_terraformed.go rename to apis/ec2/v1alpha1/zz_vpcpeeringconnectionaccepter_terraformed.go index e8ab4a4d8..5d838cf3f 100755 --- a/apis/ec2/v1alpha1/zz_peeringconnectionaccepter_terraformed.go +++ b/apis/ec2/v1alpha1/zz_vpcpeeringconnectionaccepter_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this PeeringConnectionAccepter -func (mg *PeeringConnectionAccepter) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this VPCPeeringConnectionAccepter +func (mg *VPCPeeringConnectionAccepter) GetTerraformResourceType() string { return "aws_vpc_peering_connection_accepter" } -// GetConnectionDetailsMapping for this PeeringConnectionAccepter -func (tr *PeeringConnectionAccepter) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this VPCPeeringConnectionAccepter +func (tr *VPCPeeringConnectionAccepter) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this PeeringConnectionAccepter -func (tr *PeeringConnectionAccepter) GetObservation() (map[string]interface{}, error) { +// GetObservation of this VPCPeeringConnectionAccepter +func (tr *VPCPeeringConnectionAccepter) GetObservation() (map[string]interface{}, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -45,8 +45,8 @@ func (tr *PeeringConnectionAccepter) GetObservation() (map[string]interface{}, e return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this PeeringConnectionAccepter -func (tr *PeeringConnectionAccepter) SetObservation(obs map[string]interface{}) error { +// SetObservation for this VPCPeeringConnectionAccepter +func (tr *VPCPeeringConnectionAccepter) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,16 +54,16 @@ func (tr *PeeringConnectionAccepter) SetObservation(obs map[string]interface{}) return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this PeeringConnectionAccepter -func (tr *PeeringConnectionAccepter) GetID() string { +// GetID returns ID of underlying Terraform resource of this VPCPeeringConnectionAccepter +func (tr *VPCPeeringConnectionAccepter) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this PeeringConnectionAccepter -func (tr *PeeringConnectionAccepter) GetParameters() (map[string]interface{}, error) { +// GetParameters of this VPCPeeringConnectionAccepter +func (tr *VPCPeeringConnectionAccepter) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -72,8 +72,8 @@ func (tr *PeeringConnectionAccepter) GetParameters() (map[string]interface{}, er return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this PeeringConnectionAccepter -func (tr *PeeringConnectionAccepter) SetParameters(params map[string]interface{}) error { +// SetParameters for this VPCPeeringConnectionAccepter +func (tr *VPCPeeringConnectionAccepter) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -81,10 +81,10 @@ func (tr *PeeringConnectionAccepter) SetParameters(params map[string]interface{} return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this PeeringConnectionAccepter using its observed tfState. +// LateInitialize this VPCPeeringConnectionAccepter using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *PeeringConnectionAccepter) LateInitialize(attrs []byte) (bool, error) { - params := &PeeringConnectionAccepterParameters{} +func (tr *VPCPeeringConnectionAccepter) LateInitialize(attrs []byte) (bool, error) { + params := &VPCPeeringConnectionAccepterParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -95,6 +95,6 @@ func (tr *PeeringConnectionAccepter) LateInitialize(attrs []byte) (bool, error) } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *PeeringConnectionAccepter) GetTerraformSchemaVersion() int { +func (tr *VPCPeeringConnectionAccepter) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/ec2/v1alpha1/zz_peeringconnectionaccepter_types.go b/apis/ec2/v1alpha1/zz_vpcpeeringconnectionaccepter_types.go similarity index 65% rename from apis/ec2/v1alpha1/zz_peeringconnectionaccepter_types.go rename to apis/ec2/v1alpha1/zz_vpcpeeringconnectionaccepter_types.go index 6e6f68005..891311e45 100755 --- a/apis/ec2/v1alpha1/zz_peeringconnectionaccepter_types.go +++ b/apis/ec2/v1alpha1/zz_vpcpeeringconnectionaccepter_types.go @@ -25,10 +25,10 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type PeeringConnectionAccepterAccepterObservation struct { +type VPCPeeringConnectionAccepterAccepterObservation struct { } -type PeeringConnectionAccepterAccepterParameters struct { +type VPCPeeringConnectionAccepterAccepterParameters struct { // +kubebuilder:validation:Optional AllowClassicLinkToRemoteVPC *bool `json:"allowClassicLinkToRemoteVpc,omitempty" tf:"allow_classic_link_to_remote_vpc,omitempty"` @@ -40,7 +40,7 @@ type PeeringConnectionAccepterAccepterParameters struct { AllowVPCToRemoteClassicLink *bool `json:"allowVpcToRemoteClassicLink,omitempty" tf:"allow_vpc_to_remote_classic_link,omitempty"` } -type PeeringConnectionAccepterObservation struct { +type VPCPeeringConnectionAccepterObservation struct { AcceptStatus *string `json:"acceptStatus,omitempty" tf:"accept_status,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` @@ -56,10 +56,10 @@ type PeeringConnectionAccepterObservation struct { VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` } -type PeeringConnectionAccepterParameters struct { +type VPCPeeringConnectionAccepterParameters struct { // +kubebuilder:validation:Optional - Accepter []PeeringConnectionAccepterAccepterParameters `json:"accepter,omitempty" tf:"accepter,omitempty"` + Accepter []VPCPeeringConnectionAccepterAccepterParameters `json:"accepter,omitempty" tf:"accepter,omitempty"` // +kubebuilder:validation:Optional AutoAccept *bool `json:"autoAccept,omitempty" tf:"auto_accept,omitempty"` @@ -70,7 +70,7 @@ type PeeringConnectionAccepterParameters struct { Region *string `json:"region" tf:"-"` // +kubebuilder:validation:Optional - Requester []PeeringConnectionAccepterRequesterParameters `json:"requester,omitempty" tf:"requester,omitempty"` + Requester []VPCPeeringConnectionAccepterRequesterParameters `json:"requester,omitempty" tf:"requester,omitempty"` // +kubebuilder:validation:Optional Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` @@ -79,10 +79,10 @@ type PeeringConnectionAccepterParameters struct { VPCPeeringConnectionID *string `json:"vpcPeeringConnectionId" tf:"vpc_peering_connection_id,omitempty"` } -type PeeringConnectionAccepterRequesterObservation struct { +type VPCPeeringConnectionAccepterRequesterObservation struct { } -type PeeringConnectionAccepterRequesterParameters struct { +type VPCPeeringConnectionAccepterRequesterParameters struct { // +kubebuilder:validation:Optional AllowClassicLinkToRemoteVPC *bool `json:"allowClassicLinkToRemoteVpc,omitempty" tf:"allow_classic_link_to_remote_vpc,omitempty"` @@ -94,51 +94,51 @@ type PeeringConnectionAccepterRequesterParameters struct { AllowVPCToRemoteClassicLink *bool `json:"allowVpcToRemoteClassicLink,omitempty" tf:"allow_vpc_to_remote_classic_link,omitempty"` } -// PeeringConnectionAccepterSpec defines the desired state of PeeringConnectionAccepter -type PeeringConnectionAccepterSpec struct { +// VPCPeeringConnectionAccepterSpec defines the desired state of VPCPeeringConnectionAccepter +type VPCPeeringConnectionAccepterSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider PeeringConnectionAccepterParameters `json:"forProvider"` + ForProvider VPCPeeringConnectionAccepterParameters `json:"forProvider"` } -// PeeringConnectionAccepterStatus defines the observed state of PeeringConnectionAccepter. -type PeeringConnectionAccepterStatus struct { +// VPCPeeringConnectionAccepterStatus defines the observed state of VPCPeeringConnectionAccepter. +type VPCPeeringConnectionAccepterStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider PeeringConnectionAccepterObservation `json:"atProvider,omitempty"` + AtProvider VPCPeeringConnectionAccepterObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// PeeringConnectionAccepter is the Schema for the PeeringConnectionAccepters API +// VPCPeeringConnectionAccepter is the Schema for the VPCPeeringConnectionAccepters API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type PeeringConnectionAccepter struct { +type VPCPeeringConnectionAccepter struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec PeeringConnectionAccepterSpec `json:"spec"` - Status PeeringConnectionAccepterStatus `json:"status,omitempty"` + Spec VPCPeeringConnectionAccepterSpec `json:"spec"` + Status VPCPeeringConnectionAccepterStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// PeeringConnectionAccepterList contains a list of PeeringConnectionAccepters -type PeeringConnectionAccepterList struct { +// VPCPeeringConnectionAccepterList contains a list of VPCPeeringConnectionAccepters +type VPCPeeringConnectionAccepterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []PeeringConnectionAccepter `json:"items"` + Items []VPCPeeringConnectionAccepter `json:"items"` } // Repository type metadata. var ( - PeeringConnectionAccepter_Kind = "PeeringConnectionAccepter" - PeeringConnectionAccepter_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: PeeringConnectionAccepter_Kind}.String() - PeeringConnectionAccepter_KindAPIVersion = PeeringConnectionAccepter_Kind + "." + CRDGroupVersion.String() - PeeringConnectionAccepter_GroupVersionKind = CRDGroupVersion.WithKind(PeeringConnectionAccepter_Kind) + VPCPeeringConnectionAccepter_Kind = "VPCPeeringConnectionAccepter" + VPCPeeringConnectionAccepter_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: VPCPeeringConnectionAccepter_Kind}.String() + VPCPeeringConnectionAccepter_KindAPIVersion = VPCPeeringConnectionAccepter_Kind + "." + CRDGroupVersion.String() + VPCPeeringConnectionAccepter_GroupVersionKind = CRDGroupVersion.WithKind(VPCPeeringConnectionAccepter_Kind) ) func init() { - SchemeBuilder.Register(&PeeringConnectionAccepter{}, &PeeringConnectionAccepterList{}) + SchemeBuilder.Register(&VPCPeeringConnectionAccepter{}, &VPCPeeringConnectionAccepterList{}) } diff --git a/apis/elasticloadbalancing/v1alpha1/zz_generated.managed.go b/apis/elasticloadbalancing/v1alpha1/zz_generated.managed.go deleted file mode 100644 index 7ea676c55..000000000 --- a/apis/elasticloadbalancing/v1alpha1/zz_generated.managed.go +++ /dev/null @@ -1,244 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -// Code generated by angryjet. DO NOT EDIT. - -package v1alpha1 - -import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" - -// GetCondition of this LoadBalancer. -func (mg *LoadBalancer) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this LoadBalancer. -func (mg *LoadBalancer) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this LoadBalancer. -func (mg *LoadBalancer) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this LoadBalancer. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *LoadBalancer) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this LoadBalancer. -func (mg *LoadBalancer) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this LoadBalancer. -func (mg *LoadBalancer) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this LoadBalancer. -func (mg *LoadBalancer) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this LoadBalancer. -func (mg *LoadBalancer) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this LoadBalancer. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *LoadBalancer) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this LoadBalancer. -func (mg *LoadBalancer) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this LoadBalancerListener. -func (mg *LoadBalancerListener) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this LoadBalancerListener. -func (mg *LoadBalancerListener) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this LoadBalancerListener. -func (mg *LoadBalancerListener) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this LoadBalancerListener. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *LoadBalancerListener) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this LoadBalancerListener. -func (mg *LoadBalancerListener) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this LoadBalancerListener. -func (mg *LoadBalancerListener) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this LoadBalancerListener. -func (mg *LoadBalancerListener) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this LoadBalancerListener. -func (mg *LoadBalancerListener) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this LoadBalancerListener. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *LoadBalancerListener) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this LoadBalancerListener. -func (mg *LoadBalancerListener) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this TargetGroup. -func (mg *TargetGroup) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this TargetGroup. -func (mg *TargetGroup) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this TargetGroup. -func (mg *TargetGroup) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this TargetGroup. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *TargetGroup) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this TargetGroup. -func (mg *TargetGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this TargetGroup. -func (mg *TargetGroup) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this TargetGroup. -func (mg *TargetGroup) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this TargetGroup. -func (mg *TargetGroup) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this TargetGroup. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *TargetGroup) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this TargetGroup. -func (mg *TargetGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this TargetGroupAttachment. -func (mg *TargetGroupAttachment) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this TargetGroupAttachment. -func (mg *TargetGroupAttachment) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this TargetGroupAttachment. -func (mg *TargetGroupAttachment) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this TargetGroupAttachment. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *TargetGroupAttachment) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this TargetGroupAttachment. -func (mg *TargetGroupAttachment) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this TargetGroupAttachment. -func (mg *TargetGroupAttachment) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this TargetGroupAttachment. -func (mg *TargetGroupAttachment) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this TargetGroupAttachment. -func (mg *TargetGroupAttachment) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this TargetGroupAttachment. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *TargetGroupAttachment) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this TargetGroupAttachment. -func (mg *TargetGroupAttachment) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} diff --git a/apis/elasticloadbalancing/v1alpha1/zz_targetgroupattachment_terraformed.go b/apis/elasticloadbalancing/v1alpha1/zz_targetgroupattachment_terraformed.go deleted file mode 100755 index 01ef4acaa..000000000 --- a/apis/elasticloadbalancing/v1alpha1/zz_targetgroupattachment_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this TargetGroupAttachment -func (mg *TargetGroupAttachment) GetTerraformResourceType() string { - return "aws_lb_target_group_attachment" -} - -// GetConnectionDetailsMapping for this TargetGroupAttachment -func (tr *TargetGroupAttachment) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this TargetGroupAttachment -func (tr *TargetGroupAttachment) GetObservation() (map[string]interface{}, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this TargetGroupAttachment -func (tr *TargetGroupAttachment) SetObservation(obs map[string]interface{}) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this TargetGroupAttachment -func (tr *TargetGroupAttachment) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this TargetGroupAttachment -func (tr *TargetGroupAttachment) GetParameters() (map[string]interface{}, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this TargetGroupAttachment -func (tr *TargetGroupAttachment) SetParameters(params map[string]interface{}) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this TargetGroupAttachment using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *TargetGroupAttachment) LateInitialize(attrs []byte) (bool, error) { - params := &TargetGroupAttachmentParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *TargetGroupAttachment) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/elasticloadbalancing/v1alpha1/zz_generated.deepcopy.go b/apis/elbv2/v1alpha1/zz_generated.deepcopy.go similarity index 85% rename from apis/elasticloadbalancing/v1alpha1/zz_generated.deepcopy.go rename to apis/elbv2/v1alpha1/zz_generated.deepcopy.go index a972e7a88..c071bc892 100644 --- a/apis/elasticloadbalancing/v1alpha1/zz_generated.deepcopy.go +++ b/apis/elbv2/v1alpha1/zz_generated.deepcopy.go @@ -506,7 +506,7 @@ func (in *HealthCheckParameters) DeepCopy() *HealthCheckParameters { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancer) DeepCopyInto(out *LoadBalancer) { +func (in *LB) DeepCopyInto(out *LB) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -514,18 +514,18 @@ func (in *LoadBalancer) DeepCopyInto(out *LoadBalancer) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancer. -func (in *LoadBalancer) DeepCopy() *LoadBalancer { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LB. +func (in *LB) DeepCopy() *LB { if in == nil { return nil } - out := new(LoadBalancer) + out := new(LB) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LoadBalancer) DeepCopyObject() runtime.Object { +func (in *LB) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -533,31 +533,31 @@ func (in *LoadBalancer) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancerList) DeepCopyInto(out *LoadBalancerList) { +func (in *LBList) DeepCopyInto(out *LBList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]LoadBalancer, len(*in)) + *out = make([]LB, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerList. -func (in *LoadBalancerList) DeepCopy() *LoadBalancerList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBList. +func (in *LBList) DeepCopy() *LBList { if in == nil { return nil } - out := new(LoadBalancerList) + out := new(LBList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LoadBalancerList) DeepCopyObject() runtime.Object { +func (in *LBList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -565,7 +565,7 @@ func (in *LoadBalancerList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancerListener) DeepCopyInto(out *LoadBalancerListener) { +func (in *LBListener) DeepCopyInto(out *LBListener) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -573,18 +573,18 @@ func (in *LoadBalancerListener) DeepCopyInto(out *LoadBalancerListener) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerListener. -func (in *LoadBalancerListener) DeepCopy() *LoadBalancerListener { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBListener. +func (in *LBListener) DeepCopy() *LBListener { if in == nil { return nil } - out := new(LoadBalancerListener) + out := new(LBListener) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LoadBalancerListener) DeepCopyObject() runtime.Object { +func (in *LBListener) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -592,31 +592,31 @@ func (in *LoadBalancerListener) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancerListenerList) DeepCopyInto(out *LoadBalancerListenerList) { +func (in *LBListenerList) DeepCopyInto(out *LBListenerList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]LoadBalancerListener, len(*in)) + *out = make([]LBListener, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerListenerList. -func (in *LoadBalancerListenerList) DeepCopy() *LoadBalancerListenerList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBListenerList. +func (in *LBListenerList) DeepCopy() *LBListenerList { if in == nil { return nil } - out := new(LoadBalancerListenerList) + out := new(LBListenerList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LoadBalancerListenerList) DeepCopyObject() runtime.Object { +func (in *LBListenerList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -624,7 +624,7 @@ func (in *LoadBalancerListenerList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancerListenerObservation) DeepCopyInto(out *LoadBalancerListenerObservation) { +func (in *LBListenerObservation) DeepCopyInto(out *LBListenerObservation) { *out = *in if in.Arn != nil { in, out := &in.Arn, &out.Arn @@ -653,18 +653,18 @@ func (in *LoadBalancerListenerObservation) DeepCopyInto(out *LoadBalancerListene } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerListenerObservation. -func (in *LoadBalancerListenerObservation) DeepCopy() *LoadBalancerListenerObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBListenerObservation. +func (in *LBListenerObservation) DeepCopy() *LBListenerObservation { if in == nil { return nil } - out := new(LoadBalancerListenerObservation) + out := new(LBListenerObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancerListenerParameters) DeepCopyInto(out *LoadBalancerListenerParameters) { +func (in *LBListenerParameters) DeepCopyInto(out *LBListenerParameters) { *out = *in if in.AlpnPolicy != nil { in, out := &in.AlpnPolicy, &out.AlpnPolicy @@ -735,52 +735,52 @@ func (in *LoadBalancerListenerParameters) DeepCopyInto(out *LoadBalancerListener } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerListenerParameters. -func (in *LoadBalancerListenerParameters) DeepCopy() *LoadBalancerListenerParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBListenerParameters. +func (in *LBListenerParameters) DeepCopy() *LBListenerParameters { if in == nil { return nil } - out := new(LoadBalancerListenerParameters) + out := new(LBListenerParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancerListenerSpec) DeepCopyInto(out *LoadBalancerListenerSpec) { +func (in *LBListenerSpec) DeepCopyInto(out *LBListenerSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerListenerSpec. -func (in *LoadBalancerListenerSpec) DeepCopy() *LoadBalancerListenerSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBListenerSpec. +func (in *LBListenerSpec) DeepCopy() *LBListenerSpec { if in == nil { return nil } - out := new(LoadBalancerListenerSpec) + out := new(LBListenerSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancerListenerStatus) DeepCopyInto(out *LoadBalancerListenerStatus) { +func (in *LBListenerStatus) DeepCopyInto(out *LBListenerStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerListenerStatus. -func (in *LoadBalancerListenerStatus) DeepCopy() *LoadBalancerListenerStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBListenerStatus. +func (in *LBListenerStatus) DeepCopy() *LBListenerStatus { if in == nil { return nil } - out := new(LoadBalancerListenerStatus) + out := new(LBListenerStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancerObservation) DeepCopyInto(out *LoadBalancerObservation) { +func (in *LBObservation) DeepCopyInto(out *LBObservation) { *out = *in if in.Arn != nil { in, out := &in.Arn, &out.Arn @@ -829,18 +829,18 @@ func (in *LoadBalancerObservation) DeepCopyInto(out *LoadBalancerObservation) { } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerObservation. -func (in *LoadBalancerObservation) DeepCopy() *LoadBalancerObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBObservation. +func (in *LBObservation) DeepCopy() *LBObservation { if in == nil { return nil } - out := new(LoadBalancerObservation) + out := new(LBObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancerParameters) DeepCopyInto(out *LoadBalancerParameters) { +func (in *LBParameters) DeepCopyInto(out *LBParameters) { *out = *in if in.AccessLogs != nil { in, out := &in.AccessLogs, &out.AccessLogs @@ -970,217 +970,52 @@ func (in *LoadBalancerParameters) DeepCopyInto(out *LoadBalancerParameters) { } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerParameters. -func (in *LoadBalancerParameters) DeepCopy() *LoadBalancerParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBParameters. +func (in *LBParameters) DeepCopy() *LBParameters { if in == nil { return nil } - out := new(LoadBalancerParameters) + out := new(LBParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancerSpec) DeepCopyInto(out *LoadBalancerSpec) { +func (in *LBSpec) DeepCopyInto(out *LBSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSpec. -func (in *LoadBalancerSpec) DeepCopy() *LoadBalancerSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBSpec. +func (in *LBSpec) DeepCopy() *LBSpec { if in == nil { return nil } - out := new(LoadBalancerSpec) + out := new(LBSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LoadBalancerStatus) DeepCopyInto(out *LoadBalancerStatus) { +func (in *LBStatus) DeepCopyInto(out *LBStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerStatus. -func (in *LoadBalancerStatus) DeepCopy() *LoadBalancerStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBStatus. +func (in *LBStatus) DeepCopy() *LBStatus { if in == nil { return nil } - out := new(LoadBalancerStatus) + out := new(LBStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RedirectObservation) DeepCopyInto(out *RedirectObservation) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectObservation. -func (in *RedirectObservation) DeepCopy() *RedirectObservation { - if in == nil { - return nil - } - out := new(RedirectObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RedirectParameters) DeepCopyInto(out *RedirectParameters) { - *out = *in - if in.Host != nil { - in, out := &in.Host, &out.Host - *out = new(string) - **out = **in - } - if in.Path != nil { - in, out := &in.Path, &out.Path - *out = new(string) - **out = **in - } - if in.Port != nil { - in, out := &in.Port, &out.Port - *out = new(string) - **out = **in - } - if in.Protocol != nil { - in, out := &in.Protocol, &out.Protocol - *out = new(string) - **out = **in - } - if in.Query != nil { - in, out := &in.Query, &out.Query - *out = new(string) - **out = **in - } - if in.StatusCode != nil { - in, out := &in.StatusCode, &out.StatusCode - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectParameters. -func (in *RedirectParameters) DeepCopy() *RedirectParameters { - if in == nil { - return nil - } - out := new(RedirectParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StickinessObservation) DeepCopyInto(out *StickinessObservation) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StickinessObservation. -func (in *StickinessObservation) DeepCopy() *StickinessObservation { - if in == nil { - return nil - } - out := new(StickinessObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StickinessParameters) DeepCopyInto(out *StickinessParameters) { - *out = *in - if in.Duration != nil { - in, out := &in.Duration, &out.Duration - *out = new(int64) - **out = **in - } - if in.Enabled != nil { - in, out := &in.Enabled, &out.Enabled - *out = new(bool) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StickinessParameters. -func (in *StickinessParameters) DeepCopy() *StickinessParameters { - if in == nil { - return nil - } - out := new(StickinessParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubnetMappingObservation) DeepCopyInto(out *SubnetMappingObservation) { - *out = *in - if in.OutpostID != nil { - in, out := &in.OutpostID, &out.OutpostID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetMappingObservation. -func (in *SubnetMappingObservation) DeepCopy() *SubnetMappingObservation { - if in == nil { - return nil - } - out := new(SubnetMappingObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SubnetMappingParameters) DeepCopyInto(out *SubnetMappingParameters) { - *out = *in - if in.AllocationID != nil { - in, out := &in.AllocationID, &out.AllocationID - *out = new(string) - **out = **in - } - if in.IPv6Address != nil { - in, out := &in.IPv6Address, &out.IPv6Address - *out = new(string) - **out = **in - } - if in.PrivateIPv4Address != nil { - in, out := &in.PrivateIPv4Address, &out.PrivateIPv4Address - *out = new(string) - **out = **in - } - if in.SubnetID != nil { - in, out := &in.SubnetID, &out.SubnetID - *out = new(string) - **out = **in - } - if in.SubnetIDRef != nil { - in, out := &in.SubnetIDRef, &out.SubnetIDRef - *out = new(v1.Reference) - **out = **in - } - if in.SubnetIDSelector != nil { - in, out := &in.SubnetIDSelector, &out.SubnetIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetMappingParameters. -func (in *SubnetMappingParameters) DeepCopy() *SubnetMappingParameters { - if in == nil { - return nil - } - out := new(SubnetMappingParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetGroup) DeepCopyInto(out *TargetGroup) { +func (in *LBTargetGroup) DeepCopyInto(out *LBTargetGroup) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -1188,18 +1023,18 @@ func (in *TargetGroup) DeepCopyInto(out *TargetGroup) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroup. -func (in *TargetGroup) DeepCopy() *TargetGroup { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBTargetGroup. +func (in *LBTargetGroup) DeepCopy() *LBTargetGroup { if in == nil { return nil } - out := new(TargetGroup) + out := new(LBTargetGroup) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TargetGroup) DeepCopyObject() runtime.Object { +func (in *LBTargetGroup) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1207,7 +1042,7 @@ func (in *TargetGroup) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetGroupAttachment) DeepCopyInto(out *TargetGroupAttachment) { +func (in *LBTargetGroupAttachment) DeepCopyInto(out *LBTargetGroupAttachment) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -1215,18 +1050,18 @@ func (in *TargetGroupAttachment) DeepCopyInto(out *TargetGroupAttachment) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupAttachment. -func (in *TargetGroupAttachment) DeepCopy() *TargetGroupAttachment { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBTargetGroupAttachment. +func (in *LBTargetGroupAttachment) DeepCopy() *LBTargetGroupAttachment { if in == nil { return nil } - out := new(TargetGroupAttachment) + out := new(LBTargetGroupAttachment) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TargetGroupAttachment) DeepCopyObject() runtime.Object { +func (in *LBTargetGroupAttachment) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1234,31 +1069,31 @@ func (in *TargetGroupAttachment) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetGroupAttachmentList) DeepCopyInto(out *TargetGroupAttachmentList) { +func (in *LBTargetGroupAttachmentList) DeepCopyInto(out *LBTargetGroupAttachmentList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]TargetGroupAttachment, len(*in)) + *out = make([]LBTargetGroupAttachment, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupAttachmentList. -func (in *TargetGroupAttachmentList) DeepCopy() *TargetGroupAttachmentList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBTargetGroupAttachmentList. +func (in *LBTargetGroupAttachmentList) DeepCopy() *LBTargetGroupAttachmentList { if in == nil { return nil } - out := new(TargetGroupAttachmentList) + out := new(LBTargetGroupAttachmentList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TargetGroupAttachmentList) DeepCopyObject() runtime.Object { +func (in *LBTargetGroupAttachmentList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1266,7 +1101,7 @@ func (in *TargetGroupAttachmentList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetGroupAttachmentObservation) DeepCopyInto(out *TargetGroupAttachmentObservation) { +func (in *LBTargetGroupAttachmentObservation) DeepCopyInto(out *LBTargetGroupAttachmentObservation) { *out = *in if in.ID != nil { in, out := &in.ID, &out.ID @@ -1275,18 +1110,18 @@ func (in *TargetGroupAttachmentObservation) DeepCopyInto(out *TargetGroupAttachm } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupAttachmentObservation. -func (in *TargetGroupAttachmentObservation) DeepCopy() *TargetGroupAttachmentObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBTargetGroupAttachmentObservation. +func (in *LBTargetGroupAttachmentObservation) DeepCopy() *LBTargetGroupAttachmentObservation { if in == nil { return nil } - out := new(TargetGroupAttachmentObservation) + out := new(LBTargetGroupAttachmentObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetGroupAttachmentParameters) DeepCopyInto(out *TargetGroupAttachmentParameters) { +func (in *LBTargetGroupAttachmentParameters) DeepCopyInto(out *LBTargetGroupAttachmentParameters) { *out = *in if in.AvailabilityZone != nil { in, out := &in.AvailabilityZone, &out.AvailabilityZone @@ -1325,76 +1160,76 @@ func (in *TargetGroupAttachmentParameters) DeepCopyInto(out *TargetGroupAttachme } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupAttachmentParameters. -func (in *TargetGroupAttachmentParameters) DeepCopy() *TargetGroupAttachmentParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBTargetGroupAttachmentParameters. +func (in *LBTargetGroupAttachmentParameters) DeepCopy() *LBTargetGroupAttachmentParameters { if in == nil { return nil } - out := new(TargetGroupAttachmentParameters) + out := new(LBTargetGroupAttachmentParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetGroupAttachmentSpec) DeepCopyInto(out *TargetGroupAttachmentSpec) { +func (in *LBTargetGroupAttachmentSpec) DeepCopyInto(out *LBTargetGroupAttachmentSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupAttachmentSpec. -func (in *TargetGroupAttachmentSpec) DeepCopy() *TargetGroupAttachmentSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBTargetGroupAttachmentSpec. +func (in *LBTargetGroupAttachmentSpec) DeepCopy() *LBTargetGroupAttachmentSpec { if in == nil { return nil } - out := new(TargetGroupAttachmentSpec) + out := new(LBTargetGroupAttachmentSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetGroupAttachmentStatus) DeepCopyInto(out *TargetGroupAttachmentStatus) { +func (in *LBTargetGroupAttachmentStatus) DeepCopyInto(out *LBTargetGroupAttachmentStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupAttachmentStatus. -func (in *TargetGroupAttachmentStatus) DeepCopy() *TargetGroupAttachmentStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBTargetGroupAttachmentStatus. +func (in *LBTargetGroupAttachmentStatus) DeepCopy() *LBTargetGroupAttachmentStatus { if in == nil { return nil } - out := new(TargetGroupAttachmentStatus) + out := new(LBTargetGroupAttachmentStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetGroupList) DeepCopyInto(out *TargetGroupList) { +func (in *LBTargetGroupList) DeepCopyInto(out *LBTargetGroupList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]TargetGroup, len(*in)) + *out = make([]LBTargetGroup, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupList. -func (in *TargetGroupList) DeepCopy() *TargetGroupList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBTargetGroupList. +func (in *LBTargetGroupList) DeepCopy() *LBTargetGroupList { if in == nil { return nil } - out := new(TargetGroupList) + out := new(LBTargetGroupList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *TargetGroupList) DeepCopyObject() runtime.Object { +func (in *LBTargetGroupList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1402,22 +1237,7 @@ func (in *TargetGroupList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetGroupObservation) DeepCopyInto(out *TargetGroupObservation) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupObservation. -func (in *TargetGroupObservation) DeepCopy() *TargetGroupObservation { - if in == nil { - return nil - } - out := new(TargetGroupObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetGroupObservation_2) DeepCopyInto(out *TargetGroupObservation_2) { +func (in *LBTargetGroupObservation) DeepCopyInto(out *LBTargetGroupObservation) { *out = *in if in.Arn != nil { in, out := &in.Arn, &out.Arn @@ -1451,53 +1271,18 @@ func (in *TargetGroupObservation_2) DeepCopyInto(out *TargetGroupObservation_2) } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupObservation_2. -func (in *TargetGroupObservation_2) DeepCopy() *TargetGroupObservation_2 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBTargetGroupObservation. +func (in *LBTargetGroupObservation) DeepCopy() *LBTargetGroupObservation { if in == nil { return nil } - out := new(TargetGroupObservation_2) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetGroupParameters) DeepCopyInto(out *TargetGroupParameters) { - *out = *in - if in.Arn != nil { - in, out := &in.Arn, &out.Arn - *out = new(string) - **out = **in - } - if in.ArnRef != nil { - in, out := &in.ArnRef, &out.ArnRef - *out = new(v1.Reference) - **out = **in - } - if in.ArnSelector != nil { - in, out := &in.ArnSelector, &out.ArnSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } - if in.Weight != nil { - in, out := &in.Weight, &out.Weight - *out = new(int64) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupParameters. -func (in *TargetGroupParameters) DeepCopy() *TargetGroupParameters { - if in == nil { - return nil - } - out := new(TargetGroupParameters) + out := new(LBTargetGroupObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetGroupParameters_2) DeepCopyInto(out *TargetGroupParameters_2) { +func (in *LBTargetGroupParameters) DeepCopyInto(out *LBTargetGroupParameters) { *out = *in if in.DeregistrationDelay != nil { in, out := &in.DeregistrationDelay, &out.DeregistrationDelay @@ -1563,7 +1348,7 @@ func (in *TargetGroupParameters_2) DeepCopyInto(out *TargetGroupParameters_2) { } if in.Stickiness != nil { in, out := &in.Stickiness, &out.Stickiness - *out = make([]TargetGroupStickinessParameters, len(*in)) + *out = make([]LBTargetGroupStickinessParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -1605,67 +1390,67 @@ func (in *TargetGroupParameters_2) DeepCopyInto(out *TargetGroupParameters_2) { } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupParameters_2. -func (in *TargetGroupParameters_2) DeepCopy() *TargetGroupParameters_2 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBTargetGroupParameters. +func (in *LBTargetGroupParameters) DeepCopy() *LBTargetGroupParameters { if in == nil { return nil } - out := new(TargetGroupParameters_2) + out := new(LBTargetGroupParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetGroupSpec) DeepCopyInto(out *TargetGroupSpec) { +func (in *LBTargetGroupSpec) DeepCopyInto(out *LBTargetGroupSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupSpec. -func (in *TargetGroupSpec) DeepCopy() *TargetGroupSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBTargetGroupSpec. +func (in *LBTargetGroupSpec) DeepCopy() *LBTargetGroupSpec { if in == nil { return nil } - out := new(TargetGroupSpec) + out := new(LBTargetGroupSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetGroupStatus) DeepCopyInto(out *TargetGroupStatus) { +func (in *LBTargetGroupStatus) DeepCopyInto(out *LBTargetGroupStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupStatus. -func (in *TargetGroupStatus) DeepCopy() *TargetGroupStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBTargetGroupStatus. +func (in *LBTargetGroupStatus) DeepCopy() *LBTargetGroupStatus { if in == nil { return nil } - out := new(TargetGroupStatus) + out := new(LBTargetGroupStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetGroupStickinessObservation) DeepCopyInto(out *TargetGroupStickinessObservation) { +func (in *LBTargetGroupStickinessObservation) DeepCopyInto(out *LBTargetGroupStickinessObservation) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupStickinessObservation. -func (in *TargetGroupStickinessObservation) DeepCopy() *TargetGroupStickinessObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBTargetGroupStickinessObservation. +func (in *LBTargetGroupStickinessObservation) DeepCopy() *LBTargetGroupStickinessObservation { if in == nil { return nil } - out := new(TargetGroupStickinessObservation) + out := new(LBTargetGroupStickinessObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetGroupStickinessParameters) DeepCopyInto(out *TargetGroupStickinessParameters) { +func (in *LBTargetGroupStickinessParameters) DeepCopyInto(out *LBTargetGroupStickinessParameters) { *out = *in if in.CookieDuration != nil { in, out := &in.CookieDuration, &out.CookieDuration @@ -1689,12 +1474,227 @@ func (in *TargetGroupStickinessParameters) DeepCopyInto(out *TargetGroupStickine } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupStickinessParameters. -func (in *TargetGroupStickinessParameters) DeepCopy() *TargetGroupStickinessParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LBTargetGroupStickinessParameters. +func (in *LBTargetGroupStickinessParameters) DeepCopy() *LBTargetGroupStickinessParameters { if in == nil { return nil } - out := new(TargetGroupStickinessParameters) + out := new(LBTargetGroupStickinessParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RedirectObservation) DeepCopyInto(out *RedirectObservation) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectObservation. +func (in *RedirectObservation) DeepCopy() *RedirectObservation { + if in == nil { + return nil + } + out := new(RedirectObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RedirectParameters) DeepCopyInto(out *RedirectParameters) { + *out = *in + if in.Host != nil { + in, out := &in.Host, &out.Host + *out = new(string) + **out = **in + } + if in.Path != nil { + in, out := &in.Path, &out.Path + *out = new(string) + **out = **in + } + if in.Port != nil { + in, out := &in.Port, &out.Port + *out = new(string) + **out = **in + } + if in.Protocol != nil { + in, out := &in.Protocol, &out.Protocol + *out = new(string) + **out = **in + } + if in.Query != nil { + in, out := &in.Query, &out.Query + *out = new(string) + **out = **in + } + if in.StatusCode != nil { + in, out := &in.StatusCode, &out.StatusCode + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedirectParameters. +func (in *RedirectParameters) DeepCopy() *RedirectParameters { + if in == nil { + return nil + } + out := new(RedirectParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StickinessObservation) DeepCopyInto(out *StickinessObservation) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StickinessObservation. +func (in *StickinessObservation) DeepCopy() *StickinessObservation { + if in == nil { + return nil + } + out := new(StickinessObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StickinessParameters) DeepCopyInto(out *StickinessParameters) { + *out = *in + if in.Duration != nil { + in, out := &in.Duration, &out.Duration + *out = new(int64) + **out = **in + } + if in.Enabled != nil { + in, out := &in.Enabled, &out.Enabled + *out = new(bool) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StickinessParameters. +func (in *StickinessParameters) DeepCopy() *StickinessParameters { + if in == nil { + return nil + } + out := new(StickinessParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubnetMappingObservation) DeepCopyInto(out *SubnetMappingObservation) { + *out = *in + if in.OutpostID != nil { + in, out := &in.OutpostID, &out.OutpostID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetMappingObservation. +func (in *SubnetMappingObservation) DeepCopy() *SubnetMappingObservation { + if in == nil { + return nil + } + out := new(SubnetMappingObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SubnetMappingParameters) DeepCopyInto(out *SubnetMappingParameters) { + *out = *in + if in.AllocationID != nil { + in, out := &in.AllocationID, &out.AllocationID + *out = new(string) + **out = **in + } + if in.IPv6Address != nil { + in, out := &in.IPv6Address, &out.IPv6Address + *out = new(string) + **out = **in + } + if in.PrivateIPv4Address != nil { + in, out := &in.PrivateIPv4Address, &out.PrivateIPv4Address + *out = new(string) + **out = **in + } + if in.SubnetID != nil { + in, out := &in.SubnetID, &out.SubnetID + *out = new(string) + **out = **in + } + if in.SubnetIDRef != nil { + in, out := &in.SubnetIDRef, &out.SubnetIDRef + *out = new(v1.Reference) + **out = **in + } + if in.SubnetIDSelector != nil { + in, out := &in.SubnetIDSelector, &out.SubnetIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetMappingParameters. +func (in *SubnetMappingParameters) DeepCopy() *SubnetMappingParameters { + if in == nil { + return nil + } + out := new(SubnetMappingParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TargetGroupObservation) DeepCopyInto(out *TargetGroupObservation) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupObservation. +func (in *TargetGroupObservation) DeepCopy() *TargetGroupObservation { + if in == nil { + return nil + } + out := new(TargetGroupObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TargetGroupParameters) DeepCopyInto(out *TargetGroupParameters) { + *out = *in + if in.Arn != nil { + in, out := &in.Arn, &out.Arn + *out = new(string) + **out = **in + } + if in.ArnRef != nil { + in, out := &in.ArnRef, &out.ArnRef + *out = new(v1.Reference) + **out = **in + } + if in.ArnSelector != nil { + in, out := &in.ArnSelector, &out.ArnSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.Weight != nil { + in, out := &in.Weight, &out.Weight + *out = new(int64) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetGroupParameters. +func (in *TargetGroupParameters) DeepCopy() *TargetGroupParameters { + if in == nil { + return nil + } + out := new(TargetGroupParameters) in.DeepCopyInto(out) return out } diff --git a/apis/elbv2/v1alpha1/zz_generated.managed.go b/apis/elbv2/v1alpha1/zz_generated.managed.go new file mode 100644 index 000000000..e08c17764 --- /dev/null +++ b/apis/elbv2/v1alpha1/zz_generated.managed.go @@ -0,0 +1,244 @@ +/* +Copyright 2021 The Crossplane Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +// Code generated by angryjet. DO NOT EDIT. + +package v1alpha1 + +import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" + +// GetCondition of this LB. +func (mg *LB) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this LB. +func (mg *LB) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this LB. +func (mg *LB) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this LB. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *LB) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this LB. +func (mg *LB) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this LB. +func (mg *LB) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this LB. +func (mg *LB) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this LB. +func (mg *LB) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this LB. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *LB) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this LB. +func (mg *LB) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this LBListener. +func (mg *LBListener) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this LBListener. +func (mg *LBListener) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this LBListener. +func (mg *LBListener) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this LBListener. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *LBListener) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this LBListener. +func (mg *LBListener) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this LBListener. +func (mg *LBListener) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this LBListener. +func (mg *LBListener) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this LBListener. +func (mg *LBListener) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this LBListener. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *LBListener) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this LBListener. +func (mg *LBListener) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this LBTargetGroup. +func (mg *LBTargetGroup) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this LBTargetGroup. +func (mg *LBTargetGroup) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this LBTargetGroup. +func (mg *LBTargetGroup) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this LBTargetGroup. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *LBTargetGroup) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this LBTargetGroup. +func (mg *LBTargetGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this LBTargetGroup. +func (mg *LBTargetGroup) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this LBTargetGroup. +func (mg *LBTargetGroup) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this LBTargetGroup. +func (mg *LBTargetGroup) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this LBTargetGroup. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *LBTargetGroup) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this LBTargetGroup. +func (mg *LBTargetGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this LBTargetGroupAttachment. +func (mg *LBTargetGroupAttachment) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this LBTargetGroupAttachment. +func (mg *LBTargetGroupAttachment) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this LBTargetGroupAttachment. +func (mg *LBTargetGroupAttachment) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this LBTargetGroupAttachment. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *LBTargetGroupAttachment) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this LBTargetGroupAttachment. +func (mg *LBTargetGroupAttachment) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this LBTargetGroupAttachment. +func (mg *LBTargetGroupAttachment) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this LBTargetGroupAttachment. +func (mg *LBTargetGroupAttachment) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this LBTargetGroupAttachment. +func (mg *LBTargetGroupAttachment) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this LBTargetGroupAttachment. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *LBTargetGroupAttachment) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this LBTargetGroupAttachment. +func (mg *LBTargetGroupAttachment) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} diff --git a/apis/elasticloadbalancing/v1alpha1/zz_generated.managedlist.go b/apis/elbv2/v1alpha1/zz_generated.managedlist.go similarity index 73% rename from apis/elasticloadbalancing/v1alpha1/zz_generated.managedlist.go rename to apis/elbv2/v1alpha1/zz_generated.managedlist.go index 1bf4c4f6a..3c4ce2ae0 100644 --- a/apis/elasticloadbalancing/v1alpha1/zz_generated.managedlist.go +++ b/apis/elbv2/v1alpha1/zz_generated.managedlist.go @@ -19,8 +19,8 @@ package v1alpha1 import resource "github.com/crossplane/crossplane-runtime/pkg/resource" -// GetItems of this LoadBalancerList. -func (l *LoadBalancerList) GetItems() []resource.Managed { +// GetItems of this LBList. +func (l *LBList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] @@ -28,8 +28,8 @@ func (l *LoadBalancerList) GetItems() []resource.Managed { return items } -// GetItems of this LoadBalancerListenerList. -func (l *LoadBalancerListenerList) GetItems() []resource.Managed { +// GetItems of this LBListenerList. +func (l *LBListenerList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] @@ -37,8 +37,8 @@ func (l *LoadBalancerListenerList) GetItems() []resource.Managed { return items } -// GetItems of this TargetGroupAttachmentList. -func (l *TargetGroupAttachmentList) GetItems() []resource.Managed { +// GetItems of this LBTargetGroupAttachmentList. +func (l *LBTargetGroupAttachmentList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] @@ -46,8 +46,8 @@ func (l *TargetGroupAttachmentList) GetItems() []resource.Managed { return items } -// GetItems of this TargetGroupList. -func (l *TargetGroupList) GetItems() []resource.Managed { +// GetItems of this LBTargetGroupList. +func (l *LBTargetGroupList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] diff --git a/apis/elasticloadbalancing/v1alpha1/zz_generated.resolvers.go b/apis/elbv2/v1alpha1/zz_generated.resolvers.go similarity index 90% rename from apis/elasticloadbalancing/v1alpha1/zz_generated.resolvers.go rename to apis/elbv2/v1alpha1/zz_generated.resolvers.go index ccdc5ea60..d6ce498ac 100644 --- a/apis/elasticloadbalancing/v1alpha1/zz_generated.resolvers.go +++ b/apis/elbv2/v1alpha1/zz_generated.resolvers.go @@ -26,8 +26,8 @@ import ( client "sigs.k8s.io/controller-runtime/pkg/client" ) -// ResolveReferences of this LoadBalancer. -func (mg *LoadBalancer) ResolveReferences(ctx context.Context, c client.Reader) error { +// ResolveReferences of this LB. +func (mg *LB) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse @@ -105,8 +105,8 @@ func (mg *LoadBalancer) ResolveReferences(ctx context.Context, c client.Reader) return nil } -// ResolveReferences of this LoadBalancerListener. -func (mg *LoadBalancerListener) ResolveReferences(ctx context.Context, c client.Reader) error { +// ResolveReferences of this LBListener. +func (mg *LBListener) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse @@ -121,8 +121,8 @@ func (mg *LoadBalancerListener) ResolveReferences(ctx context.Context, c client. Reference: mg.Spec.ForProvider.DefaultAction[i3].Forward[i4].TargetGroup[i5].ArnRef, Selector: mg.Spec.ForProvider.DefaultAction[i3].Forward[i4].TargetGroup[i5].ArnSelector, To: reference.To{ - List: &TargetGroupList{}, - Managed: &TargetGroup{}, + List: &LBTargetGroupList{}, + Managed: &LBTargetGroup{}, }, }) if err != nil { @@ -141,8 +141,8 @@ func (mg *LoadBalancerListener) ResolveReferences(ctx context.Context, c client. Reference: mg.Spec.ForProvider.DefaultAction[i3].TargetGroupArnRef, Selector: mg.Spec.ForProvider.DefaultAction[i3].TargetGroupArnSelector, To: reference.To{ - List: &TargetGroupList{}, - Managed: &TargetGroup{}, + List: &LBTargetGroupList{}, + Managed: &LBTargetGroup{}, }, }) if err != nil { @@ -158,8 +158,8 @@ func (mg *LoadBalancerListener) ResolveReferences(ctx context.Context, c client. Reference: mg.Spec.ForProvider.LoadBalancerArnRef, Selector: mg.Spec.ForProvider.LoadBalancerArnSelector, To: reference.To{ - List: &LoadBalancerList{}, - Managed: &LoadBalancer{}, + List: &LBList{}, + Managed: &LB{}, }, }) if err != nil { @@ -171,8 +171,8 @@ func (mg *LoadBalancerListener) ResolveReferences(ctx context.Context, c client. return nil } -// ResolveReferences of this TargetGroup. -func (mg *TargetGroup) ResolveReferences(ctx context.Context, c client.Reader) error { +// ResolveReferences of this LBTargetGroup. +func (mg *LBTargetGroup) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse @@ -197,8 +197,8 @@ func (mg *TargetGroup) ResolveReferences(ctx context.Context, c client.Reader) e return nil } -// ResolveReferences of this TargetGroupAttachment. -func (mg *TargetGroupAttachment) ResolveReferences(ctx context.Context, c client.Reader) error { +// ResolveReferences of this LBTargetGroupAttachment. +func (mg *LBTargetGroupAttachment) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse @@ -210,8 +210,8 @@ func (mg *TargetGroupAttachment) ResolveReferences(ctx context.Context, c client Reference: mg.Spec.ForProvider.TargetGroupArnRef, Selector: mg.Spec.ForProvider.TargetGroupArnSelector, To: reference.To{ - List: &TargetGroupList{}, - Managed: &TargetGroup{}, + List: &LBTargetGroupList{}, + Managed: &LBTargetGroup{}, }, }) if err != nil { diff --git a/apis/ebs/v1alpha1/zz_groupversion_info.go b/apis/elbv2/v1alpha1/zz_groupversion_info.go similarity index 93% rename from apis/ebs/v1alpha1/zz_groupversion_info.go rename to apis/elbv2/v1alpha1/zz_groupversion_info.go index f457cb88d..f943471ab 100755 --- a/apis/ebs/v1alpha1/zz_groupversion_info.go +++ b/apis/elbv2/v1alpha1/zz_groupversion_info.go @@ -17,7 +17,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. // +kubebuilder:object:generate=true -// +groupName=ebs.aws.jet.crossplane.io +// +groupName=elbv2.aws.jet.crossplane.io // +versionName=v1alpha1 package v1alpha1 @@ -28,7 +28,7 @@ import ( // Package type metadata. const ( - CRDGroup = "ebs.aws.jet.crossplane.io" + CRDGroup = "elbv2.aws.jet.crossplane.io" CRDVersion = "v1alpha1" ) diff --git a/apis/elbv2/v1alpha1/zz_lb_terraformed.go b/apis/elbv2/v1alpha1/zz_lb_terraformed.go new file mode 100755 index 000000000..65a41187b --- /dev/null +++ b/apis/elbv2/v1alpha1/zz_lb_terraformed.go @@ -0,0 +1,100 @@ +/* +Copyright 2021 The Crossplane Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by terrajet. DO NOT EDIT. + +package v1alpha1 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this LB +func (mg *LB) GetTerraformResourceType() string { + return "aws_lb" +} + +// GetConnectionDetailsMapping for this LB +func (tr *LB) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this LB +func (tr *LB) GetObservation() (map[string]interface{}, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this LB +func (tr *LB) SetObservation(obs map[string]interface{}) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this LB +func (tr *LB) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this LB +func (tr *LB) GetParameters() (map[string]interface{}, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this LB +func (tr *LB) SetParameters(params map[string]interface{}) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this LB using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *LB) LateInitialize(attrs []byte) (bool, error) { + params := &LBParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *LB) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/elasticloadbalancing/v1alpha1/zz_loadbalancer_types.go b/apis/elbv2/v1alpha1/zz_lb_types.go similarity index 86% rename from apis/elasticloadbalancing/v1alpha1/zz_loadbalancer_types.go rename to apis/elbv2/v1alpha1/zz_lb_types.go index 1b9c8cb16..a247d3bfd 100755 --- a/apis/elasticloadbalancing/v1alpha1/zz_loadbalancer_types.go +++ b/apis/elbv2/v1alpha1/zz_lb_types.go @@ -47,7 +47,7 @@ type AccessLogsParameters struct { Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"` } -type LoadBalancerObservation struct { +type LBObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` ArnSuffix *string `json:"arnSuffix,omitempty" tf:"arn_suffix,omitempty"` @@ -63,7 +63,7 @@ type LoadBalancerObservation struct { ZoneID *string `json:"zoneId,omitempty" tf:"zone_id,omitempty"` } -type LoadBalancerParameters struct { +type LBParameters struct { // +kubebuilder:validation:Optional AccessLogs []AccessLogsParameters `json:"accessLogs,omitempty" tf:"access_logs,omitempty"` @@ -160,51 +160,51 @@ type SubnetMappingParameters struct { SubnetIDSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"` } -// LoadBalancerSpec defines the desired state of LoadBalancer -type LoadBalancerSpec struct { +// LBSpec defines the desired state of LB +type LBSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider LoadBalancerParameters `json:"forProvider"` + ForProvider LBParameters `json:"forProvider"` } -// LoadBalancerStatus defines the observed state of LoadBalancer. -type LoadBalancerStatus struct { +// LBStatus defines the observed state of LB. +type LBStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider LoadBalancerObservation `json:"atProvider,omitempty"` + AtProvider LBObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// LoadBalancer is the Schema for the LoadBalancers API +// LB is the Schema for the LBs API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type LoadBalancer struct { +type LB struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec LoadBalancerSpec `json:"spec"` - Status LoadBalancerStatus `json:"status,omitempty"` + Spec LBSpec `json:"spec"` + Status LBStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// LoadBalancerList contains a list of LoadBalancers -type LoadBalancerList struct { +// LBList contains a list of LBs +type LBList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []LoadBalancer `json:"items"` + Items []LB `json:"items"` } // Repository type metadata. var ( - LoadBalancer_Kind = "LoadBalancer" - LoadBalancer_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: LoadBalancer_Kind}.String() - LoadBalancer_KindAPIVersion = LoadBalancer_Kind + "." + CRDGroupVersion.String() - LoadBalancer_GroupVersionKind = CRDGroupVersion.WithKind(LoadBalancer_Kind) + LB_Kind = "LB" + LB_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: LB_Kind}.String() + LB_KindAPIVersion = LB_Kind + "." + CRDGroupVersion.String() + LB_GroupVersionKind = CRDGroupVersion.WithKind(LB_Kind) ) func init() { - SchemeBuilder.Register(&LoadBalancer{}, &LoadBalancerList{}) + SchemeBuilder.Register(&LB{}, &LBList{}) } diff --git a/apis/elasticloadbalancing/v1alpha1/zz_loadbalancerlistener_terraformed.go b/apis/elbv2/v1alpha1/zz_lblistener_terraformed.go similarity index 66% rename from apis/elasticloadbalancing/v1alpha1/zz_loadbalancerlistener_terraformed.go rename to apis/elbv2/v1alpha1/zz_lblistener_terraformed.go index 0997df60e..8ba5e1eff 100755 --- a/apis/elasticloadbalancing/v1alpha1/zz_loadbalancerlistener_terraformed.go +++ b/apis/elbv2/v1alpha1/zz_lblistener_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this LoadBalancerListener -func (mg *LoadBalancerListener) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this LBListener +func (mg *LBListener) GetTerraformResourceType() string { return "aws_lb_listener" } -// GetConnectionDetailsMapping for this LoadBalancerListener -func (tr *LoadBalancerListener) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this LBListener +func (tr *LBListener) GetConnectionDetailsMapping() map[string]string { return map[string]string{"default_action[*].authenticate_oidc[*].client_secret": "spec.forProvider.defaultAction[*].authenticateOidc[*].clientSecretSecretRef"} } -// GetObservation of this LoadBalancerListener -func (tr *LoadBalancerListener) GetObservation() (map[string]interface{}, error) { +// GetObservation of this LBListener +func (tr *LBListener) GetObservation() (map[string]interface{}, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -45,8 +45,8 @@ func (tr *LoadBalancerListener) GetObservation() (map[string]interface{}, error) return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this LoadBalancerListener -func (tr *LoadBalancerListener) SetObservation(obs map[string]interface{}) error { +// SetObservation for this LBListener +func (tr *LBListener) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,16 +54,16 @@ func (tr *LoadBalancerListener) SetObservation(obs map[string]interface{}) error return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this LoadBalancerListener -func (tr *LoadBalancerListener) GetID() string { +// GetID returns ID of underlying Terraform resource of this LBListener +func (tr *LBListener) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this LoadBalancerListener -func (tr *LoadBalancerListener) GetParameters() (map[string]interface{}, error) { +// GetParameters of this LBListener +func (tr *LBListener) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -72,8 +72,8 @@ func (tr *LoadBalancerListener) GetParameters() (map[string]interface{}, error) return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this LoadBalancerListener -func (tr *LoadBalancerListener) SetParameters(params map[string]interface{}) error { +// SetParameters for this LBListener +func (tr *LBListener) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -81,10 +81,10 @@ func (tr *LoadBalancerListener) SetParameters(params map[string]interface{}) err return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this LoadBalancerListener using its observed tfState. +// LateInitialize this LBListener using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *LoadBalancerListener) LateInitialize(attrs []byte) (bool, error) { - params := &LoadBalancerListenerParameters{} +func (tr *LBListener) LateInitialize(attrs []byte) (bool, error) { + params := &LBListenerParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -95,6 +95,6 @@ func (tr *LoadBalancerListener) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *LoadBalancerListener) GetTerraformSchemaVersion() int { +func (tr *LBListener) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/elasticloadbalancing/v1alpha1/zz_loadbalancerlistener_types.go b/apis/elbv2/v1alpha1/zz_lblistener_types.go similarity index 86% rename from apis/elasticloadbalancing/v1alpha1/zz_loadbalancerlistener_types.go rename to apis/elbv2/v1alpha1/zz_lblistener_types.go index 73ab19cc3..c9c30cb4a 100755 --- a/apis/elasticloadbalancing/v1alpha1/zz_loadbalancerlistener_types.go +++ b/apis/elbv2/v1alpha1/zz_lblistener_types.go @@ -117,7 +117,7 @@ type DefaultActionParameters struct { // +kubebuilder:validation:Optional Redirect []RedirectParameters `json:"redirect,omitempty" tf:"redirect,omitempty"` - // +crossplane:generate:reference:type=TargetGroup + // +crossplane:generate:reference:type=LBTargetGroup // +kubebuilder:validation:Optional TargetGroupArn *string `json:"targetGroupArn,omitempty" tf:"target_group_arn,omitempty"` @@ -158,7 +158,7 @@ type ForwardParameters struct { TargetGroup []TargetGroupParameters `json:"targetGroup" tf:"target_group,omitempty"` } -type LoadBalancerListenerObservation struct { +type LBListenerObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` @@ -166,7 +166,7 @@ type LoadBalancerListenerObservation struct { TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } -type LoadBalancerListenerParameters struct { +type LBListenerParameters struct { // +kubebuilder:validation:Optional AlpnPolicy *string `json:"alpnPolicy,omitempty" tf:"alpn_policy,omitempty"` @@ -177,7 +177,7 @@ type LoadBalancerListenerParameters struct { // +kubebuilder:validation:Required DefaultAction []DefaultActionParameters `json:"defaultAction" tf:"default_action,omitempty"` - // +crossplane:generate:reference:type=LoadBalancer + // +crossplane:generate:reference:type=LB // +kubebuilder:validation:Optional LoadBalancerArn *string `json:"loadBalancerArn,omitempty" tf:"load_balancer_arn,omitempty"` @@ -246,7 +246,7 @@ type TargetGroupObservation struct { type TargetGroupParameters struct { - // +crossplane:generate:reference:type=TargetGroup + // +crossplane:generate:reference:type=LBTargetGroup // +kubebuilder:validation:Optional Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` @@ -260,51 +260,51 @@ type TargetGroupParameters struct { Weight *int64 `json:"weight,omitempty" tf:"weight,omitempty"` } -// LoadBalancerListenerSpec defines the desired state of LoadBalancerListener -type LoadBalancerListenerSpec struct { +// LBListenerSpec defines the desired state of LBListener +type LBListenerSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider LoadBalancerListenerParameters `json:"forProvider"` + ForProvider LBListenerParameters `json:"forProvider"` } -// LoadBalancerListenerStatus defines the observed state of LoadBalancerListener. -type LoadBalancerListenerStatus struct { +// LBListenerStatus defines the observed state of LBListener. +type LBListenerStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider LoadBalancerListenerObservation `json:"atProvider,omitempty"` + AtProvider LBListenerObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// LoadBalancerListener is the Schema for the LoadBalancerListeners API +// LBListener is the Schema for the LBListeners API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type LoadBalancerListener struct { +type LBListener struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec LoadBalancerListenerSpec `json:"spec"` - Status LoadBalancerListenerStatus `json:"status,omitempty"` + Spec LBListenerSpec `json:"spec"` + Status LBListenerStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// LoadBalancerListenerList contains a list of LoadBalancerListeners -type LoadBalancerListenerList struct { +// LBListenerList contains a list of LBListeners +type LBListenerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []LoadBalancerListener `json:"items"` + Items []LBListener `json:"items"` } // Repository type metadata. var ( - LoadBalancerListener_Kind = "LoadBalancerListener" - LoadBalancerListener_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: LoadBalancerListener_Kind}.String() - LoadBalancerListener_KindAPIVersion = LoadBalancerListener_Kind + "." + CRDGroupVersion.String() - LoadBalancerListener_GroupVersionKind = CRDGroupVersion.WithKind(LoadBalancerListener_Kind) + LBListener_Kind = "LBListener" + LBListener_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: LBListener_Kind}.String() + LBListener_KindAPIVersion = LBListener_Kind + "." + CRDGroupVersion.String() + LBListener_GroupVersionKind = CRDGroupVersion.WithKind(LBListener_Kind) ) func init() { - SchemeBuilder.Register(&LoadBalancerListener{}, &LoadBalancerListenerList{}) + SchemeBuilder.Register(&LBListener{}, &LBListenerList{}) } diff --git a/apis/elasticloadbalancing/v1alpha1/zz_targetgroup_terraformed.go b/apis/elbv2/v1alpha1/zz_lbtargetgroup_terraformed.go similarity index 68% rename from apis/elasticloadbalancing/v1alpha1/zz_targetgroup_terraformed.go rename to apis/elbv2/v1alpha1/zz_lbtargetgroup_terraformed.go index f2975d3ef..8b151248f 100755 --- a/apis/elasticloadbalancing/v1alpha1/zz_targetgroup_terraformed.go +++ b/apis/elbv2/v1alpha1/zz_lbtargetgroup_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this TargetGroup -func (mg *TargetGroup) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this LBTargetGroup +func (mg *LBTargetGroup) GetTerraformResourceType() string { return "aws_lb_target_group" } -// GetConnectionDetailsMapping for this TargetGroup -func (tr *TargetGroup) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this LBTargetGroup +func (tr *LBTargetGroup) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this TargetGroup -func (tr *TargetGroup) GetObservation() (map[string]interface{}, error) { +// GetObservation of this LBTargetGroup +func (tr *LBTargetGroup) GetObservation() (map[string]interface{}, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -45,8 +45,8 @@ func (tr *TargetGroup) GetObservation() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this TargetGroup -func (tr *TargetGroup) SetObservation(obs map[string]interface{}) error { +// SetObservation for this LBTargetGroup +func (tr *LBTargetGroup) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,16 +54,16 @@ func (tr *TargetGroup) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this TargetGroup -func (tr *TargetGroup) GetID() string { +// GetID returns ID of underlying Terraform resource of this LBTargetGroup +func (tr *LBTargetGroup) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this TargetGroup -func (tr *TargetGroup) GetParameters() (map[string]interface{}, error) { +// GetParameters of this LBTargetGroup +func (tr *LBTargetGroup) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -72,8 +72,8 @@ func (tr *TargetGroup) GetParameters() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this TargetGroup -func (tr *TargetGroup) SetParameters(params map[string]interface{}) error { +// SetParameters for this LBTargetGroup +func (tr *LBTargetGroup) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -81,10 +81,10 @@ func (tr *TargetGroup) SetParameters(params map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this TargetGroup using its observed tfState. +// LateInitialize this LBTargetGroup using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *TargetGroup) LateInitialize(attrs []byte) (bool, error) { - params := &TargetGroupParameters_2{} +func (tr *LBTargetGroup) LateInitialize(attrs []byte) (bool, error) { + params := &LBTargetGroupParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -95,6 +95,6 @@ func (tr *TargetGroup) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *TargetGroup) GetTerraformSchemaVersion() int { +func (tr *LBTargetGroup) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/elasticloadbalancing/v1alpha1/zz_targetgroup_types.go b/apis/elbv2/v1alpha1/zz_lbtargetgroup_types.go similarity index 81% rename from apis/elasticloadbalancing/v1alpha1/zz_targetgroup_types.go rename to apis/elbv2/v1alpha1/zz_lbtargetgroup_types.go index bff4ca124..c70fdc34b 100755 --- a/apis/elasticloadbalancing/v1alpha1/zz_targetgroup_types.go +++ b/apis/elbv2/v1alpha1/zz_lbtargetgroup_types.go @@ -58,7 +58,7 @@ type HealthCheckParameters struct { UnhealthyThreshold *int64 `json:"unhealthyThreshold,omitempty" tf:"unhealthy_threshold,omitempty"` } -type TargetGroupObservation_2 struct { +type LBTargetGroupObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` ArnSuffix *string `json:"arnSuffix,omitempty" tf:"arn_suffix,omitempty"` @@ -68,7 +68,7 @@ type TargetGroupObservation_2 struct { TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } -type TargetGroupParameters_2 struct { +type LBTargetGroupParameters struct { // +kubebuilder:validation:Optional DeregistrationDelay *int64 `json:"deregistrationDelay,omitempty" tf:"deregistration_delay,omitempty"` @@ -109,7 +109,7 @@ type TargetGroupParameters_2 struct { SlowStart *int64 `json:"slowStart,omitempty" tf:"slow_start,omitempty"` // +kubebuilder:validation:Optional - Stickiness []TargetGroupStickinessParameters `json:"stickiness,omitempty" tf:"stickiness,omitempty"` + Stickiness []LBTargetGroupStickinessParameters `json:"stickiness,omitempty" tf:"stickiness,omitempty"` // +kubebuilder:validation:Optional Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` @@ -128,10 +128,10 @@ type TargetGroupParameters_2 struct { VPCIDSelector *v1.Selector `json:"vpcidSelector,omitempty" tf:"-"` } -type TargetGroupStickinessObservation struct { +type LBTargetGroupStickinessObservation struct { } -type TargetGroupStickinessParameters struct { +type LBTargetGroupStickinessParameters struct { // +kubebuilder:validation:Optional CookieDuration *int64 `json:"cookieDuration,omitempty" tf:"cookie_duration,omitempty"` @@ -146,51 +146,51 @@ type TargetGroupStickinessParameters struct { Type *string `json:"type" tf:"type,omitempty"` } -// TargetGroupSpec defines the desired state of TargetGroup -type TargetGroupSpec struct { +// LBTargetGroupSpec defines the desired state of LBTargetGroup +type LBTargetGroupSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider TargetGroupParameters_2 `json:"forProvider"` + ForProvider LBTargetGroupParameters `json:"forProvider"` } -// TargetGroupStatus defines the observed state of TargetGroup. -type TargetGroupStatus struct { +// LBTargetGroupStatus defines the observed state of LBTargetGroup. +type LBTargetGroupStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider TargetGroupObservation_2 `json:"atProvider,omitempty"` + AtProvider LBTargetGroupObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// TargetGroup is the Schema for the TargetGroups API +// LBTargetGroup is the Schema for the LBTargetGroups API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type TargetGroup struct { +type LBTargetGroup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec TargetGroupSpec `json:"spec"` - Status TargetGroupStatus `json:"status,omitempty"` + Spec LBTargetGroupSpec `json:"spec"` + Status LBTargetGroupStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// TargetGroupList contains a list of TargetGroups -type TargetGroupList struct { +// LBTargetGroupList contains a list of LBTargetGroups +type LBTargetGroupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []TargetGroup `json:"items"` + Items []LBTargetGroup `json:"items"` } // Repository type metadata. var ( - TargetGroup_Kind = "TargetGroup" - TargetGroup_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: TargetGroup_Kind}.String() - TargetGroup_KindAPIVersion = TargetGroup_Kind + "." + CRDGroupVersion.String() - TargetGroup_GroupVersionKind = CRDGroupVersion.WithKind(TargetGroup_Kind) + LBTargetGroup_Kind = "LBTargetGroup" + LBTargetGroup_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: LBTargetGroup_Kind}.String() + LBTargetGroup_KindAPIVersion = LBTargetGroup_Kind + "." + CRDGroupVersion.String() + LBTargetGroup_GroupVersionKind = CRDGroupVersion.WithKind(LBTargetGroup_Kind) ) func init() { - SchemeBuilder.Register(&TargetGroup{}, &TargetGroupList{}) + SchemeBuilder.Register(&LBTargetGroup{}, &LBTargetGroupList{}) } diff --git a/apis/route53/v1alpha1/zz_resolverruleassociation_terraformed.go b/apis/elbv2/v1alpha1/zz_lbtargetgroupattachment_terraformed.go similarity index 67% rename from apis/route53/v1alpha1/zz_resolverruleassociation_terraformed.go rename to apis/elbv2/v1alpha1/zz_lbtargetgroupattachment_terraformed.go index 81d369276..20c0dd3a1 100755 --- a/apis/route53/v1alpha1/zz_resolverruleassociation_terraformed.go +++ b/apis/elbv2/v1alpha1/zz_lbtargetgroupattachment_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ResolverRuleAssociation -func (mg *ResolverRuleAssociation) GetTerraformResourceType() string { - return "aws_route53_resolver_rule_association" +// GetTerraformResourceType returns Terraform resource type for this LBTargetGroupAttachment +func (mg *LBTargetGroupAttachment) GetTerraformResourceType() string { + return "aws_lb_target_group_attachment" } -// GetConnectionDetailsMapping for this ResolverRuleAssociation -func (tr *ResolverRuleAssociation) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this LBTargetGroupAttachment +func (tr *LBTargetGroupAttachment) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ResolverRuleAssociation -func (tr *ResolverRuleAssociation) GetObservation() (map[string]interface{}, error) { +// GetObservation of this LBTargetGroupAttachment +func (tr *LBTargetGroupAttachment) GetObservation() (map[string]interface{}, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -45,8 +45,8 @@ func (tr *ResolverRuleAssociation) GetObservation() (map[string]interface{}, err return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this ResolverRuleAssociation -func (tr *ResolverRuleAssociation) SetObservation(obs map[string]interface{}) error { +// SetObservation for this LBTargetGroupAttachment +func (tr *LBTargetGroupAttachment) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,16 +54,16 @@ func (tr *ResolverRuleAssociation) SetObservation(obs map[string]interface{}) er return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this ResolverRuleAssociation -func (tr *ResolverRuleAssociation) GetID() string { +// GetID returns ID of underlying Terraform resource of this LBTargetGroupAttachment +func (tr *LBTargetGroupAttachment) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this ResolverRuleAssociation -func (tr *ResolverRuleAssociation) GetParameters() (map[string]interface{}, error) { +// GetParameters of this LBTargetGroupAttachment +func (tr *LBTargetGroupAttachment) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -72,8 +72,8 @@ func (tr *ResolverRuleAssociation) GetParameters() (map[string]interface{}, erro return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this ResolverRuleAssociation -func (tr *ResolverRuleAssociation) SetParameters(params map[string]interface{}) error { +// SetParameters for this LBTargetGroupAttachment +func (tr *LBTargetGroupAttachment) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -81,10 +81,10 @@ func (tr *ResolverRuleAssociation) SetParameters(params map[string]interface{}) return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this ResolverRuleAssociation using its observed tfState. +// LateInitialize this LBTargetGroupAttachment using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *ResolverRuleAssociation) LateInitialize(attrs []byte) (bool, error) { - params := &ResolverRuleAssociationParameters{} +func (tr *LBTargetGroupAttachment) LateInitialize(attrs []byte) (bool, error) { + params := &LBTargetGroupAttachmentParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -95,6 +95,6 @@ func (tr *ResolverRuleAssociation) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ResolverRuleAssociation) GetTerraformSchemaVersion() int { +func (tr *LBTargetGroupAttachment) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/elasticloadbalancing/v1alpha1/zz_targetgroupattachment_types.go b/apis/elbv2/v1alpha1/zz_lbtargetgroupattachment_types.go similarity index 64% rename from apis/elasticloadbalancing/v1alpha1/zz_targetgroupattachment_types.go rename to apis/elbv2/v1alpha1/zz_lbtargetgroupattachment_types.go index 13463e28a..04de3b0ea 100755 --- a/apis/elasticloadbalancing/v1alpha1/zz_targetgroupattachment_types.go +++ b/apis/elbv2/v1alpha1/zz_lbtargetgroupattachment_types.go @@ -25,11 +25,11 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type TargetGroupAttachmentObservation struct { +type LBTargetGroupAttachmentObservation struct { ID *string `json:"id,omitempty" tf:"id,omitempty"` } -type TargetGroupAttachmentParameters struct { +type LBTargetGroupAttachmentParameters struct { // +kubebuilder:validation:Optional AvailabilityZone *string `json:"availabilityZone,omitempty" tf:"availability_zone,omitempty"` @@ -42,7 +42,7 @@ type TargetGroupAttachmentParameters struct { // +kubebuilder:validation:Required Region *string `json:"region" tf:"-"` - // +crossplane:generate:reference:type=TargetGroup + // +crossplane:generate:reference:type=LBTargetGroup // +kubebuilder:validation:Optional TargetGroupArn *string `json:"targetGroupArn,omitempty" tf:"target_group_arn,omitempty"` @@ -56,51 +56,51 @@ type TargetGroupAttachmentParameters struct { TargetID *string `json:"targetId" tf:"target_id,omitempty"` } -// TargetGroupAttachmentSpec defines the desired state of TargetGroupAttachment -type TargetGroupAttachmentSpec struct { +// LBTargetGroupAttachmentSpec defines the desired state of LBTargetGroupAttachment +type LBTargetGroupAttachmentSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider TargetGroupAttachmentParameters `json:"forProvider"` + ForProvider LBTargetGroupAttachmentParameters `json:"forProvider"` } -// TargetGroupAttachmentStatus defines the observed state of TargetGroupAttachment. -type TargetGroupAttachmentStatus struct { +// LBTargetGroupAttachmentStatus defines the observed state of LBTargetGroupAttachment. +type LBTargetGroupAttachmentStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider TargetGroupAttachmentObservation `json:"atProvider,omitempty"` + AtProvider LBTargetGroupAttachmentObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// TargetGroupAttachment is the Schema for the TargetGroupAttachments API +// LBTargetGroupAttachment is the Schema for the LBTargetGroupAttachments API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type TargetGroupAttachment struct { +type LBTargetGroupAttachment struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec TargetGroupAttachmentSpec `json:"spec"` - Status TargetGroupAttachmentStatus `json:"status,omitempty"` + Spec LBTargetGroupAttachmentSpec `json:"spec"` + Status LBTargetGroupAttachmentStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// TargetGroupAttachmentList contains a list of TargetGroupAttachments -type TargetGroupAttachmentList struct { +// LBTargetGroupAttachmentList contains a list of LBTargetGroupAttachments +type LBTargetGroupAttachmentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []TargetGroupAttachment `json:"items"` + Items []LBTargetGroupAttachment `json:"items"` } // Repository type metadata. var ( - TargetGroupAttachment_Kind = "TargetGroupAttachment" - TargetGroupAttachment_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: TargetGroupAttachment_Kind}.String() - TargetGroupAttachment_KindAPIVersion = TargetGroupAttachment_Kind + "." + CRDGroupVersion.String() - TargetGroupAttachment_GroupVersionKind = CRDGroupVersion.WithKind(TargetGroupAttachment_Kind) + LBTargetGroupAttachment_Kind = "LBTargetGroupAttachment" + LBTargetGroupAttachment_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: LBTargetGroupAttachment_Kind}.String() + LBTargetGroupAttachment_KindAPIVersion = LBTargetGroupAttachment_Kind + "." + CRDGroupVersion.String() + LBTargetGroupAttachment_GroupVersionKind = CRDGroupVersion.WithKind(LBTargetGroupAttachment_Kind) ) func init() { - SchemeBuilder.Register(&TargetGroupAttachment{}, &TargetGroupAttachmentList{}) + SchemeBuilder.Register(&LBTargetGroupAttachment{}, &LBTargetGroupAttachmentList{}) } diff --git a/apis/kms/v1alpha1/extractor.go b/apis/kms/v1alpha1/extractor.go index 3da4a8605..8b29c7d17 100644 --- a/apis/kms/v1alpha1/extractor.go +++ b/apis/kms/v1alpha1/extractor.go @@ -1,3 +1,19 @@ +/* +Copyright 2021 The Crossplane Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + package v1alpha1 import ( diff --git a/apis/rds/v1alpha1/zz_dbcluster_terraformed.go b/apis/rds/v1alpha1/zz_cluster_terraformed.go similarity index 70% rename from apis/rds/v1alpha1/zz_dbcluster_terraformed.go rename to apis/rds/v1alpha1/zz_cluster_terraformed.go index c88b4f9cd..0505969dd 100755 --- a/apis/rds/v1alpha1/zz_dbcluster_terraformed.go +++ b/apis/rds/v1alpha1/zz_cluster_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this DBCluster -func (mg *DBCluster) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this Cluster +func (mg *Cluster) GetTerraformResourceType() string { return "aws_rds_cluster" } -// GetConnectionDetailsMapping for this DBCluster -func (tr *DBCluster) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this Cluster +func (tr *Cluster) GetConnectionDetailsMapping() map[string]string { return map[string]string{"master_password": "spec.forProvider.masterPasswordSecretRef"} } -// GetObservation of this DBCluster -func (tr *DBCluster) GetObservation() (map[string]interface{}, error) { +// GetObservation of this Cluster +func (tr *Cluster) GetObservation() (map[string]interface{}, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -45,8 +45,8 @@ func (tr *DBCluster) GetObservation() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this DBCluster -func (tr *DBCluster) SetObservation(obs map[string]interface{}) error { +// SetObservation for this Cluster +func (tr *Cluster) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,16 +54,16 @@ func (tr *DBCluster) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this DBCluster -func (tr *DBCluster) GetID() string { +// GetID returns ID of underlying Terraform resource of this Cluster +func (tr *Cluster) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this DBCluster -func (tr *DBCluster) GetParameters() (map[string]interface{}, error) { +// GetParameters of this Cluster +func (tr *Cluster) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -72,8 +72,8 @@ func (tr *DBCluster) GetParameters() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this DBCluster -func (tr *DBCluster) SetParameters(params map[string]interface{}) error { +// SetParameters for this Cluster +func (tr *Cluster) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -81,10 +81,10 @@ func (tr *DBCluster) SetParameters(params map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this DBCluster using its observed tfState. +// LateInitialize this Cluster using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *DBCluster) LateInitialize(attrs []byte) (bool, error) { - params := &DBClusterParameters{} +func (tr *Cluster) LateInitialize(attrs []byte) (bool, error) { + params := &ClusterParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -95,6 +95,6 @@ func (tr *DBCluster) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *DBCluster) GetTerraformSchemaVersion() int { +func (tr *Cluster) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/rds/v1alpha1/zz_dbcluster_types.go b/apis/rds/v1alpha1/zz_cluster_types.go similarity index 86% rename from apis/rds/v1alpha1/zz_dbcluster_types.go rename to apis/rds/v1alpha1/zz_cluster_types.go index 6240356b3..f53d04dd8 100755 --- a/apis/rds/v1alpha1/zz_dbcluster_types.go +++ b/apis/rds/v1alpha1/zz_cluster_types.go @@ -25,7 +25,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type DBClusterObservation struct { +type ClusterObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` ClusterResourceID *string `json:"clusterResourceId,omitempty" tf:"cluster_resource_id,omitempty"` @@ -43,7 +43,7 @@ type DBClusterObservation struct { TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } -type DBClusterParameters struct { +type ClusterParameters struct { // +kubebuilder:validation:Optional AllowMajorVersionUpgrade *bool `json:"allowMajorVersionUpgrade,omitempty" tf:"allow_major_version_upgrade,omitempty"` @@ -138,10 +138,10 @@ type DBClusterParameters struct { ReplicationSourceIdentifier *string `json:"replicationSourceIdentifier,omitempty" tf:"replication_source_identifier,omitempty"` // +kubebuilder:validation:Optional - RestoreToPointInTime []DBClusterRestoreToPointInTimeParameters `json:"restoreToPointInTime,omitempty" tf:"restore_to_point_in_time,omitempty"` + RestoreToPointInTime []ClusterRestoreToPointInTimeParameters `json:"restoreToPointInTime,omitempty" tf:"restore_to_point_in_time,omitempty"` // +kubebuilder:validation:Optional - S3Import []DBClusterS3ImportParameters `json:"s3Import,omitempty" tf:"s3_import,omitempty"` + S3Import []ClusterS3ImportParameters `json:"s3Import,omitempty" tf:"s3_import,omitempty"` // +kubebuilder:validation:Optional ScalingConfiguration []ScalingConfigurationParameters `json:"scalingConfiguration,omitempty" tf:"scaling_configuration,omitempty"` @@ -165,10 +165,10 @@ type DBClusterParameters struct { VPCSecurityGroupIds []*string `json:"vpcSecurityGroupIds,omitempty" tf:"vpc_security_group_ids,omitempty"` } -type DBClusterRestoreToPointInTimeObservation struct { +type ClusterRestoreToPointInTimeObservation struct { } -type DBClusterRestoreToPointInTimeParameters struct { +type ClusterRestoreToPointInTimeParameters struct { // +kubebuilder:validation:Optional RestoreToTime *string `json:"restoreToTime,omitempty" tf:"restore_to_time,omitempty"` @@ -183,10 +183,10 @@ type DBClusterRestoreToPointInTimeParameters struct { UseLatestRestorableTime *bool `json:"useLatestRestorableTime,omitempty" tf:"use_latest_restorable_time,omitempty"` } -type DBClusterS3ImportObservation struct { +type ClusterS3ImportObservation struct { } -type DBClusterS3ImportParameters struct { +type ClusterS3ImportParameters struct { // +kubebuilder:validation:Required BucketName *string `json:"bucketName" tf:"bucket_name,omitempty"` @@ -225,51 +225,51 @@ type ScalingConfigurationParameters struct { TimeoutAction *string `json:"timeoutAction,omitempty" tf:"timeout_action,omitempty"` } -// DBClusterSpec defines the desired state of DBCluster -type DBClusterSpec struct { +// ClusterSpec defines the desired state of Cluster +type ClusterSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider DBClusterParameters `json:"forProvider"` + ForProvider ClusterParameters `json:"forProvider"` } -// DBClusterStatus defines the observed state of DBCluster. -type DBClusterStatus struct { +// ClusterStatus defines the observed state of Cluster. +type ClusterStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider DBClusterObservation `json:"atProvider,omitempty"` + AtProvider ClusterObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// DBCluster is the Schema for the DBClusters API +// Cluster is the Schema for the Clusters API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type DBCluster struct { +type Cluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DBClusterSpec `json:"spec"` - Status DBClusterStatus `json:"status,omitempty"` + Spec ClusterSpec `json:"spec"` + Status ClusterStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// DBClusterList contains a list of DBClusters -type DBClusterList struct { +// ClusterList contains a list of Clusters +type ClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DBCluster `json:"items"` + Items []Cluster `json:"items"` } // Repository type metadata. var ( - DBCluster_Kind = "DBCluster" - DBCluster_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: DBCluster_Kind}.String() - DBCluster_KindAPIVersion = DBCluster_Kind + "." + CRDGroupVersion.String() - DBCluster_GroupVersionKind = CRDGroupVersion.WithKind(DBCluster_Kind) + Cluster_Kind = "Cluster" + Cluster_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Cluster_Kind}.String() + Cluster_KindAPIVersion = Cluster_Kind + "." + CRDGroupVersion.String() + Cluster_GroupVersionKind = CRDGroupVersion.WithKind(Cluster_Kind) ) func init() { - SchemeBuilder.Register(&DBCluster{}, &DBClusterList{}) + SchemeBuilder.Register(&Cluster{}, &ClusterList{}) } diff --git a/apis/rds/v1alpha1/zz_generated.deepcopy.go b/apis/rds/v1alpha1/zz_generated.deepcopy.go index b99212fb0..e3c956f8a 100644 --- a/apis/rds/v1alpha1/zz_generated.deepcopy.go +++ b/apis/rds/v1alpha1/zz_generated.deepcopy.go @@ -26,7 +26,7 @@ import ( ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBCluster) DeepCopyInto(out *DBCluster) { +func (in *Cluster) DeepCopyInto(out *Cluster) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -34,18 +34,18 @@ func (in *DBCluster) DeepCopyInto(out *DBCluster) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBCluster. -func (in *DBCluster) DeepCopy() *DBCluster { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster. +func (in *Cluster) DeepCopy() *Cluster { if in == nil { return nil } - out := new(DBCluster) + out := new(Cluster) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DBCluster) DeepCopyObject() runtime.Object { +func (in *Cluster) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -53,31 +53,31 @@ func (in *DBCluster) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBClusterList) DeepCopyInto(out *DBClusterList) { +func (in *ClusterList) DeepCopyInto(out *ClusterList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DBCluster, len(*in)) + *out = make([]Cluster, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBClusterList. -func (in *DBClusterList) DeepCopy() *DBClusterList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList. +func (in *ClusterList) DeepCopy() *ClusterList { if in == nil { return nil } - out := new(DBClusterList) + out := new(ClusterList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DBClusterList) DeepCopyObject() runtime.Object { +func (in *ClusterList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -85,7 +85,7 @@ func (in *DBClusterList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBClusterObservation) DeepCopyInto(out *DBClusterObservation) { +func (in *ClusterObservation) DeepCopyInto(out *ClusterObservation) { *out = *in if in.Arn != nil { in, out := &in.Arn, &out.Arn @@ -139,18 +139,18 @@ func (in *DBClusterObservation) DeepCopyInto(out *DBClusterObservation) { } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBClusterObservation. -func (in *DBClusterObservation) DeepCopy() *DBClusterObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterObservation. +func (in *ClusterObservation) DeepCopy() *ClusterObservation { if in == nil { return nil } - out := new(DBClusterObservation) + out := new(ClusterObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBClusterParameters) DeepCopyInto(out *DBClusterParameters) { +func (in *ClusterParameters) DeepCopyInto(out *ClusterParameters) { *out = *in if in.AllowMajorVersionUpgrade != nil { in, out := &in.AllowMajorVersionUpgrade, &out.AllowMajorVersionUpgrade @@ -328,14 +328,14 @@ func (in *DBClusterParameters) DeepCopyInto(out *DBClusterParameters) { } if in.RestoreToPointInTime != nil { in, out := &in.RestoreToPointInTime, &out.RestoreToPointInTime - *out = make([]DBClusterRestoreToPointInTimeParameters, len(*in)) + *out = make([]ClusterRestoreToPointInTimeParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.S3Import != nil { in, out := &in.S3Import, &out.S3Import - *out = make([]DBClusterS3ImportParameters, len(*in)) + *out = make([]ClusterS3ImportParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -395,33 +395,33 @@ func (in *DBClusterParameters) DeepCopyInto(out *DBClusterParameters) { } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBClusterParameters. -func (in *DBClusterParameters) DeepCopy() *DBClusterParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterParameters. +func (in *ClusterParameters) DeepCopy() *ClusterParameters { if in == nil { return nil } - out := new(DBClusterParameters) + out := new(ClusterParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBClusterRestoreToPointInTimeObservation) DeepCopyInto(out *DBClusterRestoreToPointInTimeObservation) { +func (in *ClusterRestoreToPointInTimeObservation) DeepCopyInto(out *ClusterRestoreToPointInTimeObservation) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBClusterRestoreToPointInTimeObservation. -func (in *DBClusterRestoreToPointInTimeObservation) DeepCopy() *DBClusterRestoreToPointInTimeObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRestoreToPointInTimeObservation. +func (in *ClusterRestoreToPointInTimeObservation) DeepCopy() *ClusterRestoreToPointInTimeObservation { if in == nil { return nil } - out := new(DBClusterRestoreToPointInTimeObservation) + out := new(ClusterRestoreToPointInTimeObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBClusterRestoreToPointInTimeParameters) DeepCopyInto(out *DBClusterRestoreToPointInTimeParameters) { +func (in *ClusterRestoreToPointInTimeParameters) DeepCopyInto(out *ClusterRestoreToPointInTimeParameters) { *out = *in if in.RestoreToTime != nil { in, out := &in.RestoreToTime, &out.RestoreToTime @@ -445,33 +445,33 @@ func (in *DBClusterRestoreToPointInTimeParameters) DeepCopyInto(out *DBClusterRe } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBClusterRestoreToPointInTimeParameters. -func (in *DBClusterRestoreToPointInTimeParameters) DeepCopy() *DBClusterRestoreToPointInTimeParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRestoreToPointInTimeParameters. +func (in *ClusterRestoreToPointInTimeParameters) DeepCopy() *ClusterRestoreToPointInTimeParameters { if in == nil { return nil } - out := new(DBClusterRestoreToPointInTimeParameters) + out := new(ClusterRestoreToPointInTimeParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBClusterS3ImportObservation) DeepCopyInto(out *DBClusterS3ImportObservation) { +func (in *ClusterS3ImportObservation) DeepCopyInto(out *ClusterS3ImportObservation) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBClusterS3ImportObservation. -func (in *DBClusterS3ImportObservation) DeepCopy() *DBClusterS3ImportObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterS3ImportObservation. +func (in *ClusterS3ImportObservation) DeepCopy() *ClusterS3ImportObservation { if in == nil { return nil } - out := new(DBClusterS3ImportObservation) + out := new(ClusterS3ImportObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBClusterS3ImportParameters) DeepCopyInto(out *DBClusterS3ImportParameters) { +func (in *ClusterS3ImportParameters) DeepCopyInto(out *ClusterS3ImportParameters) { *out = *in if in.BucketName != nil { in, out := &in.BucketName, &out.BucketName @@ -500,52 +500,52 @@ func (in *DBClusterS3ImportParameters) DeepCopyInto(out *DBClusterS3ImportParame } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBClusterS3ImportParameters. -func (in *DBClusterS3ImportParameters) DeepCopy() *DBClusterS3ImportParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterS3ImportParameters. +func (in *ClusterS3ImportParameters) DeepCopy() *ClusterS3ImportParameters { if in == nil { return nil } - out := new(DBClusterS3ImportParameters) + out := new(ClusterS3ImportParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBClusterSpec) DeepCopyInto(out *DBClusterSpec) { +func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBClusterSpec. -func (in *DBClusterSpec) DeepCopy() *DBClusterSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec. +func (in *ClusterSpec) DeepCopy() *ClusterSpec { if in == nil { return nil } - out := new(DBClusterSpec) + out := new(ClusterSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBClusterStatus) DeepCopyInto(out *DBClusterStatus) { +func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBClusterStatus. -func (in *DBClusterStatus) DeepCopy() *DBClusterStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus. +func (in *ClusterStatus) DeepCopy() *ClusterStatus { if in == nil { return nil } - out := new(DBClusterStatus) + out := new(ClusterStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBInstance) DeepCopyInto(out *DBInstance) { +func (in *Instance) DeepCopyInto(out *Instance) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -553,18 +553,18 @@ func (in *DBInstance) DeepCopyInto(out *DBInstance) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBInstance. -func (in *DBInstance) DeepCopy() *DBInstance { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Instance. +func (in *Instance) DeepCopy() *Instance { if in == nil { return nil } - out := new(DBInstance) + out := new(Instance) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DBInstance) DeepCopyObject() runtime.Object { +func (in *Instance) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -572,31 +572,31 @@ func (in *DBInstance) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBInstanceList) DeepCopyInto(out *DBInstanceList) { +func (in *InstanceList) DeepCopyInto(out *InstanceList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DBInstance, len(*in)) + *out = make([]Instance, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBInstanceList. -func (in *DBInstanceList) DeepCopy() *DBInstanceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceList. +func (in *InstanceList) DeepCopy() *InstanceList { if in == nil { return nil } - out := new(DBInstanceList) + out := new(InstanceList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DBInstanceList) DeepCopyObject() runtime.Object { +func (in *InstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -604,7 +604,7 @@ func (in *DBInstanceList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBInstanceObservation) DeepCopyInto(out *DBInstanceObservation) { +func (in *InstanceObservation) DeepCopyInto(out *InstanceObservation) { *out = *in if in.Address != nil { in, out := &in.Address, &out.Address @@ -674,18 +674,18 @@ func (in *DBInstanceObservation) DeepCopyInto(out *DBInstanceObservation) { } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBInstanceObservation. -func (in *DBInstanceObservation) DeepCopy() *DBInstanceObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceObservation. +func (in *InstanceObservation) DeepCopy() *InstanceObservation { if in == nil { return nil } - out := new(DBInstanceObservation) + out := new(InstanceObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBInstanceParameters) DeepCopyInto(out *DBInstanceParameters) { +func (in *InstanceParameters) DeepCopyInto(out *InstanceParameters) { *out = *in if in.AllocatedStorage != nil { in, out := &in.AllocatedStorage, &out.AllocatedStorage @@ -1036,52 +1036,52 @@ func (in *DBInstanceParameters) DeepCopyInto(out *DBInstanceParameters) { } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBInstanceParameters. -func (in *DBInstanceParameters) DeepCopy() *DBInstanceParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceParameters. +func (in *InstanceParameters) DeepCopy() *InstanceParameters { if in == nil { return nil } - out := new(DBInstanceParameters) + out := new(InstanceParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBInstanceSpec) DeepCopyInto(out *DBInstanceSpec) { +func (in *InstanceSpec) DeepCopyInto(out *InstanceSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBInstanceSpec. -func (in *DBInstanceSpec) DeepCopy() *DBInstanceSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSpec. +func (in *InstanceSpec) DeepCopy() *InstanceSpec { if in == nil { return nil } - out := new(DBInstanceSpec) + out := new(InstanceSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBInstanceStatus) DeepCopyInto(out *DBInstanceStatus) { +func (in *InstanceStatus) DeepCopyInto(out *InstanceStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBInstanceStatus. -func (in *DBInstanceStatus) DeepCopy() *DBInstanceStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceStatus. +func (in *InstanceStatus) DeepCopy() *InstanceStatus { if in == nil { return nil } - out := new(DBInstanceStatus) + out := new(InstanceStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBParameterGroup) DeepCopyInto(out *DBParameterGroup) { +func (in *ParameterGroup) DeepCopyInto(out *ParameterGroup) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -1089,18 +1089,18 @@ func (in *DBParameterGroup) DeepCopyInto(out *DBParameterGroup) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBParameterGroup. -func (in *DBParameterGroup) DeepCopy() *DBParameterGroup { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParameterGroup. +func (in *ParameterGroup) DeepCopy() *ParameterGroup { if in == nil { return nil } - out := new(DBParameterGroup) + out := new(ParameterGroup) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DBParameterGroup) DeepCopyObject() runtime.Object { +func (in *ParameterGroup) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1108,31 +1108,31 @@ func (in *DBParameterGroup) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBParameterGroupList) DeepCopyInto(out *DBParameterGroupList) { +func (in *ParameterGroupList) DeepCopyInto(out *ParameterGroupList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DBParameterGroup, len(*in)) + *out = make([]ParameterGroup, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBParameterGroupList. -func (in *DBParameterGroupList) DeepCopy() *DBParameterGroupList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParameterGroupList. +func (in *ParameterGroupList) DeepCopy() *ParameterGroupList { if in == nil { return nil } - out := new(DBParameterGroupList) + out := new(ParameterGroupList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DBParameterGroupList) DeepCopyObject() runtime.Object { +func (in *ParameterGroupList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1140,7 +1140,7 @@ func (in *DBParameterGroupList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBParameterGroupObservation) DeepCopyInto(out *DBParameterGroupObservation) { +func (in *ParameterGroupObservation) DeepCopyInto(out *ParameterGroupObservation) { *out = *in if in.Arn != nil { in, out := &in.Arn, &out.Arn @@ -1169,18 +1169,18 @@ func (in *DBParameterGroupObservation) DeepCopyInto(out *DBParameterGroupObserva } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBParameterGroupObservation. -func (in *DBParameterGroupObservation) DeepCopy() *DBParameterGroupObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParameterGroupObservation. +func (in *ParameterGroupObservation) DeepCopy() *ParameterGroupObservation { if in == nil { return nil } - out := new(DBParameterGroupObservation) + out := new(ParameterGroupObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBParameterGroupParameters) DeepCopyInto(out *DBParameterGroupParameters) { +func (in *ParameterGroupParameters) DeepCopyInto(out *ParameterGroupParameters) { *out = *in if in.Description != nil { in, out := &in.Description, &out.Description @@ -1221,46 +1221,46 @@ func (in *DBParameterGroupParameters) DeepCopyInto(out *DBParameterGroupParamete } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBParameterGroupParameters. -func (in *DBParameterGroupParameters) DeepCopy() *DBParameterGroupParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParameterGroupParameters. +func (in *ParameterGroupParameters) DeepCopy() *ParameterGroupParameters { if in == nil { return nil } - out := new(DBParameterGroupParameters) + out := new(ParameterGroupParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBParameterGroupSpec) DeepCopyInto(out *DBParameterGroupSpec) { +func (in *ParameterGroupSpec) DeepCopyInto(out *ParameterGroupSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBParameterGroupSpec. -func (in *DBParameterGroupSpec) DeepCopy() *DBParameterGroupSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParameterGroupSpec. +func (in *ParameterGroupSpec) DeepCopy() *ParameterGroupSpec { if in == nil { return nil } - out := new(DBParameterGroupSpec) + out := new(ParameterGroupSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DBParameterGroupStatus) DeepCopyInto(out *DBParameterGroupStatus) { +func (in *ParameterGroupStatus) DeepCopyInto(out *ParameterGroupStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DBParameterGroupStatus. -func (in *DBParameterGroupStatus) DeepCopy() *DBParameterGroupStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParameterGroupStatus. +func (in *ParameterGroupStatus) DeepCopy() *ParameterGroupStatus { if in == nil { return nil } - out := new(DBParameterGroupStatus) + out := new(ParameterGroupStatus) in.DeepCopyInto(out) return out } diff --git a/apis/rds/v1alpha1/zz_generated.managed.go b/apis/rds/v1alpha1/zz_generated.managed.go index 2dfc50135..b2522c305 100644 --- a/apis/rds/v1alpha1/zz_generated.managed.go +++ b/apis/rds/v1alpha1/zz_generated.managed.go @@ -19,170 +19,170 @@ package v1alpha1 import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" -// GetCondition of this DBCluster. -func (mg *DBCluster) GetCondition(ct xpv1.ConditionType) xpv1.Condition { +// GetCondition of this Cluster. +func (mg *Cluster) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) } -// GetDeletionPolicy of this DBCluster. -func (mg *DBCluster) GetDeletionPolicy() xpv1.DeletionPolicy { +// GetDeletionPolicy of this Cluster. +func (mg *Cluster) GetDeletionPolicy() xpv1.DeletionPolicy { return mg.Spec.DeletionPolicy } -// GetProviderConfigReference of this DBCluster. -func (mg *DBCluster) GetProviderConfigReference() *xpv1.Reference { +// GetProviderConfigReference of this Cluster. +func (mg *Cluster) GetProviderConfigReference() *xpv1.Reference { return mg.Spec.ProviderConfigReference } /* -GetProviderReference of this DBCluster. +GetProviderReference of this Cluster. Deprecated: Use GetProviderConfigReference. */ -func (mg *DBCluster) GetProviderReference() *xpv1.Reference { +func (mg *Cluster) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } -// GetWriteConnectionSecretToReference of this DBCluster. -func (mg *DBCluster) GetWriteConnectionSecretToReference() *xpv1.SecretReference { +// GetWriteConnectionSecretToReference of this Cluster. +func (mg *Cluster) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference } -// SetConditions of this DBCluster. -func (mg *DBCluster) SetConditions(c ...xpv1.Condition) { +// SetConditions of this Cluster. +func (mg *Cluster) SetConditions(c ...xpv1.Condition) { mg.Status.SetConditions(c...) } -// SetDeletionPolicy of this DBCluster. -func (mg *DBCluster) SetDeletionPolicy(r xpv1.DeletionPolicy) { +// SetDeletionPolicy of this Cluster. +func (mg *Cluster) SetDeletionPolicy(r xpv1.DeletionPolicy) { mg.Spec.DeletionPolicy = r } -// SetProviderConfigReference of this DBCluster. -func (mg *DBCluster) SetProviderConfigReference(r *xpv1.Reference) { +// SetProviderConfigReference of this Cluster. +func (mg *Cluster) SetProviderConfigReference(r *xpv1.Reference) { mg.Spec.ProviderConfigReference = r } /* -SetProviderReference of this DBCluster. +SetProviderReference of this Cluster. Deprecated: Use SetProviderConfigReference. */ -func (mg *DBCluster) SetProviderReference(r *xpv1.Reference) { +func (mg *Cluster) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } -// SetWriteConnectionSecretToReference of this DBCluster. -func (mg *DBCluster) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { +// SetWriteConnectionSecretToReference of this Cluster. +func (mg *Cluster) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } -// GetCondition of this DBInstance. -func (mg *DBInstance) GetCondition(ct xpv1.ConditionType) xpv1.Condition { +// GetCondition of this Instance. +func (mg *Instance) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) } -// GetDeletionPolicy of this DBInstance. -func (mg *DBInstance) GetDeletionPolicy() xpv1.DeletionPolicy { +// GetDeletionPolicy of this Instance. +func (mg *Instance) GetDeletionPolicy() xpv1.DeletionPolicy { return mg.Spec.DeletionPolicy } -// GetProviderConfigReference of this DBInstance. -func (mg *DBInstance) GetProviderConfigReference() *xpv1.Reference { +// GetProviderConfigReference of this Instance. +func (mg *Instance) GetProviderConfigReference() *xpv1.Reference { return mg.Spec.ProviderConfigReference } /* -GetProviderReference of this DBInstance. +GetProviderReference of this Instance. Deprecated: Use GetProviderConfigReference. */ -func (mg *DBInstance) GetProviderReference() *xpv1.Reference { +func (mg *Instance) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } -// GetWriteConnectionSecretToReference of this DBInstance. -func (mg *DBInstance) GetWriteConnectionSecretToReference() *xpv1.SecretReference { +// GetWriteConnectionSecretToReference of this Instance. +func (mg *Instance) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference } -// SetConditions of this DBInstance. -func (mg *DBInstance) SetConditions(c ...xpv1.Condition) { +// SetConditions of this Instance. +func (mg *Instance) SetConditions(c ...xpv1.Condition) { mg.Status.SetConditions(c...) } -// SetDeletionPolicy of this DBInstance. -func (mg *DBInstance) SetDeletionPolicy(r xpv1.DeletionPolicy) { +// SetDeletionPolicy of this Instance. +func (mg *Instance) SetDeletionPolicy(r xpv1.DeletionPolicy) { mg.Spec.DeletionPolicy = r } -// SetProviderConfigReference of this DBInstance. -func (mg *DBInstance) SetProviderConfigReference(r *xpv1.Reference) { +// SetProviderConfigReference of this Instance. +func (mg *Instance) SetProviderConfigReference(r *xpv1.Reference) { mg.Spec.ProviderConfigReference = r } /* -SetProviderReference of this DBInstance. +SetProviderReference of this Instance. Deprecated: Use SetProviderConfigReference. */ -func (mg *DBInstance) SetProviderReference(r *xpv1.Reference) { +func (mg *Instance) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } -// SetWriteConnectionSecretToReference of this DBInstance. -func (mg *DBInstance) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { +// SetWriteConnectionSecretToReference of this Instance. +func (mg *Instance) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } -// GetCondition of this DBParameterGroup. -func (mg *DBParameterGroup) GetCondition(ct xpv1.ConditionType) xpv1.Condition { +// GetCondition of this ParameterGroup. +func (mg *ParameterGroup) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) } -// GetDeletionPolicy of this DBParameterGroup. -func (mg *DBParameterGroup) GetDeletionPolicy() xpv1.DeletionPolicy { +// GetDeletionPolicy of this ParameterGroup. +func (mg *ParameterGroup) GetDeletionPolicy() xpv1.DeletionPolicy { return mg.Spec.DeletionPolicy } -// GetProviderConfigReference of this DBParameterGroup. -func (mg *DBParameterGroup) GetProviderConfigReference() *xpv1.Reference { +// GetProviderConfigReference of this ParameterGroup. +func (mg *ParameterGroup) GetProviderConfigReference() *xpv1.Reference { return mg.Spec.ProviderConfigReference } /* -GetProviderReference of this DBParameterGroup. +GetProviderReference of this ParameterGroup. Deprecated: Use GetProviderConfigReference. */ -func (mg *DBParameterGroup) GetProviderReference() *xpv1.Reference { +func (mg *ParameterGroup) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } -// GetWriteConnectionSecretToReference of this DBParameterGroup. -func (mg *DBParameterGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { +// GetWriteConnectionSecretToReference of this ParameterGroup. +func (mg *ParameterGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference } -// SetConditions of this DBParameterGroup. -func (mg *DBParameterGroup) SetConditions(c ...xpv1.Condition) { +// SetConditions of this ParameterGroup. +func (mg *ParameterGroup) SetConditions(c ...xpv1.Condition) { mg.Status.SetConditions(c...) } -// SetDeletionPolicy of this DBParameterGroup. -func (mg *DBParameterGroup) SetDeletionPolicy(r xpv1.DeletionPolicy) { +// SetDeletionPolicy of this ParameterGroup. +func (mg *ParameterGroup) SetDeletionPolicy(r xpv1.DeletionPolicy) { mg.Spec.DeletionPolicy = r } -// SetProviderConfigReference of this DBParameterGroup. -func (mg *DBParameterGroup) SetProviderConfigReference(r *xpv1.Reference) { +// SetProviderConfigReference of this ParameterGroup. +func (mg *ParameterGroup) SetProviderConfigReference(r *xpv1.Reference) { mg.Spec.ProviderConfigReference = r } /* -SetProviderReference of this DBParameterGroup. +SetProviderReference of this ParameterGroup. Deprecated: Use SetProviderConfigReference. */ -func (mg *DBParameterGroup) SetProviderReference(r *xpv1.Reference) { +func (mg *ParameterGroup) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } -// SetWriteConnectionSecretToReference of this DBParameterGroup. -func (mg *DBParameterGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { +// SetWriteConnectionSecretToReference of this ParameterGroup. +func (mg *ParameterGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } diff --git a/apis/rds/v1alpha1/zz_generated.managedlist.go b/apis/rds/v1alpha1/zz_generated.managedlist.go index fc48a545f..cda4b3c71 100644 --- a/apis/rds/v1alpha1/zz_generated.managedlist.go +++ b/apis/rds/v1alpha1/zz_generated.managedlist.go @@ -19,8 +19,8 @@ package v1alpha1 import resource "github.com/crossplane/crossplane-runtime/pkg/resource" -// GetItems of this DBClusterList. -func (l *DBClusterList) GetItems() []resource.Managed { +// GetItems of this ClusterList. +func (l *ClusterList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] @@ -28,8 +28,8 @@ func (l *DBClusterList) GetItems() []resource.Managed { return items } -// GetItems of this DBInstanceList. -func (l *DBInstanceList) GetItems() []resource.Managed { +// GetItems of this InstanceList. +func (l *InstanceList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] @@ -37,8 +37,8 @@ func (l *DBInstanceList) GetItems() []resource.Managed { return items } -// GetItems of this DBParameterGroupList. -func (l *DBParameterGroupList) GetItems() []resource.Managed { +// GetItems of this ParameterGroupList. +func (l *ParameterGroupList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] diff --git a/apis/rds/v1alpha1/zz_generated.resolvers.go b/apis/rds/v1alpha1/zz_generated.resolvers.go index 91df427b9..634a75aaf 100644 --- a/apis/rds/v1alpha1/zz_generated.resolvers.go +++ b/apis/rds/v1alpha1/zz_generated.resolvers.go @@ -27,8 +27,8 @@ import ( client "sigs.k8s.io/controller-runtime/pkg/client" ) -// ResolveReferences of this DBInstance. -func (mg *DBInstance) ResolveReferences(ctx context.Context, c client.Reader) error { +// ResolveReferences of this Instance. +func (mg *Instance) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse @@ -57,8 +57,8 @@ func (mg *DBInstance) ResolveReferences(ctx context.Context, c client.Reader) er Reference: mg.Spec.ForProvider.ParameterGroupNameRef, Selector: mg.Spec.ForProvider.ParameterGroupNameSelector, To: reference.To{ - List: &DBParameterGroupList{}, - Managed: &DBParameterGroup{}, + List: &ParameterGroupList{}, + Managed: &ParameterGroup{}, }, }) if err != nil { @@ -90,8 +90,8 @@ func (mg *DBInstance) ResolveReferences(ctx context.Context, c client.Reader) er Reference: mg.Spec.ForProvider.RestoreToPointInTime[i3].SourceDBInstanceIdentifierRef, Selector: mg.Spec.ForProvider.RestoreToPointInTime[i3].SourceDBInstanceIdentifierSelector, To: reference.To{ - List: &DBInstanceList{}, - Managed: &DBInstance{}, + List: &InstanceList{}, + Managed: &Instance{}, }, }) if err != nil { diff --git a/apis/rds/v1alpha1/zz_dbinstance_terraformed.go b/apis/rds/v1alpha1/zz_instance_terraformed.go similarity index 69% rename from apis/rds/v1alpha1/zz_dbinstance_terraformed.go rename to apis/rds/v1alpha1/zz_instance_terraformed.go index b088d6129..07b4081a2 100755 --- a/apis/rds/v1alpha1/zz_dbinstance_terraformed.go +++ b/apis/rds/v1alpha1/zz_instance_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this DBInstance -func (mg *DBInstance) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this Instance +func (mg *Instance) GetTerraformResourceType() string { return "aws_db_instance" } -// GetConnectionDetailsMapping for this DBInstance -func (tr *DBInstance) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this Instance +func (tr *Instance) GetConnectionDetailsMapping() map[string]string { return map[string]string{"password": "spec.forProvider.passwordSecretRef"} } -// GetObservation of this DBInstance -func (tr *DBInstance) GetObservation() (map[string]interface{}, error) { +// GetObservation of this Instance +func (tr *Instance) GetObservation() (map[string]interface{}, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -45,8 +45,8 @@ func (tr *DBInstance) GetObservation() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this DBInstance -func (tr *DBInstance) SetObservation(obs map[string]interface{}) error { +// SetObservation for this Instance +func (tr *Instance) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,16 +54,16 @@ func (tr *DBInstance) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this DBInstance -func (tr *DBInstance) GetID() string { +// GetID returns ID of underlying Terraform resource of this Instance +func (tr *Instance) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this DBInstance -func (tr *DBInstance) GetParameters() (map[string]interface{}, error) { +// GetParameters of this Instance +func (tr *Instance) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -72,8 +72,8 @@ func (tr *DBInstance) GetParameters() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this DBInstance -func (tr *DBInstance) SetParameters(params map[string]interface{}) error { +// SetParameters for this Instance +func (tr *Instance) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -81,10 +81,10 @@ func (tr *DBInstance) SetParameters(params map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this DBInstance using its observed tfState. +// LateInitialize this Instance using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *DBInstance) LateInitialize(attrs []byte) (bool, error) { - params := &DBInstanceParameters{} +func (tr *Instance) LateInitialize(attrs []byte) (bool, error) { + params := &InstanceParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -95,6 +95,6 @@ func (tr *DBInstance) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *DBInstance) GetTerraformSchemaVersion() int { +func (tr *Instance) GetTerraformSchemaVersion() int { return 1 } diff --git a/apis/rds/v1alpha1/zz_dbinstance_types.go b/apis/rds/v1alpha1/zz_instance_types.go similarity index 92% rename from apis/rds/v1alpha1/zz_dbinstance_types.go rename to apis/rds/v1alpha1/zz_instance_types.go index 439ef90c7..9d0162fae 100755 --- a/apis/rds/v1alpha1/zz_dbinstance_types.go +++ b/apis/rds/v1alpha1/zz_instance_types.go @@ -25,7 +25,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type DBInstanceObservation struct { +type InstanceObservation struct { Address *string `json:"address,omitempty" tf:"address,omitempty"` Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` @@ -47,7 +47,7 @@ type DBInstanceObservation struct { TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } -type DBInstanceParameters struct { +type InstanceParameters struct { // +kubebuilder:validation:Optional AllocatedStorage *int64 `json:"allocatedStorage,omitempty" tf:"allocated_storage,omitempty"` @@ -155,7 +155,7 @@ type DBInstanceParameters struct { // +kubebuilder:validation:Optional OptionGroupName *string `json:"optionGroupName,omitempty" tf:"option_group_name,omitempty"` - // +crossplane:generate:reference:type=DBParameterGroup + // +crossplane:generate:reference:type=ParameterGroup // +kubebuilder:validation:Optional ParameterGroupName *string `json:"parameterGroupName,omitempty" tf:"parameter_group_name,omitempty"` @@ -258,7 +258,7 @@ type RestoreToPointInTimeParameters struct { // +kubebuilder:validation:Optional RestoreTime *string `json:"restoreTime,omitempty" tf:"restore_time,omitempty"` - // +crossplane:generate:reference:type=DBInstance + // +crossplane:generate:reference:type=Instance // +kubebuilder:validation:Optional SourceDBInstanceIdentifier *string `json:"sourceDbInstanceIdentifier,omitempty" tf:"source_db_instance_identifier,omitempty"` @@ -303,51 +303,51 @@ type S3ImportParameters struct { SourceEngineVersion *string `json:"sourceEngineVersion" tf:"source_engine_version,omitempty"` } -// DBInstanceSpec defines the desired state of DBInstance -type DBInstanceSpec struct { +// InstanceSpec defines the desired state of Instance +type InstanceSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider DBInstanceParameters `json:"forProvider"` + ForProvider InstanceParameters `json:"forProvider"` } -// DBInstanceStatus defines the observed state of DBInstance. -type DBInstanceStatus struct { +// InstanceStatus defines the observed state of Instance. +type InstanceStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider DBInstanceObservation `json:"atProvider,omitempty"` + AtProvider InstanceObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// DBInstance is the Schema for the DBInstances API +// Instance is the Schema for the Instances API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type DBInstance struct { +type Instance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DBInstanceSpec `json:"spec"` - Status DBInstanceStatus `json:"status,omitempty"` + Spec InstanceSpec `json:"spec"` + Status InstanceStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// DBInstanceList contains a list of DBInstances -type DBInstanceList struct { +// InstanceList contains a list of Instances +type InstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DBInstance `json:"items"` + Items []Instance `json:"items"` } // Repository type metadata. var ( - DBInstance_Kind = "DBInstance" - DBInstance_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: DBInstance_Kind}.String() - DBInstance_KindAPIVersion = DBInstance_Kind + "." + CRDGroupVersion.String() - DBInstance_GroupVersionKind = CRDGroupVersion.WithKind(DBInstance_Kind) + Instance_Kind = "Instance" + Instance_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Instance_Kind}.String() + Instance_KindAPIVersion = Instance_Kind + "." + CRDGroupVersion.String() + Instance_GroupVersionKind = CRDGroupVersion.WithKind(Instance_Kind) ) func init() { - SchemeBuilder.Register(&DBInstance{}, &DBInstanceList{}) + SchemeBuilder.Register(&Instance{}, &InstanceList{}) } diff --git a/apis/rds/v1alpha1/zz_dbparametergroup_terraformed.go b/apis/rds/v1alpha1/zz_parametergroup_terraformed.go similarity index 67% rename from apis/rds/v1alpha1/zz_dbparametergroup_terraformed.go rename to apis/rds/v1alpha1/zz_parametergroup_terraformed.go index 76495a574..e4f5fa8dd 100755 --- a/apis/rds/v1alpha1/zz_dbparametergroup_terraformed.go +++ b/apis/rds/v1alpha1/zz_parametergroup_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this DBParameterGroup -func (mg *DBParameterGroup) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this ParameterGroup +func (mg *ParameterGroup) GetTerraformResourceType() string { return "aws_db_parameter_group" } -// GetConnectionDetailsMapping for this DBParameterGroup -func (tr *DBParameterGroup) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this ParameterGroup +func (tr *ParameterGroup) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this DBParameterGroup -func (tr *DBParameterGroup) GetObservation() (map[string]interface{}, error) { +// GetObservation of this ParameterGroup +func (tr *ParameterGroup) GetObservation() (map[string]interface{}, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -45,8 +45,8 @@ func (tr *DBParameterGroup) GetObservation() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this DBParameterGroup -func (tr *DBParameterGroup) SetObservation(obs map[string]interface{}) error { +// SetObservation for this ParameterGroup +func (tr *ParameterGroup) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,16 +54,16 @@ func (tr *DBParameterGroup) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this DBParameterGroup -func (tr *DBParameterGroup) GetID() string { +// GetID returns ID of underlying Terraform resource of this ParameterGroup +func (tr *ParameterGroup) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this DBParameterGroup -func (tr *DBParameterGroup) GetParameters() (map[string]interface{}, error) { +// GetParameters of this ParameterGroup +func (tr *ParameterGroup) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -72,8 +72,8 @@ func (tr *DBParameterGroup) GetParameters() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this DBParameterGroup -func (tr *DBParameterGroup) SetParameters(params map[string]interface{}) error { +// SetParameters for this ParameterGroup +func (tr *ParameterGroup) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -81,10 +81,10 @@ func (tr *DBParameterGroup) SetParameters(params map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this DBParameterGroup using its observed tfState. +// LateInitialize this ParameterGroup using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *DBParameterGroup) LateInitialize(attrs []byte) (bool, error) { - params := &DBParameterGroupParameters{} +func (tr *ParameterGroup) LateInitialize(attrs []byte) (bool, error) { + params := &ParameterGroupParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -95,6 +95,6 @@ func (tr *DBParameterGroup) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *DBParameterGroup) GetTerraformSchemaVersion() int { +func (tr *ParameterGroup) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/rds/v1alpha1/zz_dbparametergroup_types.go b/apis/rds/v1alpha1/zz_parametergroup_types.go similarity index 70% rename from apis/rds/v1alpha1/zz_dbparametergroup_types.go rename to apis/rds/v1alpha1/zz_parametergroup_types.go index 4775ff2d3..2852b4db0 100755 --- a/apis/rds/v1alpha1/zz_dbparametergroup_types.go +++ b/apis/rds/v1alpha1/zz_parametergroup_types.go @@ -25,7 +25,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type DBParameterGroupObservation struct { +type ParameterGroupObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` @@ -33,7 +33,7 @@ type DBParameterGroupObservation struct { TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } -type DBParameterGroupParameters struct { +type ParameterGroupParameters struct { // +kubebuilder:validation:Optional Description *string `json:"description,omitempty" tf:"description,omitempty"` @@ -68,51 +68,51 @@ type ParameterParameters struct { Value *string `json:"value" tf:"value,omitempty"` } -// DBParameterGroupSpec defines the desired state of DBParameterGroup -type DBParameterGroupSpec struct { +// ParameterGroupSpec defines the desired state of ParameterGroup +type ParameterGroupSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider DBParameterGroupParameters `json:"forProvider"` + ForProvider ParameterGroupParameters `json:"forProvider"` } -// DBParameterGroupStatus defines the observed state of DBParameterGroup. -type DBParameterGroupStatus struct { +// ParameterGroupStatus defines the observed state of ParameterGroup. +type ParameterGroupStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider DBParameterGroupObservation `json:"atProvider,omitempty"` + AtProvider ParameterGroupObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// DBParameterGroup is the Schema for the DBParameterGroups API +// ParameterGroup is the Schema for the ParameterGroups API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type DBParameterGroup struct { +type ParameterGroup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DBParameterGroupSpec `json:"spec"` - Status DBParameterGroupStatus `json:"status,omitempty"` + Spec ParameterGroupSpec `json:"spec"` + Status ParameterGroupStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// DBParameterGroupList contains a list of DBParameterGroups -type DBParameterGroupList struct { +// ParameterGroupList contains a list of ParameterGroups +type ParameterGroupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DBParameterGroup `json:"items"` + Items []ParameterGroup `json:"items"` } // Repository type metadata. var ( - DBParameterGroup_Kind = "DBParameterGroup" - DBParameterGroup_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: DBParameterGroup_Kind}.String() - DBParameterGroup_KindAPIVersion = DBParameterGroup_Kind + "." + CRDGroupVersion.String() - DBParameterGroup_GroupVersionKind = CRDGroupVersion.WithKind(DBParameterGroup_Kind) + ParameterGroup_Kind = "ParameterGroup" + ParameterGroup_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ParameterGroup_Kind}.String() + ParameterGroup_KindAPIVersion = ParameterGroup_Kind + "." + CRDGroupVersion.String() + ParameterGroup_GroupVersionKind = CRDGroupVersion.WithKind(ParameterGroup_Kind) ) func init() { - SchemeBuilder.Register(&DBParameterGroup{}, &DBParameterGroupList{}) + SchemeBuilder.Register(&ParameterGroup{}, &ParameterGroupList{}) } diff --git a/apis/route53/v1alpha1/zz_generated.deepcopy.go b/apis/route53/v1alpha1/zz_generated.deepcopy.go index 0ab8345fa..a4c47d494 100644 --- a/apis/route53/v1alpha1/zz_generated.deepcopy.go +++ b/apis/route53/v1alpha1/zz_generated.deepcopy.go @@ -722,51 +722,6 @@ func (in *HostedZoneDNSSECStatus) DeepCopy() *HostedZoneDNSSECStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IPAddressObservation) DeepCopyInto(out *IPAddressObservation) { - *out = *in - if in.IPID != nil { - in, out := &in.IPID, &out.IPID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddressObservation. -func (in *IPAddressObservation) DeepCopy() *IPAddressObservation { - if in == nil { - return nil - } - out := new(IPAddressObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IPAddressParameters) DeepCopyInto(out *IPAddressParameters) { - *out = *in - if in.IP != nil { - in, out := &in.IP, &out.IP - *out = new(string) - **out = **in - } - if in.SubnetID != nil { - in, out := &in.SubnetID, &out.SubnetID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddressParameters. -func (in *IPAddressParameters) DeepCopy() *IPAddressParameters { - if in == nil { - return nil - } - out := new(IPAddressParameters) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *KeySigningKey) DeepCopyInto(out *KeySigningKey) { *out = *in @@ -1412,1970 +1367,6 @@ func (in *RecordStatus) DeepCopy() *RecordStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverDNSSECConfig) DeepCopyInto(out *ResolverDNSSECConfig) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverDNSSECConfig. -func (in *ResolverDNSSECConfig) DeepCopy() *ResolverDNSSECConfig { - if in == nil { - return nil - } - out := new(ResolverDNSSECConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverDNSSECConfig) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverDNSSECConfigList) DeepCopyInto(out *ResolverDNSSECConfigList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ResolverDNSSECConfig, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverDNSSECConfigList. -func (in *ResolverDNSSECConfigList) DeepCopy() *ResolverDNSSECConfigList { - if in == nil { - return nil - } - out := new(ResolverDNSSECConfigList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverDNSSECConfigList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverDNSSECConfigObservation) DeepCopyInto(out *ResolverDNSSECConfigObservation) { - *out = *in - if in.Arn != nil { - in, out := &in.Arn, &out.Arn - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.OwnerID != nil { - in, out := &in.OwnerID, &out.OwnerID - *out = new(string) - **out = **in - } - if in.ValidationStatus != nil { - in, out := &in.ValidationStatus, &out.ValidationStatus - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverDNSSECConfigObservation. -func (in *ResolverDNSSECConfigObservation) DeepCopy() *ResolverDNSSECConfigObservation { - if in == nil { - return nil - } - out := new(ResolverDNSSECConfigObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverDNSSECConfigParameters) DeepCopyInto(out *ResolverDNSSECConfigParameters) { - *out = *in - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.ResourceID != nil { - in, out := &in.ResourceID, &out.ResourceID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverDNSSECConfigParameters. -func (in *ResolverDNSSECConfigParameters) DeepCopy() *ResolverDNSSECConfigParameters { - if in == nil { - return nil - } - out := new(ResolverDNSSECConfigParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverDNSSECConfigSpec) DeepCopyInto(out *ResolverDNSSECConfigSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverDNSSECConfigSpec. -func (in *ResolverDNSSECConfigSpec) DeepCopy() *ResolverDNSSECConfigSpec { - if in == nil { - return nil - } - out := new(ResolverDNSSECConfigSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverDNSSECConfigStatus) DeepCopyInto(out *ResolverDNSSECConfigStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverDNSSECConfigStatus. -func (in *ResolverDNSSECConfigStatus) DeepCopy() *ResolverDNSSECConfigStatus { - if in == nil { - return nil - } - out := new(ResolverDNSSECConfigStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverEndpoint) DeepCopyInto(out *ResolverEndpoint) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverEndpoint. -func (in *ResolverEndpoint) DeepCopy() *ResolverEndpoint { - if in == nil { - return nil - } - out := new(ResolverEndpoint) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverEndpoint) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverEndpointList) DeepCopyInto(out *ResolverEndpointList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ResolverEndpoint, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverEndpointList. -func (in *ResolverEndpointList) DeepCopy() *ResolverEndpointList { - if in == nil { - return nil - } - out := new(ResolverEndpointList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverEndpointList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverEndpointObservation) DeepCopyInto(out *ResolverEndpointObservation) { - *out = *in - if in.Arn != nil { - in, out := &in.Arn, &out.Arn - *out = new(string) - **out = **in - } - if in.HostVPCID != nil { - in, out := &in.HostVPCID, &out.HostVPCID - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.TagsAll != nil { - in, out := &in.TagsAll, &out.TagsAll - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverEndpointObservation. -func (in *ResolverEndpointObservation) DeepCopy() *ResolverEndpointObservation { - if in == nil { - return nil - } - out := new(ResolverEndpointObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverEndpointParameters) DeepCopyInto(out *ResolverEndpointParameters) { - *out = *in - if in.Direction != nil { - in, out := &in.Direction, &out.Direction - *out = new(string) - **out = **in - } - if in.IPAddress != nil { - in, out := &in.IPAddress, &out.IPAddress - *out = make([]IPAddressParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.SecurityGroupIds != nil { - in, out := &in.SecurityGroupIds, &out.SecurityGroupIds - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } - } - if in.Tags != nil { - in, out := &in.Tags, &out.Tags - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverEndpointParameters. -func (in *ResolverEndpointParameters) DeepCopy() *ResolverEndpointParameters { - if in == nil { - return nil - } - out := new(ResolverEndpointParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverEndpointSpec) DeepCopyInto(out *ResolverEndpointSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverEndpointSpec. -func (in *ResolverEndpointSpec) DeepCopy() *ResolverEndpointSpec { - if in == nil { - return nil - } - out := new(ResolverEndpointSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverEndpointStatus) DeepCopyInto(out *ResolverEndpointStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverEndpointStatus. -func (in *ResolverEndpointStatus) DeepCopy() *ResolverEndpointStatus { - if in == nil { - return nil - } - out := new(ResolverEndpointStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallConfig) DeepCopyInto(out *ResolverFirewallConfig) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallConfig. -func (in *ResolverFirewallConfig) DeepCopy() *ResolverFirewallConfig { - if in == nil { - return nil - } - out := new(ResolverFirewallConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverFirewallConfig) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallConfigList) DeepCopyInto(out *ResolverFirewallConfigList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ResolverFirewallConfig, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallConfigList. -func (in *ResolverFirewallConfigList) DeepCopy() *ResolverFirewallConfigList { - if in == nil { - return nil - } - out := new(ResolverFirewallConfigList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverFirewallConfigList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallConfigObservation) DeepCopyInto(out *ResolverFirewallConfigObservation) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.OwnerID != nil { - in, out := &in.OwnerID, &out.OwnerID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallConfigObservation. -func (in *ResolverFirewallConfigObservation) DeepCopy() *ResolverFirewallConfigObservation { - if in == nil { - return nil - } - out := new(ResolverFirewallConfigObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallConfigParameters) DeepCopyInto(out *ResolverFirewallConfigParameters) { - *out = *in - if in.FirewallFailOpen != nil { - in, out := &in.FirewallFailOpen, &out.FirewallFailOpen - *out = new(string) - **out = **in - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.ResourceID != nil { - in, out := &in.ResourceID, &out.ResourceID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallConfigParameters. -func (in *ResolverFirewallConfigParameters) DeepCopy() *ResolverFirewallConfigParameters { - if in == nil { - return nil - } - out := new(ResolverFirewallConfigParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallConfigSpec) DeepCopyInto(out *ResolverFirewallConfigSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallConfigSpec. -func (in *ResolverFirewallConfigSpec) DeepCopy() *ResolverFirewallConfigSpec { - if in == nil { - return nil - } - out := new(ResolverFirewallConfigSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallConfigStatus) DeepCopyInto(out *ResolverFirewallConfigStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallConfigStatus. -func (in *ResolverFirewallConfigStatus) DeepCopy() *ResolverFirewallConfigStatus { - if in == nil { - return nil - } - out := new(ResolverFirewallConfigStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallDomainList) DeepCopyInto(out *ResolverFirewallDomainList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallDomainList. -func (in *ResolverFirewallDomainList) DeepCopy() *ResolverFirewallDomainList { - if in == nil { - return nil - } - out := new(ResolverFirewallDomainList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverFirewallDomainList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallDomainListList) DeepCopyInto(out *ResolverFirewallDomainListList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ResolverFirewallDomainList, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallDomainListList. -func (in *ResolverFirewallDomainListList) DeepCopy() *ResolverFirewallDomainListList { - if in == nil { - return nil - } - out := new(ResolverFirewallDomainListList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverFirewallDomainListList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallDomainListObservation) DeepCopyInto(out *ResolverFirewallDomainListObservation) { - *out = *in - if in.Arn != nil { - in, out := &in.Arn, &out.Arn - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.TagsAll != nil { - in, out := &in.TagsAll, &out.TagsAll - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallDomainListObservation. -func (in *ResolverFirewallDomainListObservation) DeepCopy() *ResolverFirewallDomainListObservation { - if in == nil { - return nil - } - out := new(ResolverFirewallDomainListObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallDomainListParameters) DeepCopyInto(out *ResolverFirewallDomainListParameters) { - *out = *in - if in.Domains != nil { - in, out := &in.Domains, &out.Domains - *out = make([]*string, len(*in)) - for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = new(string) - **out = **in - } - } - } - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.Tags != nil { - in, out := &in.Tags, &out.Tags - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallDomainListParameters. -func (in *ResolverFirewallDomainListParameters) DeepCopy() *ResolverFirewallDomainListParameters { - if in == nil { - return nil - } - out := new(ResolverFirewallDomainListParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallDomainListSpec) DeepCopyInto(out *ResolverFirewallDomainListSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallDomainListSpec. -func (in *ResolverFirewallDomainListSpec) DeepCopy() *ResolverFirewallDomainListSpec { - if in == nil { - return nil - } - out := new(ResolverFirewallDomainListSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallDomainListStatus) DeepCopyInto(out *ResolverFirewallDomainListStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallDomainListStatus. -func (in *ResolverFirewallDomainListStatus) DeepCopy() *ResolverFirewallDomainListStatus { - if in == nil { - return nil - } - out := new(ResolverFirewallDomainListStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRule) DeepCopyInto(out *ResolverFirewallRule) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRule. -func (in *ResolverFirewallRule) DeepCopy() *ResolverFirewallRule { - if in == nil { - return nil - } - out := new(ResolverFirewallRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverFirewallRule) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleGroup) DeepCopyInto(out *ResolverFirewallRuleGroup) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleGroup. -func (in *ResolverFirewallRuleGroup) DeepCopy() *ResolverFirewallRuleGroup { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleGroup) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverFirewallRuleGroup) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleGroupAssociation) DeepCopyInto(out *ResolverFirewallRuleGroupAssociation) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleGroupAssociation. -func (in *ResolverFirewallRuleGroupAssociation) DeepCopy() *ResolverFirewallRuleGroupAssociation { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleGroupAssociation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverFirewallRuleGroupAssociation) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleGroupAssociationList) DeepCopyInto(out *ResolverFirewallRuleGroupAssociationList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ResolverFirewallRuleGroupAssociation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleGroupAssociationList. -func (in *ResolverFirewallRuleGroupAssociationList) DeepCopy() *ResolverFirewallRuleGroupAssociationList { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleGroupAssociationList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverFirewallRuleGroupAssociationList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleGroupAssociationObservation) DeepCopyInto(out *ResolverFirewallRuleGroupAssociationObservation) { - *out = *in - if in.Arn != nil { - in, out := &in.Arn, &out.Arn - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.TagsAll != nil { - in, out := &in.TagsAll, &out.TagsAll - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleGroupAssociationObservation. -func (in *ResolverFirewallRuleGroupAssociationObservation) DeepCopy() *ResolverFirewallRuleGroupAssociationObservation { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleGroupAssociationObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleGroupAssociationParameters) DeepCopyInto(out *ResolverFirewallRuleGroupAssociationParameters) { - *out = *in - if in.FirewallRuleGroupID != nil { - in, out := &in.FirewallRuleGroupID, &out.FirewallRuleGroupID - *out = new(string) - **out = **in - } - if in.MutationProtection != nil { - in, out := &in.MutationProtection, &out.MutationProtection - *out = new(string) - **out = **in - } - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in - } - if in.Priority != nil { - in, out := &in.Priority, &out.Priority - *out = new(int64) - **out = **in - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.Tags != nil { - in, out := &in.Tags, &out.Tags - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.VPCID != nil { - in, out := &in.VPCID, &out.VPCID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleGroupAssociationParameters. -func (in *ResolverFirewallRuleGroupAssociationParameters) DeepCopy() *ResolverFirewallRuleGroupAssociationParameters { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleGroupAssociationParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleGroupAssociationSpec) DeepCopyInto(out *ResolverFirewallRuleGroupAssociationSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleGroupAssociationSpec. -func (in *ResolverFirewallRuleGroupAssociationSpec) DeepCopy() *ResolverFirewallRuleGroupAssociationSpec { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleGroupAssociationSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleGroupAssociationStatus) DeepCopyInto(out *ResolverFirewallRuleGroupAssociationStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleGroupAssociationStatus. -func (in *ResolverFirewallRuleGroupAssociationStatus) DeepCopy() *ResolverFirewallRuleGroupAssociationStatus { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleGroupAssociationStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleGroupList) DeepCopyInto(out *ResolverFirewallRuleGroupList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ResolverFirewallRuleGroup, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleGroupList. -func (in *ResolverFirewallRuleGroupList) DeepCopy() *ResolverFirewallRuleGroupList { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleGroupList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverFirewallRuleGroupList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleGroupObservation) DeepCopyInto(out *ResolverFirewallRuleGroupObservation) { - *out = *in - if in.Arn != nil { - in, out := &in.Arn, &out.Arn - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.OwnerID != nil { - in, out := &in.OwnerID, &out.OwnerID - *out = new(string) - **out = **in - } - if in.ShareStatus != nil { - in, out := &in.ShareStatus, &out.ShareStatus - *out = new(string) - **out = **in - } - if in.TagsAll != nil { - in, out := &in.TagsAll, &out.TagsAll - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleGroupObservation. -func (in *ResolverFirewallRuleGroupObservation) DeepCopy() *ResolverFirewallRuleGroupObservation { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleGroupObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleGroupParameters) DeepCopyInto(out *ResolverFirewallRuleGroupParameters) { - *out = *in - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.Tags != nil { - in, out := &in.Tags, &out.Tags - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleGroupParameters. -func (in *ResolverFirewallRuleGroupParameters) DeepCopy() *ResolverFirewallRuleGroupParameters { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleGroupParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleGroupSpec) DeepCopyInto(out *ResolverFirewallRuleGroupSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleGroupSpec. -func (in *ResolverFirewallRuleGroupSpec) DeepCopy() *ResolverFirewallRuleGroupSpec { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleGroupSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleGroupStatus) DeepCopyInto(out *ResolverFirewallRuleGroupStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleGroupStatus. -func (in *ResolverFirewallRuleGroupStatus) DeepCopy() *ResolverFirewallRuleGroupStatus { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleGroupStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleList) DeepCopyInto(out *ResolverFirewallRuleList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ResolverFirewallRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleList. -func (in *ResolverFirewallRuleList) DeepCopy() *ResolverFirewallRuleList { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverFirewallRuleList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleObservation) DeepCopyInto(out *ResolverFirewallRuleObservation) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleObservation. -func (in *ResolverFirewallRuleObservation) DeepCopy() *ResolverFirewallRuleObservation { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleParameters) DeepCopyInto(out *ResolverFirewallRuleParameters) { - *out = *in - if in.Action != nil { - in, out := &in.Action, &out.Action - *out = new(string) - **out = **in - } - if in.BlockOverrideDNSType != nil { - in, out := &in.BlockOverrideDNSType, &out.BlockOverrideDNSType - *out = new(string) - **out = **in - } - if in.BlockOverrideDomain != nil { - in, out := &in.BlockOverrideDomain, &out.BlockOverrideDomain - *out = new(string) - **out = **in - } - if in.BlockOverrideTTL != nil { - in, out := &in.BlockOverrideTTL, &out.BlockOverrideTTL - *out = new(int64) - **out = **in - } - if in.BlockResponse != nil { - in, out := &in.BlockResponse, &out.BlockResponse - *out = new(string) - **out = **in - } - if in.FirewallDomainListID != nil { - in, out := &in.FirewallDomainListID, &out.FirewallDomainListID - *out = new(string) - **out = **in - } - if in.FirewallRuleGroupID != nil { - in, out := &in.FirewallRuleGroupID, &out.FirewallRuleGroupID - *out = new(string) - **out = **in - } - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in - } - if in.Priority != nil { - in, out := &in.Priority, &out.Priority - *out = new(int64) - **out = **in - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleParameters. -func (in *ResolverFirewallRuleParameters) DeepCopy() *ResolverFirewallRuleParameters { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleSpec) DeepCopyInto(out *ResolverFirewallRuleSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleSpec. -func (in *ResolverFirewallRuleSpec) DeepCopy() *ResolverFirewallRuleSpec { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallRuleStatus) DeepCopyInto(out *ResolverFirewallRuleStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallRuleStatus. -func (in *ResolverFirewallRuleStatus) DeepCopy() *ResolverFirewallRuleStatus { - if in == nil { - return nil - } - out := new(ResolverFirewallRuleStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverQueryLogConfig) DeepCopyInto(out *ResolverQueryLogConfig) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverQueryLogConfig. -func (in *ResolverQueryLogConfig) DeepCopy() *ResolverQueryLogConfig { - if in == nil { - return nil - } - out := new(ResolverQueryLogConfig) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverQueryLogConfig) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverQueryLogConfigAssociation) DeepCopyInto(out *ResolverQueryLogConfigAssociation) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverQueryLogConfigAssociation. -func (in *ResolverQueryLogConfigAssociation) DeepCopy() *ResolverQueryLogConfigAssociation { - if in == nil { - return nil - } - out := new(ResolverQueryLogConfigAssociation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverQueryLogConfigAssociation) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverQueryLogConfigAssociationList) DeepCopyInto(out *ResolverQueryLogConfigAssociationList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ResolverQueryLogConfigAssociation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverQueryLogConfigAssociationList. -func (in *ResolverQueryLogConfigAssociationList) DeepCopy() *ResolverQueryLogConfigAssociationList { - if in == nil { - return nil - } - out := new(ResolverQueryLogConfigAssociationList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverQueryLogConfigAssociationList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverQueryLogConfigAssociationObservation) DeepCopyInto(out *ResolverQueryLogConfigAssociationObservation) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverQueryLogConfigAssociationObservation. -func (in *ResolverQueryLogConfigAssociationObservation) DeepCopy() *ResolverQueryLogConfigAssociationObservation { - if in == nil { - return nil - } - out := new(ResolverQueryLogConfigAssociationObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverQueryLogConfigAssociationParameters) DeepCopyInto(out *ResolverQueryLogConfigAssociationParameters) { - *out = *in - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.ResolverQueryLogConfigID != nil { - in, out := &in.ResolverQueryLogConfigID, &out.ResolverQueryLogConfigID - *out = new(string) - **out = **in - } - if in.ResourceID != nil { - in, out := &in.ResourceID, &out.ResourceID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverQueryLogConfigAssociationParameters. -func (in *ResolverQueryLogConfigAssociationParameters) DeepCopy() *ResolverQueryLogConfigAssociationParameters { - if in == nil { - return nil - } - out := new(ResolverQueryLogConfigAssociationParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverQueryLogConfigAssociationSpec) DeepCopyInto(out *ResolverQueryLogConfigAssociationSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverQueryLogConfigAssociationSpec. -func (in *ResolverQueryLogConfigAssociationSpec) DeepCopy() *ResolverQueryLogConfigAssociationSpec { - if in == nil { - return nil - } - out := new(ResolverQueryLogConfigAssociationSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverQueryLogConfigAssociationStatus) DeepCopyInto(out *ResolverQueryLogConfigAssociationStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverQueryLogConfigAssociationStatus. -func (in *ResolverQueryLogConfigAssociationStatus) DeepCopy() *ResolverQueryLogConfigAssociationStatus { - if in == nil { - return nil - } - out := new(ResolverQueryLogConfigAssociationStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverQueryLogConfigList) DeepCopyInto(out *ResolverQueryLogConfigList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ResolverQueryLogConfig, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverQueryLogConfigList. -func (in *ResolverQueryLogConfigList) DeepCopy() *ResolverQueryLogConfigList { - if in == nil { - return nil - } - out := new(ResolverQueryLogConfigList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverQueryLogConfigList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverQueryLogConfigObservation) DeepCopyInto(out *ResolverQueryLogConfigObservation) { - *out = *in - if in.Arn != nil { - in, out := &in.Arn, &out.Arn - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.OwnerID != nil { - in, out := &in.OwnerID, &out.OwnerID - *out = new(string) - **out = **in - } - if in.ShareStatus != nil { - in, out := &in.ShareStatus, &out.ShareStatus - *out = new(string) - **out = **in - } - if in.TagsAll != nil { - in, out := &in.TagsAll, &out.TagsAll - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverQueryLogConfigObservation. -func (in *ResolverQueryLogConfigObservation) DeepCopy() *ResolverQueryLogConfigObservation { - if in == nil { - return nil - } - out := new(ResolverQueryLogConfigObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverQueryLogConfigParameters) DeepCopyInto(out *ResolverQueryLogConfigParameters) { - *out = *in - if in.DestinationArn != nil { - in, out := &in.DestinationArn, &out.DestinationArn - *out = new(string) - **out = **in - } - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.Tags != nil { - in, out := &in.Tags, &out.Tags - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverQueryLogConfigParameters. -func (in *ResolverQueryLogConfigParameters) DeepCopy() *ResolverQueryLogConfigParameters { - if in == nil { - return nil - } - out := new(ResolverQueryLogConfigParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverQueryLogConfigSpec) DeepCopyInto(out *ResolverQueryLogConfigSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverQueryLogConfigSpec. -func (in *ResolverQueryLogConfigSpec) DeepCopy() *ResolverQueryLogConfigSpec { - if in == nil { - return nil - } - out := new(ResolverQueryLogConfigSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverQueryLogConfigStatus) DeepCopyInto(out *ResolverQueryLogConfigStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverQueryLogConfigStatus. -func (in *ResolverQueryLogConfigStatus) DeepCopy() *ResolverQueryLogConfigStatus { - if in == nil { - return nil - } - out := new(ResolverQueryLogConfigStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverRule) DeepCopyInto(out *ResolverRule) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverRule. -func (in *ResolverRule) DeepCopy() *ResolverRule { - if in == nil { - return nil - } - out := new(ResolverRule) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverRule) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverRuleAssociation) DeepCopyInto(out *ResolverRuleAssociation) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverRuleAssociation. -func (in *ResolverRuleAssociation) DeepCopy() *ResolverRuleAssociation { - if in == nil { - return nil - } - out := new(ResolverRuleAssociation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverRuleAssociation) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverRuleAssociationList) DeepCopyInto(out *ResolverRuleAssociationList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ResolverRuleAssociation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverRuleAssociationList. -func (in *ResolverRuleAssociationList) DeepCopy() *ResolverRuleAssociationList { - if in == nil { - return nil - } - out := new(ResolverRuleAssociationList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverRuleAssociationList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverRuleAssociationObservation) DeepCopyInto(out *ResolverRuleAssociationObservation) { - *out = *in - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverRuleAssociationObservation. -func (in *ResolverRuleAssociationObservation) DeepCopy() *ResolverRuleAssociationObservation { - if in == nil { - return nil - } - out := new(ResolverRuleAssociationObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverRuleAssociationParameters) DeepCopyInto(out *ResolverRuleAssociationParameters) { - *out = *in - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.ResolverRuleID != nil { - in, out := &in.ResolverRuleID, &out.ResolverRuleID - *out = new(string) - **out = **in - } - if in.VPCID != nil { - in, out := &in.VPCID, &out.VPCID - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverRuleAssociationParameters. -func (in *ResolverRuleAssociationParameters) DeepCopy() *ResolverRuleAssociationParameters { - if in == nil { - return nil - } - out := new(ResolverRuleAssociationParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverRuleAssociationSpec) DeepCopyInto(out *ResolverRuleAssociationSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverRuleAssociationSpec. -func (in *ResolverRuleAssociationSpec) DeepCopy() *ResolverRuleAssociationSpec { - if in == nil { - return nil - } - out := new(ResolverRuleAssociationSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverRuleAssociationStatus) DeepCopyInto(out *ResolverRuleAssociationStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverRuleAssociationStatus. -func (in *ResolverRuleAssociationStatus) DeepCopy() *ResolverRuleAssociationStatus { - if in == nil { - return nil - } - out := new(ResolverRuleAssociationStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverRuleList) DeepCopyInto(out *ResolverRuleList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ResolverRule, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverRuleList. -func (in *ResolverRuleList) DeepCopy() *ResolverRuleList { - if in == nil { - return nil - } - out := new(ResolverRuleList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ResolverRuleList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverRuleObservation) DeepCopyInto(out *ResolverRuleObservation) { - *out = *in - if in.Arn != nil { - in, out := &in.Arn, &out.Arn - *out = new(string) - **out = **in - } - if in.ID != nil { - in, out := &in.ID, &out.ID - *out = new(string) - **out = **in - } - if in.OwnerID != nil { - in, out := &in.OwnerID, &out.OwnerID - *out = new(string) - **out = **in - } - if in.ShareStatus != nil { - in, out := &in.ShareStatus, &out.ShareStatus - *out = new(string) - **out = **in - } - if in.TagsAll != nil { - in, out := &in.TagsAll, &out.TagsAll - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverRuleObservation. -func (in *ResolverRuleObservation) DeepCopy() *ResolverRuleObservation { - if in == nil { - return nil - } - out := new(ResolverRuleObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverRuleParameters) DeepCopyInto(out *ResolverRuleParameters) { - *out = *in - if in.DomainName != nil { - in, out := &in.DomainName, &out.DomainName - *out = new(string) - **out = **in - } - if in.Name != nil { - in, out := &in.Name, &out.Name - *out = new(string) - **out = **in - } - if in.Region != nil { - in, out := &in.Region, &out.Region - *out = new(string) - **out = **in - } - if in.ResolverEndpointID != nil { - in, out := &in.ResolverEndpointID, &out.ResolverEndpointID - *out = new(string) - **out = **in - } - if in.RuleType != nil { - in, out := &in.RuleType, &out.RuleType - *out = new(string) - **out = **in - } - if in.Tags != nil { - in, out := &in.Tags, &out.Tags - *out = make(map[string]*string, len(*in)) - for key, val := range *in { - var outVal *string - if val == nil { - (*out)[key] = nil - } else { - in, out := &val, &outVal - *out = new(string) - **out = **in - } - (*out)[key] = outVal - } - } - if in.TargetIP != nil { - in, out := &in.TargetIP, &out.TargetIP - *out = make([]TargetIPParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverRuleParameters. -func (in *ResolverRuleParameters) DeepCopy() *ResolverRuleParameters { - if in == nil { - return nil - } - out := new(ResolverRuleParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverRuleSpec) DeepCopyInto(out *ResolverRuleSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverRuleSpec. -func (in *ResolverRuleSpec) DeepCopy() *ResolverRuleSpec { - if in == nil { - return nil - } - out := new(ResolverRuleSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverRuleStatus) DeepCopyInto(out *ResolverRuleStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - in.AtProvider.DeepCopyInto(&out.AtProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverRuleStatus. -func (in *ResolverRuleStatus) DeepCopy() *ResolverRuleStatus { - if in == nil { - return nil - } - out := new(ResolverRuleStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetIPObservation) DeepCopyInto(out *TargetIPObservation) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetIPObservation. -func (in *TargetIPObservation) DeepCopy() *TargetIPObservation { - if in == nil { - return nil - } - out := new(TargetIPObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *TargetIPParameters) DeepCopyInto(out *TargetIPParameters) { - *out = *in - if in.IP != nil { - in, out := &in.IP, &out.IP - *out = new(string) - **out = **in - } - if in.Port != nil { - in, out := &in.Port, &out.Port - *out = new(int64) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetIPParameters. -func (in *TargetIPParameters) DeepCopy() *TargetIPParameters { - if in == nil { - return nil - } - out := new(TargetIPParameters) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VPCAssociationAuthorization) DeepCopyInto(out *VPCAssociationAuthorization) { *out = *in diff --git a/apis/route53/v1alpha1/zz_generated.managed.go b/apis/route53/v1alpha1/zz_generated.managed.go index aa708d763..d68d47a84 100644 --- a/apis/route53/v1alpha1/zz_generated.managed.go +++ b/apis/route53/v1alpha1/zz_generated.managed.go @@ -355,622 +355,6 @@ func (mg *Record) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } -// GetCondition of this ResolverDNSSECConfig. -func (mg *ResolverDNSSECConfig) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this ResolverDNSSECConfig. -func (mg *ResolverDNSSECConfig) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this ResolverDNSSECConfig. -func (mg *ResolverDNSSECConfig) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this ResolverDNSSECConfig. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *ResolverDNSSECConfig) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this ResolverDNSSECConfig. -func (mg *ResolverDNSSECConfig) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this ResolverDNSSECConfig. -func (mg *ResolverDNSSECConfig) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this ResolverDNSSECConfig. -func (mg *ResolverDNSSECConfig) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this ResolverDNSSECConfig. -func (mg *ResolverDNSSECConfig) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this ResolverDNSSECConfig. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *ResolverDNSSECConfig) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this ResolverDNSSECConfig. -func (mg *ResolverDNSSECConfig) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this ResolverEndpoint. -func (mg *ResolverEndpoint) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this ResolverEndpoint. -func (mg *ResolverEndpoint) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this ResolverEndpoint. -func (mg *ResolverEndpoint) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this ResolverEndpoint. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *ResolverEndpoint) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this ResolverEndpoint. -func (mg *ResolverEndpoint) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this ResolverEndpoint. -func (mg *ResolverEndpoint) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this ResolverEndpoint. -func (mg *ResolverEndpoint) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this ResolverEndpoint. -func (mg *ResolverEndpoint) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this ResolverEndpoint. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *ResolverEndpoint) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this ResolverEndpoint. -func (mg *ResolverEndpoint) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this ResolverFirewallConfig. -func (mg *ResolverFirewallConfig) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this ResolverFirewallConfig. -func (mg *ResolverFirewallConfig) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this ResolverFirewallConfig. -func (mg *ResolverFirewallConfig) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this ResolverFirewallConfig. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *ResolverFirewallConfig) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this ResolverFirewallConfig. -func (mg *ResolverFirewallConfig) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this ResolverFirewallConfig. -func (mg *ResolverFirewallConfig) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this ResolverFirewallConfig. -func (mg *ResolverFirewallConfig) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this ResolverFirewallConfig. -func (mg *ResolverFirewallConfig) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this ResolverFirewallConfig. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *ResolverFirewallConfig) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this ResolverFirewallConfig. -func (mg *ResolverFirewallConfig) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this ResolverFirewallDomainList. -func (mg *ResolverFirewallDomainList) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this ResolverFirewallDomainList. -func (mg *ResolverFirewallDomainList) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this ResolverFirewallDomainList. -func (mg *ResolverFirewallDomainList) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this ResolverFirewallDomainList. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *ResolverFirewallDomainList) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this ResolverFirewallDomainList. -func (mg *ResolverFirewallDomainList) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this ResolverFirewallDomainList. -func (mg *ResolverFirewallDomainList) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this ResolverFirewallDomainList. -func (mg *ResolverFirewallDomainList) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this ResolverFirewallDomainList. -func (mg *ResolverFirewallDomainList) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this ResolverFirewallDomainList. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *ResolverFirewallDomainList) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this ResolverFirewallDomainList. -func (mg *ResolverFirewallDomainList) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this ResolverFirewallRule. -func (mg *ResolverFirewallRule) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this ResolverFirewallRule. -func (mg *ResolverFirewallRule) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this ResolverFirewallRule. -func (mg *ResolverFirewallRule) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this ResolverFirewallRule. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *ResolverFirewallRule) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this ResolverFirewallRule. -func (mg *ResolverFirewallRule) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this ResolverFirewallRule. -func (mg *ResolverFirewallRule) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this ResolverFirewallRule. -func (mg *ResolverFirewallRule) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this ResolverFirewallRule. -func (mg *ResolverFirewallRule) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this ResolverFirewallRule. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *ResolverFirewallRule) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this ResolverFirewallRule. -func (mg *ResolverFirewallRule) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this ResolverFirewallRuleGroup. -func (mg *ResolverFirewallRuleGroup) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this ResolverFirewallRuleGroup. -func (mg *ResolverFirewallRuleGroup) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this ResolverFirewallRuleGroup. -func (mg *ResolverFirewallRuleGroup) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this ResolverFirewallRuleGroup. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *ResolverFirewallRuleGroup) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this ResolverFirewallRuleGroup. -func (mg *ResolverFirewallRuleGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this ResolverFirewallRuleGroup. -func (mg *ResolverFirewallRuleGroup) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this ResolverFirewallRuleGroup. -func (mg *ResolverFirewallRuleGroup) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this ResolverFirewallRuleGroup. -func (mg *ResolverFirewallRuleGroup) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this ResolverFirewallRuleGroup. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *ResolverFirewallRuleGroup) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this ResolverFirewallRuleGroup. -func (mg *ResolverFirewallRuleGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this ResolverFirewallRuleGroupAssociation. -func (mg *ResolverFirewallRuleGroupAssociation) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this ResolverFirewallRuleGroupAssociation. -func (mg *ResolverFirewallRuleGroupAssociation) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this ResolverFirewallRuleGroupAssociation. -func (mg *ResolverFirewallRuleGroupAssociation) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this ResolverFirewallRuleGroupAssociation. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *ResolverFirewallRuleGroupAssociation) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this ResolverFirewallRuleGroupAssociation. -func (mg *ResolverFirewallRuleGroupAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this ResolverFirewallRuleGroupAssociation. -func (mg *ResolverFirewallRuleGroupAssociation) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this ResolverFirewallRuleGroupAssociation. -func (mg *ResolverFirewallRuleGroupAssociation) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this ResolverFirewallRuleGroupAssociation. -func (mg *ResolverFirewallRuleGroupAssociation) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this ResolverFirewallRuleGroupAssociation. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *ResolverFirewallRuleGroupAssociation) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this ResolverFirewallRuleGroupAssociation. -func (mg *ResolverFirewallRuleGroupAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this ResolverQueryLogConfig. -func (mg *ResolverQueryLogConfig) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this ResolverQueryLogConfig. -func (mg *ResolverQueryLogConfig) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this ResolverQueryLogConfig. -func (mg *ResolverQueryLogConfig) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this ResolverQueryLogConfig. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *ResolverQueryLogConfig) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this ResolverQueryLogConfig. -func (mg *ResolverQueryLogConfig) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this ResolverQueryLogConfig. -func (mg *ResolverQueryLogConfig) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this ResolverQueryLogConfig. -func (mg *ResolverQueryLogConfig) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this ResolverQueryLogConfig. -func (mg *ResolverQueryLogConfig) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this ResolverQueryLogConfig. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *ResolverQueryLogConfig) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this ResolverQueryLogConfig. -func (mg *ResolverQueryLogConfig) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this ResolverQueryLogConfigAssociation. -func (mg *ResolverQueryLogConfigAssociation) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this ResolverQueryLogConfigAssociation. -func (mg *ResolverQueryLogConfigAssociation) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this ResolverQueryLogConfigAssociation. -func (mg *ResolverQueryLogConfigAssociation) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this ResolverQueryLogConfigAssociation. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *ResolverQueryLogConfigAssociation) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this ResolverQueryLogConfigAssociation. -func (mg *ResolverQueryLogConfigAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this ResolverQueryLogConfigAssociation. -func (mg *ResolverQueryLogConfigAssociation) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this ResolverQueryLogConfigAssociation. -func (mg *ResolverQueryLogConfigAssociation) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this ResolverQueryLogConfigAssociation. -func (mg *ResolverQueryLogConfigAssociation) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this ResolverQueryLogConfigAssociation. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *ResolverQueryLogConfigAssociation) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this ResolverQueryLogConfigAssociation. -func (mg *ResolverQueryLogConfigAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this ResolverRule. -func (mg *ResolverRule) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this ResolverRule. -func (mg *ResolverRule) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this ResolverRule. -func (mg *ResolverRule) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this ResolverRule. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *ResolverRule) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this ResolverRule. -func (mg *ResolverRule) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this ResolverRule. -func (mg *ResolverRule) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this ResolverRule. -func (mg *ResolverRule) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this ResolverRule. -func (mg *ResolverRule) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this ResolverRule. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *ResolverRule) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this ResolverRule. -func (mg *ResolverRule) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - -// GetCondition of this ResolverRuleAssociation. -func (mg *ResolverRuleAssociation) GetCondition(ct xpv1.ConditionType) xpv1.Condition { - return mg.Status.GetCondition(ct) -} - -// GetDeletionPolicy of this ResolverRuleAssociation. -func (mg *ResolverRuleAssociation) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this ResolverRuleAssociation. -func (mg *ResolverRuleAssociation) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this ResolverRuleAssociation. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *ResolverRuleAssociation) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this ResolverRuleAssociation. -func (mg *ResolverRuleAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this ResolverRuleAssociation. -func (mg *ResolverRuleAssociation) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this ResolverRuleAssociation. -func (mg *ResolverRuleAssociation) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this ResolverRuleAssociation. -func (mg *ResolverRuleAssociation) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this ResolverRuleAssociation. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *ResolverRuleAssociation) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this ResolverRuleAssociation. -func (mg *ResolverRuleAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { - mg.Spec.WriteConnectionSecretToReference = r -} - // GetCondition of this VPCAssociationAuthorization. func (mg *VPCAssociationAuthorization) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) diff --git a/apis/route53/v1alpha1/zz_generated.managedlist.go b/apis/route53/v1alpha1/zz_generated.managedlist.go index 7475f760c..22f2140e4 100644 --- a/apis/route53/v1alpha1/zz_generated.managedlist.go +++ b/apis/route53/v1alpha1/zz_generated.managedlist.go @@ -73,105 +73,6 @@ func (l *RecordList) GetItems() []resource.Managed { return items } -// GetItems of this ResolverDNSSECConfigList. -func (l *ResolverDNSSECConfigList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} - -// GetItems of this ResolverEndpointList. -func (l *ResolverEndpointList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} - -// GetItems of this ResolverFirewallConfigList. -func (l *ResolverFirewallConfigList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} - -// GetItems of this ResolverFirewallDomainListList. -func (l *ResolverFirewallDomainListList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} - -// GetItems of this ResolverFirewallRuleGroupAssociationList. -func (l *ResolverFirewallRuleGroupAssociationList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} - -// GetItems of this ResolverFirewallRuleGroupList. -func (l *ResolverFirewallRuleGroupList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} - -// GetItems of this ResolverFirewallRuleList. -func (l *ResolverFirewallRuleList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} - -// GetItems of this ResolverQueryLogConfigAssociationList. -func (l *ResolverQueryLogConfigAssociationList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} - -// GetItems of this ResolverQueryLogConfigList. -func (l *ResolverQueryLogConfigList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} - -// GetItems of this ResolverRuleAssociationList. -func (l *ResolverRuleAssociationList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} - -// GetItems of this ResolverRuleList. -func (l *ResolverRuleList) GetItems() []resource.Managed { - items := make([]resource.Managed, len(l.Items)) - for i := range l.Items { - items[i] = &l.Items[i] - } - return items -} - // GetItems of this VPCAssociationAuthorizationList. func (l *VPCAssociationAuthorizationList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) diff --git a/apis/route53/v1alpha1/zz_resolverdnssecconfig_terraformed.go b/apis/route53/v1alpha1/zz_resolverdnssecconfig_terraformed.go deleted file mode 100755 index 6b5f1adfe..000000000 --- a/apis/route53/v1alpha1/zz_resolverdnssecconfig_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this ResolverDNSSECConfig -func (mg *ResolverDNSSECConfig) GetTerraformResourceType() string { - return "aws_route53_resolver_dnssec_config" -} - -// GetConnectionDetailsMapping for this ResolverDNSSECConfig -func (tr *ResolverDNSSECConfig) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this ResolverDNSSECConfig -func (tr *ResolverDNSSECConfig) GetObservation() (map[string]interface{}, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this ResolverDNSSECConfig -func (tr *ResolverDNSSECConfig) SetObservation(obs map[string]interface{}) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this ResolverDNSSECConfig -func (tr *ResolverDNSSECConfig) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this ResolverDNSSECConfig -func (tr *ResolverDNSSECConfig) GetParameters() (map[string]interface{}, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this ResolverDNSSECConfig -func (tr *ResolverDNSSECConfig) SetParameters(params map[string]interface{}) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this ResolverDNSSECConfig using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *ResolverDNSSECConfig) LateInitialize(attrs []byte) (bool, error) { - params := &ResolverDNSSECConfigParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ResolverDNSSECConfig) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53/v1alpha1/zz_resolverfirewallconfig_terraformed.go b/apis/route53/v1alpha1/zz_resolverfirewallconfig_terraformed.go deleted file mode 100755 index fe7ec117c..000000000 --- a/apis/route53/v1alpha1/zz_resolverfirewallconfig_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this ResolverFirewallConfig -func (mg *ResolverFirewallConfig) GetTerraformResourceType() string { - return "aws_route53_resolver_firewall_config" -} - -// GetConnectionDetailsMapping for this ResolverFirewallConfig -func (tr *ResolverFirewallConfig) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this ResolverFirewallConfig -func (tr *ResolverFirewallConfig) GetObservation() (map[string]interface{}, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this ResolverFirewallConfig -func (tr *ResolverFirewallConfig) SetObservation(obs map[string]interface{}) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this ResolverFirewallConfig -func (tr *ResolverFirewallConfig) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this ResolverFirewallConfig -func (tr *ResolverFirewallConfig) GetParameters() (map[string]interface{}, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this ResolverFirewallConfig -func (tr *ResolverFirewallConfig) SetParameters(params map[string]interface{}) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this ResolverFirewallConfig using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *ResolverFirewallConfig) LateInitialize(attrs []byte) (bool, error) { - params := &ResolverFirewallConfigParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ResolverFirewallConfig) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53/v1alpha1/zz_resolverfirewallrule_terraformed.go b/apis/route53/v1alpha1/zz_resolverfirewallrule_terraformed.go deleted file mode 100755 index 0d098aac5..000000000 --- a/apis/route53/v1alpha1/zz_resolverfirewallrule_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this ResolverFirewallRule -func (mg *ResolverFirewallRule) GetTerraformResourceType() string { - return "aws_route53_resolver_firewall_rule" -} - -// GetConnectionDetailsMapping for this ResolverFirewallRule -func (tr *ResolverFirewallRule) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this ResolverFirewallRule -func (tr *ResolverFirewallRule) GetObservation() (map[string]interface{}, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this ResolverFirewallRule -func (tr *ResolverFirewallRule) SetObservation(obs map[string]interface{}) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this ResolverFirewallRule -func (tr *ResolverFirewallRule) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this ResolverFirewallRule -func (tr *ResolverFirewallRule) GetParameters() (map[string]interface{}, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this ResolverFirewallRule -func (tr *ResolverFirewallRule) SetParameters(params map[string]interface{}) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this ResolverFirewallRule using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *ResolverFirewallRule) LateInitialize(attrs []byte) (bool, error) { - params := &ResolverFirewallRuleParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ResolverFirewallRule) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53/v1alpha1/zz_resolverfirewallrulegroupassociation_terraformed.go b/apis/route53/v1alpha1/zz_resolverfirewallrulegroupassociation_terraformed.go deleted file mode 100755 index 5611db391..000000000 --- a/apis/route53/v1alpha1/zz_resolverfirewallrulegroupassociation_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this ResolverFirewallRuleGroupAssociation -func (mg *ResolverFirewallRuleGroupAssociation) GetTerraformResourceType() string { - return "aws_route53_resolver_firewall_rule_group_association" -} - -// GetConnectionDetailsMapping for this ResolverFirewallRuleGroupAssociation -func (tr *ResolverFirewallRuleGroupAssociation) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this ResolverFirewallRuleGroupAssociation -func (tr *ResolverFirewallRuleGroupAssociation) GetObservation() (map[string]interface{}, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this ResolverFirewallRuleGroupAssociation -func (tr *ResolverFirewallRuleGroupAssociation) SetObservation(obs map[string]interface{}) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this ResolverFirewallRuleGroupAssociation -func (tr *ResolverFirewallRuleGroupAssociation) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this ResolverFirewallRuleGroupAssociation -func (tr *ResolverFirewallRuleGroupAssociation) GetParameters() (map[string]interface{}, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this ResolverFirewallRuleGroupAssociation -func (tr *ResolverFirewallRuleGroupAssociation) SetParameters(params map[string]interface{}) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this ResolverFirewallRuleGroupAssociation using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *ResolverFirewallRuleGroupAssociation) LateInitialize(attrs []byte) (bool, error) { - params := &ResolverFirewallRuleGroupAssociationParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ResolverFirewallRuleGroupAssociation) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53/v1alpha1/zz_resolverquerylogconfig_terraformed.go b/apis/route53/v1alpha1/zz_resolverquerylogconfig_terraformed.go deleted file mode 100755 index a5aec469d..000000000 --- a/apis/route53/v1alpha1/zz_resolverquerylogconfig_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this ResolverQueryLogConfig -func (mg *ResolverQueryLogConfig) GetTerraformResourceType() string { - return "aws_route53_resolver_query_log_config" -} - -// GetConnectionDetailsMapping for this ResolverQueryLogConfig -func (tr *ResolverQueryLogConfig) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this ResolverQueryLogConfig -func (tr *ResolverQueryLogConfig) GetObservation() (map[string]interface{}, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this ResolverQueryLogConfig -func (tr *ResolverQueryLogConfig) SetObservation(obs map[string]interface{}) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this ResolverQueryLogConfig -func (tr *ResolverQueryLogConfig) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this ResolverQueryLogConfig -func (tr *ResolverQueryLogConfig) GetParameters() (map[string]interface{}, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this ResolverQueryLogConfig -func (tr *ResolverQueryLogConfig) SetParameters(params map[string]interface{}) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this ResolverQueryLogConfig using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *ResolverQueryLogConfig) LateInitialize(attrs []byte) (bool, error) { - params := &ResolverQueryLogConfigParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ResolverQueryLogConfig) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53/v1alpha1/zz_resolverquerylogconfigassociation_terraformed.go b/apis/route53/v1alpha1/zz_resolverquerylogconfigassociation_terraformed.go deleted file mode 100755 index 7e76fd9b7..000000000 --- a/apis/route53/v1alpha1/zz_resolverquerylogconfigassociation_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this ResolverQueryLogConfigAssociation -func (mg *ResolverQueryLogConfigAssociation) GetTerraformResourceType() string { - return "aws_route53_resolver_query_log_config_association" -} - -// GetConnectionDetailsMapping for this ResolverQueryLogConfigAssociation -func (tr *ResolverQueryLogConfigAssociation) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this ResolverQueryLogConfigAssociation -func (tr *ResolverQueryLogConfigAssociation) GetObservation() (map[string]interface{}, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this ResolverQueryLogConfigAssociation -func (tr *ResolverQueryLogConfigAssociation) SetObservation(obs map[string]interface{}) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this ResolverQueryLogConfigAssociation -func (tr *ResolverQueryLogConfigAssociation) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this ResolverQueryLogConfigAssociation -func (tr *ResolverQueryLogConfigAssociation) GetParameters() (map[string]interface{}, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this ResolverQueryLogConfigAssociation -func (tr *ResolverQueryLogConfigAssociation) SetParameters(params map[string]interface{}) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this ResolverQueryLogConfigAssociation using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *ResolverQueryLogConfigAssociation) LateInitialize(attrs []byte) (bool, error) { - params := &ResolverQueryLogConfigAssociationParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ResolverQueryLogConfigAssociation) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53/v1alpha1/zz_resolverrule_terraformed.go b/apis/route53resolver/v1alpha1/zz_dnssecconfig_terraformed.go similarity index 68% rename from apis/route53/v1alpha1/zz_resolverrule_terraformed.go rename to apis/route53resolver/v1alpha1/zz_dnssecconfig_terraformed.go index 6d568d7dc..43d6dff74 100755 --- a/apis/route53/v1alpha1/zz_resolverrule_terraformed.go +++ b/apis/route53resolver/v1alpha1/zz_dnssecconfig_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ResolverRule -func (mg *ResolverRule) GetTerraformResourceType() string { - return "aws_route53_resolver_rule" +// GetTerraformResourceType returns Terraform resource type for this DNSSECConfig +func (mg *DNSSECConfig) GetTerraformResourceType() string { + return "aws_route53_resolver_dnssec_config" } -// GetConnectionDetailsMapping for this ResolverRule -func (tr *ResolverRule) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this DNSSECConfig +func (tr *DNSSECConfig) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ResolverRule -func (tr *ResolverRule) GetObservation() (map[string]interface{}, error) { +// GetObservation of this DNSSECConfig +func (tr *DNSSECConfig) GetObservation() (map[string]interface{}, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -45,8 +45,8 @@ func (tr *ResolverRule) GetObservation() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this ResolverRule -func (tr *ResolverRule) SetObservation(obs map[string]interface{}) error { +// SetObservation for this DNSSECConfig +func (tr *DNSSECConfig) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,16 +54,16 @@ func (tr *ResolverRule) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this ResolverRule -func (tr *ResolverRule) GetID() string { +// GetID returns ID of underlying Terraform resource of this DNSSECConfig +func (tr *DNSSECConfig) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this ResolverRule -func (tr *ResolverRule) GetParameters() (map[string]interface{}, error) { +// GetParameters of this DNSSECConfig +func (tr *DNSSECConfig) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -72,8 +72,8 @@ func (tr *ResolverRule) GetParameters() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this ResolverRule -func (tr *ResolverRule) SetParameters(params map[string]interface{}) error { +// SetParameters for this DNSSECConfig +func (tr *DNSSECConfig) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -81,10 +81,10 @@ func (tr *ResolverRule) SetParameters(params map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this ResolverRule using its observed tfState. +// LateInitialize this DNSSECConfig using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *ResolverRule) LateInitialize(attrs []byte) (bool, error) { - params := &ResolverRuleParameters{} +func (tr *DNSSECConfig) LateInitialize(attrs []byte) (bool, error) { + params := &DNSSECConfigParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -95,6 +95,6 @@ func (tr *ResolverRule) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ResolverRule) GetTerraformSchemaVersion() int { +func (tr *DNSSECConfig) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/route53/v1alpha1/zz_resolverdnssecconfig_types.go b/apis/route53resolver/v1alpha1/zz_dnssecconfig_types.go similarity index 63% rename from apis/route53/v1alpha1/zz_resolverdnssecconfig_types.go rename to apis/route53resolver/v1alpha1/zz_dnssecconfig_types.go index ce53db675..cd84d0176 100755 --- a/apis/route53/v1alpha1/zz_resolverdnssecconfig_types.go +++ b/apis/route53resolver/v1alpha1/zz_dnssecconfig_types.go @@ -25,7 +25,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type ResolverDNSSECConfigObservation struct { +type DNSSECConfigObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` @@ -35,7 +35,7 @@ type ResolverDNSSECConfigObservation struct { ValidationStatus *string `json:"validationStatus,omitempty" tf:"validation_status,omitempty"` } -type ResolverDNSSECConfigParameters struct { +type DNSSECConfigParameters struct { // Region is the region you'd like your resource to be created in. // +terrajet:crd:field:TFTag=- @@ -46,51 +46,51 @@ type ResolverDNSSECConfigParameters struct { ResourceID *string `json:"resourceId" tf:"resource_id,omitempty"` } -// ResolverDNSSECConfigSpec defines the desired state of ResolverDNSSECConfig -type ResolverDNSSECConfigSpec struct { +// DNSSECConfigSpec defines the desired state of DNSSECConfig +type DNSSECConfigSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ResolverDNSSECConfigParameters `json:"forProvider"` + ForProvider DNSSECConfigParameters `json:"forProvider"` } -// ResolverDNSSECConfigStatus defines the observed state of ResolverDNSSECConfig. -type ResolverDNSSECConfigStatus struct { +// DNSSECConfigStatus defines the observed state of DNSSECConfig. +type DNSSECConfigStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ResolverDNSSECConfigObservation `json:"atProvider,omitempty"` + AtProvider DNSSECConfigObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ResolverDNSSECConfig is the Schema for the ResolverDNSSECConfigs API +// DNSSECConfig is the Schema for the DNSSECConfigs API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type ResolverDNSSECConfig struct { +type DNSSECConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec ResolverDNSSECConfigSpec `json:"spec"` - Status ResolverDNSSECConfigStatus `json:"status,omitempty"` + Spec DNSSECConfigSpec `json:"spec"` + Status DNSSECConfigStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ResolverDNSSECConfigList contains a list of ResolverDNSSECConfigs -type ResolverDNSSECConfigList struct { +// DNSSECConfigList contains a list of DNSSECConfigs +type DNSSECConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ResolverDNSSECConfig `json:"items"` + Items []DNSSECConfig `json:"items"` } // Repository type metadata. var ( - ResolverDNSSECConfig_Kind = "ResolverDNSSECConfig" - ResolverDNSSECConfig_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ResolverDNSSECConfig_Kind}.String() - ResolverDNSSECConfig_KindAPIVersion = ResolverDNSSECConfig_Kind + "." + CRDGroupVersion.String() - ResolverDNSSECConfig_GroupVersionKind = CRDGroupVersion.WithKind(ResolverDNSSECConfig_Kind) + DNSSECConfig_Kind = "DNSSECConfig" + DNSSECConfig_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: DNSSECConfig_Kind}.String() + DNSSECConfig_KindAPIVersion = DNSSECConfig_Kind + "." + CRDGroupVersion.String() + DNSSECConfig_GroupVersionKind = CRDGroupVersion.WithKind(DNSSECConfig_Kind) ) func init() { - SchemeBuilder.Register(&ResolverDNSSECConfig{}, &ResolverDNSSECConfigList{}) + SchemeBuilder.Register(&DNSSECConfig{}, &DNSSECConfigList{}) } diff --git a/apis/route53resolver/v1alpha1/zz_endpoint_terraformed.go b/apis/route53resolver/v1alpha1/zz_endpoint_terraformed.go new file mode 100755 index 000000000..d36b00ad2 --- /dev/null +++ b/apis/route53resolver/v1alpha1/zz_endpoint_terraformed.go @@ -0,0 +1,100 @@ +/* +Copyright 2021 The Crossplane Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by terrajet. DO NOT EDIT. + +package v1alpha1 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this Endpoint +func (mg *Endpoint) GetTerraformResourceType() string { + return "aws_route53_resolver_endpoint" +} + +// GetConnectionDetailsMapping for this Endpoint +func (tr *Endpoint) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this Endpoint +func (tr *Endpoint) GetObservation() (map[string]interface{}, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this Endpoint +func (tr *Endpoint) SetObservation(obs map[string]interface{}) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this Endpoint +func (tr *Endpoint) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this Endpoint +func (tr *Endpoint) GetParameters() (map[string]interface{}, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Endpoint +func (tr *Endpoint) SetParameters(params map[string]interface{}) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this Endpoint using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *Endpoint) LateInitialize(attrs []byte) (bool, error) { + params := &EndpointParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *Endpoint) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/route53/v1alpha1/zz_resolverendpoint_types.go b/apis/route53resolver/v1alpha1/zz_endpoint_types.go similarity index 71% rename from apis/route53/v1alpha1/zz_resolverendpoint_types.go rename to apis/route53resolver/v1alpha1/zz_endpoint_types.go index 187b4ff5d..e8854ff78 100755 --- a/apis/route53/v1alpha1/zz_resolverendpoint_types.go +++ b/apis/route53resolver/v1alpha1/zz_endpoint_types.go @@ -25,20 +25,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type IPAddressObservation struct { - IPID *string `json:"ipId,omitempty" tf:"ip_id,omitempty"` -} - -type IPAddressParameters struct { - - // +kubebuilder:validation:Optional - IP *string `json:"ip,omitempty" tf:"ip,omitempty"` - - // +kubebuilder:validation:Required - SubnetID *string `json:"subnetId" tf:"subnet_id,omitempty"` -} - -type ResolverEndpointObservation struct { +type EndpointObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` HostVPCID *string `json:"hostVpcId,omitempty" tf:"host_vpc_id,omitempty"` @@ -48,7 +35,7 @@ type ResolverEndpointObservation struct { TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } -type ResolverEndpointParameters struct { +type EndpointParameters struct { // +kubebuilder:validation:Required Direction *string `json:"direction" tf:"direction,omitempty"` @@ -71,51 +58,64 @@ type ResolverEndpointParameters struct { Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` } -// ResolverEndpointSpec defines the desired state of ResolverEndpoint -type ResolverEndpointSpec struct { +type IPAddressObservation struct { + IPID *string `json:"ipId,omitempty" tf:"ip_id,omitempty"` +} + +type IPAddressParameters struct { + + // +kubebuilder:validation:Optional + IP *string `json:"ip,omitempty" tf:"ip,omitempty"` + + // +kubebuilder:validation:Required + SubnetID *string `json:"subnetId" tf:"subnet_id,omitempty"` +} + +// EndpointSpec defines the desired state of Endpoint +type EndpointSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ResolverEndpointParameters `json:"forProvider"` + ForProvider EndpointParameters `json:"forProvider"` } -// ResolverEndpointStatus defines the observed state of ResolverEndpoint. -type ResolverEndpointStatus struct { +// EndpointStatus defines the observed state of Endpoint. +type EndpointStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ResolverEndpointObservation `json:"atProvider,omitempty"` + AtProvider EndpointObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ResolverEndpoint is the Schema for the ResolverEndpoints API +// Endpoint is the Schema for the Endpoints API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type ResolverEndpoint struct { +type Endpoint struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec ResolverEndpointSpec `json:"spec"` - Status ResolverEndpointStatus `json:"status,omitempty"` + Spec EndpointSpec `json:"spec"` + Status EndpointStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ResolverEndpointList contains a list of ResolverEndpoints -type ResolverEndpointList struct { +// EndpointList contains a list of Endpoints +type EndpointList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ResolverEndpoint `json:"items"` + Items []Endpoint `json:"items"` } // Repository type metadata. var ( - ResolverEndpoint_Kind = "ResolverEndpoint" - ResolverEndpoint_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ResolverEndpoint_Kind}.String() - ResolverEndpoint_KindAPIVersion = ResolverEndpoint_Kind + "." + CRDGroupVersion.String() - ResolverEndpoint_GroupVersionKind = CRDGroupVersion.WithKind(ResolverEndpoint_Kind) + Endpoint_Kind = "Endpoint" + Endpoint_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Endpoint_Kind}.String() + Endpoint_KindAPIVersion = Endpoint_Kind + "." + CRDGroupVersion.String() + Endpoint_GroupVersionKind = CRDGroupVersion.WithKind(Endpoint_Kind) ) func init() { - SchemeBuilder.Register(&ResolverEndpoint{}, &ResolverEndpointList{}) + SchemeBuilder.Register(&Endpoint{}, &EndpointList{}) } diff --git a/apis/route53resolver/v1alpha1/zz_firewallconfig_terraformed.go b/apis/route53resolver/v1alpha1/zz_firewallconfig_terraformed.go new file mode 100755 index 000000000..de4054154 --- /dev/null +++ b/apis/route53resolver/v1alpha1/zz_firewallconfig_terraformed.go @@ -0,0 +1,100 @@ +/* +Copyright 2021 The Crossplane Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by terrajet. DO NOT EDIT. + +package v1alpha1 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this FirewallConfig +func (mg *FirewallConfig) GetTerraformResourceType() string { + return "aws_route53_resolver_firewall_config" +} + +// GetConnectionDetailsMapping for this FirewallConfig +func (tr *FirewallConfig) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this FirewallConfig +func (tr *FirewallConfig) GetObservation() (map[string]interface{}, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this FirewallConfig +func (tr *FirewallConfig) SetObservation(obs map[string]interface{}) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this FirewallConfig +func (tr *FirewallConfig) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this FirewallConfig +func (tr *FirewallConfig) GetParameters() (map[string]interface{}, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this FirewallConfig +func (tr *FirewallConfig) SetParameters(params map[string]interface{}) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this FirewallConfig using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *FirewallConfig) LateInitialize(attrs []byte) (bool, error) { + params := &FirewallConfigParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *FirewallConfig) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/route53/v1alpha1/zz_resolverfirewallconfig_types.go b/apis/route53resolver/v1alpha1/zz_firewallconfig_types.go similarity index 61% rename from apis/route53/v1alpha1/zz_resolverfirewallconfig_types.go rename to apis/route53resolver/v1alpha1/zz_firewallconfig_types.go index e00719c9e..b9098fb24 100755 --- a/apis/route53/v1alpha1/zz_resolverfirewallconfig_types.go +++ b/apis/route53resolver/v1alpha1/zz_firewallconfig_types.go @@ -25,13 +25,13 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type ResolverFirewallConfigObservation struct { +type FirewallConfigObservation struct { ID *string `json:"id,omitempty" tf:"id,omitempty"` OwnerID *string `json:"ownerId,omitempty" tf:"owner_id,omitempty"` } -type ResolverFirewallConfigParameters struct { +type FirewallConfigParameters struct { // +kubebuilder:validation:Optional FirewallFailOpen *string `json:"firewallFailOpen,omitempty" tf:"firewall_fail_open,omitempty"` @@ -45,51 +45,51 @@ type ResolverFirewallConfigParameters struct { ResourceID *string `json:"resourceId" tf:"resource_id,omitempty"` } -// ResolverFirewallConfigSpec defines the desired state of ResolverFirewallConfig -type ResolverFirewallConfigSpec struct { +// FirewallConfigSpec defines the desired state of FirewallConfig +type FirewallConfigSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ResolverFirewallConfigParameters `json:"forProvider"` + ForProvider FirewallConfigParameters `json:"forProvider"` } -// ResolverFirewallConfigStatus defines the observed state of ResolverFirewallConfig. -type ResolverFirewallConfigStatus struct { +// FirewallConfigStatus defines the observed state of FirewallConfig. +type FirewallConfigStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ResolverFirewallConfigObservation `json:"atProvider,omitempty"` + AtProvider FirewallConfigObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ResolverFirewallConfig is the Schema for the ResolverFirewallConfigs API +// FirewallConfig is the Schema for the FirewallConfigs API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type ResolverFirewallConfig struct { +type FirewallConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec ResolverFirewallConfigSpec `json:"spec"` - Status ResolverFirewallConfigStatus `json:"status,omitempty"` + Spec FirewallConfigSpec `json:"spec"` + Status FirewallConfigStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ResolverFirewallConfigList contains a list of ResolverFirewallConfigs -type ResolverFirewallConfigList struct { +// FirewallConfigList contains a list of FirewallConfigs +type FirewallConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ResolverFirewallConfig `json:"items"` + Items []FirewallConfig `json:"items"` } // Repository type metadata. var ( - ResolverFirewallConfig_Kind = "ResolverFirewallConfig" - ResolverFirewallConfig_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ResolverFirewallConfig_Kind}.String() - ResolverFirewallConfig_KindAPIVersion = ResolverFirewallConfig_Kind + "." + CRDGroupVersion.String() - ResolverFirewallConfig_GroupVersionKind = CRDGroupVersion.WithKind(ResolverFirewallConfig_Kind) + FirewallConfig_Kind = "FirewallConfig" + FirewallConfig_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: FirewallConfig_Kind}.String() + FirewallConfig_KindAPIVersion = FirewallConfig_Kind + "." + CRDGroupVersion.String() + FirewallConfig_GroupVersionKind = CRDGroupVersion.WithKind(FirewallConfig_Kind) ) func init() { - SchemeBuilder.Register(&ResolverFirewallConfig{}, &ResolverFirewallConfigList{}) + SchemeBuilder.Register(&FirewallConfig{}, &FirewallConfigList{}) } diff --git a/apis/route53resolver/v1alpha1/zz_firewalldomainlist_terraformed.go b/apis/route53resolver/v1alpha1/zz_firewalldomainlist_terraformed.go new file mode 100755 index 000000000..1617af51d --- /dev/null +++ b/apis/route53resolver/v1alpha1/zz_firewalldomainlist_terraformed.go @@ -0,0 +1,100 @@ +/* +Copyright 2021 The Crossplane Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by terrajet. DO NOT EDIT. + +package v1alpha1 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this FirewallDomainList +func (mg *FirewallDomainList) GetTerraformResourceType() string { + return "aws_route53_resolver_firewall_domain_list" +} + +// GetConnectionDetailsMapping for this FirewallDomainList +func (tr *FirewallDomainList) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this FirewallDomainList +func (tr *FirewallDomainList) GetObservation() (map[string]interface{}, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this FirewallDomainList +func (tr *FirewallDomainList) SetObservation(obs map[string]interface{}) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this FirewallDomainList +func (tr *FirewallDomainList) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this FirewallDomainList +func (tr *FirewallDomainList) GetParameters() (map[string]interface{}, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this FirewallDomainList +func (tr *FirewallDomainList) SetParameters(params map[string]interface{}) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this FirewallDomainList using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *FirewallDomainList) LateInitialize(attrs []byte) (bool, error) { + params := &FirewallDomainListParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *FirewallDomainList) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/route53/v1alpha1/zz_resolverfirewalldomainlist_types.go b/apis/route53resolver/v1alpha1/zz_firewalldomainlist_types.go similarity index 61% rename from apis/route53/v1alpha1/zz_resolverfirewalldomainlist_types.go rename to apis/route53resolver/v1alpha1/zz_firewalldomainlist_types.go index 27b1aba10..99d06315e 100755 --- a/apis/route53/v1alpha1/zz_resolverfirewalldomainlist_types.go +++ b/apis/route53resolver/v1alpha1/zz_firewalldomainlist_types.go @@ -25,7 +25,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type ResolverFirewallDomainListObservation struct { +type FirewallDomainListObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` @@ -33,7 +33,7 @@ type ResolverFirewallDomainListObservation struct { TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } -type ResolverFirewallDomainListParameters struct { +type FirewallDomainListParameters struct { // +kubebuilder:validation:Optional Domains []*string `json:"domains,omitempty" tf:"domains,omitempty"` @@ -50,51 +50,51 @@ type ResolverFirewallDomainListParameters struct { Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` } -// ResolverFirewallDomainListSpec defines the desired state of ResolverFirewallDomainList -type ResolverFirewallDomainListSpec struct { +// FirewallDomainListSpec defines the desired state of FirewallDomainList +type FirewallDomainListSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ResolverFirewallDomainListParameters `json:"forProvider"` + ForProvider FirewallDomainListParameters `json:"forProvider"` } -// ResolverFirewallDomainListStatus defines the observed state of ResolverFirewallDomainList. -type ResolverFirewallDomainListStatus struct { +// FirewallDomainListStatus defines the observed state of FirewallDomainList. +type FirewallDomainListStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ResolverFirewallDomainListObservation `json:"atProvider,omitempty"` + AtProvider FirewallDomainListObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ResolverFirewallDomainList is the Schema for the ResolverFirewallDomainLists API +// FirewallDomainList is the Schema for the FirewallDomainLists API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type ResolverFirewallDomainList struct { +type FirewallDomainList struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec ResolverFirewallDomainListSpec `json:"spec"` - Status ResolverFirewallDomainListStatus `json:"status,omitempty"` + Spec FirewallDomainListSpec `json:"spec"` + Status FirewallDomainListStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ResolverFirewallDomainListList contains a list of ResolverFirewallDomainLists -type ResolverFirewallDomainListList struct { +// FirewallDomainListList contains a list of FirewallDomainLists +type FirewallDomainListList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ResolverFirewallDomainList `json:"items"` + Items []FirewallDomainList `json:"items"` } // Repository type metadata. var ( - ResolverFirewallDomainList_Kind = "ResolverFirewallDomainList" - ResolverFirewallDomainList_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ResolverFirewallDomainList_Kind}.String() - ResolverFirewallDomainList_KindAPIVersion = ResolverFirewallDomainList_Kind + "." + CRDGroupVersion.String() - ResolverFirewallDomainList_GroupVersionKind = CRDGroupVersion.WithKind(ResolverFirewallDomainList_Kind) + FirewallDomainList_Kind = "FirewallDomainList" + FirewallDomainList_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: FirewallDomainList_Kind}.String() + FirewallDomainList_KindAPIVersion = FirewallDomainList_Kind + "." + CRDGroupVersion.String() + FirewallDomainList_GroupVersionKind = CRDGroupVersion.WithKind(FirewallDomainList_Kind) ) func init() { - SchemeBuilder.Register(&ResolverFirewallDomainList{}, &ResolverFirewallDomainListList{}) + SchemeBuilder.Register(&FirewallDomainList{}, &FirewallDomainListList{}) } diff --git a/apis/elasticloadbalancing/v1alpha1/zz_loadbalancer_terraformed.go b/apis/route53resolver/v1alpha1/zz_firewallrule_terraformed.go similarity index 68% rename from apis/elasticloadbalancing/v1alpha1/zz_loadbalancer_terraformed.go rename to apis/route53resolver/v1alpha1/zz_firewallrule_terraformed.go index 23993e24d..1546e51b1 100755 --- a/apis/elasticloadbalancing/v1alpha1/zz_loadbalancer_terraformed.go +++ b/apis/route53resolver/v1alpha1/zz_firewallrule_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this LoadBalancer -func (mg *LoadBalancer) GetTerraformResourceType() string { - return "aws_lb" +// GetTerraformResourceType returns Terraform resource type for this FirewallRule +func (mg *FirewallRule) GetTerraformResourceType() string { + return "aws_route53_resolver_firewall_rule" } -// GetConnectionDetailsMapping for this LoadBalancer -func (tr *LoadBalancer) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this FirewallRule +func (tr *FirewallRule) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this LoadBalancer -func (tr *LoadBalancer) GetObservation() (map[string]interface{}, error) { +// GetObservation of this FirewallRule +func (tr *FirewallRule) GetObservation() (map[string]interface{}, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -45,8 +45,8 @@ func (tr *LoadBalancer) GetObservation() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this LoadBalancer -func (tr *LoadBalancer) SetObservation(obs map[string]interface{}) error { +// SetObservation for this FirewallRule +func (tr *FirewallRule) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,16 +54,16 @@ func (tr *LoadBalancer) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this LoadBalancer -func (tr *LoadBalancer) GetID() string { +// GetID returns ID of underlying Terraform resource of this FirewallRule +func (tr *FirewallRule) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this LoadBalancer -func (tr *LoadBalancer) GetParameters() (map[string]interface{}, error) { +// GetParameters of this FirewallRule +func (tr *FirewallRule) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -72,8 +72,8 @@ func (tr *LoadBalancer) GetParameters() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this LoadBalancer -func (tr *LoadBalancer) SetParameters(params map[string]interface{}) error { +// SetParameters for this FirewallRule +func (tr *FirewallRule) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -81,10 +81,10 @@ func (tr *LoadBalancer) SetParameters(params map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this LoadBalancer using its observed tfState. +// LateInitialize this FirewallRule using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *LoadBalancer) LateInitialize(attrs []byte) (bool, error) { - params := &LoadBalancerParameters{} +func (tr *FirewallRule) LateInitialize(attrs []byte) (bool, error) { + params := &FirewallRuleParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -95,6 +95,6 @@ func (tr *LoadBalancer) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *LoadBalancer) GetTerraformSchemaVersion() int { +func (tr *FirewallRule) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/route53/v1alpha1/zz_resolverfirewallrule_types.go b/apis/route53resolver/v1alpha1/zz_firewallrule_types.go similarity index 69% rename from apis/route53/v1alpha1/zz_resolverfirewallrule_types.go rename to apis/route53resolver/v1alpha1/zz_firewallrule_types.go index 6944cbc36..90e231381 100755 --- a/apis/route53/v1alpha1/zz_resolverfirewallrule_types.go +++ b/apis/route53resolver/v1alpha1/zz_firewallrule_types.go @@ -25,11 +25,11 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type ResolverFirewallRuleObservation struct { +type FirewallRuleObservation struct { ID *string `json:"id,omitempty" tf:"id,omitempty"` } -type ResolverFirewallRuleParameters struct { +type FirewallRuleParameters struct { // +kubebuilder:validation:Required Action *string `json:"action" tf:"action,omitempty"` @@ -64,51 +64,51 @@ type ResolverFirewallRuleParameters struct { Region *string `json:"region" tf:"-"` } -// ResolverFirewallRuleSpec defines the desired state of ResolverFirewallRule -type ResolverFirewallRuleSpec struct { +// FirewallRuleSpec defines the desired state of FirewallRule +type FirewallRuleSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ResolverFirewallRuleParameters `json:"forProvider"` + ForProvider FirewallRuleParameters `json:"forProvider"` } -// ResolverFirewallRuleStatus defines the observed state of ResolverFirewallRule. -type ResolverFirewallRuleStatus struct { +// FirewallRuleStatus defines the observed state of FirewallRule. +type FirewallRuleStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ResolverFirewallRuleObservation `json:"atProvider,omitempty"` + AtProvider FirewallRuleObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ResolverFirewallRule is the Schema for the ResolverFirewallRules API +// FirewallRule is the Schema for the FirewallRules API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type ResolverFirewallRule struct { +type FirewallRule struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec ResolverFirewallRuleSpec `json:"spec"` - Status ResolverFirewallRuleStatus `json:"status,omitempty"` + Spec FirewallRuleSpec `json:"spec"` + Status FirewallRuleStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ResolverFirewallRuleList contains a list of ResolverFirewallRules -type ResolverFirewallRuleList struct { +// FirewallRuleList contains a list of FirewallRules +type FirewallRuleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ResolverFirewallRule `json:"items"` + Items []FirewallRule `json:"items"` } // Repository type metadata. var ( - ResolverFirewallRule_Kind = "ResolverFirewallRule" - ResolverFirewallRule_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ResolverFirewallRule_Kind}.String() - ResolverFirewallRule_KindAPIVersion = ResolverFirewallRule_Kind + "." + CRDGroupVersion.String() - ResolverFirewallRule_GroupVersionKind = CRDGroupVersion.WithKind(ResolverFirewallRule_Kind) + FirewallRule_Kind = "FirewallRule" + FirewallRule_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: FirewallRule_Kind}.String() + FirewallRule_KindAPIVersion = FirewallRule_Kind + "." + CRDGroupVersion.String() + FirewallRule_GroupVersionKind = CRDGroupVersion.WithKind(FirewallRule_Kind) ) func init() { - SchemeBuilder.Register(&ResolverFirewallRule{}, &ResolverFirewallRuleList{}) + SchemeBuilder.Register(&FirewallRule{}, &FirewallRuleList{}) } diff --git a/apis/route53resolver/v1alpha1/zz_firewallrulegroup_terraformed.go b/apis/route53resolver/v1alpha1/zz_firewallrulegroup_terraformed.go new file mode 100755 index 000000000..c4eea1d17 --- /dev/null +++ b/apis/route53resolver/v1alpha1/zz_firewallrulegroup_terraformed.go @@ -0,0 +1,100 @@ +/* +Copyright 2021 The Crossplane Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by terrajet. DO NOT EDIT. + +package v1alpha1 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this FirewallRuleGroup +func (mg *FirewallRuleGroup) GetTerraformResourceType() string { + return "aws_route53_resolver_firewall_rule_group" +} + +// GetConnectionDetailsMapping for this FirewallRuleGroup +func (tr *FirewallRuleGroup) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this FirewallRuleGroup +func (tr *FirewallRuleGroup) GetObservation() (map[string]interface{}, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this FirewallRuleGroup +func (tr *FirewallRuleGroup) SetObservation(obs map[string]interface{}) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this FirewallRuleGroup +func (tr *FirewallRuleGroup) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this FirewallRuleGroup +func (tr *FirewallRuleGroup) GetParameters() (map[string]interface{}, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this FirewallRuleGroup +func (tr *FirewallRuleGroup) SetParameters(params map[string]interface{}) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this FirewallRuleGroup using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *FirewallRuleGroup) LateInitialize(attrs []byte) (bool, error) { + params := &FirewallRuleGroupParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *FirewallRuleGroup) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/route53/v1alpha1/zz_resolverfirewallrulegroup_types.go b/apis/route53resolver/v1alpha1/zz_firewallrulegroup_types.go similarity index 62% rename from apis/route53/v1alpha1/zz_resolverfirewallrulegroup_types.go rename to apis/route53resolver/v1alpha1/zz_firewallrulegroup_types.go index b8540ee01..14669dccf 100755 --- a/apis/route53/v1alpha1/zz_resolverfirewallrulegroup_types.go +++ b/apis/route53resolver/v1alpha1/zz_firewallrulegroup_types.go @@ -25,7 +25,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type ResolverFirewallRuleGroupObservation struct { +type FirewallRuleGroupObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` @@ -37,7 +37,7 @@ type ResolverFirewallRuleGroupObservation struct { TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } -type ResolverFirewallRuleGroupParameters struct { +type FirewallRuleGroupParameters struct { // +kubebuilder:validation:Required Name *string `json:"name" tf:"name,omitempty"` @@ -51,51 +51,51 @@ type ResolverFirewallRuleGroupParameters struct { Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` } -// ResolverFirewallRuleGroupSpec defines the desired state of ResolverFirewallRuleGroup -type ResolverFirewallRuleGroupSpec struct { +// FirewallRuleGroupSpec defines the desired state of FirewallRuleGroup +type FirewallRuleGroupSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ResolverFirewallRuleGroupParameters `json:"forProvider"` + ForProvider FirewallRuleGroupParameters `json:"forProvider"` } -// ResolverFirewallRuleGroupStatus defines the observed state of ResolverFirewallRuleGroup. -type ResolverFirewallRuleGroupStatus struct { +// FirewallRuleGroupStatus defines the observed state of FirewallRuleGroup. +type FirewallRuleGroupStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ResolverFirewallRuleGroupObservation `json:"atProvider,omitempty"` + AtProvider FirewallRuleGroupObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ResolverFirewallRuleGroup is the Schema for the ResolverFirewallRuleGroups API +// FirewallRuleGroup is the Schema for the FirewallRuleGroups API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type ResolverFirewallRuleGroup struct { +type FirewallRuleGroup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec ResolverFirewallRuleGroupSpec `json:"spec"` - Status ResolverFirewallRuleGroupStatus `json:"status,omitempty"` + Spec FirewallRuleGroupSpec `json:"spec"` + Status FirewallRuleGroupStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ResolverFirewallRuleGroupList contains a list of ResolverFirewallRuleGroups -type ResolverFirewallRuleGroupList struct { +// FirewallRuleGroupList contains a list of FirewallRuleGroups +type FirewallRuleGroupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ResolverFirewallRuleGroup `json:"items"` + Items []FirewallRuleGroup `json:"items"` } // Repository type metadata. var ( - ResolverFirewallRuleGroup_Kind = "ResolverFirewallRuleGroup" - ResolverFirewallRuleGroup_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ResolverFirewallRuleGroup_Kind}.String() - ResolverFirewallRuleGroup_KindAPIVersion = ResolverFirewallRuleGroup_Kind + "." + CRDGroupVersion.String() - ResolverFirewallRuleGroup_GroupVersionKind = CRDGroupVersion.WithKind(ResolverFirewallRuleGroup_Kind) + FirewallRuleGroup_Kind = "FirewallRuleGroup" + FirewallRuleGroup_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: FirewallRuleGroup_Kind}.String() + FirewallRuleGroup_KindAPIVersion = FirewallRuleGroup_Kind + "." + CRDGroupVersion.String() + FirewallRuleGroup_GroupVersionKind = CRDGroupVersion.WithKind(FirewallRuleGroup_Kind) ) func init() { - SchemeBuilder.Register(&ResolverFirewallRuleGroup{}, &ResolverFirewallRuleGroupList{}) + SchemeBuilder.Register(&FirewallRuleGroup{}, &FirewallRuleGroupList{}) } diff --git a/apis/route53/v1alpha1/zz_resolverfirewalldomainlist_terraformed.go b/apis/route53resolver/v1alpha1/zz_firewallrulegroupassociation_terraformed.go similarity index 61% rename from apis/route53/v1alpha1/zz_resolverfirewalldomainlist_terraformed.go rename to apis/route53resolver/v1alpha1/zz_firewallrulegroupassociation_terraformed.go index e57025ad6..70a679c77 100755 --- a/apis/route53/v1alpha1/zz_resolverfirewalldomainlist_terraformed.go +++ b/apis/route53resolver/v1alpha1/zz_firewallrulegroupassociation_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ResolverFirewallDomainList -func (mg *ResolverFirewallDomainList) GetTerraformResourceType() string { - return "aws_route53_resolver_firewall_domain_list" +// GetTerraformResourceType returns Terraform resource type for this FirewallRuleGroupAssociation +func (mg *FirewallRuleGroupAssociation) GetTerraformResourceType() string { + return "aws_route53_resolver_firewall_rule_group_association" } -// GetConnectionDetailsMapping for this ResolverFirewallDomainList -func (tr *ResolverFirewallDomainList) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this FirewallRuleGroupAssociation +func (tr *FirewallRuleGroupAssociation) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ResolverFirewallDomainList -func (tr *ResolverFirewallDomainList) GetObservation() (map[string]interface{}, error) { +// GetObservation of this FirewallRuleGroupAssociation +func (tr *FirewallRuleGroupAssociation) GetObservation() (map[string]interface{}, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -45,8 +45,8 @@ func (tr *ResolverFirewallDomainList) GetObservation() (map[string]interface{}, return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this ResolverFirewallDomainList -func (tr *ResolverFirewallDomainList) SetObservation(obs map[string]interface{}) error { +// SetObservation for this FirewallRuleGroupAssociation +func (tr *FirewallRuleGroupAssociation) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,16 +54,16 @@ func (tr *ResolverFirewallDomainList) SetObservation(obs map[string]interface{}) return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this ResolverFirewallDomainList -func (tr *ResolverFirewallDomainList) GetID() string { +// GetID returns ID of underlying Terraform resource of this FirewallRuleGroupAssociation +func (tr *FirewallRuleGroupAssociation) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this ResolverFirewallDomainList -func (tr *ResolverFirewallDomainList) GetParameters() (map[string]interface{}, error) { +// GetParameters of this FirewallRuleGroupAssociation +func (tr *FirewallRuleGroupAssociation) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -72,8 +72,8 @@ func (tr *ResolverFirewallDomainList) GetParameters() (map[string]interface{}, e return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this ResolverFirewallDomainList -func (tr *ResolverFirewallDomainList) SetParameters(params map[string]interface{}) error { +// SetParameters for this FirewallRuleGroupAssociation +func (tr *FirewallRuleGroupAssociation) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -81,10 +81,10 @@ func (tr *ResolverFirewallDomainList) SetParameters(params map[string]interface{ return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this ResolverFirewallDomainList using its observed tfState. +// LateInitialize this FirewallRuleGroupAssociation using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *ResolverFirewallDomainList) LateInitialize(attrs []byte) (bool, error) { - params := &ResolverFirewallDomainListParameters{} +func (tr *FirewallRuleGroupAssociation) LateInitialize(attrs []byte) (bool, error) { + params := &FirewallRuleGroupAssociationParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -95,6 +95,6 @@ func (tr *ResolverFirewallDomainList) LateInitialize(attrs []byte) (bool, error) } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ResolverFirewallDomainList) GetTerraformSchemaVersion() int { +func (tr *FirewallRuleGroupAssociation) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/route53/v1alpha1/zz_resolverfirewallrulegroupassociation_types.go b/apis/route53resolver/v1alpha1/zz_firewallrulegroupassociation_types.go similarity index 60% rename from apis/route53/v1alpha1/zz_resolverfirewallrulegroupassociation_types.go rename to apis/route53resolver/v1alpha1/zz_firewallrulegroupassociation_types.go index 582415dcf..36c0a1b73 100755 --- a/apis/route53/v1alpha1/zz_resolverfirewallrulegroupassociation_types.go +++ b/apis/route53resolver/v1alpha1/zz_firewallrulegroupassociation_types.go @@ -25,7 +25,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type ResolverFirewallRuleGroupAssociationObservation struct { +type FirewallRuleGroupAssociationObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` @@ -33,7 +33,7 @@ type ResolverFirewallRuleGroupAssociationObservation struct { TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } -type ResolverFirewallRuleGroupAssociationParameters struct { +type FirewallRuleGroupAssociationParameters struct { // +kubebuilder:validation:Required FirewallRuleGroupID *string `json:"firewallRuleGroupId" tf:"firewall_rule_group_id,omitempty"` @@ -59,51 +59,51 @@ type ResolverFirewallRuleGroupAssociationParameters struct { VPCID *string `json:"vpcId" tf:"vpc_id,omitempty"` } -// ResolverFirewallRuleGroupAssociationSpec defines the desired state of ResolverFirewallRuleGroupAssociation -type ResolverFirewallRuleGroupAssociationSpec struct { +// FirewallRuleGroupAssociationSpec defines the desired state of FirewallRuleGroupAssociation +type FirewallRuleGroupAssociationSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ResolverFirewallRuleGroupAssociationParameters `json:"forProvider"` + ForProvider FirewallRuleGroupAssociationParameters `json:"forProvider"` } -// ResolverFirewallRuleGroupAssociationStatus defines the observed state of ResolverFirewallRuleGroupAssociation. -type ResolverFirewallRuleGroupAssociationStatus struct { +// FirewallRuleGroupAssociationStatus defines the observed state of FirewallRuleGroupAssociation. +type FirewallRuleGroupAssociationStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ResolverFirewallRuleGroupAssociationObservation `json:"atProvider,omitempty"` + AtProvider FirewallRuleGroupAssociationObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ResolverFirewallRuleGroupAssociation is the Schema for the ResolverFirewallRuleGroupAssociations API +// FirewallRuleGroupAssociation is the Schema for the FirewallRuleGroupAssociations API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type ResolverFirewallRuleGroupAssociation struct { +type FirewallRuleGroupAssociation struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec ResolverFirewallRuleGroupAssociationSpec `json:"spec"` - Status ResolverFirewallRuleGroupAssociationStatus `json:"status,omitempty"` + Spec FirewallRuleGroupAssociationSpec `json:"spec"` + Status FirewallRuleGroupAssociationStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ResolverFirewallRuleGroupAssociationList contains a list of ResolverFirewallRuleGroupAssociations -type ResolverFirewallRuleGroupAssociationList struct { +// FirewallRuleGroupAssociationList contains a list of FirewallRuleGroupAssociations +type FirewallRuleGroupAssociationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ResolverFirewallRuleGroupAssociation `json:"items"` + Items []FirewallRuleGroupAssociation `json:"items"` } // Repository type metadata. var ( - ResolverFirewallRuleGroupAssociation_Kind = "ResolverFirewallRuleGroupAssociation" - ResolverFirewallRuleGroupAssociation_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ResolverFirewallRuleGroupAssociation_Kind}.String() - ResolverFirewallRuleGroupAssociation_KindAPIVersion = ResolverFirewallRuleGroupAssociation_Kind + "." + CRDGroupVersion.String() - ResolverFirewallRuleGroupAssociation_GroupVersionKind = CRDGroupVersion.WithKind(ResolverFirewallRuleGroupAssociation_Kind) + FirewallRuleGroupAssociation_Kind = "FirewallRuleGroupAssociation" + FirewallRuleGroupAssociation_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: FirewallRuleGroupAssociation_Kind}.String() + FirewallRuleGroupAssociation_KindAPIVersion = FirewallRuleGroupAssociation_Kind + "." + CRDGroupVersion.String() + FirewallRuleGroupAssociation_GroupVersionKind = CRDGroupVersion.WithKind(FirewallRuleGroupAssociation_Kind) ) func init() { - SchemeBuilder.Register(&ResolverFirewallRuleGroupAssociation{}, &ResolverFirewallRuleGroupAssociationList{}) + SchemeBuilder.Register(&FirewallRuleGroupAssociation{}, &FirewallRuleGroupAssociationList{}) } diff --git a/apis/route53resolver/v1alpha1/zz_generated.deepcopy.go b/apis/route53resolver/v1alpha1/zz_generated.deepcopy.go new file mode 100644 index 000000000..675d60ca3 --- /dev/null +++ b/apis/route53resolver/v1alpha1/zz_generated.deepcopy.go @@ -0,0 +1,2034 @@ +// +build !ignore_autogenerated + +/* +Copyright 2021 The Crossplane Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by controller-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DNSSECConfig) DeepCopyInto(out *DNSSECConfig) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSSECConfig. +func (in *DNSSECConfig) DeepCopy() *DNSSECConfig { + if in == nil { + return nil + } + out := new(DNSSECConfig) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DNSSECConfig) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DNSSECConfigList) DeepCopyInto(out *DNSSECConfigList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DNSSECConfig, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSSECConfigList. +func (in *DNSSECConfigList) DeepCopy() *DNSSECConfigList { + if in == nil { + return nil + } + out := new(DNSSECConfigList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DNSSECConfigList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DNSSECConfigObservation) DeepCopyInto(out *DNSSECConfigObservation) { + *out = *in + if in.Arn != nil { + in, out := &in.Arn, &out.Arn + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.OwnerID != nil { + in, out := &in.OwnerID, &out.OwnerID + *out = new(string) + **out = **in + } + if in.ValidationStatus != nil { + in, out := &in.ValidationStatus, &out.ValidationStatus + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSSECConfigObservation. +func (in *DNSSECConfigObservation) DeepCopy() *DNSSECConfigObservation { + if in == nil { + return nil + } + out := new(DNSSECConfigObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DNSSECConfigParameters) DeepCopyInto(out *DNSSECConfigParameters) { + *out = *in + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.ResourceID != nil { + in, out := &in.ResourceID, &out.ResourceID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSSECConfigParameters. +func (in *DNSSECConfigParameters) DeepCopy() *DNSSECConfigParameters { + if in == nil { + return nil + } + out := new(DNSSECConfigParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DNSSECConfigSpec) DeepCopyInto(out *DNSSECConfigSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSSECConfigSpec. +func (in *DNSSECConfigSpec) DeepCopy() *DNSSECConfigSpec { + if in == nil { + return nil + } + out := new(DNSSECConfigSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DNSSECConfigStatus) DeepCopyInto(out *DNSSECConfigStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSSECConfigStatus. +func (in *DNSSECConfigStatus) DeepCopy() *DNSSECConfigStatus { + if in == nil { + return nil + } + out := new(DNSSECConfigStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Endpoint) DeepCopyInto(out *Endpoint) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint. +func (in *Endpoint) DeepCopy() *Endpoint { + if in == nil { + return nil + } + out := new(Endpoint) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Endpoint) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EndpointList) DeepCopyInto(out *EndpointList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Endpoint, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointList. +func (in *EndpointList) DeepCopy() *EndpointList { + if in == nil { + return nil + } + out := new(EndpointList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *EndpointList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EndpointObservation) DeepCopyInto(out *EndpointObservation) { + *out = *in + if in.Arn != nil { + in, out := &in.Arn, &out.Arn + *out = new(string) + **out = **in + } + if in.HostVPCID != nil { + in, out := &in.HostVPCID, &out.HostVPCID + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.TagsAll != nil { + in, out := &in.TagsAll, &out.TagsAll + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointObservation. +func (in *EndpointObservation) DeepCopy() *EndpointObservation { + if in == nil { + return nil + } + out := new(EndpointObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EndpointParameters) DeepCopyInto(out *EndpointParameters) { + *out = *in + if in.Direction != nil { + in, out := &in.Direction, &out.Direction + *out = new(string) + **out = **in + } + if in.IPAddress != nil { + in, out := &in.IPAddress, &out.IPAddress + *out = make([]IPAddressParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.SecurityGroupIds != nil { + in, out := &in.SecurityGroupIds, &out.SecurityGroupIds + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointParameters. +func (in *EndpointParameters) DeepCopy() *EndpointParameters { + if in == nil { + return nil + } + out := new(EndpointParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EndpointSpec) DeepCopyInto(out *EndpointSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointSpec. +func (in *EndpointSpec) DeepCopy() *EndpointSpec { + if in == nil { + return nil + } + out := new(EndpointSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *EndpointStatus) DeepCopyInto(out *EndpointStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointStatus. +func (in *EndpointStatus) DeepCopy() *EndpointStatus { + if in == nil { + return nil + } + out := new(EndpointStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallConfig) DeepCopyInto(out *FirewallConfig) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallConfig. +func (in *FirewallConfig) DeepCopy() *FirewallConfig { + if in == nil { + return nil + } + out := new(FirewallConfig) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FirewallConfig) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallConfigList) DeepCopyInto(out *FirewallConfigList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]FirewallConfig, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallConfigList. +func (in *FirewallConfigList) DeepCopy() *FirewallConfigList { + if in == nil { + return nil + } + out := new(FirewallConfigList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FirewallConfigList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallConfigObservation) DeepCopyInto(out *FirewallConfigObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.OwnerID != nil { + in, out := &in.OwnerID, &out.OwnerID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallConfigObservation. +func (in *FirewallConfigObservation) DeepCopy() *FirewallConfigObservation { + if in == nil { + return nil + } + out := new(FirewallConfigObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallConfigParameters) DeepCopyInto(out *FirewallConfigParameters) { + *out = *in + if in.FirewallFailOpen != nil { + in, out := &in.FirewallFailOpen, &out.FirewallFailOpen + *out = new(string) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.ResourceID != nil { + in, out := &in.ResourceID, &out.ResourceID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallConfigParameters. +func (in *FirewallConfigParameters) DeepCopy() *FirewallConfigParameters { + if in == nil { + return nil + } + out := new(FirewallConfigParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallConfigSpec) DeepCopyInto(out *FirewallConfigSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallConfigSpec. +func (in *FirewallConfigSpec) DeepCopy() *FirewallConfigSpec { + if in == nil { + return nil + } + out := new(FirewallConfigSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallConfigStatus) DeepCopyInto(out *FirewallConfigStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallConfigStatus. +func (in *FirewallConfigStatus) DeepCopy() *FirewallConfigStatus { + if in == nil { + return nil + } + out := new(FirewallConfigStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallDomainList) DeepCopyInto(out *FirewallDomainList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallDomainList. +func (in *FirewallDomainList) DeepCopy() *FirewallDomainList { + if in == nil { + return nil + } + out := new(FirewallDomainList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FirewallDomainList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallDomainListList) DeepCopyInto(out *FirewallDomainListList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]FirewallDomainList, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallDomainListList. +func (in *FirewallDomainListList) DeepCopy() *FirewallDomainListList { + if in == nil { + return nil + } + out := new(FirewallDomainListList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FirewallDomainListList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallDomainListObservation) DeepCopyInto(out *FirewallDomainListObservation) { + *out = *in + if in.Arn != nil { + in, out := &in.Arn, &out.Arn + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.TagsAll != nil { + in, out := &in.TagsAll, &out.TagsAll + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallDomainListObservation. +func (in *FirewallDomainListObservation) DeepCopy() *FirewallDomainListObservation { + if in == nil { + return nil + } + out := new(FirewallDomainListObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallDomainListParameters) DeepCopyInto(out *FirewallDomainListParameters) { + *out = *in + if in.Domains != nil { + in, out := &in.Domains, &out.Domains + *out = make([]*string, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(string) + **out = **in + } + } + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallDomainListParameters. +func (in *FirewallDomainListParameters) DeepCopy() *FirewallDomainListParameters { + if in == nil { + return nil + } + out := new(FirewallDomainListParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallDomainListSpec) DeepCopyInto(out *FirewallDomainListSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallDomainListSpec. +func (in *FirewallDomainListSpec) DeepCopy() *FirewallDomainListSpec { + if in == nil { + return nil + } + out := new(FirewallDomainListSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallDomainListStatus) DeepCopyInto(out *FirewallDomainListStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallDomainListStatus. +func (in *FirewallDomainListStatus) DeepCopy() *FirewallDomainListStatus { + if in == nil { + return nil + } + out := new(FirewallDomainListStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRule) DeepCopyInto(out *FirewallRule) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRule. +func (in *FirewallRule) DeepCopy() *FirewallRule { + if in == nil { + return nil + } + out := new(FirewallRule) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FirewallRule) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleGroup) DeepCopyInto(out *FirewallRuleGroup) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleGroup. +func (in *FirewallRuleGroup) DeepCopy() *FirewallRuleGroup { + if in == nil { + return nil + } + out := new(FirewallRuleGroup) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FirewallRuleGroup) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleGroupAssociation) DeepCopyInto(out *FirewallRuleGroupAssociation) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleGroupAssociation. +func (in *FirewallRuleGroupAssociation) DeepCopy() *FirewallRuleGroupAssociation { + if in == nil { + return nil + } + out := new(FirewallRuleGroupAssociation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FirewallRuleGroupAssociation) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleGroupAssociationList) DeepCopyInto(out *FirewallRuleGroupAssociationList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]FirewallRuleGroupAssociation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleGroupAssociationList. +func (in *FirewallRuleGroupAssociationList) DeepCopy() *FirewallRuleGroupAssociationList { + if in == nil { + return nil + } + out := new(FirewallRuleGroupAssociationList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FirewallRuleGroupAssociationList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleGroupAssociationObservation) DeepCopyInto(out *FirewallRuleGroupAssociationObservation) { + *out = *in + if in.Arn != nil { + in, out := &in.Arn, &out.Arn + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.TagsAll != nil { + in, out := &in.TagsAll, &out.TagsAll + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleGroupAssociationObservation. +func (in *FirewallRuleGroupAssociationObservation) DeepCopy() *FirewallRuleGroupAssociationObservation { + if in == nil { + return nil + } + out := new(FirewallRuleGroupAssociationObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleGroupAssociationParameters) DeepCopyInto(out *FirewallRuleGroupAssociationParameters) { + *out = *in + if in.FirewallRuleGroupID != nil { + in, out := &in.FirewallRuleGroupID, &out.FirewallRuleGroupID + *out = new(string) + **out = **in + } + if in.MutationProtection != nil { + in, out := &in.MutationProtection, &out.MutationProtection + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Priority != nil { + in, out := &in.Priority, &out.Priority + *out = new(int64) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.VPCID != nil { + in, out := &in.VPCID, &out.VPCID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleGroupAssociationParameters. +func (in *FirewallRuleGroupAssociationParameters) DeepCopy() *FirewallRuleGroupAssociationParameters { + if in == nil { + return nil + } + out := new(FirewallRuleGroupAssociationParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleGroupAssociationSpec) DeepCopyInto(out *FirewallRuleGroupAssociationSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleGroupAssociationSpec. +func (in *FirewallRuleGroupAssociationSpec) DeepCopy() *FirewallRuleGroupAssociationSpec { + if in == nil { + return nil + } + out := new(FirewallRuleGroupAssociationSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleGroupAssociationStatus) DeepCopyInto(out *FirewallRuleGroupAssociationStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleGroupAssociationStatus. +func (in *FirewallRuleGroupAssociationStatus) DeepCopy() *FirewallRuleGroupAssociationStatus { + if in == nil { + return nil + } + out := new(FirewallRuleGroupAssociationStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleGroupList) DeepCopyInto(out *FirewallRuleGroupList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]FirewallRuleGroup, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleGroupList. +func (in *FirewallRuleGroupList) DeepCopy() *FirewallRuleGroupList { + if in == nil { + return nil + } + out := new(FirewallRuleGroupList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FirewallRuleGroupList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleGroupObservation) DeepCopyInto(out *FirewallRuleGroupObservation) { + *out = *in + if in.Arn != nil { + in, out := &in.Arn, &out.Arn + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.OwnerID != nil { + in, out := &in.OwnerID, &out.OwnerID + *out = new(string) + **out = **in + } + if in.ShareStatus != nil { + in, out := &in.ShareStatus, &out.ShareStatus + *out = new(string) + **out = **in + } + if in.TagsAll != nil { + in, out := &in.TagsAll, &out.TagsAll + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleGroupObservation. +func (in *FirewallRuleGroupObservation) DeepCopy() *FirewallRuleGroupObservation { + if in == nil { + return nil + } + out := new(FirewallRuleGroupObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleGroupParameters) DeepCopyInto(out *FirewallRuleGroupParameters) { + *out = *in + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleGroupParameters. +func (in *FirewallRuleGroupParameters) DeepCopy() *FirewallRuleGroupParameters { + if in == nil { + return nil + } + out := new(FirewallRuleGroupParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleGroupSpec) DeepCopyInto(out *FirewallRuleGroupSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleGroupSpec. +func (in *FirewallRuleGroupSpec) DeepCopy() *FirewallRuleGroupSpec { + if in == nil { + return nil + } + out := new(FirewallRuleGroupSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleGroupStatus) DeepCopyInto(out *FirewallRuleGroupStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleGroupStatus. +func (in *FirewallRuleGroupStatus) DeepCopy() *FirewallRuleGroupStatus { + if in == nil { + return nil + } + out := new(FirewallRuleGroupStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleList) DeepCopyInto(out *FirewallRuleList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]FirewallRule, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleList. +func (in *FirewallRuleList) DeepCopy() *FirewallRuleList { + if in == nil { + return nil + } + out := new(FirewallRuleList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *FirewallRuleList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleObservation) DeepCopyInto(out *FirewallRuleObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleObservation. +func (in *FirewallRuleObservation) DeepCopy() *FirewallRuleObservation { + if in == nil { + return nil + } + out := new(FirewallRuleObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleParameters) DeepCopyInto(out *FirewallRuleParameters) { + *out = *in + if in.Action != nil { + in, out := &in.Action, &out.Action + *out = new(string) + **out = **in + } + if in.BlockOverrideDNSType != nil { + in, out := &in.BlockOverrideDNSType, &out.BlockOverrideDNSType + *out = new(string) + **out = **in + } + if in.BlockOverrideDomain != nil { + in, out := &in.BlockOverrideDomain, &out.BlockOverrideDomain + *out = new(string) + **out = **in + } + if in.BlockOverrideTTL != nil { + in, out := &in.BlockOverrideTTL, &out.BlockOverrideTTL + *out = new(int64) + **out = **in + } + if in.BlockResponse != nil { + in, out := &in.BlockResponse, &out.BlockResponse + *out = new(string) + **out = **in + } + if in.FirewallDomainListID != nil { + in, out := &in.FirewallDomainListID, &out.FirewallDomainListID + *out = new(string) + **out = **in + } + if in.FirewallRuleGroupID != nil { + in, out := &in.FirewallRuleGroupID, &out.FirewallRuleGroupID + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Priority != nil { + in, out := &in.Priority, &out.Priority + *out = new(int64) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleParameters. +func (in *FirewallRuleParameters) DeepCopy() *FirewallRuleParameters { + if in == nil { + return nil + } + out := new(FirewallRuleParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleSpec) DeepCopyInto(out *FirewallRuleSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleSpec. +func (in *FirewallRuleSpec) DeepCopy() *FirewallRuleSpec { + if in == nil { + return nil + } + out := new(FirewallRuleSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *FirewallRuleStatus) DeepCopyInto(out *FirewallRuleStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallRuleStatus. +func (in *FirewallRuleStatus) DeepCopy() *FirewallRuleStatus { + if in == nil { + return nil + } + out := new(FirewallRuleStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IPAddressObservation) DeepCopyInto(out *IPAddressObservation) { + *out = *in + if in.IPID != nil { + in, out := &in.IPID, &out.IPID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddressObservation. +func (in *IPAddressObservation) DeepCopy() *IPAddressObservation { + if in == nil { + return nil + } + out := new(IPAddressObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IPAddressParameters) DeepCopyInto(out *IPAddressParameters) { + *out = *in + if in.IP != nil { + in, out := &in.IP, &out.IP + *out = new(string) + **out = **in + } + if in.SubnetID != nil { + in, out := &in.SubnetID, &out.SubnetID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddressParameters. +func (in *IPAddressParameters) DeepCopy() *IPAddressParameters { + if in == nil { + return nil + } + out := new(IPAddressParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *QueryLogConfig) DeepCopyInto(out *QueryLogConfig) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryLogConfig. +func (in *QueryLogConfig) DeepCopy() *QueryLogConfig { + if in == nil { + return nil + } + out := new(QueryLogConfig) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *QueryLogConfig) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *QueryLogConfigAssociation) DeepCopyInto(out *QueryLogConfigAssociation) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryLogConfigAssociation. +func (in *QueryLogConfigAssociation) DeepCopy() *QueryLogConfigAssociation { + if in == nil { + return nil + } + out := new(QueryLogConfigAssociation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *QueryLogConfigAssociation) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *QueryLogConfigAssociationList) DeepCopyInto(out *QueryLogConfigAssociationList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]QueryLogConfigAssociation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryLogConfigAssociationList. +func (in *QueryLogConfigAssociationList) DeepCopy() *QueryLogConfigAssociationList { + if in == nil { + return nil + } + out := new(QueryLogConfigAssociationList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *QueryLogConfigAssociationList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *QueryLogConfigAssociationObservation) DeepCopyInto(out *QueryLogConfigAssociationObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryLogConfigAssociationObservation. +func (in *QueryLogConfigAssociationObservation) DeepCopy() *QueryLogConfigAssociationObservation { + if in == nil { + return nil + } + out := new(QueryLogConfigAssociationObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *QueryLogConfigAssociationParameters) DeepCopyInto(out *QueryLogConfigAssociationParameters) { + *out = *in + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.ResolverQueryLogConfigID != nil { + in, out := &in.ResolverQueryLogConfigID, &out.ResolverQueryLogConfigID + *out = new(string) + **out = **in + } + if in.ResourceID != nil { + in, out := &in.ResourceID, &out.ResourceID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryLogConfigAssociationParameters. +func (in *QueryLogConfigAssociationParameters) DeepCopy() *QueryLogConfigAssociationParameters { + if in == nil { + return nil + } + out := new(QueryLogConfigAssociationParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *QueryLogConfigAssociationSpec) DeepCopyInto(out *QueryLogConfigAssociationSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryLogConfigAssociationSpec. +func (in *QueryLogConfigAssociationSpec) DeepCopy() *QueryLogConfigAssociationSpec { + if in == nil { + return nil + } + out := new(QueryLogConfigAssociationSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *QueryLogConfigAssociationStatus) DeepCopyInto(out *QueryLogConfigAssociationStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryLogConfigAssociationStatus. +func (in *QueryLogConfigAssociationStatus) DeepCopy() *QueryLogConfigAssociationStatus { + if in == nil { + return nil + } + out := new(QueryLogConfigAssociationStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *QueryLogConfigList) DeepCopyInto(out *QueryLogConfigList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]QueryLogConfig, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryLogConfigList. +func (in *QueryLogConfigList) DeepCopy() *QueryLogConfigList { + if in == nil { + return nil + } + out := new(QueryLogConfigList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *QueryLogConfigList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *QueryLogConfigObservation) DeepCopyInto(out *QueryLogConfigObservation) { + *out = *in + if in.Arn != nil { + in, out := &in.Arn, &out.Arn + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.OwnerID != nil { + in, out := &in.OwnerID, &out.OwnerID + *out = new(string) + **out = **in + } + if in.ShareStatus != nil { + in, out := &in.ShareStatus, &out.ShareStatus + *out = new(string) + **out = **in + } + if in.TagsAll != nil { + in, out := &in.TagsAll, &out.TagsAll + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryLogConfigObservation. +func (in *QueryLogConfigObservation) DeepCopy() *QueryLogConfigObservation { + if in == nil { + return nil + } + out := new(QueryLogConfigObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *QueryLogConfigParameters) DeepCopyInto(out *QueryLogConfigParameters) { + *out = *in + if in.DestinationArn != nil { + in, out := &in.DestinationArn, &out.DestinationArn + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryLogConfigParameters. +func (in *QueryLogConfigParameters) DeepCopy() *QueryLogConfigParameters { + if in == nil { + return nil + } + out := new(QueryLogConfigParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *QueryLogConfigSpec) DeepCopyInto(out *QueryLogConfigSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryLogConfigSpec. +func (in *QueryLogConfigSpec) DeepCopy() *QueryLogConfigSpec { + if in == nil { + return nil + } + out := new(QueryLogConfigSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *QueryLogConfigStatus) DeepCopyInto(out *QueryLogConfigStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryLogConfigStatus. +func (in *QueryLogConfigStatus) DeepCopy() *QueryLogConfigStatus { + if in == nil { + return nil + } + out := new(QueryLogConfigStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Rule) DeepCopyInto(out *Rule) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule. +func (in *Rule) DeepCopy() *Rule { + if in == nil { + return nil + } + out := new(Rule) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Rule) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RuleAssociation) DeepCopyInto(out *RuleAssociation) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleAssociation. +func (in *RuleAssociation) DeepCopy() *RuleAssociation { + if in == nil { + return nil + } + out := new(RuleAssociation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RuleAssociation) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RuleAssociationList) DeepCopyInto(out *RuleAssociationList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]RuleAssociation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleAssociationList. +func (in *RuleAssociationList) DeepCopy() *RuleAssociationList { + if in == nil { + return nil + } + out := new(RuleAssociationList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RuleAssociationList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RuleAssociationObservation) DeepCopyInto(out *RuleAssociationObservation) { + *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleAssociationObservation. +func (in *RuleAssociationObservation) DeepCopy() *RuleAssociationObservation { + if in == nil { + return nil + } + out := new(RuleAssociationObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RuleAssociationParameters) DeepCopyInto(out *RuleAssociationParameters) { + *out = *in + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.ResolverRuleID != nil { + in, out := &in.ResolverRuleID, &out.ResolverRuleID + *out = new(string) + **out = **in + } + if in.VPCID != nil { + in, out := &in.VPCID, &out.VPCID + *out = new(string) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleAssociationParameters. +func (in *RuleAssociationParameters) DeepCopy() *RuleAssociationParameters { + if in == nil { + return nil + } + out := new(RuleAssociationParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RuleAssociationSpec) DeepCopyInto(out *RuleAssociationSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleAssociationSpec. +func (in *RuleAssociationSpec) DeepCopy() *RuleAssociationSpec { + if in == nil { + return nil + } + out := new(RuleAssociationSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RuleAssociationStatus) DeepCopyInto(out *RuleAssociationStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleAssociationStatus. +func (in *RuleAssociationStatus) DeepCopy() *RuleAssociationStatus { + if in == nil { + return nil + } + out := new(RuleAssociationStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RuleList) DeepCopyInto(out *RuleList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Rule, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleList. +func (in *RuleList) DeepCopy() *RuleList { + if in == nil { + return nil + } + out := new(RuleList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RuleList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RuleObservation) DeepCopyInto(out *RuleObservation) { + *out = *in + if in.Arn != nil { + in, out := &in.Arn, &out.Arn + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.OwnerID != nil { + in, out := &in.OwnerID, &out.OwnerID + *out = new(string) + **out = **in + } + if in.ShareStatus != nil { + in, out := &in.ShareStatus, &out.ShareStatus + *out = new(string) + **out = **in + } + if in.TagsAll != nil { + in, out := &in.TagsAll, &out.TagsAll + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleObservation. +func (in *RuleObservation) DeepCopy() *RuleObservation { + if in == nil { + return nil + } + out := new(RuleObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RuleParameters) DeepCopyInto(out *RuleParameters) { + *out = *in + if in.DomainName != nil { + in, out := &in.DomainName, &out.DomainName + *out = new(string) + **out = **in + } + if in.Name != nil { + in, out := &in.Name, &out.Name + *out = new(string) + **out = **in + } + if in.Region != nil { + in, out := &in.Region, &out.Region + *out = new(string) + **out = **in + } + if in.ResolverEndpointID != nil { + in, out := &in.ResolverEndpointID, &out.ResolverEndpointID + *out = new(string) + **out = **in + } + if in.RuleType != nil { + in, out := &in.RuleType, &out.RuleType + *out = new(string) + **out = **in + } + if in.Tags != nil { + in, out := &in.Tags, &out.Tags + *out = make(map[string]*string, len(*in)) + for key, val := range *in { + var outVal *string + if val == nil { + (*out)[key] = nil + } else { + in, out := &val, &outVal + *out = new(string) + **out = **in + } + (*out)[key] = outVal + } + } + if in.TargetIP != nil { + in, out := &in.TargetIP, &out.TargetIP + *out = make([]TargetIPParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleParameters. +func (in *RuleParameters) DeepCopy() *RuleParameters { + if in == nil { + return nil + } + out := new(RuleParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RuleSpec) DeepCopyInto(out *RuleSpec) { + *out = *in + in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + in.ForProvider.DeepCopyInto(&out.ForProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleSpec. +func (in *RuleSpec) DeepCopy() *RuleSpec { + if in == nil { + return nil + } + out := new(RuleSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RuleStatus) DeepCopyInto(out *RuleStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleStatus. +func (in *RuleStatus) DeepCopy() *RuleStatus { + if in == nil { + return nil + } + out := new(RuleStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TargetIPObservation) DeepCopyInto(out *TargetIPObservation) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetIPObservation. +func (in *TargetIPObservation) DeepCopy() *TargetIPObservation { + if in == nil { + return nil + } + out := new(TargetIPObservation) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *TargetIPParameters) DeepCopyInto(out *TargetIPParameters) { + *out = *in + if in.IP != nil { + in, out := &in.IP, &out.IP + *out = new(string) + **out = **in + } + if in.Port != nil { + in, out := &in.Port, &out.Port + *out = new(int64) + **out = **in + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetIPParameters. +func (in *TargetIPParameters) DeepCopy() *TargetIPParameters { + if in == nil { + return nil + } + out := new(TargetIPParameters) + in.DeepCopyInto(out) + return out +} diff --git a/apis/route53resolver/v1alpha1/zz_generated.managed.go b/apis/route53resolver/v1alpha1/zz_generated.managed.go new file mode 100644 index 000000000..968ebfc76 --- /dev/null +++ b/apis/route53resolver/v1alpha1/zz_generated.managed.go @@ -0,0 +1,636 @@ +/* +Copyright 2021 The Crossplane Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +// Code generated by angryjet. DO NOT EDIT. + +package v1alpha1 + +import xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" + +// GetCondition of this DNSSECConfig. +func (mg *DNSSECConfig) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this DNSSECConfig. +func (mg *DNSSECConfig) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this DNSSECConfig. +func (mg *DNSSECConfig) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this DNSSECConfig. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *DNSSECConfig) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this DNSSECConfig. +func (mg *DNSSECConfig) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this DNSSECConfig. +func (mg *DNSSECConfig) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this DNSSECConfig. +func (mg *DNSSECConfig) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this DNSSECConfig. +func (mg *DNSSECConfig) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this DNSSECConfig. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *DNSSECConfig) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this DNSSECConfig. +func (mg *DNSSECConfig) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this Endpoint. +func (mg *Endpoint) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this Endpoint. +func (mg *Endpoint) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this Endpoint. +func (mg *Endpoint) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this Endpoint. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *Endpoint) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this Endpoint. +func (mg *Endpoint) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this Endpoint. +func (mg *Endpoint) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this Endpoint. +func (mg *Endpoint) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this Endpoint. +func (mg *Endpoint) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this Endpoint. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *Endpoint) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this Endpoint. +func (mg *Endpoint) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this FirewallConfig. +func (mg *FirewallConfig) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this FirewallConfig. +func (mg *FirewallConfig) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this FirewallConfig. +func (mg *FirewallConfig) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this FirewallConfig. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *FirewallConfig) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this FirewallConfig. +func (mg *FirewallConfig) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this FirewallConfig. +func (mg *FirewallConfig) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this FirewallConfig. +func (mg *FirewallConfig) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this FirewallConfig. +func (mg *FirewallConfig) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this FirewallConfig. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *FirewallConfig) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this FirewallConfig. +func (mg *FirewallConfig) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this FirewallDomainList. +func (mg *FirewallDomainList) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this FirewallDomainList. +func (mg *FirewallDomainList) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this FirewallDomainList. +func (mg *FirewallDomainList) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this FirewallDomainList. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *FirewallDomainList) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this FirewallDomainList. +func (mg *FirewallDomainList) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this FirewallDomainList. +func (mg *FirewallDomainList) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this FirewallDomainList. +func (mg *FirewallDomainList) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this FirewallDomainList. +func (mg *FirewallDomainList) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this FirewallDomainList. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *FirewallDomainList) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this FirewallDomainList. +func (mg *FirewallDomainList) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this FirewallRule. +func (mg *FirewallRule) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this FirewallRule. +func (mg *FirewallRule) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this FirewallRule. +func (mg *FirewallRule) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this FirewallRule. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *FirewallRule) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this FirewallRule. +func (mg *FirewallRule) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this FirewallRule. +func (mg *FirewallRule) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this FirewallRule. +func (mg *FirewallRule) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this FirewallRule. +func (mg *FirewallRule) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this FirewallRule. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *FirewallRule) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this FirewallRule. +func (mg *FirewallRule) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this FirewallRuleGroup. +func (mg *FirewallRuleGroup) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this FirewallRuleGroup. +func (mg *FirewallRuleGroup) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this FirewallRuleGroup. +func (mg *FirewallRuleGroup) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this FirewallRuleGroup. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *FirewallRuleGroup) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this FirewallRuleGroup. +func (mg *FirewallRuleGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this FirewallRuleGroup. +func (mg *FirewallRuleGroup) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this FirewallRuleGroup. +func (mg *FirewallRuleGroup) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this FirewallRuleGroup. +func (mg *FirewallRuleGroup) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this FirewallRuleGroup. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *FirewallRuleGroup) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this FirewallRuleGroup. +func (mg *FirewallRuleGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this FirewallRuleGroupAssociation. +func (mg *FirewallRuleGroupAssociation) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this FirewallRuleGroupAssociation. +func (mg *FirewallRuleGroupAssociation) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this FirewallRuleGroupAssociation. +func (mg *FirewallRuleGroupAssociation) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this FirewallRuleGroupAssociation. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *FirewallRuleGroupAssociation) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this FirewallRuleGroupAssociation. +func (mg *FirewallRuleGroupAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this FirewallRuleGroupAssociation. +func (mg *FirewallRuleGroupAssociation) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this FirewallRuleGroupAssociation. +func (mg *FirewallRuleGroupAssociation) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this FirewallRuleGroupAssociation. +func (mg *FirewallRuleGroupAssociation) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this FirewallRuleGroupAssociation. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *FirewallRuleGroupAssociation) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this FirewallRuleGroupAssociation. +func (mg *FirewallRuleGroupAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this QueryLogConfig. +func (mg *QueryLogConfig) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this QueryLogConfig. +func (mg *QueryLogConfig) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this QueryLogConfig. +func (mg *QueryLogConfig) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this QueryLogConfig. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *QueryLogConfig) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this QueryLogConfig. +func (mg *QueryLogConfig) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this QueryLogConfig. +func (mg *QueryLogConfig) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this QueryLogConfig. +func (mg *QueryLogConfig) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this QueryLogConfig. +func (mg *QueryLogConfig) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this QueryLogConfig. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *QueryLogConfig) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this QueryLogConfig. +func (mg *QueryLogConfig) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this QueryLogConfigAssociation. +func (mg *QueryLogConfigAssociation) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this QueryLogConfigAssociation. +func (mg *QueryLogConfigAssociation) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this QueryLogConfigAssociation. +func (mg *QueryLogConfigAssociation) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this QueryLogConfigAssociation. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *QueryLogConfigAssociation) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this QueryLogConfigAssociation. +func (mg *QueryLogConfigAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this QueryLogConfigAssociation. +func (mg *QueryLogConfigAssociation) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this QueryLogConfigAssociation. +func (mg *QueryLogConfigAssociation) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this QueryLogConfigAssociation. +func (mg *QueryLogConfigAssociation) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this QueryLogConfigAssociation. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *QueryLogConfigAssociation) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this QueryLogConfigAssociation. +func (mg *QueryLogConfigAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this Rule. +func (mg *Rule) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this Rule. +func (mg *Rule) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this Rule. +func (mg *Rule) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this Rule. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *Rule) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this Rule. +func (mg *Rule) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this Rule. +func (mg *Rule) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this Rule. +func (mg *Rule) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this Rule. +func (mg *Rule) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this Rule. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *Rule) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this Rule. +func (mg *Rule) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} + +// GetCondition of this RuleAssociation. +func (mg *RuleAssociation) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return mg.Status.GetCondition(ct) +} + +// GetDeletionPolicy of this RuleAssociation. +func (mg *RuleAssociation) GetDeletionPolicy() xpv1.DeletionPolicy { + return mg.Spec.DeletionPolicy +} + +// GetProviderConfigReference of this RuleAssociation. +func (mg *RuleAssociation) GetProviderConfigReference() *xpv1.Reference { + return mg.Spec.ProviderConfigReference +} + +/* +GetProviderReference of this RuleAssociation. +Deprecated: Use GetProviderConfigReference. +*/ +func (mg *RuleAssociation) GetProviderReference() *xpv1.Reference { + return mg.Spec.ProviderReference +} + +// GetWriteConnectionSecretToReference of this RuleAssociation. +func (mg *RuleAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { + return mg.Spec.WriteConnectionSecretToReference +} + +// SetConditions of this RuleAssociation. +func (mg *RuleAssociation) SetConditions(c ...xpv1.Condition) { + mg.Status.SetConditions(c...) +} + +// SetDeletionPolicy of this RuleAssociation. +func (mg *RuleAssociation) SetDeletionPolicy(r xpv1.DeletionPolicy) { + mg.Spec.DeletionPolicy = r +} + +// SetProviderConfigReference of this RuleAssociation. +func (mg *RuleAssociation) SetProviderConfigReference(r *xpv1.Reference) { + mg.Spec.ProviderConfigReference = r +} + +/* +SetProviderReference of this RuleAssociation. +Deprecated: Use SetProviderConfigReference. +*/ +func (mg *RuleAssociation) SetProviderReference(r *xpv1.Reference) { + mg.Spec.ProviderReference = r +} + +// SetWriteConnectionSecretToReference of this RuleAssociation. +func (mg *RuleAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { + mg.Spec.WriteConnectionSecretToReference = r +} diff --git a/apis/route53resolver/v1alpha1/zz_generated.managedlist.go b/apis/route53resolver/v1alpha1/zz_generated.managedlist.go new file mode 100644 index 000000000..fc4e21c46 --- /dev/null +++ b/apis/route53resolver/v1alpha1/zz_generated.managedlist.go @@ -0,0 +1,119 @@ +/* +Copyright 2021 The Crossplane Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +// Code generated by angryjet. DO NOT EDIT. + +package v1alpha1 + +import resource "github.com/crossplane/crossplane-runtime/pkg/resource" + +// GetItems of this DNSSECConfigList. +func (l *DNSSECConfigList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this EndpointList. +func (l *EndpointList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this FirewallConfigList. +func (l *FirewallConfigList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this FirewallDomainListList. +func (l *FirewallDomainListList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this FirewallRuleGroupAssociationList. +func (l *FirewallRuleGroupAssociationList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this FirewallRuleGroupList. +func (l *FirewallRuleGroupList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this FirewallRuleList. +func (l *FirewallRuleList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this QueryLogConfigAssociationList. +func (l *QueryLogConfigAssociationList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this QueryLogConfigList. +func (l *QueryLogConfigList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this RuleAssociationList. +func (l *RuleAssociationList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} + +// GetItems of this RuleList. +func (l *RuleList) GetItems() []resource.Managed { + items := make([]resource.Managed, len(l.Items)) + for i := range l.Items { + items[i] = &l.Items[i] + } + return items +} diff --git a/apis/elasticloadbalancing/v1alpha1/zz_groupversion_info.go b/apis/route53resolver/v1alpha1/zz_groupversion_info.go similarity index 91% rename from apis/elasticloadbalancing/v1alpha1/zz_groupversion_info.go rename to apis/route53resolver/v1alpha1/zz_groupversion_info.go index a9d016a3c..b04264385 100755 --- a/apis/elasticloadbalancing/v1alpha1/zz_groupversion_info.go +++ b/apis/route53resolver/v1alpha1/zz_groupversion_info.go @@ -17,7 +17,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. // +kubebuilder:object:generate=true -// +groupName=elasticloadbalancing.aws.jet.crossplane.io +// +groupName=route53resolver.aws.jet.crossplane.io // +versionName=v1alpha1 package v1alpha1 @@ -28,7 +28,7 @@ import ( // Package type metadata. const ( - CRDGroup = "elasticloadbalancing.aws.jet.crossplane.io" + CRDGroup = "route53resolver.aws.jet.crossplane.io" CRDVersion = "v1alpha1" ) diff --git a/apis/route53resolver/v1alpha1/zz_querylogconfig_terraformed.go b/apis/route53resolver/v1alpha1/zz_querylogconfig_terraformed.go new file mode 100755 index 000000000..cab954f77 --- /dev/null +++ b/apis/route53resolver/v1alpha1/zz_querylogconfig_terraformed.go @@ -0,0 +1,100 @@ +/* +Copyright 2021 The Crossplane Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by terrajet. DO NOT EDIT. + +package v1alpha1 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this QueryLogConfig +func (mg *QueryLogConfig) GetTerraformResourceType() string { + return "aws_route53_resolver_query_log_config" +} + +// GetConnectionDetailsMapping for this QueryLogConfig +func (tr *QueryLogConfig) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this QueryLogConfig +func (tr *QueryLogConfig) GetObservation() (map[string]interface{}, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this QueryLogConfig +func (tr *QueryLogConfig) SetObservation(obs map[string]interface{}) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this QueryLogConfig +func (tr *QueryLogConfig) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this QueryLogConfig +func (tr *QueryLogConfig) GetParameters() (map[string]interface{}, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this QueryLogConfig +func (tr *QueryLogConfig) SetParameters(params map[string]interface{}) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this QueryLogConfig using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *QueryLogConfig) LateInitialize(attrs []byte) (bool, error) { + params := &QueryLogConfigParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *QueryLogConfig) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/route53/v1alpha1/zz_resolverquerylogconfig_types.go b/apis/route53resolver/v1alpha1/zz_querylogconfig_types.go similarity index 64% rename from apis/route53/v1alpha1/zz_resolverquerylogconfig_types.go rename to apis/route53resolver/v1alpha1/zz_querylogconfig_types.go index c049ea658..f7ce6c78e 100755 --- a/apis/route53/v1alpha1/zz_resolverquerylogconfig_types.go +++ b/apis/route53resolver/v1alpha1/zz_querylogconfig_types.go @@ -25,7 +25,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type ResolverQueryLogConfigObservation struct { +type QueryLogConfigObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` @@ -37,7 +37,7 @@ type ResolverQueryLogConfigObservation struct { TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } -type ResolverQueryLogConfigParameters struct { +type QueryLogConfigParameters struct { // +kubebuilder:validation:Required DestinationArn *string `json:"destinationArn" tf:"destination_arn,omitempty"` @@ -54,51 +54,51 @@ type ResolverQueryLogConfigParameters struct { Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` } -// ResolverQueryLogConfigSpec defines the desired state of ResolverQueryLogConfig -type ResolverQueryLogConfigSpec struct { +// QueryLogConfigSpec defines the desired state of QueryLogConfig +type QueryLogConfigSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ResolverQueryLogConfigParameters `json:"forProvider"` + ForProvider QueryLogConfigParameters `json:"forProvider"` } -// ResolverQueryLogConfigStatus defines the observed state of ResolverQueryLogConfig. -type ResolverQueryLogConfigStatus struct { +// QueryLogConfigStatus defines the observed state of QueryLogConfig. +type QueryLogConfigStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ResolverQueryLogConfigObservation `json:"atProvider,omitempty"` + AtProvider QueryLogConfigObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ResolverQueryLogConfig is the Schema for the ResolverQueryLogConfigs API +// QueryLogConfig is the Schema for the QueryLogConfigs API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type ResolverQueryLogConfig struct { +type QueryLogConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec ResolverQueryLogConfigSpec `json:"spec"` - Status ResolverQueryLogConfigStatus `json:"status,omitempty"` + Spec QueryLogConfigSpec `json:"spec"` + Status QueryLogConfigStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ResolverQueryLogConfigList contains a list of ResolverQueryLogConfigs -type ResolverQueryLogConfigList struct { +// QueryLogConfigList contains a list of QueryLogConfigs +type QueryLogConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ResolverQueryLogConfig `json:"items"` + Items []QueryLogConfig `json:"items"` } // Repository type metadata. var ( - ResolverQueryLogConfig_Kind = "ResolverQueryLogConfig" - ResolverQueryLogConfig_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ResolverQueryLogConfig_Kind}.String() - ResolverQueryLogConfig_KindAPIVersion = ResolverQueryLogConfig_Kind + "." + CRDGroupVersion.String() - ResolverQueryLogConfig_GroupVersionKind = CRDGroupVersion.WithKind(ResolverQueryLogConfig_Kind) + QueryLogConfig_Kind = "QueryLogConfig" + QueryLogConfig_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: QueryLogConfig_Kind}.String() + QueryLogConfig_KindAPIVersion = QueryLogConfig_Kind + "." + CRDGroupVersion.String() + QueryLogConfig_GroupVersionKind = CRDGroupVersion.WithKind(QueryLogConfig_Kind) ) func init() { - SchemeBuilder.Register(&ResolverQueryLogConfig{}, &ResolverQueryLogConfigList{}) + SchemeBuilder.Register(&QueryLogConfig{}, &QueryLogConfigList{}) } diff --git a/apis/route53/v1alpha1/zz_resolverfirewallrulegroup_terraformed.go b/apis/route53resolver/v1alpha1/zz_querylogconfigassociation_terraformed.go similarity index 66% rename from apis/route53/v1alpha1/zz_resolverfirewallrulegroup_terraformed.go rename to apis/route53resolver/v1alpha1/zz_querylogconfigassociation_terraformed.go index 15bac9ad9..2dbd5f866 100755 --- a/apis/route53/v1alpha1/zz_resolverfirewallrulegroup_terraformed.go +++ b/apis/route53resolver/v1alpha1/zz_querylogconfigassociation_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ResolverFirewallRuleGroup -func (mg *ResolverFirewallRuleGroup) GetTerraformResourceType() string { - return "aws_route53_resolver_firewall_rule_group" +// GetTerraformResourceType returns Terraform resource type for this QueryLogConfigAssociation +func (mg *QueryLogConfigAssociation) GetTerraformResourceType() string { + return "aws_route53_resolver_query_log_config_association" } -// GetConnectionDetailsMapping for this ResolverFirewallRuleGroup -func (tr *ResolverFirewallRuleGroup) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this QueryLogConfigAssociation +func (tr *QueryLogConfigAssociation) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ResolverFirewallRuleGroup -func (tr *ResolverFirewallRuleGroup) GetObservation() (map[string]interface{}, error) { +// GetObservation of this QueryLogConfigAssociation +func (tr *QueryLogConfigAssociation) GetObservation() (map[string]interface{}, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -45,8 +45,8 @@ func (tr *ResolverFirewallRuleGroup) GetObservation() (map[string]interface{}, e return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this ResolverFirewallRuleGroup -func (tr *ResolverFirewallRuleGroup) SetObservation(obs map[string]interface{}) error { +// SetObservation for this QueryLogConfigAssociation +func (tr *QueryLogConfigAssociation) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,16 +54,16 @@ func (tr *ResolverFirewallRuleGroup) SetObservation(obs map[string]interface{}) return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this ResolverFirewallRuleGroup -func (tr *ResolverFirewallRuleGroup) GetID() string { +// GetID returns ID of underlying Terraform resource of this QueryLogConfigAssociation +func (tr *QueryLogConfigAssociation) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this ResolverFirewallRuleGroup -func (tr *ResolverFirewallRuleGroup) GetParameters() (map[string]interface{}, error) { +// GetParameters of this QueryLogConfigAssociation +func (tr *QueryLogConfigAssociation) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -72,8 +72,8 @@ func (tr *ResolverFirewallRuleGroup) GetParameters() (map[string]interface{}, er return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this ResolverFirewallRuleGroup -func (tr *ResolverFirewallRuleGroup) SetParameters(params map[string]interface{}) error { +// SetParameters for this QueryLogConfigAssociation +func (tr *QueryLogConfigAssociation) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -81,10 +81,10 @@ func (tr *ResolverFirewallRuleGroup) SetParameters(params map[string]interface{} return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this ResolverFirewallRuleGroup using its observed tfState. +// LateInitialize this QueryLogConfigAssociation using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *ResolverFirewallRuleGroup) LateInitialize(attrs []byte) (bool, error) { - params := &ResolverFirewallRuleGroupParameters{} +func (tr *QueryLogConfigAssociation) LateInitialize(attrs []byte) (bool, error) { + params := &QueryLogConfigAssociationParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -95,6 +95,6 @@ func (tr *ResolverFirewallRuleGroup) LateInitialize(attrs []byte) (bool, error) } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ResolverFirewallRuleGroup) GetTerraformSchemaVersion() int { +func (tr *QueryLogConfigAssociation) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/route53/v1alpha1/zz_resolverquerylogconfigassociation_types.go b/apis/route53resolver/v1alpha1/zz_querylogconfigassociation_types.go similarity index 56% rename from apis/route53/v1alpha1/zz_resolverquerylogconfigassociation_types.go rename to apis/route53resolver/v1alpha1/zz_querylogconfigassociation_types.go index 850835cbd..a09ece892 100755 --- a/apis/route53/v1alpha1/zz_resolverquerylogconfigassociation_types.go +++ b/apis/route53resolver/v1alpha1/zz_querylogconfigassociation_types.go @@ -25,11 +25,11 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type ResolverQueryLogConfigAssociationObservation struct { +type QueryLogConfigAssociationObservation struct { ID *string `json:"id,omitempty" tf:"id,omitempty"` } -type ResolverQueryLogConfigAssociationParameters struct { +type QueryLogConfigAssociationParameters struct { // Region is the region you'd like your resource to be created in. // +terrajet:crd:field:TFTag=- @@ -43,51 +43,51 @@ type ResolverQueryLogConfigAssociationParameters struct { ResourceID *string `json:"resourceId" tf:"resource_id,omitempty"` } -// ResolverQueryLogConfigAssociationSpec defines the desired state of ResolverQueryLogConfigAssociation -type ResolverQueryLogConfigAssociationSpec struct { +// QueryLogConfigAssociationSpec defines the desired state of QueryLogConfigAssociation +type QueryLogConfigAssociationSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ResolverQueryLogConfigAssociationParameters `json:"forProvider"` + ForProvider QueryLogConfigAssociationParameters `json:"forProvider"` } -// ResolverQueryLogConfigAssociationStatus defines the observed state of ResolverQueryLogConfigAssociation. -type ResolverQueryLogConfigAssociationStatus struct { +// QueryLogConfigAssociationStatus defines the observed state of QueryLogConfigAssociation. +type QueryLogConfigAssociationStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ResolverQueryLogConfigAssociationObservation `json:"atProvider,omitempty"` + AtProvider QueryLogConfigAssociationObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ResolverQueryLogConfigAssociation is the Schema for the ResolverQueryLogConfigAssociations API +// QueryLogConfigAssociation is the Schema for the QueryLogConfigAssociations API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type ResolverQueryLogConfigAssociation struct { +type QueryLogConfigAssociation struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec ResolverQueryLogConfigAssociationSpec `json:"spec"` - Status ResolverQueryLogConfigAssociationStatus `json:"status,omitempty"` + Spec QueryLogConfigAssociationSpec `json:"spec"` + Status QueryLogConfigAssociationStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ResolverQueryLogConfigAssociationList contains a list of ResolverQueryLogConfigAssociations -type ResolverQueryLogConfigAssociationList struct { +// QueryLogConfigAssociationList contains a list of QueryLogConfigAssociations +type QueryLogConfigAssociationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ResolverQueryLogConfigAssociation `json:"items"` + Items []QueryLogConfigAssociation `json:"items"` } // Repository type metadata. var ( - ResolverQueryLogConfigAssociation_Kind = "ResolverQueryLogConfigAssociation" - ResolverQueryLogConfigAssociation_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ResolverQueryLogConfigAssociation_Kind}.String() - ResolverQueryLogConfigAssociation_KindAPIVersion = ResolverQueryLogConfigAssociation_Kind + "." + CRDGroupVersion.String() - ResolverQueryLogConfigAssociation_GroupVersionKind = CRDGroupVersion.WithKind(ResolverQueryLogConfigAssociation_Kind) + QueryLogConfigAssociation_Kind = "QueryLogConfigAssociation" + QueryLogConfigAssociation_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: QueryLogConfigAssociation_Kind}.String() + QueryLogConfigAssociation_KindAPIVersion = QueryLogConfigAssociation_Kind + "." + CRDGroupVersion.String() + QueryLogConfigAssociation_GroupVersionKind = CRDGroupVersion.WithKind(QueryLogConfigAssociation_Kind) ) func init() { - SchemeBuilder.Register(&ResolverQueryLogConfigAssociation{}, &ResolverQueryLogConfigAssociationList{}) + SchemeBuilder.Register(&QueryLogConfigAssociation{}, &QueryLogConfigAssociationList{}) } diff --git a/apis/ebs/v1alpha1/zz_volume_terraformed.go b/apis/route53resolver/v1alpha1/zz_rule_terraformed.go similarity index 69% rename from apis/ebs/v1alpha1/zz_volume_terraformed.go rename to apis/route53resolver/v1alpha1/zz_rule_terraformed.go index c6d58b105..f1f50e7cd 100755 --- a/apis/ebs/v1alpha1/zz_volume_terraformed.go +++ b/apis/route53resolver/v1alpha1/zz_rule_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this Volume -func (mg *Volume) GetTerraformResourceType() string { - return "aws_ebs_volume" +// GetTerraformResourceType returns Terraform resource type for this Rule +func (mg *Rule) GetTerraformResourceType() string { + return "aws_route53_resolver_rule" } -// GetConnectionDetailsMapping for this Volume -func (tr *Volume) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this Rule +func (tr *Rule) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this Volume -func (tr *Volume) GetObservation() (map[string]interface{}, error) { +// GetObservation of this Rule +func (tr *Rule) GetObservation() (map[string]interface{}, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -45,8 +45,8 @@ func (tr *Volume) GetObservation() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this Volume -func (tr *Volume) SetObservation(obs map[string]interface{}) error { +// SetObservation for this Rule +func (tr *Rule) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,16 +54,16 @@ func (tr *Volume) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this Volume -func (tr *Volume) GetID() string { +// GetID returns ID of underlying Terraform resource of this Rule +func (tr *Rule) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this Volume -func (tr *Volume) GetParameters() (map[string]interface{}, error) { +// GetParameters of this Rule +func (tr *Rule) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -72,8 +72,8 @@ func (tr *Volume) GetParameters() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this Volume -func (tr *Volume) SetParameters(params map[string]interface{}) error { +// SetParameters for this Rule +func (tr *Rule) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -81,10 +81,10 @@ func (tr *Volume) SetParameters(params map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this Volume using its observed tfState. +// LateInitialize this Rule using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *Volume) LateInitialize(attrs []byte) (bool, error) { - params := &VolumeParameters{} +func (tr *Rule) LateInitialize(attrs []byte) (bool, error) { + params := &RuleParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -95,6 +95,6 @@ func (tr *Volume) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *Volume) GetTerraformSchemaVersion() int { +func (tr *Rule) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/route53/v1alpha1/zz_resolverrule_types.go b/apis/route53resolver/v1alpha1/zz_rule_types.go similarity index 74% rename from apis/route53/v1alpha1/zz_resolverrule_types.go rename to apis/route53resolver/v1alpha1/zz_rule_types.go index 134d12897..20baa98b7 100755 --- a/apis/route53/v1alpha1/zz_resolverrule_types.go +++ b/apis/route53resolver/v1alpha1/zz_rule_types.go @@ -25,7 +25,7 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type ResolverRuleObservation struct { +type RuleObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` ID *string `json:"id,omitempty" tf:"id,omitempty"` @@ -37,7 +37,7 @@ type ResolverRuleObservation struct { TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } -type ResolverRuleParameters struct { +type RuleParameters struct { // +kubebuilder:validation:Required DomainName *string `json:"domainName" tf:"domain_name,omitempty"` @@ -75,51 +75,51 @@ type TargetIPParameters struct { Port *int64 `json:"port,omitempty" tf:"port,omitempty"` } -// ResolverRuleSpec defines the desired state of ResolverRule -type ResolverRuleSpec struct { +// RuleSpec defines the desired state of Rule +type RuleSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ResolverRuleParameters `json:"forProvider"` + ForProvider RuleParameters `json:"forProvider"` } -// ResolverRuleStatus defines the observed state of ResolverRule. -type ResolverRuleStatus struct { +// RuleStatus defines the observed state of Rule. +type RuleStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ResolverRuleObservation `json:"atProvider,omitempty"` + AtProvider RuleObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ResolverRule is the Schema for the ResolverRules API +// Rule is the Schema for the Rules API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type ResolverRule struct { +type Rule struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec ResolverRuleSpec `json:"spec"` - Status ResolverRuleStatus `json:"status,omitempty"` + Spec RuleSpec `json:"spec"` + Status RuleStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ResolverRuleList contains a list of ResolverRules -type ResolverRuleList struct { +// RuleList contains a list of Rules +type RuleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ResolverRule `json:"items"` + Items []Rule `json:"items"` } // Repository type metadata. var ( - ResolverRule_Kind = "ResolverRule" - ResolverRule_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ResolverRule_Kind}.String() - ResolverRule_KindAPIVersion = ResolverRule_Kind + "." + CRDGroupVersion.String() - ResolverRule_GroupVersionKind = CRDGroupVersion.WithKind(ResolverRule_Kind) + Rule_Kind = "Rule" + Rule_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Rule_Kind}.String() + Rule_KindAPIVersion = Rule_Kind + "." + CRDGroupVersion.String() + Rule_GroupVersionKind = CRDGroupVersion.WithKind(Rule_Kind) ) func init() { - SchemeBuilder.Register(&ResolverRule{}, &ResolverRuleList{}) + SchemeBuilder.Register(&Rule{}, &RuleList{}) } diff --git a/apis/route53/v1alpha1/zz_resolverendpoint_terraformed.go b/apis/route53resolver/v1alpha1/zz_ruleassociation_terraformed.go similarity index 65% rename from apis/route53/v1alpha1/zz_resolverendpoint_terraformed.go rename to apis/route53resolver/v1alpha1/zz_ruleassociation_terraformed.go index ada3536a7..129896cf3 100755 --- a/apis/route53/v1alpha1/zz_resolverendpoint_terraformed.go +++ b/apis/route53resolver/v1alpha1/zz_ruleassociation_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ResolverEndpoint -func (mg *ResolverEndpoint) GetTerraformResourceType() string { - return "aws_route53_resolver_endpoint" +// GetTerraformResourceType returns Terraform resource type for this RuleAssociation +func (mg *RuleAssociation) GetTerraformResourceType() string { + return "aws_route53_resolver_rule_association" } -// GetConnectionDetailsMapping for this ResolverEndpoint -func (tr *ResolverEndpoint) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this RuleAssociation +func (tr *RuleAssociation) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ResolverEndpoint -func (tr *ResolverEndpoint) GetObservation() (map[string]interface{}, error) { +// GetObservation of this RuleAssociation +func (tr *RuleAssociation) GetObservation() (map[string]interface{}, error) { o, err := json.TFParser.Marshal(tr.Status.AtProvider) if err != nil { return nil, err @@ -45,8 +45,8 @@ func (tr *ResolverEndpoint) GetObservation() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this ResolverEndpoint -func (tr *ResolverEndpoint) SetObservation(obs map[string]interface{}) error { +// SetObservation for this RuleAssociation +func (tr *RuleAssociation) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,16 +54,16 @@ func (tr *ResolverEndpoint) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetID returns ID of underlying Terraform resource of this ResolverEndpoint -func (tr *ResolverEndpoint) GetID() string { +// GetID returns ID of underlying Terraform resource of this RuleAssociation +func (tr *RuleAssociation) GetID() string { if tr.Status.AtProvider.ID == nil { return "" } return *tr.Status.AtProvider.ID } -// GetParameters of this ResolverEndpoint -func (tr *ResolverEndpoint) GetParameters() (map[string]interface{}, error) { +// GetParameters of this RuleAssociation +func (tr *RuleAssociation) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -72,8 +72,8 @@ func (tr *ResolverEndpoint) GetParameters() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this ResolverEndpoint -func (tr *ResolverEndpoint) SetParameters(params map[string]interface{}) error { +// SetParameters for this RuleAssociation +func (tr *RuleAssociation) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -81,10 +81,10 @@ func (tr *ResolverEndpoint) SetParameters(params map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this ResolverEndpoint using its observed tfState. +// LateInitialize this RuleAssociation using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *ResolverEndpoint) LateInitialize(attrs []byte) (bool, error) { - params := &ResolverEndpointParameters{} +func (tr *RuleAssociation) LateInitialize(attrs []byte) (bool, error) { + params := &RuleAssociationParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -95,6 +95,6 @@ func (tr *ResolverEndpoint) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ResolverEndpoint) GetTerraformSchemaVersion() int { +func (tr *RuleAssociation) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/route53/v1alpha1/zz_resolverruleassociation_types.go b/apis/route53resolver/v1alpha1/zz_ruleassociation_types.go similarity index 61% rename from apis/route53/v1alpha1/zz_resolverruleassociation_types.go rename to apis/route53resolver/v1alpha1/zz_ruleassociation_types.go index 3672e67d9..7cab9c090 100755 --- a/apis/route53/v1alpha1/zz_resolverruleassociation_types.go +++ b/apis/route53resolver/v1alpha1/zz_ruleassociation_types.go @@ -25,11 +25,11 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type ResolverRuleAssociationObservation struct { +type RuleAssociationObservation struct { ID *string `json:"id,omitempty" tf:"id,omitempty"` } -type ResolverRuleAssociationParameters struct { +type RuleAssociationParameters struct { // +kubebuilder:validation:Optional Name *string `json:"name,omitempty" tf:"name,omitempty"` @@ -46,51 +46,51 @@ type ResolverRuleAssociationParameters struct { VPCID *string `json:"vpcId" tf:"vpc_id,omitempty"` } -// ResolverRuleAssociationSpec defines the desired state of ResolverRuleAssociation -type ResolverRuleAssociationSpec struct { +// RuleAssociationSpec defines the desired state of RuleAssociation +type RuleAssociationSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider ResolverRuleAssociationParameters `json:"forProvider"` + ForProvider RuleAssociationParameters `json:"forProvider"` } -// ResolverRuleAssociationStatus defines the observed state of ResolverRuleAssociation. -type ResolverRuleAssociationStatus struct { +// RuleAssociationStatus defines the observed state of RuleAssociation. +type RuleAssociationStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider ResolverRuleAssociationObservation `json:"atProvider,omitempty"` + AtProvider RuleAssociationObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// ResolverRuleAssociation is the Schema for the ResolverRuleAssociations API +// RuleAssociation is the Schema for the RuleAssociations API // +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" // +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status // +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet} -type ResolverRuleAssociation struct { +type RuleAssociation struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec ResolverRuleAssociationSpec `json:"spec"` - Status ResolverRuleAssociationStatus `json:"status,omitempty"` + Spec RuleAssociationSpec `json:"spec"` + Status RuleAssociationStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// ResolverRuleAssociationList contains a list of ResolverRuleAssociations -type ResolverRuleAssociationList struct { +// RuleAssociationList contains a list of RuleAssociations +type RuleAssociationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []ResolverRuleAssociation `json:"items"` + Items []RuleAssociation `json:"items"` } // Repository type metadata. var ( - ResolverRuleAssociation_Kind = "ResolverRuleAssociation" - ResolverRuleAssociation_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ResolverRuleAssociation_Kind}.String() - ResolverRuleAssociation_KindAPIVersion = ResolverRuleAssociation_Kind + "." + CRDGroupVersion.String() - ResolverRuleAssociation_GroupVersionKind = CRDGroupVersion.WithKind(ResolverRuleAssociation_Kind) + RuleAssociation_Kind = "RuleAssociation" + RuleAssociation_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: RuleAssociation_Kind}.String() + RuleAssociation_KindAPIVersion = RuleAssociation_Kind + "." + CRDGroupVersion.String() + RuleAssociation_GroupVersionKind = CRDGroupVersion.WithKind(RuleAssociation_Kind) ) func init() { - SchemeBuilder.Register(&ResolverRuleAssociation{}, &ResolverRuleAssociationList{}) + SchemeBuilder.Register(&RuleAssociation{}, &RuleAssociationList{}) } diff --git a/apis/zz_register.go b/apis/zz_register.go index 8482cd78b..88ba37990 100755 --- a/apis/zz_register.go +++ b/apis/zz_register.go @@ -23,18 +23,18 @@ import ( "k8s.io/apimachinery/pkg/runtime" v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/autoscaling/v1alpha1" - v1alpha1ebs "github.com/crossplane-contrib/provider-jet-aws/apis/ebs/v1alpha1" v1alpha1ec2 "github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha1" v1alpha1ecr "github.com/crossplane-contrib/provider-jet-aws/apis/ecr/v1alpha1" v1alpha1ecrpublic "github.com/crossplane-contrib/provider-jet-aws/apis/ecrpublic/v1alpha1" v1alpha1ecs "github.com/crossplane-contrib/provider-jet-aws/apis/ecs/v1alpha1" v1alpha1eks "github.com/crossplane-contrib/provider-jet-aws/apis/eks/v1alpha1" v1alpha1elasticache "github.com/crossplane-contrib/provider-jet-aws/apis/elasticache/v1alpha1" - v1alpha1elasticloadbalancing "github.com/crossplane-contrib/provider-jet-aws/apis/elasticloadbalancing/v1alpha1" + v1alpha1elbv2 "github.com/crossplane-contrib/provider-jet-aws/apis/elbv2/v1alpha1" v1alpha1iam "github.com/crossplane-contrib/provider-jet-aws/apis/iam/v1alpha1" v1alpha1kms "github.com/crossplane-contrib/provider-jet-aws/apis/kms/v1alpha1" v1alpha1rds "github.com/crossplane-contrib/provider-jet-aws/apis/rds/v1alpha1" v1alpha1route53 "github.com/crossplane-contrib/provider-jet-aws/apis/route53/v1alpha1" + v1alpha1route53resolver "github.com/crossplane-contrib/provider-jet-aws/apis/route53resolver/v1alpha1" v1alpha1s3 "github.com/crossplane-contrib/provider-jet-aws/apis/s3/v1alpha1" v1alpha1apis "github.com/crossplane-contrib/provider-jet-aws/apis/v1alpha1" ) @@ -43,18 +43,18 @@ func init() { // Register the types with the Scheme so the components can map objects to GroupVersionKinds and back AddToSchemes = append(AddToSchemes, v1alpha1.SchemeBuilder.AddToScheme, - v1alpha1ebs.SchemeBuilder.AddToScheme, v1alpha1ec2.SchemeBuilder.AddToScheme, v1alpha1ecr.SchemeBuilder.AddToScheme, v1alpha1ecrpublic.SchemeBuilder.AddToScheme, v1alpha1ecs.SchemeBuilder.AddToScheme, v1alpha1eks.SchemeBuilder.AddToScheme, v1alpha1elasticache.SchemeBuilder.AddToScheme, - v1alpha1elasticloadbalancing.SchemeBuilder.AddToScheme, + v1alpha1elbv2.SchemeBuilder.AddToScheme, v1alpha1iam.SchemeBuilder.AddToScheme, v1alpha1kms.SchemeBuilder.AddToScheme, v1alpha1rds.SchemeBuilder.AddToScheme, v1alpha1route53.SchemeBuilder.AddToScheme, + v1alpha1route53resolver.SchemeBuilder.AddToScheme, v1alpha1s3.SchemeBuilder.AddToScheme, v1alpha1apis.SchemeBuilder.AddToScheme, ) diff --git a/config/autoscaling/config.go b/config/autoscaling/config.go index 2ff8090cb..8cbd4aa64 100644 --- a/config/autoscaling/config.go +++ b/config/autoscaling/config.go @@ -25,7 +25,6 @@ import ( // Configure adds configurations for autoscaling group. func Configure(p *config.Provider) { p.AddResourceConfigurator("aws_autoscaling_group", func(r *config.Resource) { - r.Kind = "AutoscalingGroup" r.ExternalName = config.NameAsIdentifier r.References["vpc_zone_identifier"] = config.Reference{ Type: "github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha1.Subnet", @@ -48,7 +47,7 @@ func Configure(p *config.Provider) { Type: "AutoscalingGroup", } r.References["alb_target_group_arn"] = config.Reference{ - Type: "github.com/crossplane-contrib/provider-jet-aws/apis/elasticloadbalancing/v1alpha1.TargetGroup", + Type: "github.com/crossplane-contrib/provider-jet-aws/apis/elbv2/v1alpha1.LBTargetGroup", Extractor: common.PathARNExtractor, } }) diff --git a/config/cloudformation/config.go b/config/cloudformation/config.go deleted file mode 100644 index 43f7f3bdf..000000000 --- a/config/cloudformation/config.go +++ /dev/null @@ -1,26 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package cloudformation - -import tjconfig "github.com/crossplane/terrajet/pkg/config" - -// Configure configures cloudformation resources. -func Configure(p *tjconfig.Provider) { - p.AddResourceConfigurator("aws_cloudformation_type", func(r *tjconfig.Resource) { - r.Kind = "CloudFormationType" - }) -} diff --git a/config/config/config.go b/config/config/config.go deleted file mode 100644 index 024717190..000000000 --- a/config/config/config.go +++ /dev/null @@ -1,10 +0,0 @@ -package config - -import tjconfig "github.com/crossplane/terrajet/pkg/config" - -// Configure configures resources in config group. -func Configure(p *tjconfig.Provider) { - p.AddResourceConfigurator("aws_config_configuration_recorder_status", func(r *tjconfig.Resource) { - r.Kind = "AWSConfigurationRecorderStatus" - }) -} diff --git a/config/ec2/config.go b/config/ec2/config.go index e0a5a0c3f..edde38606 100644 --- a/config/ec2/config.go +++ b/config/ec2/config.go @@ -61,7 +61,6 @@ func Configure(p *config.Provider) { } }) p.AddResourceConfigurator("aws_eip", func(r *config.Resource) { - r.Kind = "ElasticIP" r.ExternalName = config.IdentifierFromProvider r.References = config.References{ "instance": config.Reference{ @@ -106,7 +105,6 @@ func Configure(p *config.Provider) { }) p.AddResourceConfigurator("aws_ec2_transit_gateway_vpc_attachment", func(r *config.Resource) { - r.Kind = "TransitGatewayVPCAttachment" r.ExternalName = config.IdentifierFromProvider r.References["subnet_ids"] = config.Reference{ Type: "Subnet", @@ -122,7 +120,6 @@ func Configure(p *config.Provider) { }) p.AddResourceConfigurator("aws_ec2_transit_gateway_vpc_attachment_accepter", func(r *config.Resource) { - r.Kind = "TransitGatewayVPCAttachmentAccepter" r.ExternalName = config.IdentifierFromProvider r.References["transit_gateway_attachment_id"] = config.Reference{ Type: "TransitGatewayVPCAttachment", @@ -130,7 +127,6 @@ func Configure(p *config.Provider) { }) p.AddResourceConfigurator("aws_launch_template", func(r *config.Resource) { - r.Kind = "LaunchTemplate" r.ExternalName = config.IdentifierFromProvider r.References["security_group_names"] = config.Reference{ Type: "SecurityGroup", @@ -167,12 +163,10 @@ func Configure(p *config.Provider) { }) p.AddResourceConfigurator("aws_vpc", func(r *config.Resource) { - r.Kind = "VPC" r.ExternalName = config.IdentifierFromProvider }) p.AddResourceConfigurator("aws_vpc_endpoint", func(r *config.Resource) { - r.Kind = "VPCEndpoint" r.ExternalName = config.IdentifierFromProvider r.References["vpc_id"] = config.Reference{ Type: "VPC", @@ -209,7 +203,6 @@ func Configure(p *config.Provider) { }) p.AddResourceConfigurator("aws_network_interface", func(r *config.Resource) { - r.Kind = "NetworkInterface" r.ExternalName = config.IdentifierFromProvider r.References["vpc_id"] = config.Reference{ Type: "VPC", @@ -233,7 +226,6 @@ func Configure(p *config.Provider) { }) p.AddResourceConfigurator("aws_security_group", func(r *config.Resource) { - r.Kind = "SecurityGroup" r.ExternalName = config.IdentifierFromProvider r.References["vpc_id"] = config.Reference{ Type: "VPC", @@ -251,7 +243,6 @@ func Configure(p *config.Provider) { }) p.AddResourceConfigurator("aws_security_group_rule", func(r *config.Resource) { - r.Kind = "SecurityGroupRule" r.ExternalName = config.IdentifierFromProvider r.References["security_group_id"] = config.Reference{ Type: "SecurityGroup", @@ -259,7 +250,6 @@ func Configure(p *config.Provider) { }) p.AddResourceConfigurator("aws_vpc_ipv4_cidr_block_association", func(r *config.Resource) { - r.Kind = "IPv4CIDRBlockAssociation" r.ExternalName = config.IdentifierFromProvider r.References["vpc_id"] = config.Reference{ Type: "VPC", @@ -267,7 +257,6 @@ func Configure(p *config.Provider) { }) p.AddResourceConfigurator("aws_vpc_peering_connection", func(r *config.Resource) { - r.Kind = "VPCPeeringConnection" r.ExternalName = config.IdentifierFromProvider r.References["vpc_id"] = config.Reference{ Type: "VPC", @@ -301,7 +290,6 @@ func Configure(p *config.Provider) { }) p.AddResourceConfigurator("aws_route_table", func(r *config.Resource) { - r.Kind = "RouteTable" r.ExternalName = config.IdentifierFromProvider r.References["vpc_id"] = config.Reference{ Type: "VPC", @@ -322,7 +310,6 @@ func Configure(p *config.Provider) { }) p.AddResourceConfigurator("aws_route_table_association", func(r *config.Resource) { - r.Kind = "RouteTableAssociation" r.ExternalName = config.IdentifierFromProvider r.References["subnet_id"] = config.Reference{ Type: "Subnet", @@ -333,7 +320,6 @@ func Configure(p *config.Provider) { }) p.AddResourceConfigurator("aws_main_route_table_association", func(r *config.Resource) { - r.Kind = "MainRouteTableAssociation" r.ExternalName = config.IdentifierFromProvider r.References["vpc_id"] = config.Reference{ Type: "VPC", diff --git a/config/elasticloadbalancing/config.go b/config/elasticloadbalancing/config.go index 5635cf501..95a7ebaa7 100644 --- a/config/elasticloadbalancing/config.go +++ b/config/elasticloadbalancing/config.go @@ -23,7 +23,6 @@ import ( // Configure adds configurations for elasticloadbalancing group. func Configure(p *config.Provider) { p.AddResourceConfigurator("aws_lb", func(r *config.Resource) { - r.Kind = "LoadBalancer" r.ExternalName = config.IdentifierFromProvider r.ExternalName.OmittedFields = append(r.ExternalName.OmittedFields, "name_prefix") r.References = config.References{ @@ -48,17 +47,16 @@ func Configure(p *config.Provider) { }) p.AddResourceConfigurator("aws_lb_listener", func(r *config.Resource) { - r.Kind = "LoadBalancerListener" r.ExternalName = config.IdentifierFromProvider r.References = config.References{ "load_balancer_arn": { - Type: "LoadBalancer", + Type: "LB", }, "default_action.target_group_arn": { - Type: "TargetGroup", + Type: "LBTargetGroup", }, "default_action.forward.target_group.arn": { - Type: "TargetGroup", + Type: "LBTargetGroup", }, } }) @@ -81,7 +79,7 @@ func Configure(p *config.Provider) { r.ExternalName = config.IdentifierFromProvider r.References = config.References{ "target_group_arn": { - Type: "TargetGroup", + Type: "LBTargetGroup", }, } }) diff --git a/config/overrides.go b/config/overrides.go index f5b905d3f..7a7fab39d 100644 --- a/config/overrides.go +++ b/config/overrides.go @@ -17,43 +17,293 @@ limitations under the License. package config import ( - "regexp" + "strings" - "github.com/crossplane/terrajet/pkg/types/comments" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/pkg/errors" tjconfig "github.com/crossplane/terrajet/pkg/config" + "github.com/crossplane/terrajet/pkg/types/comments" + "github.com/crossplane/terrajet/pkg/types/name" ) +// GroupKindCalculator returns the correct group and kind name for given TF +// resource. +type GroupKindCalculator func(resource string) (string, string) + // GroupMap contains all overrides we'd like to make to the default group search. -var GroupMap = map[string]string{ - "^aws_security_group.*": "ec2", - "^aws_subnet.*": "ec2", - "^aws_network_.*": "ec2", - "^aws_eip_.*": "ec2", - "^aws_eip$": "ec2", - "^aws_launch_template_.*": "ec2", - "^aws_launch_template$": "ec2", - "^aws_route_.*": "ec2", - "^aws_route$": "ec2", - "^aws_main_route_table_.*": "ec2", - "^aws_instance_.*": "ec2", - "^aws_instance$": "ec2", - "^aws_vpc_.*": "ec2", - "^aws_vpc$": "ec2", - "^aws_lb_.*": "elasticloadbalancing", - "^aws_lb$": "elasticloadbalancing", - "^aws_db_.*": "rds", - "^aws_db$": "rds", +// It's written with data from TF Provider AWS repo service grouping in here: +// https://github.com/hashicorp/terraform-provider-aws/tree/main/internal/service +// +// At the end, all of them are based on grouping of the AWS Go SDK. +// The initial grouping is calculated based on folder grouping of AWS TF Provider +// which is based on Go SDK. Here is the script used to fetch that list: +// https://gist.github.com/muvaf/8d61365ffc1df7757864422ba16d7819 +var GroupMap = map[string]GroupKindCalculator{ + "aws_alb": ReplaceGroupWords("elbv2", 0), + "aws_alb_listener": ReplaceGroupWords("elbv2", 0), + "aws_alb_listener_certificate": ReplaceGroupWords("elbv2", 0), + "aws_alb_listener_rule": ReplaceGroupWords("elbv2", 0), + "aws_alb_target_group": ReplaceGroupWords("elbv2", 0), + "aws_alb_target_group_attachment": ReplaceGroupWords("elbv2", 0), + "aws_ami": ReplaceGroupWords("ec2", 0), + "aws_ami_copy": ReplaceGroupWords("ec2", 0), + "aws_ami_from_instance": ReplaceGroupWords("ec2", 0), + "aws_ami_launch_permission": ReplaceGroupWords("ec2", 0), + "aws_api_gateway_account": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_api_key": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_authorizer": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_base_path_mapping": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_client_certificate": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_deployment": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_documentation_part": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_documentation_version": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_domain_name": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_gateway_response": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_integration": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_integration_response": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_method": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_method_response": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_method_settings": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_model": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_request_validator": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_resource": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_rest_api": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_rest_api_policy": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_stage": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_usage_plan": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_usage_plan_key": ReplaceGroupWords("apigateway", 2), + "aws_api_gateway_vpc_link": ReplaceGroupWords("apigateway", 2), + "aws_app_cookie_stickiness_policy": ReplaceGroupWords("elb", 0), + "aws_cloudcontrolapi_resource": ReplaceGroupWords("cloudcontrol", 1), + "aws_cloudhsm_v2_cluster": ReplaceGroupWords("cloudhsmv2", 2), + "aws_cloudhsm_v2_hsm": ReplaceGroupWords("cloudhsmv2", 2), + "aws_cloudtrail": ReplaceGroupWords("cloudtrail", 0), + "aws_cloudwatch_event_api_destination": ReplaceGroupWords("events", 2), + "aws_cloudwatch_event_archive": ReplaceGroupWords("events", 2), + "aws_cloudwatch_event_bus": ReplaceGroupWords("events", 2), + "aws_cloudwatch_event_bus_policy": ReplaceGroupWords("events", 2), + "aws_cloudwatch_event_connection": ReplaceGroupWords("events", 2), + "aws_cloudwatch_event_permission": ReplaceGroupWords("events", 2), + "aws_cloudwatch_event_rule": ReplaceGroupWords("events", 2), + "aws_cloudwatch_event_target": ReplaceGroupWords("events", 2), + "aws_cloudwatch_log_destination": ReplaceGroupWords("cloudwatchlogs", 2), + "aws_cloudwatch_log_destination_policy": ReplaceGroupWords("cloudwatchlogs", 2), + "aws_cloudwatch_log_group": ReplaceGroupWords("cloudwatchlogs", 2), + "aws_cloudwatch_log_metric_filter": ReplaceGroupWords("cloudwatchlogs", 2), + "aws_cloudwatch_log_resource_policy": ReplaceGroupWords("cloudwatchlogs", 2), + "aws_cloudwatch_log_stream": ReplaceGroupWords("cloudwatchlogs", 2), + "aws_cloudwatch_log_subscription_filter": ReplaceGroupWords("cloudwatchlogs", 2), + "aws_cloudwatch_query_definition": ReplaceGroupWords("cloudwatchlogs", 2), + "aws_codepipeline": ReplaceGroupWords("codepipeline", 0), + "aws_cognito_identity_pool": ReplaceGroupWords("cognitoidentity", 2), + "aws_cognito_identity_pool_roles_attachment": ReplaceGroupWords("cognitoidentity", 2), + "aws_cognito_identity_provider": ReplaceGroupWords("cognitoidp", 1), + "aws_cognito_resource_server": ReplaceGroupWords("cognitoidp", 1), + "aws_cognito_user_group": ReplaceGroupWords("cognitoidp", 1), + "aws_cognito_user_pool": ReplaceGroupWords("cognitoidp", 1), + "aws_cognito_user_pool_client": ReplaceGroupWords("cognitoidp", 1), + "aws_cognito_user_pool_domain": ReplaceGroupWords("cognitoidp", 1), + "aws_cognito_user_pool_ui_customization": ReplaceGroupWords("cognitoidp", 1), + "aws_config_aggregate_authorization": ReplaceGroupWords("configservice", 1), + "aws_config_config_rule": ReplaceGroupWords("configservice", 1), + "aws_config_configuration_aggregator": ReplaceGroupWords("configservice", 1), + "aws_config_configuration_recorder": ReplaceGroupWords("configservice", 1), + "aws_config_configuration_recorder_status": ReplaceGroupWords("configservice", 1), + "aws_config_conformance_pack": ReplaceGroupWords("configservice", 1), + "aws_config_delivery_channel": ReplaceGroupWords("configservice", 1), + "aws_config_organization_conformance_pack": ReplaceGroupWords("configservice", 1), + "aws_config_organization_custom_rule": ReplaceGroupWords("configservice", 1), + "aws_config_organization_managed_rule": ReplaceGroupWords("configservice", 1), + "aws_config_remediation_configuration": ReplaceGroupWords("configservice", 1), + "aws_customer_gateway": ReplaceGroupWords("ec2", 0), + "aws_db_cluster_snapshot": ReplaceGroupWords("rds", 1), + "aws_db_event_subscription": ReplaceGroupWords("rds", 1), + "aws_db_instance": ReplaceGroupWords("rds", 1), + "aws_db_instance_role_association": ReplaceGroupWords("rds", 1), + "aws_db_option_group": ReplaceGroupWords("rds", 1), + "aws_db_parameter_group": ReplaceGroupWords("rds", 1), + "aws_db_proxy": ReplaceGroupWords("rds", 1), + "aws_db_proxy_default_target_group": ReplaceGroupWords("rds", 1), + "aws_db_proxy_endpoint": ReplaceGroupWords("rds", 1), + "aws_db_proxy_target": ReplaceGroupWords("rds", 1), + "aws_db_security_group": ReplaceGroupWords("rds", 1), + "aws_db_snapshot": ReplaceGroupWords("rds", 1), + "aws_db_subnet_group": ReplaceGroupWords("rds", 1), + "aws_default_network_acl": ReplaceGroupWords("ec2", 0), + "aws_default_route_table": ReplaceGroupWords("ec2", 0), + "aws_default_security_group": ReplaceGroupWords("ec2", 0), + "aws_default_subnet": ReplaceGroupWords("ec2", 0), + "aws_default_vpc": ReplaceGroupWords("ec2", 0), + "aws_default_vpc_dhcp_options": ReplaceGroupWords("ec2", 0), + "aws_directory_service_conditional_forwarder": ReplaceGroupWords("ds", 2), + "aws_directory_service_directory": ReplaceGroupWords("ds", 2), + "aws_directory_service_log_subscription": ReplaceGroupWords("ds", 2), + "aws_dx_bgp_peer": ReplaceGroupWords("directconnect", 1), + "aws_dx_connection": ReplaceGroupWords("directconnect", 1), + "aws_dx_connection_association": ReplaceGroupWords("directconnect", 1), + "aws_dx_connection_confirmation": ReplaceGroupWords("directconnect", 1), + "aws_dx_gateway": ReplaceGroupWords("directconnect", 1), + "aws_dx_gateway_association": ReplaceGroupWords("directconnect", 1), + "aws_dx_gateway_association_proposal": ReplaceGroupWords("directconnect", 1), + "aws_dx_hosted_connection": ReplaceGroupWords("directconnect", 1), + "aws_dx_hosted_private_virtual_interface": ReplaceGroupWords("directconnect", 1), + "aws_dx_hosted_private_virtual_interface_accepter": ReplaceGroupWords("directconnect", 1), + "aws_dx_hosted_public_virtual_interface": ReplaceGroupWords("directconnect", 1), + "aws_dx_hosted_public_virtual_interface_accepter": ReplaceGroupWords("directconnect", 1), + "aws_dx_hosted_transit_virtual_interface": ReplaceGroupWords("directconnect", 1), + "aws_dx_hosted_transit_virtual_interface_accepter": ReplaceGroupWords("directconnect", 1), + "aws_dx_lag": ReplaceGroupWords("directconnect", 1), + "aws_dx_private_virtual_interface": ReplaceGroupWords("directconnect", 1), + "aws_dx_public_virtual_interface": ReplaceGroupWords("directconnect", 1), + "aws_dx_transit_virtual_interface": ReplaceGroupWords("directconnect", 1), + "aws_ebs_default_kms_key": ReplaceGroupWords("ec2", 0), + "aws_ebs_encryption_by_default": ReplaceGroupWords("ec2", 0), + "aws_ebs_snapshot": ReplaceGroupWords("ec2", 0), + "aws_ebs_snapshot_copy": ReplaceGroupWords("ec2", 0), + "aws_ebs_snapshot_import": ReplaceGroupWords("ec2", 0), + "aws_ebs_volume": ReplaceGroupWords("ec2", 0), + "aws_egress_only_internet_gateway": ReplaceGroupWords("ec2", 0), + "aws_eip": ReplaceGroupWords("ec2", 0), + "aws_eip_association": ReplaceGroupWords("ec2", 0), + "aws_elastic_beanstalk_application": ReplaceGroupWords("elasticbeanstalk", 2), + "aws_elastic_beanstalk_application_version": ReplaceGroupWords("elasticbeanstalk", 2), + "aws_elastic_beanstalk_configuration_template": ReplaceGroupWords("elasticbeanstalk", 2), + "aws_elastic_beanstalk_environment": ReplaceGroupWords("elasticbeanstalk", 2), + "aws_elb": ReplaceGroupWords("elb", 0), + "aws_flow_log": ReplaceGroupWords("ec2", 0), + "aws_instance": ReplaceGroupWords("ec2", 0), + "aws_internet_gateway": ReplaceGroupWords("ec2", 0), + "aws_key_pair": ReplaceGroupWords("ec2", 0), + "aws_kinesis_analytics_application": ReplaceGroupWords("kinesisanalytics", 2), + "aws_kinesis_firehose_delivery_stream": ReplaceGroupWords("firehose", 2), + "aws_kinesis_video_stream": ReplaceGroupWords("kinesisvideo", 2), + "aws_launch_configuration": ReplaceGroupWords("autoscaling", 0), + "aws_launch_template": ReplaceGroupWords("ec2", 0), + "aws_lb": ReplaceGroupWords("elbv2", 0), + "aws_lb_cookie_stickiness_policy": ReplaceGroupWords("elb", 0), + "aws_lb_listener": ReplaceGroupWords("elbv2", 0), + "aws_lb_listener_certificate": ReplaceGroupWords("elbv2", 0), + "aws_lb_listener_rule": ReplaceGroupWords("elbv2", 0), + "aws_lb_ssl_negotiation_policy": ReplaceGroupWords("elb", 0), + "aws_lb_target_group": ReplaceGroupWords("elbv2", 0), + "aws_lb_target_group_attachment": ReplaceGroupWords("elbv2", 0), + "aws_lex_bot": ReplaceGroupWords("lexmodels", 1), + "aws_lex_bot_alias": ReplaceGroupWords("lexmodels", 1), + "aws_lex_intent": ReplaceGroupWords("lexmodels", 1), + "aws_lex_slot_type": ReplaceGroupWords("lexmodels", 1), + "aws_load_balancer_backend_server_policy": ReplaceGroupWords("elb", 2), + "aws_load_balancer_listener_policy": ReplaceGroupWords("elb", 2), + "aws_load_balancer_policy": ReplaceGroupWords("elb", 2), + "aws_main_route_table_association": ReplaceGroupWords("ec2", 0), + "aws_media_convert_queue": ReplaceGroupWords("mediaconvert", 2), + "aws_media_package_channel": ReplaceGroupWords("mediapackage", 2), + "aws_media_store_container": ReplaceGroupWords("mediastore", 2), + "aws_media_store_container_policy": ReplaceGroupWords("mediastore", 2), + "aws_msk_cluster": ReplaceGroupWords("kafka", 1), + "aws_msk_configuration": ReplaceGroupWords("kafka", 1), + "aws_msk_scram_secret_association": ReplaceGroupWords("kafka", 1), + "aws_nat_gateway": ReplaceGroupWords("ec2", 0), + "aws_network_acl": ReplaceGroupWords("ec2", 0), + "aws_network_acl_rule": ReplaceGroupWords("ec2", 0), + "aws_network_interface": ReplaceGroupWords("ec2", 0), + "aws_network_interface_attachment": ReplaceGroupWords("ec2", 0), + "aws_network_interface_sg_attachment": ReplaceGroupWords("ec2", 0), + "aws_placement_group": ReplaceGroupWords("ec2", 0), + "aws_prometheus_alert_manager_definition": ReplaceGroupWords("amp", 1), + "aws_prometheus_rule_group_namespace": ReplaceGroupWords("amp", 1), + "aws_prometheus_workspace": ReplaceGroupWords("amp", 1), + "aws_proxy_protocol_policy": ReplaceGroupWords("elb", 0), + "aws_route": ReplaceGroupWords("ec2", 0), + "aws_route53_resolver_dnssec_config": ReplaceGroupWords("route53resolver", 2), + "aws_route53_resolver_endpoint": ReplaceGroupWords("route53resolver", 2), + "aws_route53_resolver_firewall_config": ReplaceGroupWords("route53resolver", 2), + "aws_route53_resolver_firewall_domain_list": ReplaceGroupWords("route53resolver", 2), + "aws_route53_resolver_firewall_rule": ReplaceGroupWords("route53resolver", 2), + "aws_route53_resolver_firewall_rule_group": ReplaceGroupWords("route53resolver", 2), + "aws_route53_resolver_firewall_rule_group_association": ReplaceGroupWords("route53resolver", 2), + "aws_route53_resolver_query_log_config": ReplaceGroupWords("route53resolver", 2), + "aws_route53_resolver_query_log_config_association": ReplaceGroupWords("route53resolver", 2), + "aws_route53_resolver_rule": ReplaceGroupWords("route53resolver", 2), + "aws_route53_resolver_rule_association": ReplaceGroupWords("route53resolver", 2), + "aws_route_table": ReplaceGroupWords("ec2", 0), + "aws_route_table_association": ReplaceGroupWords("ec2", 0), + "aws_s3_access_point": ReplaceGroupWords("s3control", 1), + "aws_s3_account_public_access_block": ReplaceGroupWords("s3control", 1), + "aws_security_group": ReplaceGroupWords("ec2", 0), + "aws_security_group_rule": ReplaceGroupWords("ec2", 0), + "aws_serverlessapplicationrepository_cloudformation_stack": ReplaceGroupWords("serverlessrepo", 1), + "aws_service_discovery_http_namespace": ReplaceGroupWords("servicediscovery", 2), + "aws_service_discovery_instance": ReplaceGroupWords("servicediscovery", 2), + "aws_service_discovery_private_dns_namespace": ReplaceGroupWords("servicediscovery", 2), + "aws_service_discovery_public_dns_namespace": ReplaceGroupWords("servicediscovery", 2), + "aws_service_discovery_service": ReplaceGroupWords("servicediscovery", 2), + "aws_snapshot_create_volume_permission": ReplaceGroupWords("ec2", 0), + "aws_spot_datafeed_subscription": ReplaceGroupWords("ec2", 0), + "aws_spot_fleet_request": ReplaceGroupWords("ec2", 0), + "aws_spot_instance_request": ReplaceGroupWords("ec2", 0), + "aws_subnet": ReplaceGroupWords("ec2", 0), + "aws_volume_attachment": ReplaceGroupWords("ec2", 0), + "aws_vpc": ReplaceGroupWords("ec2", 0), + "aws_vpc_dhcp_options": ReplaceGroupWords("ec2", 0), + "aws_vpc_dhcp_options_association": ReplaceGroupWords("ec2", 0), + "aws_vpc_endpoint": ReplaceGroupWords("ec2", 0), + "aws_vpc_endpoint_connection_notification": ReplaceGroupWords("ec2", 0), + "aws_vpc_endpoint_route_table_association": ReplaceGroupWords("ec2", 0), + "aws_vpc_endpoint_service": ReplaceGroupWords("ec2", 0), + "aws_vpc_endpoint_service_allowed_principal": ReplaceGroupWords("ec2", 0), + "aws_vpc_endpoint_subnet_association": ReplaceGroupWords("ec2", 0), + "aws_vpc_ipam": ReplaceGroupWords("ec2", 0), + "aws_vpc_ipam_pool": ReplaceGroupWords("ec2", 0), + "aws_vpc_ipam_pool_cidr": ReplaceGroupWords("ec2", 0), + "aws_vpc_ipam_pool_cidr_allocation": ReplaceGroupWords("ec2", 0), + "aws_vpc_ipam_scope": ReplaceGroupWords("ec2", 0), + "aws_vpc_ipv4_cidr_block_association": ReplaceGroupWords("ec2", 0), + "aws_vpc_ipv6_cidr_block_association": ReplaceGroupWords("ec2", 0), + "aws_vpc_peering_connection": ReplaceGroupWords("ec2", 0), + "aws_vpc_peering_connection_accepter": ReplaceGroupWords("ec2", 0), + "aws_vpc_peering_connection_options": ReplaceGroupWords("ec2", 0), + "aws_vpn_connection": ReplaceGroupWords("ec2", 0), + "aws_vpn_connection_route": ReplaceGroupWords("ec2", 0), + "aws_vpn_gateway": ReplaceGroupWords("ec2", 0), + "aws_vpn_gateway_attachment": ReplaceGroupWords("ec2", 0), + "aws_vpn_gateway_route_propagation": ReplaceGroupWords("ec2", 0), +} + +// ReplaceGroupWords uses given group as the group of the resource and removes +// a number of words in resource name before calculating the kind of the resource. +func ReplaceGroupWords(group string, count int) GroupKindCalculator { + return func(resource string) (string, string) { + // "aws_route53_resolver_rule": "route53resolver" -> (route53resolver, Rule) + words := strings.Split(strings.TrimPrefix(resource, "aws_"), "_") + snakeKind := strings.Join(words[count:], "_") + return group, name.NewFromSnake(snakeKind).Camel + } +} + +// KindMap contains kind string overrides. +var KindMap = map[string]string{ + "aws_autoscaling_group": "AutoscalingGroup", + "aws_cloudformation_type": "CloudFormationType", + "aws_config_configuration_recorder_status": "AWSConfigurationRecorderStatus", + "aws_cloudtrail": "Trail", } -// GroupOverrides overrides the group of the resource if it matches expressions -// in given group map. -func GroupOverrides() tjconfig.ResourceOption { +// GroupKindOverrides overrides the group and kind of the resource if it matches +// any entry in the GroupMap. +func GroupKindOverrides() tjconfig.ResourceOption { return func(r *tjconfig.Resource) { - if group, ok := matches(r.Name, GroupMap); ok { - r.ShortGroup = group + if f, ok := GroupMap[r.Name]; ok { + r.ShortGroup, r.Kind = f(r.Name) + } + } +} + +// KindOverrides overrides the kind of the resources given in KindMap. +func KindOverrides() tjconfig.ResourceOption { + return func(r *tjconfig.Resource) { + if k, ok := KindMap[r.Name]; ok { + r.Kind = k } } } @@ -111,16 +361,3 @@ func NamePrefixRemoval() tjconfig.ResourceOption { r.ExternalName.OmittedFields = append(r.ExternalName.OmittedFields, "name_prefix") } } - -func matches(name string, regexes map[string]string) (string, bool) { - for k, v := range regexes { - ok, err := regexp.MatchString(k, name) - if err != nil { - panic(errors.Wrap(err, "cannot run regular expression match")) - } - if ok { - return v, true - } - } - return "", false -} diff --git a/config/provider.go b/config/provider.go index 9cbbd7fe0..e6cae1a3c 100644 --- a/config/provider.go +++ b/config/provider.go @@ -22,8 +22,6 @@ import ( tjconfig "github.com/crossplane/terrajet/pkg/config" "github.com/crossplane-contrib/provider-jet-aws/config/autoscaling" - "github.com/crossplane-contrib/provider-jet-aws/config/cloudformation" - "github.com/crossplane-contrib/provider-jet-aws/config/config" "github.com/crossplane-contrib/provider-jet-aws/config/ebs" "github.com/crossplane-contrib/provider-jet-aws/config/ec2" "github.com/crossplane-contrib/provider-jet-aws/config/ecr" @@ -134,13 +132,11 @@ var IncludedResources = []string{ "aws_route53_.*", } -// These resources cannot be generated because of their suffixes colliding with -// kubebuilder-accepted type suffixes. var skipList = []string{ - "aws_waf_rule_group$", - "aws_wafregional_rule_group$", - "aws_glue_connection$", // See https://github.com/crossplane/terrajet/issues/100 - "aws_mwaa_environment$", // See https://github.com/crossplane/terrajet/issues/100 + "aws_waf_rule_group$", // Too big CRD schema + "aws_wafregional_rule_group$", // Too big CRD schema + "aws_glue_connection$", // See https://github.com/crossplane-contrib/terrajet/issues/100 + "aws_mwaa_environment$", // See https://github.com/crossplane-contrib/terrajet/issues/100 "aws_ecs_tag$", // tags are already managed by ecs resources. "aws_alb$", // identical with aws_lb "aws_alb_target_group_attachment$", // identical with aws_lb_target_group_attachment @@ -159,7 +155,8 @@ func GetProvider(tfProvider *schema.Provider) *tjconfig.Provider { tjconfig.WithIncludeList(IncludedResources), tjconfig.WithSkipList(skipList), tjconfig.WithDefaultResourceFn(DefaultResource( - GroupOverrides(), + GroupKindOverrides(), + KindOverrides(), RegionAddition(), TagsAllRemoval(), IdentifierAssignedByAWS(), @@ -169,8 +166,6 @@ func GetProvider(tfProvider *schema.Provider) *tjconfig.Provider { for _, configure := range []func(provider *tjconfig.Provider){ autoscaling.Configure, - cloudformation.Configure, - config.Configure, ebs.Configure, ec2.Configure, ecr.Configure, diff --git a/config/rds/config.go b/config/rds/config.go index 15c10d6b7..20671a828 100644 --- a/config/rds/config.go +++ b/config/rds/config.go @@ -23,7 +23,6 @@ import ( // Configure adds configurations for rds group. func Configure(p *config.Provider) { p.AddResourceConfigurator("aws_rds_cluster", func(r *config.Resource) { - r.Kind = "DBCluster" r.ExternalName = config.ExternalName{ SetIdentifierArgumentFn: func(base map[string]interface{}, name string) { base["cluster_identifier"] = name @@ -52,7 +51,6 @@ func Configure(p *config.Provider) { }) p.AddResourceConfigurator("aws_db_instance", func(r *config.Resource) { - r.Kind = "DBInstance" r.ExternalName = config.ExternalName{ SetIdentifierArgumentFn: func(base map[string]interface{}, name string) { base["identifier"] = name @@ -66,7 +64,7 @@ func Configure(p *config.Provider) { } r.References = config.References{ "restore_to_point_in_time.source_db_instance_identifier": { - Type: "DBInstance", + Type: "Instance", }, "s3_import.bucket_name": { Type: "github.com/crossplane-contrib/provider-jet-aws/apis/s3/v1alpha1.Bucket", @@ -91,13 +89,12 @@ func Configure(p *config.Provider) { SelectorFieldName: "VpcSecurityGroupIdSelector", }, "parameter_group_name": { - Type: "DBParameterGroup", + Type: "ParameterGroup", }, } r.UseAsync = true }) p.AddResourceConfigurator("aws_db_parameter_group", func(r *config.Resource) { - r.Kind = "DBParameterGroup" r.ExternalName = config.NameAsIdentifier }) } diff --git a/examples/rds/cluster.yaml b/examples/rds/cluster.yaml index 4dbdbe5e1..a8b1c49e8 100644 --- a/examples/rds/cluster.yaml +++ b/examples/rds/cluster.yaml @@ -1,5 +1,5 @@ apiVersion: rds.aws.jet.crossplane.io/v1alpha1 -kind: DBCluster +kind: Cluster metadata: name: sample-cluster spec: diff --git a/examples/rds/dbinstance.yaml b/examples/rds/instance.yaml similarity index 98% rename from examples/rds/dbinstance.yaml rename to examples/rds/instance.yaml index c5a8e4a41..4a9f3de40 100644 --- a/examples/rds/dbinstance.yaml +++ b/examples/rds/instance.yaml @@ -1,5 +1,5 @@ apiVersion: rds.aws.jet.crossplane.io/v1alpha1 -kind: DBInstance +kind: Instance metadata: name: example-dbinstance spec: diff --git a/examples/rds/dbparametergroup.yaml b/examples/rds/parametergroup.yaml similarity index 81% rename from examples/rds/dbparametergroup.yaml rename to examples/rds/parametergroup.yaml index 6574119af..150b55f49 100644 --- a/examples/rds/dbparametergroup.yaml +++ b/examples/rds/parametergroup.yaml @@ -1,7 +1,7 @@ apiVersion: rds.aws.jet.crossplane.io/v1alpha1 -kind: DBParameterGroup +kind: ParameterGroup metadata: - name: example-dbparametergroup + name: example-parametergroup spec: forProvider: region: us-east-1 diff --git a/go.mod b/go.mod index 6713777b9..9a18febd1 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( gopkg.in/alecthomas/kingpin.v2 v2.2.6 k8s.io/apimachinery v0.22.0 k8s.io/client-go v0.22.0 - k8s.io/utils v0.0.0-20210722164352-7f3ee0f31471 + k8s.io/utils v0.0.0-20211208161948-7d6a63dca704 sigs.k8s.io/controller-runtime v0.9.6 sigs.k8s.io/controller-tools v0.6.2 ) diff --git a/go.sum b/go.sum index c4290b018..af110ae6c 100644 --- a/go.sum +++ b/go.sum @@ -1434,8 +1434,9 @@ k8s.io/utils v0.0.0-20190801114015-581e00157fb1/go.mod h1:sZAwmy6armz5eXlNoLmJcl k8s.io/utils v0.0.0-20200324210504-a9aa75ae1b89/go.mod h1:sZAwmy6armz5eXlNoLmJcl4F1QuKu7sr+mFQ0byX7Ew= k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= k8s.io/utils v0.0.0-20210707171843-4b05e18ac7d9/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20210722164352-7f3ee0f31471 h1:DnzUXII7sVg1FJ/4JX6YDRJfLNAC7idRatPwe07suiI= k8s.io/utils v0.0.0-20210722164352-7f3ee0f31471/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= +k8s.io/utils v0.0.0-20211208161948-7d6a63dca704 h1:ZKMMxTvduyf5WUtREOqg5LiXaN1KO/+0oOQPRFrClpo= +k8s.io/utils v0.0.0-20211208161948-7d6a63dca704/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw= modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk= modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k= diff --git a/internal/controller/ebs/volume/zz_controller.go b/internal/controller/ec2/ebsvolume/zz_controller.go similarity index 88% rename from internal/controller/ebs/volume/zz_controller.go rename to internal/controller/ec2/ebsvolume/zz_controller.go index 4682c1005..aa4ed1554 100755 --- a/internal/controller/ebs/volume/zz_controller.go +++ b/internal/controller/ec2/ebsvolume/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package volume +package ebsvolume import ( "time" @@ -34,14 +34,14 @@ import ( tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/ebs/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha1" ) -// Setup adds a controller that reconciles Volume managed resources. +// Setup adds a controller that reconciles EBSVolume managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.Volume_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.EBSVolume_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.Volume_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.EBSVolume_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_ebs_volume"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.Volume{}). + For(&v1alpha1.EBSVolume{}). Complete(r) } diff --git a/internal/controller/ec2/elasticip/zz_controller.go b/internal/controller/ec2/eip/zz_controller.go similarity index 86% rename from internal/controller/ec2/elasticip/zz_controller.go rename to internal/controller/ec2/eip/zz_controller.go index 3e9ed9e2c..3cd7c7933 100755 --- a/internal/controller/ec2/elasticip/zz_controller.go +++ b/internal/controller/ec2/eip/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package elasticip +package eip import ( "time" @@ -37,13 +37,13 @@ import ( v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha1" ) -// Setup adds a controller that reconciles ElasticIP managed resources. +// Setup adds a controller that reconciles EIP managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.ElasticIP_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.EIP_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.ElasticIP_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.EIP_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_eip"], - tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.ElasticIP_GroupVersionKind))), + tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.EIP_GroupVersionKind))), )), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -55,6 +55,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.ElasticIP{}). + For(&v1alpha1.EIP{}). Complete(r) } diff --git a/internal/controller/ec2/ipv4cidrblockassociation/zz_controller.go b/internal/controller/ec2/vpcipv4cidrblockassociation/zz_controller.go similarity index 85% rename from internal/controller/ec2/ipv4cidrblockassociation/zz_controller.go rename to internal/controller/ec2/vpcipv4cidrblockassociation/zz_controller.go index 9548ae74a..0fecda525 100755 --- a/internal/controller/ec2/ipv4cidrblockassociation/zz_controller.go +++ b/internal/controller/ec2/vpcipv4cidrblockassociation/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package ipv4cidrblockassociation +package vpcipv4cidrblockassociation import ( "time" @@ -37,11 +37,11 @@ import ( v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha1" ) -// Setup adds a controller that reconciles IPv4CIDRBlockAssociation managed resources. +// Setup adds a controller that reconciles VPCIPv4CidrBlockAssociation managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.IPv4CIDRBlockAssociation_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.VPCIPv4CidrBlockAssociation_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.IPv4CIDRBlockAssociation_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.VPCIPv4CidrBlockAssociation_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_vpc_ipv4_cidr_block_association"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.IPv4CIDRBlockAssociation{}). + For(&v1alpha1.VPCIPv4CidrBlockAssociation{}). Complete(r) } diff --git a/internal/controller/ec2/peeringconnectionaccepter/zz_controller.go b/internal/controller/ec2/vpcpeeringconnectionaccepter/zz_controller.go similarity index 85% rename from internal/controller/ec2/peeringconnectionaccepter/zz_controller.go rename to internal/controller/ec2/vpcpeeringconnectionaccepter/zz_controller.go index 2949e1170..530a6b056 100755 --- a/internal/controller/ec2/peeringconnectionaccepter/zz_controller.go +++ b/internal/controller/ec2/vpcpeeringconnectionaccepter/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package peeringconnectionaccepter +package vpcpeeringconnectionaccepter import ( "time" @@ -37,11 +37,11 @@ import ( v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha1" ) -// Setup adds a controller that reconciles PeeringConnectionAccepter managed resources. +// Setup adds a controller that reconciles VPCPeeringConnectionAccepter managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.PeeringConnectionAccepter_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.VPCPeeringConnectionAccepter_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.PeeringConnectionAccepter_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.VPCPeeringConnectionAccepter_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_vpc_peering_connection_accepter"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.PeeringConnectionAccepter{}). + For(&v1alpha1.VPCPeeringConnectionAccepter{}). Complete(r) } diff --git a/internal/controller/elasticloadbalancing/loadbalancer/zz_controller.go b/internal/controller/elbv2/lb/zz_controller.go similarity index 84% rename from internal/controller/elasticloadbalancing/loadbalancer/zz_controller.go rename to internal/controller/elbv2/lb/zz_controller.go index 3a50a4e49..95590157a 100755 --- a/internal/controller/elasticloadbalancing/loadbalancer/zz_controller.go +++ b/internal/controller/elbv2/lb/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package loadbalancer +package lb import ( "time" @@ -34,16 +34,16 @@ import ( tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/elasticloadbalancing/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/elbv2/v1alpha1" ) -// Setup adds a controller that reconciles LoadBalancer managed resources. +// Setup adds a controller that reconciles LB managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.LoadBalancer_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.LB_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.LoadBalancer_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.LB_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_lb"], - tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.LoadBalancer_GroupVersionKind))), + tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.LB_GroupVersionKind))), )), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -55,6 +55,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.LoadBalancer{}). + For(&v1alpha1.LB{}). Complete(r) } diff --git a/internal/controller/elasticloadbalancing/loadbalancerlistener/zz_controller.go b/internal/controller/elbv2/lblistener/zz_controller.go similarity index 85% rename from internal/controller/elasticloadbalancing/loadbalancerlistener/zz_controller.go rename to internal/controller/elbv2/lblistener/zz_controller.go index 62a10c1eb..f18357967 100755 --- a/internal/controller/elasticloadbalancing/loadbalancerlistener/zz_controller.go +++ b/internal/controller/elbv2/lblistener/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package loadbalancerlistener +package lblistener import ( "time" @@ -34,14 +34,14 @@ import ( tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/elasticloadbalancing/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/elbv2/v1alpha1" ) -// Setup adds a controller that reconciles LoadBalancerListener managed resources. +// Setup adds a controller that reconciles LBListener managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.LoadBalancerListener_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.LBListener_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.LoadBalancerListener_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.LBListener_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_lb_listener"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.LoadBalancerListener{}). + For(&v1alpha1.LBListener{}). Complete(r) } diff --git a/internal/controller/elasticloadbalancing/targetgroup/zz_controller.go b/internal/controller/elbv2/lbtargetgroup/zz_controller.go similarity index 87% rename from internal/controller/elasticloadbalancing/targetgroup/zz_controller.go rename to internal/controller/elbv2/lbtargetgroup/zz_controller.go index d75b5b678..6dff57368 100755 --- a/internal/controller/elasticloadbalancing/targetgroup/zz_controller.go +++ b/internal/controller/elbv2/lbtargetgroup/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package targetgroup +package lbtargetgroup import ( "time" @@ -34,14 +34,14 @@ import ( tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/elasticloadbalancing/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/elbv2/v1alpha1" ) -// Setup adds a controller that reconciles TargetGroup managed resources. +// Setup adds a controller that reconciles LBTargetGroup managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.TargetGroup_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.LBTargetGroup_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.TargetGroup_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.LBTargetGroup_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_lb_target_group"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.TargetGroup{}). + For(&v1alpha1.LBTargetGroup{}). Complete(r) } diff --git a/internal/controller/elasticloadbalancing/targetgroupattachment/zz_controller.go b/internal/controller/elbv2/lbtargetgroupattachment/zz_controller.go similarity index 85% rename from internal/controller/elasticloadbalancing/targetgroupattachment/zz_controller.go rename to internal/controller/elbv2/lbtargetgroupattachment/zz_controller.go index 16442d195..5795b6ec6 100755 --- a/internal/controller/elasticloadbalancing/targetgroupattachment/zz_controller.go +++ b/internal/controller/elbv2/lbtargetgroupattachment/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package targetgroupattachment +package lbtargetgroupattachment import ( "time" @@ -34,14 +34,14 @@ import ( tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/elasticloadbalancing/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/elbv2/v1alpha1" ) -// Setup adds a controller that reconciles TargetGroupAttachment managed resources. +// Setup adds a controller that reconciles LBTargetGroupAttachment managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.TargetGroupAttachment_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.LBTargetGroupAttachment_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.TargetGroupAttachment_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.LBTargetGroupAttachment_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_lb_target_group_attachment"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.TargetGroupAttachment{}). + For(&v1alpha1.LBTargetGroupAttachment{}). Complete(r) } diff --git a/internal/controller/rds/dbcluster/zz_controller.go b/internal/controller/rds/cluster/zz_controller.go similarity index 86% rename from internal/controller/rds/dbcluster/zz_controller.go rename to internal/controller/rds/cluster/zz_controller.go index f141c0d3c..e1dee011c 100755 --- a/internal/controller/rds/dbcluster/zz_controller.go +++ b/internal/controller/rds/cluster/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package dbcluster +package cluster import ( "time" @@ -37,13 +37,13 @@ import ( v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/rds/v1alpha1" ) -// Setup adds a controller that reconciles DBCluster managed resources. +// Setup adds a controller that reconciles Cluster managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.DBCluster_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.Cluster_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.DBCluster_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.Cluster_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_rds_cluster"], - tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.DBCluster_GroupVersionKind))), + tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.Cluster_GroupVersionKind))), )), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -54,6 +54,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.DBCluster{}). + For(&v1alpha1.Cluster{}). Complete(r) } diff --git a/internal/controller/rds/dbinstance/zz_controller.go b/internal/controller/rds/instance/zz_controller.go similarity index 86% rename from internal/controller/rds/dbinstance/zz_controller.go rename to internal/controller/rds/instance/zz_controller.go index faaf246b3..b90e4fd88 100755 --- a/internal/controller/rds/dbinstance/zz_controller.go +++ b/internal/controller/rds/instance/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package dbinstance +package instance import ( "time" @@ -37,13 +37,13 @@ import ( v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/rds/v1alpha1" ) -// Setup adds a controller that reconciles DBInstance managed resources. +// Setup adds a controller that reconciles Instance managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.DBInstance_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.Instance_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.DBInstance_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.Instance_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_db_instance"], - tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.DBInstance_GroupVersionKind))), + tjcontroller.WithCallbackProvider(tjcontroller.NewAPICallbacks(mgr, xpresource.ManagedKind(v1alpha1.Instance_GroupVersionKind))), )), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -54,6 +54,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.DBInstance{}). + For(&v1alpha1.Instance{}). Complete(r) } diff --git a/internal/controller/rds/dbparametergroup/zz_controller.go b/internal/controller/rds/parametergroup/zz_controller.go similarity index 87% rename from internal/controller/rds/dbparametergroup/zz_controller.go rename to internal/controller/rds/parametergroup/zz_controller.go index 70e278aea..e0d4486b1 100755 --- a/internal/controller/rds/dbparametergroup/zz_controller.go +++ b/internal/controller/rds/parametergroup/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package dbparametergroup +package parametergroup import ( "time" @@ -37,11 +37,11 @@ import ( v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/rds/v1alpha1" ) -// Setup adds a controller that reconciles DBParameterGroup managed resources. +// Setup adds a controller that reconciles ParameterGroup managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.DBParameterGroup_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.ParameterGroup_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.DBParameterGroup_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.ParameterGroup_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_db_parameter_group"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -52,6 +52,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.DBParameterGroup{}). + For(&v1alpha1.ParameterGroup{}). Complete(r) } diff --git a/internal/controller/route53/resolverdnssecconfig/zz_controller.go b/internal/controller/route53resolver/dnssecconfig/zz_controller.go similarity index 86% rename from internal/controller/route53/resolverdnssecconfig/zz_controller.go rename to internal/controller/route53resolver/dnssecconfig/zz_controller.go index 386272347..29f00158b 100755 --- a/internal/controller/route53/resolverdnssecconfig/zz_controller.go +++ b/internal/controller/route53resolver/dnssecconfig/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package resolverdnssecconfig +package dnssecconfig import ( "time" @@ -34,14 +34,14 @@ import ( tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53resolver/v1alpha1" ) -// Setup adds a controller that reconciles ResolverDNSSECConfig managed resources. +// Setup adds a controller that reconciles DNSSECConfig managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.ResolverDNSSECConfig_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.DNSSECConfig_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.ResolverDNSSECConfig_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.DNSSECConfig_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_route53_resolver_dnssec_config"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.ResolverDNSSECConfig{}). + For(&v1alpha1.DNSSECConfig{}). Complete(r) } diff --git a/internal/controller/route53/resolverendpoint/zz_controller.go b/internal/controller/route53resolver/endpoint/zz_controller.go similarity index 86% rename from internal/controller/route53/resolverendpoint/zz_controller.go rename to internal/controller/route53resolver/endpoint/zz_controller.go index a3f5873dc..ea46ab79c 100755 --- a/internal/controller/route53/resolverendpoint/zz_controller.go +++ b/internal/controller/route53resolver/endpoint/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package resolverendpoint +package endpoint import ( "time" @@ -34,14 +34,14 @@ import ( tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53resolver/v1alpha1" ) -// Setup adds a controller that reconciles ResolverEndpoint managed resources. +// Setup adds a controller that reconciles Endpoint managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.ResolverEndpoint_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.Endpoint_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.ResolverEndpoint_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.Endpoint_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_route53_resolver_endpoint"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.ResolverEndpoint{}). + For(&v1alpha1.Endpoint{}). Complete(r) } diff --git a/internal/controller/route53/resolverfirewallconfig/zz_controller.go b/internal/controller/route53resolver/firewallconfig/zz_controller.go similarity index 85% rename from internal/controller/route53/resolverfirewallconfig/zz_controller.go rename to internal/controller/route53resolver/firewallconfig/zz_controller.go index 1a1bfb031..b08cf176d 100755 --- a/internal/controller/route53/resolverfirewallconfig/zz_controller.go +++ b/internal/controller/route53resolver/firewallconfig/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package resolverfirewallconfig +package firewallconfig import ( "time" @@ -34,14 +34,14 @@ import ( tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53resolver/v1alpha1" ) -// Setup adds a controller that reconciles ResolverFirewallConfig managed resources. +// Setup adds a controller that reconciles FirewallConfig managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.ResolverFirewallConfig_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.FirewallConfig_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.ResolverFirewallConfig_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.FirewallConfig_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_route53_resolver_firewall_config"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.ResolverFirewallConfig{}). + For(&v1alpha1.FirewallConfig{}). Complete(r) } diff --git a/internal/controller/route53/resolverfirewalldomainlist/zz_controller.go b/internal/controller/route53resolver/firewalldomainlist/zz_controller.go similarity index 85% rename from internal/controller/route53/resolverfirewalldomainlist/zz_controller.go rename to internal/controller/route53resolver/firewalldomainlist/zz_controller.go index c269b2418..89b976493 100755 --- a/internal/controller/route53/resolverfirewalldomainlist/zz_controller.go +++ b/internal/controller/route53resolver/firewalldomainlist/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package resolverfirewalldomainlist +package firewalldomainlist import ( "time" @@ -34,14 +34,14 @@ import ( tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53resolver/v1alpha1" ) -// Setup adds a controller that reconciles ResolverFirewallDomainList managed resources. +// Setup adds a controller that reconciles FirewallDomainList managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.ResolverFirewallDomainList_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.FirewallDomainList_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.ResolverFirewallDomainList_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.FirewallDomainList_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_route53_resolver_firewall_domain_list"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.ResolverFirewallDomainList{}). + For(&v1alpha1.FirewallDomainList{}). Complete(r) } diff --git a/internal/controller/route53/resolverfirewallrule/zz_controller.go b/internal/controller/route53resolver/firewallrule/zz_controller.go similarity index 86% rename from internal/controller/route53/resolverfirewallrule/zz_controller.go rename to internal/controller/route53resolver/firewallrule/zz_controller.go index a8343af1b..294a89bc9 100755 --- a/internal/controller/route53/resolverfirewallrule/zz_controller.go +++ b/internal/controller/route53resolver/firewallrule/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package resolverfirewallrule +package firewallrule import ( "time" @@ -34,14 +34,14 @@ import ( tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53resolver/v1alpha1" ) -// Setup adds a controller that reconciles ResolverFirewallRule managed resources. +// Setup adds a controller that reconciles FirewallRule managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.ResolverFirewallRule_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.FirewallRule_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.ResolverFirewallRule_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.FirewallRule_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_route53_resolver_firewall_rule"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.ResolverFirewallRule{}). + For(&v1alpha1.FirewallRule{}). Complete(r) } diff --git a/internal/controller/route53/resolverfirewallrulegroup/zz_controller.go b/internal/controller/route53resolver/firewallrulegroup/zz_controller.go similarity index 85% rename from internal/controller/route53/resolverfirewallrulegroup/zz_controller.go rename to internal/controller/route53resolver/firewallrulegroup/zz_controller.go index 46a22d209..4b471955c 100755 --- a/internal/controller/route53/resolverfirewallrulegroup/zz_controller.go +++ b/internal/controller/route53resolver/firewallrulegroup/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package resolverfirewallrulegroup +package firewallrulegroup import ( "time" @@ -34,14 +34,14 @@ import ( tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53resolver/v1alpha1" ) -// Setup adds a controller that reconciles ResolverFirewallRuleGroup managed resources. +// Setup adds a controller that reconciles FirewallRuleGroup managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.ResolverFirewallRuleGroup_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.FirewallRuleGroup_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.ResolverFirewallRuleGroup_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.FirewallRuleGroup_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_route53_resolver_firewall_rule_group"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.ResolverFirewallRuleGroup{}). + For(&v1alpha1.FirewallRuleGroup{}). Complete(r) } diff --git a/internal/controller/route53/resolverfirewallrulegroupassociation/zz_controller.go b/internal/controller/route53resolver/firewallrulegroupassociation/zz_controller.go similarity index 83% rename from internal/controller/route53/resolverfirewallrulegroupassociation/zz_controller.go rename to internal/controller/route53resolver/firewallrulegroupassociation/zz_controller.go index 5b498a245..f7af98bd8 100755 --- a/internal/controller/route53/resolverfirewallrulegroupassociation/zz_controller.go +++ b/internal/controller/route53resolver/firewallrulegroupassociation/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package resolverfirewallrulegroupassociation +package firewallrulegroupassociation import ( "time" @@ -34,14 +34,14 @@ import ( tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53resolver/v1alpha1" ) -// Setup adds a controller that reconciles ResolverFirewallRuleGroupAssociation managed resources. +// Setup adds a controller that reconciles FirewallRuleGroupAssociation managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.ResolverFirewallRuleGroupAssociation_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.FirewallRuleGroupAssociation_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.ResolverFirewallRuleGroupAssociation_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.FirewallRuleGroupAssociation_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_route53_resolver_firewall_rule_group_association"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.ResolverFirewallRuleGroupAssociation{}). + For(&v1alpha1.FirewallRuleGroupAssociation{}). Complete(r) } diff --git a/internal/controller/route53/resolverquerylogconfig/zz_controller.go b/internal/controller/route53resolver/querylogconfig/zz_controller.go similarity index 85% rename from internal/controller/route53/resolverquerylogconfig/zz_controller.go rename to internal/controller/route53resolver/querylogconfig/zz_controller.go index 8ecc9410d..276e7e492 100755 --- a/internal/controller/route53/resolverquerylogconfig/zz_controller.go +++ b/internal/controller/route53resolver/querylogconfig/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package resolverquerylogconfig +package querylogconfig import ( "time" @@ -34,14 +34,14 @@ import ( tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53resolver/v1alpha1" ) -// Setup adds a controller that reconciles ResolverQueryLogConfig managed resources. +// Setup adds a controller that reconciles QueryLogConfig managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.ResolverQueryLogConfig_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.QueryLogConfig_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.ResolverQueryLogConfig_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.QueryLogConfig_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_route53_resolver_query_log_config"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.ResolverQueryLogConfig{}). + For(&v1alpha1.QueryLogConfig{}). Complete(r) } diff --git a/internal/controller/route53/resolverquerylogconfigassociation/zz_controller.go b/internal/controller/route53resolver/querylogconfigassociation/zz_controller.go similarity index 84% rename from internal/controller/route53/resolverquerylogconfigassociation/zz_controller.go rename to internal/controller/route53resolver/querylogconfigassociation/zz_controller.go index 4b4878361..701414e4a 100755 --- a/internal/controller/route53/resolverquerylogconfigassociation/zz_controller.go +++ b/internal/controller/route53resolver/querylogconfigassociation/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package resolverquerylogconfigassociation +package querylogconfigassociation import ( "time" @@ -34,14 +34,14 @@ import ( tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53resolver/v1alpha1" ) -// Setup adds a controller that reconciles ResolverQueryLogConfigAssociation managed resources. +// Setup adds a controller that reconciles QueryLogConfigAssociation managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.ResolverQueryLogConfigAssociation_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.QueryLogConfigAssociation_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.ResolverQueryLogConfigAssociation_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.QueryLogConfigAssociation_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_route53_resolver_query_log_config_association"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.ResolverQueryLogConfigAssociation{}). + For(&v1alpha1.QueryLogConfigAssociation{}). Complete(r) } diff --git a/internal/controller/route53/resolverrule/zz_controller.go b/internal/controller/route53resolver/rule/zz_controller.go similarity index 87% rename from internal/controller/route53/resolverrule/zz_controller.go rename to internal/controller/route53resolver/rule/zz_controller.go index 0f9350e87..d5f430338 100755 --- a/internal/controller/route53/resolverrule/zz_controller.go +++ b/internal/controller/route53resolver/rule/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package resolverrule +package rule import ( "time" @@ -34,14 +34,14 @@ import ( tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53resolver/v1alpha1" ) -// Setup adds a controller that reconciles ResolverRule managed resources. +// Setup adds a controller that reconciles Rule managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.ResolverRule_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.Rule_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.ResolverRule_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.Rule_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_route53_resolver_rule"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.ResolverRule{}). + For(&v1alpha1.Rule{}). Complete(r) } diff --git a/internal/controller/route53/resolverruleassociation/zz_controller.go b/internal/controller/route53resolver/ruleassociation/zz_controller.go similarity index 85% rename from internal/controller/route53/resolverruleassociation/zz_controller.go rename to internal/controller/route53resolver/ruleassociation/zz_controller.go index 124592a28..d850c69d7 100755 --- a/internal/controller/route53/resolverruleassociation/zz_controller.go +++ b/internal/controller/route53resolver/ruleassociation/zz_controller.go @@ -16,7 +16,7 @@ limitations under the License. // Code generated by terrajet. DO NOT EDIT. -package resolverruleassociation +package ruleassociation import ( "time" @@ -34,14 +34,14 @@ import ( tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" - v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53/v1alpha1" + v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53resolver/v1alpha1" ) -// Setup adds a controller that reconciles ResolverRuleAssociation managed resources. +// Setup adds a controller that reconciles RuleAssociation managed resources. func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terraform.SetupFn, ws *terraform.WorkspaceStore, cfg *tjconfig.Provider, concurrency int) error { - name := managed.ControllerName(v1alpha1.ResolverRuleAssociation_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.RuleAssociation_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.ResolverRuleAssociation_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.RuleAssociation_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_route53_resolver_rule_association"])), managed.WithLogger(l.WithValues("controller", name)), managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))), @@ -53,6 +53,6 @@ func Setup(mgr ctrl.Manager, l logging.Logger, rl workqueue.RateLimiter, s terra return ctrl.NewControllerManagedBy(mgr). Named(name). WithOptions(controller.Options{RateLimiter: rl, MaxConcurrentReconciles: concurrency}). - For(&v1alpha1.ResolverRuleAssociation{}). + For(&v1alpha1.RuleAssociation{}). Complete(r) } diff --git a/internal/controller/zz_setup.go b/internal/controller/zz_setup.go index 13dedcc8a..8c8a7c9a7 100755 --- a/internal/controller/zz_setup.go +++ b/internal/controller/zz_setup.go @@ -27,13 +27,11 @@ import ( attachment "github.com/crossplane-contrib/provider-jet-aws/internal/controller/autoscaling/attachment" autoscalinggroup "github.com/crossplane-contrib/provider-jet-aws/internal/controller/autoscaling/autoscalinggroup" - volume "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ebs/volume" - elasticip "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/elasticip" + ebsvolume "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/ebsvolume" + eip "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/eip" instance "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/instance" - ipv4cidrblockassociation "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/ipv4cidrblockassociation" launchtemplate "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/launchtemplate" networkinterface "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/networkinterface" - peeringconnectionaccepter "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/peeringconnectionaccepter" route "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/route" routetable "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/routetable" routetableassociation "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/routetableassociation" @@ -49,7 +47,9 @@ import ( transitgatewayvpcattachmentaccepter "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/transitgatewayvpcattachmentaccepter" vpc "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/vpc" vpcendpoint "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/vpcendpoint" + vpcipv4cidrblockassociation "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/vpcipv4cidrblockassociation" vpcpeeringconnection "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/vpcpeeringconnection" + vpcpeeringconnectionaccepter "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ec2/vpcpeeringconnectionaccepter" repository "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ecr/repository" repositoryecrpublic "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ecrpublic/repository" capacityprovider "github.com/crossplane-contrib/provider-jet-aws/internal/controller/ecs/capacityprovider" @@ -66,10 +66,10 @@ import ( replicationgroup "github.com/crossplane-contrib/provider-jet-aws/internal/controller/elasticache/replicationgroup" user "github.com/crossplane-contrib/provider-jet-aws/internal/controller/elasticache/user" usergroup "github.com/crossplane-contrib/provider-jet-aws/internal/controller/elasticache/usergroup" - loadbalancer "github.com/crossplane-contrib/provider-jet-aws/internal/controller/elasticloadbalancing/loadbalancer" - loadbalancerlistener "github.com/crossplane-contrib/provider-jet-aws/internal/controller/elasticloadbalancing/loadbalancerlistener" - targetgroup "github.com/crossplane-contrib/provider-jet-aws/internal/controller/elasticloadbalancing/targetgroup" - targetgroupattachment "github.com/crossplane-contrib/provider-jet-aws/internal/controller/elasticloadbalancing/targetgroupattachment" + lb "github.com/crossplane-contrib/provider-jet-aws/internal/controller/elbv2/lb" + lblistener "github.com/crossplane-contrib/provider-jet-aws/internal/controller/elbv2/lblistener" + lbtargetgroup "github.com/crossplane-contrib/provider-jet-aws/internal/controller/elbv2/lbtargetgroup" + lbtargetgroupattachment "github.com/crossplane-contrib/provider-jet-aws/internal/controller/elbv2/lbtargetgroupattachment" accesskey "github.com/crossplane-contrib/provider-jet-aws/internal/controller/iam/accesskey" group "github.com/crossplane-contrib/provider-jet-aws/internal/controller/iam/group" grouppolicyattachment "github.com/crossplane-contrib/provider-jet-aws/internal/controller/iam/grouppolicyattachment" @@ -82,29 +82,29 @@ import ( userpolicyattachment "github.com/crossplane-contrib/provider-jet-aws/internal/controller/iam/userpolicyattachment" key "github.com/crossplane-contrib/provider-jet-aws/internal/controller/kms/key" providerconfig "github.com/crossplane-contrib/provider-jet-aws/internal/controller/providerconfig" - dbcluster "github.com/crossplane-contrib/provider-jet-aws/internal/controller/rds/dbcluster" - dbinstance "github.com/crossplane-contrib/provider-jet-aws/internal/controller/rds/dbinstance" - dbparametergroup "github.com/crossplane-contrib/provider-jet-aws/internal/controller/rds/dbparametergroup" + clusterrds "github.com/crossplane-contrib/provider-jet-aws/internal/controller/rds/cluster" + instancerds "github.com/crossplane-contrib/provider-jet-aws/internal/controller/rds/instance" + parametergrouprds "github.com/crossplane-contrib/provider-jet-aws/internal/controller/rds/parametergroup" delegationset "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/delegationset" healthcheck "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/healthcheck" hostedzonednssec "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/hostedzonednssec" keysigningkey "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/keysigningkey" querylog "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/querylog" record "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/record" - resolverdnssecconfig "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/resolverdnssecconfig" - resolverendpoint "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/resolverendpoint" - resolverfirewallconfig "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/resolverfirewallconfig" - resolverfirewalldomainlist "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/resolverfirewalldomainlist" - resolverfirewallrule "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/resolverfirewallrule" - resolverfirewallrulegroup "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/resolverfirewallrulegroup" - resolverfirewallrulegroupassociation "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/resolverfirewallrulegroupassociation" - resolverquerylogconfig "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/resolverquerylogconfig" - resolverquerylogconfigassociation "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/resolverquerylogconfigassociation" - resolverrule "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/resolverrule" - resolverruleassociation "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/resolverruleassociation" vpcassociationauthorization "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/vpcassociationauthorization" zone "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/zone" zoneassociation "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53/zoneassociation" + dnssecconfig "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53resolver/dnssecconfig" + endpoint "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53resolver/endpoint" + firewallconfig "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53resolver/firewallconfig" + firewalldomainlist "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53resolver/firewalldomainlist" + firewallrule "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53resolver/firewallrule" + firewallrulegroup "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53resolver/firewallrulegroup" + firewallrulegroupassociation "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53resolver/firewallrulegroupassociation" + querylogconfig "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53resolver/querylogconfig" + querylogconfigassociation "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53resolver/querylogconfigassociation" + rule "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53resolver/rule" + ruleassociation "github.com/crossplane-contrib/provider-jet-aws/internal/controller/route53resolver/ruleassociation" bucket "github.com/crossplane-contrib/provider-jet-aws/internal/controller/s3/bucket" ) @@ -114,13 +114,11 @@ func Setup(mgr ctrl.Manager, l logging.Logger, wl workqueue.RateLimiter, ps terr for _, setup := range []func(ctrl.Manager, logging.Logger, workqueue.RateLimiter, terraform.SetupFn, *terraform.WorkspaceStore, *tjconfig.Provider, int) error{ attachment.Setup, autoscalinggroup.Setup, - volume.Setup, - elasticip.Setup, + ebsvolume.Setup, + eip.Setup, instance.Setup, - ipv4cidrblockassociation.Setup, launchtemplate.Setup, networkinterface.Setup, - peeringconnectionaccepter.Setup, route.Setup, routetable.Setup, routetableassociation.Setup, @@ -136,7 +134,9 @@ func Setup(mgr ctrl.Manager, l logging.Logger, wl workqueue.RateLimiter, ps terr transitgatewayvpcattachmentaccepter.Setup, vpc.Setup, vpcendpoint.Setup, + vpcipv4cidrblockassociation.Setup, vpcpeeringconnection.Setup, + vpcpeeringconnectionaccepter.Setup, repository.Setup, repositoryecrpublic.Setup, capacityprovider.Setup, @@ -153,10 +153,10 @@ func Setup(mgr ctrl.Manager, l logging.Logger, wl workqueue.RateLimiter, ps terr replicationgroup.Setup, user.Setup, usergroup.Setup, - loadbalancer.Setup, - loadbalancerlistener.Setup, - targetgroup.Setup, - targetgroupattachment.Setup, + lb.Setup, + lblistener.Setup, + lbtargetgroup.Setup, + lbtargetgroupattachment.Setup, accesskey.Setup, group.Setup, grouppolicyattachment.Setup, @@ -169,29 +169,29 @@ func Setup(mgr ctrl.Manager, l logging.Logger, wl workqueue.RateLimiter, ps terr userpolicyattachment.Setup, key.Setup, providerconfig.Setup, - dbcluster.Setup, - dbinstance.Setup, - dbparametergroup.Setup, + clusterrds.Setup, + instancerds.Setup, + parametergrouprds.Setup, delegationset.Setup, healthcheck.Setup, hostedzonednssec.Setup, keysigningkey.Setup, querylog.Setup, record.Setup, - resolverdnssecconfig.Setup, - resolverendpoint.Setup, - resolverfirewallconfig.Setup, - resolverfirewalldomainlist.Setup, - resolverfirewallrule.Setup, - resolverfirewallrulegroup.Setup, - resolverfirewallrulegroupassociation.Setup, - resolverquerylogconfig.Setup, - resolverquerylogconfigassociation.Setup, - resolverrule.Setup, - resolverruleassociation.Setup, vpcassociationauthorization.Setup, zone.Setup, zoneassociation.Setup, + dnssecconfig.Setup, + endpoint.Setup, + firewallconfig.Setup, + firewalldomainlist.Setup, + firewallrule.Setup, + firewallrulegroup.Setup, + firewallrulegroupassociation.Setup, + querylogconfig.Setup, + querylogconfigassociation.Setup, + rule.Setup, + ruleassociation.Setup, bucket.Setup, } { if err := setup(mgr, l, wl, ps, ws, cfg, concurrency); err != nil { diff --git a/package/crds/ebs.aws.jet.crossplane.io_volumes.yaml b/package/crds/ec2.aws.jet.crossplane.io_ebsvolumes.yaml similarity index 95% rename from package/crds/ebs.aws.jet.crossplane.io_volumes.yaml rename to package/crds/ec2.aws.jet.crossplane.io_ebsvolumes.yaml index efc7bed92..eeeec7827 100644 --- a/package/crds/ebs.aws.jet.crossplane.io_volumes.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_ebsvolumes.yaml @@ -4,18 +4,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: volumes.ebs.aws.jet.crossplane.io + name: ebsvolumes.ec2.aws.jet.crossplane.io spec: - group: ebs.aws.jet.crossplane.io + group: ec2.aws.jet.crossplane.io names: categories: - crossplane - managed - awsjet - kind: Volume - listKind: VolumeList - plural: volumes - singular: volume + kind: EBSVolume + listKind: EBSVolumeList + plural: ebsvolumes + singular: ebsvolume scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: Volume is the Schema for the Volumes API + description: EBSVolume is the Schema for the EBSVolumes API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -49,7 +49,7 @@ spec: metadata: type: object spec: - description: VolumeSpec defines the desired state of Volume + description: EBSVolumeSpec defines the desired state of EBSVolume properties: deletionPolicy: default: Delete @@ -165,7 +165,7 @@ spec: - forProvider type: object status: - description: VolumeStatus defines the observed state of Volume. + description: EBSVolumeStatus defines the observed state of EBSVolume. properties: atProvider: properties: diff --git a/package/crds/ec2.aws.jet.crossplane.io_elasticips.yaml b/package/crds/ec2.aws.jet.crossplane.io_eips.yaml similarity index 96% rename from package/crds/ec2.aws.jet.crossplane.io_elasticips.yaml rename to package/crds/ec2.aws.jet.crossplane.io_eips.yaml index 2510872a0..85ebac3fe 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_elasticips.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_eips.yaml @@ -4,7 +4,7 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: elasticips.ec2.aws.jet.crossplane.io + name: eips.ec2.aws.jet.crossplane.io spec: group: ec2.aws.jet.crossplane.io names: @@ -12,10 +12,10 @@ spec: - crossplane - managed - awsjet - kind: ElasticIP - listKind: ElasticIPList - plural: elasticips - singular: elasticip + kind: EIP + listKind: EIPList + plural: eips + singular: eip scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ElasticIP is the Schema for the ElasticIPs API + description: EIP is the Schema for the EIPs API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -49,7 +49,7 @@ spec: metadata: type: object spec: - description: ElasticIPSpec defines the desired state of ElasticIP + description: EIPSpec defines the desired state of EIP properties: deletionPolicy: default: Delete @@ -180,7 +180,7 @@ spec: - forProvider type: object status: - description: ElasticIPStatus defines the observed state of ElasticIP. + description: EIPStatus defines the observed state of EIP. properties: atProvider: properties: diff --git a/package/crds/ec2.aws.jet.crossplane.io_ipv4cidrblockassociations.yaml b/package/crds/ec2.aws.jet.crossplane.io_vpcipv4cidrblockassociations.yaml similarity index 92% rename from package/crds/ec2.aws.jet.crossplane.io_ipv4cidrblockassociations.yaml rename to package/crds/ec2.aws.jet.crossplane.io_vpcipv4cidrblockassociations.yaml index 2ea9de86d..7c503d571 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_ipv4cidrblockassociations.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_vpcipv4cidrblockassociations.yaml @@ -4,7 +4,7 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: ipv4cidrblockassociations.ec2.aws.jet.crossplane.io + name: vpcipv4cidrblockassociations.ec2.aws.jet.crossplane.io spec: group: ec2.aws.jet.crossplane.io names: @@ -12,10 +12,10 @@ spec: - crossplane - managed - awsjet - kind: IPv4CIDRBlockAssociation - listKind: IPv4CIDRBlockAssociationList - plural: ipv4cidrblockassociations - singular: ipv4cidrblockassociation + kind: VPCIPv4CidrBlockAssociation + listKind: VPCIPv4CidrBlockAssociationList + plural: vpcipv4cidrblockassociations + singular: vpcipv4cidrblockassociation scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: IPv4CIDRBlockAssociation is the Schema for the IPv4CIDRBlockAssociations + description: VPCIPv4CidrBlockAssociation is the Schema for the VPCIPv4CidrBlockAssociations API properties: apiVersion: @@ -50,8 +50,8 @@ spec: metadata: type: object spec: - description: IPv4CIDRBlockAssociationSpec defines the desired state of - IPv4CIDRBlockAssociation + description: VPCIPv4CidrBlockAssociationSpec defines the desired state + of VPCIPv4CidrBlockAssociation properties: deletionPolicy: default: Delete @@ -144,8 +144,8 @@ spec: - forProvider type: object status: - description: IPv4CIDRBlockAssociationStatus defines the observed state - of IPv4CIDRBlockAssociation. + description: VPCIPv4CidrBlockAssociationStatus defines the observed state + of VPCIPv4CidrBlockAssociation. properties: atProvider: properties: diff --git a/package/crds/ec2.aws.jet.crossplane.io_peeringconnectionaccepters.yaml b/package/crds/ec2.aws.jet.crossplane.io_vpcpeeringconnectionaccepters.yaml similarity index 92% rename from package/crds/ec2.aws.jet.crossplane.io_peeringconnectionaccepters.yaml rename to package/crds/ec2.aws.jet.crossplane.io_vpcpeeringconnectionaccepters.yaml index c25b0ff78..1b848227a 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_peeringconnectionaccepters.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_vpcpeeringconnectionaccepters.yaml @@ -4,7 +4,7 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: peeringconnectionaccepters.ec2.aws.jet.crossplane.io + name: vpcpeeringconnectionaccepters.ec2.aws.jet.crossplane.io spec: group: ec2.aws.jet.crossplane.io names: @@ -12,10 +12,10 @@ spec: - crossplane - managed - awsjet - kind: PeeringConnectionAccepter - listKind: PeeringConnectionAccepterList - plural: peeringconnectionaccepters - singular: peeringconnectionaccepter + kind: VPCPeeringConnectionAccepter + listKind: VPCPeeringConnectionAccepterList + plural: vpcpeeringconnectionaccepters + singular: vpcpeeringconnectionaccepter scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: PeeringConnectionAccepter is the Schema for the PeeringConnectionAccepters + description: VPCPeeringConnectionAccepter is the Schema for the VPCPeeringConnectionAccepters API properties: apiVersion: @@ -50,8 +50,8 @@ spec: metadata: type: object spec: - description: PeeringConnectionAccepterSpec defines the desired state of - PeeringConnectionAccepter + description: VPCPeeringConnectionAccepterSpec defines the desired state + of VPCPeeringConnectionAccepter properties: deletionPolicy: default: Delete @@ -147,8 +147,8 @@ spec: - forProvider type: object status: - description: PeeringConnectionAccepterStatus defines the observed state - of PeeringConnectionAccepter. + description: VPCPeeringConnectionAccepterStatus defines the observed state + of VPCPeeringConnectionAccepter. properties: atProvider: properties: diff --git a/package/crds/elasticloadbalancing.aws.jet.crossplane.io_loadbalancerlisteners.yaml b/package/crds/elbv2.aws.jet.crossplane.io_lblisteners.yaml similarity index 96% rename from package/crds/elasticloadbalancing.aws.jet.crossplane.io_loadbalancerlisteners.yaml rename to package/crds/elbv2.aws.jet.crossplane.io_lblisteners.yaml index 2ac4c2e06..088e9afd6 100644 --- a/package/crds/elasticloadbalancing.aws.jet.crossplane.io_loadbalancerlisteners.yaml +++ b/package/crds/elbv2.aws.jet.crossplane.io_lblisteners.yaml @@ -4,18 +4,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: loadbalancerlisteners.elasticloadbalancing.aws.jet.crossplane.io + name: lblisteners.elbv2.aws.jet.crossplane.io spec: - group: elasticloadbalancing.aws.jet.crossplane.io + group: elbv2.aws.jet.crossplane.io names: categories: - crossplane - managed - awsjet - kind: LoadBalancerListener - listKind: LoadBalancerListenerList - plural: loadbalancerlisteners - singular: loadbalancerlistener + kind: LBListener + listKind: LBListenerList + plural: lblisteners + singular: lblistener scope: Cluster versions: - additionalPrinterColumns: @@ -34,8 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: LoadBalancerListener is the Schema for the LoadBalancerListeners - API + description: LBListener is the Schema for the LBListeners API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -50,7 +49,7 @@ spec: metadata: type: object spec: - description: LoadBalancerListenerSpec defines the desired state of LoadBalancerListener + description: LBListenerSpec defines the desired state of LBListener properties: deletionPolicy: default: Delete @@ -360,8 +359,7 @@ spec: - forProvider type: object status: - description: LoadBalancerListenerStatus defines the observed state of - LoadBalancerListener. + description: LBListenerStatus defines the observed state of LBListener. properties: atProvider: properties: diff --git a/package/crds/elasticloadbalancing.aws.jet.crossplane.io_loadbalancers.yaml b/package/crds/elbv2.aws.jet.crossplane.io_lbs.yaml similarity index 96% rename from package/crds/elasticloadbalancing.aws.jet.crossplane.io_loadbalancers.yaml rename to package/crds/elbv2.aws.jet.crossplane.io_lbs.yaml index ad606f77a..d2dd870f7 100644 --- a/package/crds/elasticloadbalancing.aws.jet.crossplane.io_loadbalancers.yaml +++ b/package/crds/elbv2.aws.jet.crossplane.io_lbs.yaml @@ -4,18 +4,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: loadbalancers.elasticloadbalancing.aws.jet.crossplane.io + name: lbs.elbv2.aws.jet.crossplane.io spec: - group: elasticloadbalancing.aws.jet.crossplane.io + group: elbv2.aws.jet.crossplane.io names: categories: - crossplane - managed - awsjet - kind: LoadBalancer - listKind: LoadBalancerList - plural: loadbalancers - singular: loadbalancer + kind: LB + listKind: LBList + plural: lbs + singular: lb scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: LoadBalancer is the Schema for the LoadBalancers API + description: LB is the Schema for the LBs API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -49,7 +49,7 @@ spec: metadata: type: object spec: - description: LoadBalancerSpec defines the desired state of LoadBalancer + description: LBSpec defines the desired state of LB properties: deletionPolicy: default: Delete @@ -269,7 +269,7 @@ spec: - forProvider type: object status: - description: LoadBalancerStatus defines the observed state of LoadBalancer. + description: LBStatus defines the observed state of LB. properties: atProvider: properties: diff --git a/package/crds/elasticloadbalancing.aws.jet.crossplane.io_targetgroupattachments.yaml b/package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroupattachments.yaml similarity index 92% rename from package/crds/elasticloadbalancing.aws.jet.crossplane.io_targetgroupattachments.yaml rename to package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroupattachments.yaml index b571d679b..3e1592a97 100644 --- a/package/crds/elasticloadbalancing.aws.jet.crossplane.io_targetgroupattachments.yaml +++ b/package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroupattachments.yaml @@ -4,18 +4,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: targetgroupattachments.elasticloadbalancing.aws.jet.crossplane.io + name: lbtargetgroupattachments.elbv2.aws.jet.crossplane.io spec: - group: elasticloadbalancing.aws.jet.crossplane.io + group: elbv2.aws.jet.crossplane.io names: categories: - crossplane - managed - awsjet - kind: TargetGroupAttachment - listKind: TargetGroupAttachmentList - plural: targetgroupattachments - singular: targetgroupattachment + kind: LBTargetGroupAttachment + listKind: LBTargetGroupAttachmentList + plural: lbtargetgroupattachments + singular: lbtargetgroupattachment scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: TargetGroupAttachment is the Schema for the TargetGroupAttachments + description: LBTargetGroupAttachment is the Schema for the LBTargetGroupAttachments API properties: apiVersion: @@ -50,7 +50,8 @@ spec: metadata: type: object spec: - description: TargetGroupAttachmentSpec defines the desired state of TargetGroupAttachment + description: LBTargetGroupAttachmentSpec defines the desired state of + LBTargetGroupAttachment properties: deletionPolicy: default: Delete @@ -148,8 +149,8 @@ spec: - forProvider type: object status: - description: TargetGroupAttachmentStatus defines the observed state of - TargetGroupAttachment. + description: LBTargetGroupAttachmentStatus defines the observed state + of LBTargetGroupAttachment. properties: atProvider: properties: diff --git a/package/crds/elasticloadbalancing.aws.jet.crossplane.io_targetgroups.yaml b/package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroups.yaml similarity index 95% rename from package/crds/elasticloadbalancing.aws.jet.crossplane.io_targetgroups.yaml rename to package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroups.yaml index a6949113d..8b696761f 100644 --- a/package/crds/elasticloadbalancing.aws.jet.crossplane.io_targetgroups.yaml +++ b/package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroups.yaml @@ -4,18 +4,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: targetgroups.elasticloadbalancing.aws.jet.crossplane.io + name: lbtargetgroups.elbv2.aws.jet.crossplane.io spec: - group: elasticloadbalancing.aws.jet.crossplane.io + group: elbv2.aws.jet.crossplane.io names: categories: - crossplane - managed - awsjet - kind: TargetGroup - listKind: TargetGroupList - plural: targetgroups - singular: targetgroup + kind: LBTargetGroup + listKind: LBTargetGroupList + plural: lbtargetgroups + singular: lbtargetgroup scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: TargetGroup is the Schema for the TargetGroups API + description: LBTargetGroup is the Schema for the LBTargetGroups API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -49,7 +49,7 @@ spec: metadata: type: object spec: - description: TargetGroupSpec defines the desired state of TargetGroup + description: LBTargetGroupSpec defines the desired state of LBTargetGroup properties: deletionPolicy: default: Delete @@ -212,7 +212,7 @@ spec: - forProvider type: object status: - description: TargetGroupStatus defines the observed state of TargetGroup. + description: LBTargetGroupStatus defines the observed state of LBTargetGroup. properties: atProvider: properties: diff --git a/package/crds/rds.aws.jet.crossplane.io_dbclusters.yaml b/package/crds/rds.aws.jet.crossplane.io_clusters.yaml similarity index 97% rename from package/crds/rds.aws.jet.crossplane.io_dbclusters.yaml rename to package/crds/rds.aws.jet.crossplane.io_clusters.yaml index 23fb8b684..cc0fbd2ca 100644 --- a/package/crds/rds.aws.jet.crossplane.io_dbclusters.yaml +++ b/package/crds/rds.aws.jet.crossplane.io_clusters.yaml @@ -4,7 +4,7 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: dbclusters.rds.aws.jet.crossplane.io + name: clusters.rds.aws.jet.crossplane.io spec: group: rds.aws.jet.crossplane.io names: @@ -12,10 +12,10 @@ spec: - crossplane - managed - awsjet - kind: DBCluster - listKind: DBClusterList - plural: dbclusters - singular: dbcluster + kind: Cluster + listKind: ClusterList + plural: clusters + singular: cluster scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: DBCluster is the Schema for the DBClusters API + description: Cluster is the Schema for the Clusters API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -49,7 +49,7 @@ spec: metadata: type: object spec: - description: DBClusterSpec defines the desired state of DBCluster + description: ClusterSpec defines the desired state of Cluster properties: deletionPolicy: default: Delete @@ -268,7 +268,7 @@ spec: - forProvider type: object status: - description: DBClusterStatus defines the observed state of DBCluster. + description: ClusterStatus defines the observed state of Cluster. properties: atProvider: properties: diff --git a/package/crds/rds.aws.jet.crossplane.io_dbinstances.yaml b/package/crds/rds.aws.jet.crossplane.io_instances.yaml similarity index 98% rename from package/crds/rds.aws.jet.crossplane.io_dbinstances.yaml rename to package/crds/rds.aws.jet.crossplane.io_instances.yaml index 96e009268..a729ebcc3 100644 --- a/package/crds/rds.aws.jet.crossplane.io_dbinstances.yaml +++ b/package/crds/rds.aws.jet.crossplane.io_instances.yaml @@ -4,7 +4,7 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: dbinstances.rds.aws.jet.crossplane.io + name: instances.rds.aws.jet.crossplane.io spec: group: rds.aws.jet.crossplane.io names: @@ -12,10 +12,10 @@ spec: - crossplane - managed - awsjet - kind: DBInstance - listKind: DBInstanceList - plural: dbinstances - singular: dbinstance + kind: Instance + listKind: InstanceList + plural: instances + singular: instance scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: DBInstance is the Schema for the DBInstances API + description: Instance is the Schema for the Instances API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -49,7 +49,7 @@ spec: metadata: type: object spec: - description: DBInstanceSpec defines the desired state of DBInstance + description: InstanceSpec defines the desired state of Instance properties: deletionPolicy: default: Delete @@ -445,7 +445,7 @@ spec: - forProvider type: object status: - description: DBInstanceStatus defines the observed state of DBInstance. + description: InstanceStatus defines the observed state of Instance. properties: atProvider: properties: diff --git a/package/crds/rds.aws.jet.crossplane.io_dbparametergroups.yaml b/package/crds/rds.aws.jet.crossplane.io_parametergroups.yaml similarity index 94% rename from package/crds/rds.aws.jet.crossplane.io_dbparametergroups.yaml rename to package/crds/rds.aws.jet.crossplane.io_parametergroups.yaml index 070377f8f..7c68c4160 100644 --- a/package/crds/rds.aws.jet.crossplane.io_dbparametergroups.yaml +++ b/package/crds/rds.aws.jet.crossplane.io_parametergroups.yaml @@ -4,7 +4,7 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: dbparametergroups.rds.aws.jet.crossplane.io + name: parametergroups.rds.aws.jet.crossplane.io spec: group: rds.aws.jet.crossplane.io names: @@ -12,10 +12,10 @@ spec: - crossplane - managed - awsjet - kind: DBParameterGroup - listKind: DBParameterGroupList - plural: dbparametergroups - singular: dbparametergroup + kind: ParameterGroup + listKind: ParameterGroupList + plural: parametergroups + singular: parametergroup scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: DBParameterGroup is the Schema for the DBParameterGroups API + description: ParameterGroup is the Schema for the ParameterGroups API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -49,7 +49,7 @@ spec: metadata: type: object spec: - description: DBParameterGroupSpec defines the desired state of DBParameterGroup + description: ParameterGroupSpec defines the desired state of ParameterGroup properties: deletionPolicy: default: Delete @@ -137,7 +137,7 @@ spec: - forProvider type: object status: - description: DBParameterGroupStatus defines the observed state of DBParameterGroup. + description: ParameterGroupStatus defines the observed state of ParameterGroup. properties: atProvider: properties: diff --git a/package/crds/route53.aws.jet.crossplane.io_resolverdnssecconfigs.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_dnssecconfigs.yaml similarity index 92% rename from package/crds/route53.aws.jet.crossplane.io_resolverdnssecconfigs.yaml rename to package/crds/route53resolver.aws.jet.crossplane.io_dnssecconfigs.yaml index 7f58aca87..0ab9dafcf 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverdnssecconfigs.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_dnssecconfigs.yaml @@ -4,18 +4,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: resolverdnssecconfigs.route53.aws.jet.crossplane.io + name: dnssecconfigs.route53resolver.aws.jet.crossplane.io spec: - group: route53.aws.jet.crossplane.io + group: route53resolver.aws.jet.crossplane.io names: categories: - crossplane - managed - awsjet - kind: ResolverDNSSECConfig - listKind: ResolverDNSSECConfigList - plural: resolverdnssecconfigs - singular: resolverdnssecconfig + kind: DNSSECConfig + listKind: DNSSECConfigList + plural: dnssecconfigs + singular: dnssecconfig scope: Cluster versions: - additionalPrinterColumns: @@ -34,8 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ResolverDNSSECConfig is the Schema for the ResolverDNSSECConfigs - API + description: DNSSECConfig is the Schema for the DNSSECConfigs API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -50,7 +49,7 @@ spec: metadata: type: object spec: - description: ResolverDNSSECConfigSpec defines the desired state of ResolverDNSSECConfig + description: DNSSECConfigSpec defines the desired state of DNSSECConfig properties: deletionPolicy: default: Delete @@ -118,8 +117,7 @@ spec: - forProvider type: object status: - description: ResolverDNSSECConfigStatus defines the observed state of - ResolverDNSSECConfig. + description: DNSSECConfigStatus defines the observed state of DNSSECConfig. properties: atProvider: properties: diff --git a/package/crds/route53.aws.jet.crossplane.io_resolverendpoints.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_endpoints.yaml similarity index 93% rename from package/crds/route53.aws.jet.crossplane.io_resolverendpoints.yaml rename to package/crds/route53resolver.aws.jet.crossplane.io_endpoints.yaml index 3ba999635..3afca086a 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverendpoints.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_endpoints.yaml @@ -4,18 +4,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: resolverendpoints.route53.aws.jet.crossplane.io + name: endpoints.route53resolver.aws.jet.crossplane.io spec: - group: route53.aws.jet.crossplane.io + group: route53resolver.aws.jet.crossplane.io names: categories: - crossplane - managed - awsjet - kind: ResolverEndpoint - listKind: ResolverEndpointList - plural: resolverendpoints - singular: resolverendpoint + kind: Endpoint + listKind: EndpointList + plural: endpoints + singular: endpoint scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ResolverEndpoint is the Schema for the ResolverEndpoints API + description: Endpoint is the Schema for the Endpoints API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -49,7 +49,7 @@ spec: metadata: type: object spec: - description: ResolverEndpointSpec defines the desired state of ResolverEndpoint + description: EndpointSpec defines the desired state of Endpoint properties: deletionPolicy: default: Delete @@ -140,7 +140,7 @@ spec: - forProvider type: object status: - description: ResolverEndpointStatus defines the observed state of ResolverEndpoint. + description: EndpointStatus defines the observed state of Endpoint. properties: atProvider: properties: diff --git a/package/crds/route53.aws.jet.crossplane.io_resolverfirewallconfigs.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_firewallconfigs.yaml similarity index 91% rename from package/crds/route53.aws.jet.crossplane.io_resolverfirewallconfigs.yaml rename to package/crds/route53resolver.aws.jet.crossplane.io_firewallconfigs.yaml index d52f2d941..a79486568 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverfirewallconfigs.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_firewallconfigs.yaml @@ -4,18 +4,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: resolverfirewallconfigs.route53.aws.jet.crossplane.io + name: firewallconfigs.route53resolver.aws.jet.crossplane.io spec: - group: route53.aws.jet.crossplane.io + group: route53resolver.aws.jet.crossplane.io names: categories: - crossplane - managed - awsjet - kind: ResolverFirewallConfig - listKind: ResolverFirewallConfigList - plural: resolverfirewallconfigs - singular: resolverfirewallconfig + kind: FirewallConfig + listKind: FirewallConfigList + plural: firewallconfigs + singular: firewallconfig scope: Cluster versions: - additionalPrinterColumns: @@ -34,8 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ResolverFirewallConfig is the Schema for the ResolverFirewallConfigs - API + description: FirewallConfig is the Schema for the FirewallConfigs API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -50,7 +49,7 @@ spec: metadata: type: object spec: - description: ResolverFirewallConfigSpec defines the desired state of ResolverFirewallConfig + description: FirewallConfigSpec defines the desired state of FirewallConfig properties: deletionPolicy: default: Delete @@ -120,8 +119,7 @@ spec: - forProvider type: object status: - description: ResolverFirewallConfigStatus defines the observed state of - ResolverFirewallConfig. + description: FirewallConfigStatus defines the observed state of FirewallConfig. properties: atProvider: properties: diff --git a/package/crds/route53.aws.jet.crossplane.io_resolverfirewalldomainlists.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_firewalldomainlists.yaml similarity index 91% rename from package/crds/route53.aws.jet.crossplane.io_resolverfirewalldomainlists.yaml rename to package/crds/route53resolver.aws.jet.crossplane.io_firewalldomainlists.yaml index 63f97a98b..f1874d5db 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverfirewalldomainlists.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_firewalldomainlists.yaml @@ -4,18 +4,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: resolverfirewalldomainlists.route53.aws.jet.crossplane.io + name: firewalldomainlists.route53resolver.aws.jet.crossplane.io spec: - group: route53.aws.jet.crossplane.io + group: route53resolver.aws.jet.crossplane.io names: categories: - crossplane - managed - awsjet - kind: ResolverFirewallDomainList - listKind: ResolverFirewallDomainListList - plural: resolverfirewalldomainlists - singular: resolverfirewalldomainlist + kind: FirewallDomainList + listKind: FirewallDomainListList + plural: firewalldomainlists + singular: firewalldomainlist scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ResolverFirewallDomainList is the Schema for the ResolverFirewallDomainLists + description: FirewallDomainList is the Schema for the FirewallDomainLists API properties: apiVersion: @@ -50,8 +50,7 @@ spec: metadata: type: object spec: - description: ResolverFirewallDomainListSpec defines the desired state - of ResolverFirewallDomainList + description: FirewallDomainListSpec defines the desired state of FirewallDomainList properties: deletionPolicy: default: Delete @@ -127,8 +126,7 @@ spec: - forProvider type: object status: - description: ResolverFirewallDomainListStatus defines the observed state - of ResolverFirewallDomainList. + description: FirewallDomainListStatus defines the observed state of FirewallDomainList. properties: atProvider: properties: diff --git a/package/crds/route53.aws.jet.crossplane.io_resolverfirewallrulegroupassociations.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_firewallrulegroupassociations.yaml similarity index 90% rename from package/crds/route53.aws.jet.crossplane.io_resolverfirewallrulegroupassociations.yaml rename to package/crds/route53resolver.aws.jet.crossplane.io_firewallrulegroupassociations.yaml index ab866839a..84dd06e7e 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverfirewallrulegroupassociations.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_firewallrulegroupassociations.yaml @@ -4,18 +4,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: resolverfirewallrulegroupassociations.route53.aws.jet.crossplane.io + name: firewallrulegroupassociations.route53resolver.aws.jet.crossplane.io spec: - group: route53.aws.jet.crossplane.io + group: route53resolver.aws.jet.crossplane.io names: categories: - crossplane - managed - awsjet - kind: ResolverFirewallRuleGroupAssociation - listKind: ResolverFirewallRuleGroupAssociationList - plural: resolverfirewallrulegroupassociations - singular: resolverfirewallrulegroupassociation + kind: FirewallRuleGroupAssociation + listKind: FirewallRuleGroupAssociationList + plural: firewallrulegroupassociations + singular: firewallrulegroupassociation scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ResolverFirewallRuleGroupAssociation is the Schema for the ResolverFirewallRuleGroupAssociations + description: FirewallRuleGroupAssociation is the Schema for the FirewallRuleGroupAssociations API properties: apiVersion: @@ -50,8 +50,8 @@ spec: metadata: type: object spec: - description: ResolverFirewallRuleGroupAssociationSpec defines the desired - state of ResolverFirewallRuleGroupAssociation + description: FirewallRuleGroupAssociationSpec defines the desired state + of FirewallRuleGroupAssociation properties: deletionPolicy: default: Delete @@ -135,8 +135,8 @@ spec: - forProvider type: object status: - description: ResolverFirewallRuleGroupAssociationStatus defines the observed - state of ResolverFirewallRuleGroupAssociation. + description: FirewallRuleGroupAssociationStatus defines the observed state + of FirewallRuleGroupAssociation. properties: atProvider: properties: diff --git a/package/crds/route53.aws.jet.crossplane.io_resolverfirewallrulegroups.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_firewallrulegroups.yaml similarity index 91% rename from package/crds/route53.aws.jet.crossplane.io_resolverfirewallrulegroups.yaml rename to package/crds/route53resolver.aws.jet.crossplane.io_firewallrulegroups.yaml index 42c53ad0d..d586e9ea1 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverfirewallrulegroups.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_firewallrulegroups.yaml @@ -4,18 +4,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: resolverfirewallrulegroups.route53.aws.jet.crossplane.io + name: firewallrulegroups.route53resolver.aws.jet.crossplane.io spec: - group: route53.aws.jet.crossplane.io + group: route53resolver.aws.jet.crossplane.io names: categories: - crossplane - managed - awsjet - kind: ResolverFirewallRuleGroup - listKind: ResolverFirewallRuleGroupList - plural: resolverfirewallrulegroups - singular: resolverfirewallrulegroup + kind: FirewallRuleGroup + listKind: FirewallRuleGroupList + plural: firewallrulegroups + singular: firewallrulegroup scope: Cluster versions: - additionalPrinterColumns: @@ -34,8 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ResolverFirewallRuleGroup is the Schema for the ResolverFirewallRuleGroups - API + description: FirewallRuleGroup is the Schema for the FirewallRuleGroups API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -50,8 +49,7 @@ spec: metadata: type: object spec: - description: ResolverFirewallRuleGroupSpec defines the desired state of - ResolverFirewallRuleGroup + description: FirewallRuleGroupSpec defines the desired state of FirewallRuleGroup properties: deletionPolicy: default: Delete @@ -123,8 +121,7 @@ spec: - forProvider type: object status: - description: ResolverFirewallRuleGroupStatus defines the observed state - of ResolverFirewallRuleGroup. + description: FirewallRuleGroupStatus defines the observed state of FirewallRuleGroup. properties: atProvider: properties: diff --git a/package/crds/route53.aws.jet.crossplane.io_resolverfirewallrules.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_firewallrules.yaml similarity index 92% rename from package/crds/route53.aws.jet.crossplane.io_resolverfirewallrules.yaml rename to package/crds/route53resolver.aws.jet.crossplane.io_firewallrules.yaml index 711d384a8..8ceb9add6 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverfirewallrules.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_firewallrules.yaml @@ -4,18 +4,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: resolverfirewallrules.route53.aws.jet.crossplane.io + name: firewallrules.route53resolver.aws.jet.crossplane.io spec: - group: route53.aws.jet.crossplane.io + group: route53resolver.aws.jet.crossplane.io names: categories: - crossplane - managed - awsjet - kind: ResolverFirewallRule - listKind: ResolverFirewallRuleList - plural: resolverfirewallrules - singular: resolverfirewallrule + kind: FirewallRule + listKind: FirewallRuleList + plural: firewallrules + singular: firewallrule scope: Cluster versions: - additionalPrinterColumns: @@ -34,8 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ResolverFirewallRule is the Schema for the ResolverFirewallRules - API + description: FirewallRule is the Schema for the FirewallRules API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -50,7 +49,7 @@ spec: metadata: type: object spec: - description: ResolverFirewallRuleSpec defines the desired state of ResolverFirewallRule + description: FirewallRuleSpec defines the desired state of FirewallRule properties: deletionPolicy: default: Delete @@ -140,8 +139,7 @@ spec: - forProvider type: object status: - description: ResolverFirewallRuleStatus defines the observed state of - ResolverFirewallRule. + description: FirewallRuleStatus defines the observed state of FirewallRule. properties: atProvider: properties: diff --git a/package/crds/route53.aws.jet.crossplane.io_resolverquerylogconfigassociations.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigassociations.yaml similarity index 90% rename from package/crds/route53.aws.jet.crossplane.io_resolverquerylogconfigassociations.yaml rename to package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigassociations.yaml index 23a6665ea..6cb8413e9 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverquerylogconfigassociations.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigassociations.yaml @@ -4,18 +4,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: resolverquerylogconfigassociations.route53.aws.jet.crossplane.io + name: querylogconfigassociations.route53resolver.aws.jet.crossplane.io spec: - group: route53.aws.jet.crossplane.io + group: route53resolver.aws.jet.crossplane.io names: categories: - crossplane - managed - awsjet - kind: ResolverQueryLogConfigAssociation - listKind: ResolverQueryLogConfigAssociationList - plural: resolverquerylogconfigassociations - singular: resolverquerylogconfigassociation + kind: QueryLogConfigAssociation + listKind: QueryLogConfigAssociationList + plural: querylogconfigassociations + singular: querylogconfigassociation scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ResolverQueryLogConfigAssociation is the Schema for the ResolverQueryLogConfigAssociations + description: QueryLogConfigAssociation is the Schema for the QueryLogConfigAssociations API properties: apiVersion: @@ -50,8 +50,8 @@ spec: metadata: type: object spec: - description: ResolverQueryLogConfigAssociationSpec defines the desired - state of ResolverQueryLogConfigAssociation + description: QueryLogConfigAssociationSpec defines the desired state of + QueryLogConfigAssociation properties: deletionPolicy: default: Delete @@ -122,8 +122,8 @@ spec: - forProvider type: object status: - description: ResolverQueryLogConfigAssociationStatus defines the observed - state of ResolverQueryLogConfigAssociation. + description: QueryLogConfigAssociationStatus defines the observed state + of QueryLogConfigAssociation. properties: atProvider: properties: diff --git a/package/crds/route53.aws.jet.crossplane.io_resolverquerylogconfigs.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigs.yaml similarity index 92% rename from package/crds/route53.aws.jet.crossplane.io_resolverquerylogconfigs.yaml rename to package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigs.yaml index 1682fd323..e43b6e524 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverquerylogconfigs.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigs.yaml @@ -4,18 +4,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: resolverquerylogconfigs.route53.aws.jet.crossplane.io + name: querylogconfigs.route53resolver.aws.jet.crossplane.io spec: - group: route53.aws.jet.crossplane.io + group: route53resolver.aws.jet.crossplane.io names: categories: - crossplane - managed - awsjet - kind: ResolverQueryLogConfig - listKind: ResolverQueryLogConfigList - plural: resolverquerylogconfigs - singular: resolverquerylogconfig + kind: QueryLogConfig + listKind: QueryLogConfigList + plural: querylogconfigs + singular: querylogconfig scope: Cluster versions: - additionalPrinterColumns: @@ -34,8 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ResolverQueryLogConfig is the Schema for the ResolverQueryLogConfigs - API + description: QueryLogConfig is the Schema for the QueryLogConfigs API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -50,7 +49,7 @@ spec: metadata: type: object spec: - description: ResolverQueryLogConfigSpec defines the desired state of ResolverQueryLogConfig + description: QueryLogConfigSpec defines the desired state of QueryLogConfig properties: deletionPolicy: default: Delete @@ -125,8 +124,7 @@ spec: - forProvider type: object status: - description: ResolverQueryLogConfigStatus defines the observed state of - ResolverQueryLogConfig. + description: QueryLogConfigStatus defines the observed state of QueryLogConfig. properties: atProvider: properties: diff --git a/package/crds/route53.aws.jet.crossplane.io_resolverruleassociations.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_ruleassociations.yaml similarity index 91% rename from package/crds/route53.aws.jet.crossplane.io_resolverruleassociations.yaml rename to package/crds/route53resolver.aws.jet.crossplane.io_ruleassociations.yaml index 4874231a7..d1d6bf3b9 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverruleassociations.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_ruleassociations.yaml @@ -4,18 +4,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: resolverruleassociations.route53.aws.jet.crossplane.io + name: ruleassociations.route53resolver.aws.jet.crossplane.io spec: - group: route53.aws.jet.crossplane.io + group: route53resolver.aws.jet.crossplane.io names: categories: - crossplane - managed - awsjet - kind: ResolverRuleAssociation - listKind: ResolverRuleAssociationList - plural: resolverruleassociations - singular: resolverruleassociation + kind: RuleAssociation + listKind: RuleAssociationList + plural: ruleassociations + singular: ruleassociation scope: Cluster versions: - additionalPrinterColumns: @@ -34,8 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ResolverRuleAssociation is the Schema for the ResolverRuleAssociations - API + description: RuleAssociation is the Schema for the RuleAssociations API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -50,8 +49,7 @@ spec: metadata: type: object spec: - description: ResolverRuleAssociationSpec defines the desired state of - ResolverRuleAssociation + description: RuleAssociationSpec defines the desired state of RuleAssociation properties: deletionPolicy: default: Delete @@ -124,8 +122,7 @@ spec: - forProvider type: object status: - description: ResolverRuleAssociationStatus defines the observed state - of ResolverRuleAssociation. + description: RuleAssociationStatus defines the observed state of RuleAssociation. properties: atProvider: properties: diff --git a/package/crds/route53.aws.jet.crossplane.io_resolverrules.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_rules.yaml similarity index 94% rename from package/crds/route53.aws.jet.crossplane.io_resolverrules.yaml rename to package/crds/route53resolver.aws.jet.crossplane.io_rules.yaml index ccc4f611d..e964c686f 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverrules.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_rules.yaml @@ -4,18 +4,18 @@ metadata: annotations: controller-gen.kubebuilder.io/version: v0.6.2 creationTimestamp: null - name: resolverrules.route53.aws.jet.crossplane.io + name: rules.route53resolver.aws.jet.crossplane.io spec: - group: route53.aws.jet.crossplane.io + group: route53resolver.aws.jet.crossplane.io names: categories: - crossplane - managed - awsjet - kind: ResolverRule - listKind: ResolverRuleList - plural: resolverrules - singular: resolverrule + kind: Rule + listKind: RuleList + plural: rules + singular: rule scope: Cluster versions: - additionalPrinterColumns: @@ -34,7 +34,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: ResolverRule is the Schema for the ResolverRules API + description: Rule is the Schema for the Rules API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -49,7 +49,7 @@ spec: metadata: type: object spec: - description: ResolverRuleSpec defines the desired state of ResolverRule + description: RuleSpec defines the desired state of Rule properties: deletionPolicy: default: Delete @@ -140,7 +140,7 @@ spec: - forProvider type: object status: - description: ResolverRuleStatus defines the observed state of ResolverRule. + description: RuleStatus defines the observed state of Rule. properties: atProvider: properties: