diff --git a/apis/autoscaling/v1alpha1/zz_attachment_terraformed.go b/apis/autoscaling/v1alpha1/zz_attachment_terraformed.go index a936ff7ca..2229da230 100755 --- a/apis/autoscaling/v1alpha1/zz_attachment_terraformed.go +++ b/apis/autoscaling/v1alpha1/zz_attachment_terraformed.go @@ -54,6 +54,14 @@ func (tr *Attachment) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this Attachment +func (tr *Attachment) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this Attachment func (tr *Attachment) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/autoscaling/v1alpha1/zz_attachment_types.go b/apis/autoscaling/v1alpha1/zz_attachment_types.go index bb60ca2c6..71f99bbc9 100755 --- a/apis/autoscaling/v1alpha1/zz_attachment_types.go +++ b/apis/autoscaling/v1alpha1/zz_attachment_types.go @@ -26,20 +26,21 @@ import ( ) type AttachmentObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` } 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.TargetGroup // +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"` + ALBTargetGroupArn *string `json:"albTargetGroupArn,omitempty" tf:"alb_target_group_arn,omitempty"` // +kubebuilder:validation:Optional - AlbTargetGroupArnRef *v1.Reference `json:"albTargetGroupArnRef,omitempty" tf:"-"` + ALBTargetGroupArnRef *v1.Reference `json:"albTargetGroupArnRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - AlbTargetGroupArnSelector *v1.Selector `json:"albTargetGroupArnSelector,omitempty" tf:"-"` + ALBTargetGroupArnSelector *v1.Selector `json:"albTargetGroupArnSelector,omitempty" tf:"-"` // +crossplane:generate:reference:type=AutoscalingGroup // +kubebuilder:validation:Optional diff --git a/apis/autoscaling/v1alpha1/zz_autoscalinggroup_terraformed.go b/apis/autoscaling/v1alpha1/zz_autoscalinggroup_terraformed.go index 1fb26d1ee..75edd6d7d 100755 --- a/apis/autoscaling/v1alpha1/zz_autoscalinggroup_terraformed.go +++ b/apis/autoscaling/v1alpha1/zz_autoscalinggroup_terraformed.go @@ -54,6 +54,14 @@ func (tr *AutoscalingGroup) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this AutoscalingGroup +func (tr *AutoscalingGroup) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this AutoscalingGroup func (tr *AutoscalingGroup) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/autoscaling/v1alpha1/zz_autoscalinggroup_types.go b/apis/autoscaling/v1alpha1/zz_autoscalinggroup_types.go index 58f30f991..20c913f11 100755 --- a/apis/autoscaling/v1alpha1/zz_autoscalinggroup_types.go +++ b/apis/autoscaling/v1alpha1/zz_autoscalinggroup_types.go @@ -28,6 +28,8 @@ import ( type AutoscalingGroupObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + LoadBalancers []*string `json:"loadBalancers,omitempty" tf:"load_balancers,omitempty"` TargetGroupArns []*string `json:"targetGroupArns,omitempty" tf:"target_group_arns,omitempty"` @@ -120,13 +122,13 @@ type AutoscalingGroupParameters struct { // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha1.Subnet // +kubebuilder:validation:Optional - VpcZoneIdentifier []*string `json:"vpcZoneIdentifier,omitempty" tf:"vpc_zone_identifier,omitempty"` + VPCZoneIdentifier []*string `json:"vpcZoneIdentifier,omitempty" tf:"vpc_zone_identifier,omitempty"` // +kubebuilder:validation:Optional - VpcZoneIdentifierRefs []v1.Reference `json:"vpcZoneIdentifierRefs,omitempty" tf:"-"` + VPCZoneIdentifierRefs []v1.Reference `json:"vpcZoneIdentifierRefs,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcZoneIdentifierSelector *v1.Selector `json:"vpcZoneIdentifierSelector,omitempty" tf:"-"` + VPCZoneIdentifierSelector *v1.Selector `json:"vpcZoneIdentifierSelector,omitempty" tf:"-"` // +kubebuilder:validation:Optional WaitForCapacityTimeout *string `json:"waitForCapacityTimeout,omitempty" tf:"wait_for_capacity_timeout,omitempty"` diff --git a/apis/autoscaling/v1alpha1/zz_generated.deepcopy.go b/apis/autoscaling/v1alpha1/zz_generated.deepcopy.go index 47657bb56..cc46b3a07 100644 --- a/apis/autoscaling/v1alpha1/zz_generated.deepcopy.go +++ b/apis/autoscaling/v1alpha1/zz_generated.deepcopy.go @@ -87,6 +87,11 @@ func (in *AttachmentList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AttachmentObservation) DeepCopyInto(out *AttachmentObservation) { *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 AttachmentObservation. @@ -102,18 +107,18 @@ func (in *AttachmentObservation) DeepCopy() *AttachmentObservation { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AttachmentParameters) DeepCopyInto(out *AttachmentParameters) { *out = *in - if in.AlbTargetGroupArn != nil { - in, out := &in.AlbTargetGroupArn, &out.AlbTargetGroupArn + if in.ALBTargetGroupArn != nil { + in, out := &in.ALBTargetGroupArn, &out.ALBTargetGroupArn *out = new(string) **out = **in } - if in.AlbTargetGroupArnRef != nil { - in, out := &in.AlbTargetGroupArnRef, &out.AlbTargetGroupArnRef + if in.ALBTargetGroupArnRef != nil { + in, out := &in.ALBTargetGroupArnRef, &out.ALBTargetGroupArnRef *out = new(v1.Reference) **out = **in } - if in.AlbTargetGroupArnSelector != nil { - in, out := &in.AlbTargetGroupArnSelector, &out.AlbTargetGroupArnSelector + if in.ALBTargetGroupArnSelector != nil { + in, out := &in.ALBTargetGroupArnSelector, &out.ALBTargetGroupArnSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -175,7 +180,7 @@ func (in *AttachmentSpec) DeepCopy() *AttachmentSpec { func (in *AttachmentStatus) DeepCopyInto(out *AttachmentStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - out.AtProvider = in.AtProvider + in.AtProvider.DeepCopyInto(&out.AtProvider) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttachmentStatus. @@ -255,6 +260,11 @@ func (in *AutoscalingGroupObservation) DeepCopyInto(out *AutoscalingGroupObserva *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.LoadBalancers != nil { in, out := &in.LoadBalancers, &out.LoadBalancers *out = make([]*string, len(*in)) @@ -477,8 +487,8 @@ func (in *AutoscalingGroupParameters) DeepCopyInto(out *AutoscalingGroupParamete } } } - if in.VpcZoneIdentifier != nil { - in, out := &in.VpcZoneIdentifier, &out.VpcZoneIdentifier + if in.VPCZoneIdentifier != nil { + in, out := &in.VPCZoneIdentifier, &out.VPCZoneIdentifier *out = make([]*string, len(*in)) for i := range *in { if (*in)[i] != nil { @@ -488,13 +498,13 @@ func (in *AutoscalingGroupParameters) DeepCopyInto(out *AutoscalingGroupParamete } } } - if in.VpcZoneIdentifierRefs != nil { - in, out := &in.VpcZoneIdentifierRefs, &out.VpcZoneIdentifierRefs + if in.VPCZoneIdentifierRefs != nil { + in, out := &in.VPCZoneIdentifierRefs, &out.VPCZoneIdentifierRefs *out = make([]v1.Reference, len(*in)) copy(*out, *in) } - if in.VpcZoneIdentifierSelector != nil { - in, out := &in.VpcZoneIdentifierSelector, &out.VpcZoneIdentifierSelector + if in.VPCZoneIdentifierSelector != nil { + in, out := &in.VPCZoneIdentifierSelector, &out.VPCZoneIdentifierSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } diff --git a/apis/autoscaling/v1alpha1/zz_generated.resolvers.go b/apis/autoscaling/v1alpha1/zz_generated.resolvers.go index 9337bcf29..e1325fbca 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" @@ -35,20 +35,20 @@ func (mg *Attachment) ResolveReferences(ctx context.Context, c client.Reader) er var err error rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.AlbTargetGroupArn), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ALBTargetGroupArn), Extract: common.ARNExtractor(), - Reference: mg.Spec.ForProvider.AlbTargetGroupArnRef, - Selector: mg.Spec.ForProvider.AlbTargetGroupArnSelector, + Reference: mg.Spec.ForProvider.ALBTargetGroupArnRef, + Selector: mg.Spec.ForProvider.ALBTargetGroupArnSelector, To: reference.To{ List: &v1alpha1.TargetGroupList{}, Managed: &v1alpha1.TargetGroup{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.AlbTargetGroupArn") + return errors.Wrap(err, "mg.Spec.ForProvider.ALBTargetGroupArn") } - mg.Spec.ForProvider.AlbTargetGroupArn = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.AlbTargetGroupArnRef = rsp.ResolvedReference + mg.Spec.ForProvider.ALBTargetGroupArn = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.ALBTargetGroupArnRef = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.AutoscalingGroupName), @@ -77,20 +77,20 @@ func (mg *AutoscalingGroup) ResolveReferences(ctx context.Context, c client.Read var err error mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ - CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.VpcZoneIdentifier), + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.VPCZoneIdentifier), Extract: reference.ExternalName(), - References: mg.Spec.ForProvider.VpcZoneIdentifierRefs, - Selector: mg.Spec.ForProvider.VpcZoneIdentifierSelector, + References: mg.Spec.ForProvider.VPCZoneIdentifierRefs, + Selector: mg.Spec.ForProvider.VPCZoneIdentifierSelector, To: reference.To{ List: &v1alpha11.SubnetList{}, Managed: &v1alpha11.Subnet{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.VpcZoneIdentifier") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCZoneIdentifier") } - mg.Spec.ForProvider.VpcZoneIdentifier = reference.ToPtrValues(mrsp.ResolvedValues) - mg.Spec.ForProvider.VpcZoneIdentifierRefs = mrsp.ResolvedReferences + mg.Spec.ForProvider.VPCZoneIdentifier = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.VPCZoneIdentifierRefs = mrsp.ResolvedReferences return nil } diff --git a/apis/ebs/v1alpha1/zz_generated.deepcopy.go b/apis/ebs/v1alpha1/zz_generated.deepcopy.go deleted file mode 100644 index 1bc62cd96..000000000 --- a/apis/ebs/v1alpha1/zz_generated.deepcopy.go +++ /dev/null @@ -1,249 +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.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 f1c19b655..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/ebs/v1alpha1/zz_volume_terraformed.go b/apis/ec2/v1alpha1/zz_ebsvolume_terraformed.go similarity index 66% rename from apis/ebs/v1alpha1/zz_volume_terraformed.go rename to apis/ec2/v1alpha1/zz_ebsvolume_terraformed.go index a636a2577..e5d682118 100755 --- a/apis/ebs/v1alpha1/zz_volume_terraformed.go +++ b/apis/ec2/v1alpha1/zz_ebsvolume_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane-contrib/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this Volume -func (mg *Volume) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this EBSVolume +func (mg *EBSVolume) GetTerraformResourceType() string { return "aws_ebs_volume" } -// GetConnectionDetailsMapping for this Volume -func (tr *Volume) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this EBSVolume +func (tr *EBSVolume) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this Volume -func (tr *Volume) 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 *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 EBSVolume +func (tr *EBSVolume) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,8 +54,16 @@ func (tr *Volume) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this Volume -func (tr *Volume) GetParameters() (map[string]interface{}, error) { +// 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 EBSVolume +func (tr *EBSVolume) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,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 EBSVolume +func (tr *EBSVolume) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -73,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 EBSVolume 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 *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") } @@ -87,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 *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 72% rename from apis/ebs/v1alpha1/zz_volume_types.go rename to apis/ec2/v1alpha1/zz_ebsvolume_types.go index 7b6d7c1dd..8e255a45f 100755 --- a/apis/ebs/v1alpha1/zz_volume_types.go +++ b/apis/ec2/v1alpha1/zz_ebsvolume_types.go @@ -25,13 +25,15 @@ 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"` + 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"` @@ -44,13 +46,13 @@ type VolumeParameters struct { // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/kms/v1alpha1.Key // +kubebuilder:validation:Optional - KmsKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"` + KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"` // +kubebuilder:validation:Optional - KmsKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"` + KMSKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - KmsKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"` + KMSKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"` // +kubebuilder:validation:Optional MultiAttachEnabled *bool `json:"multiAttachEnabled,omitempty" tf:"multi_attach_enabled,omitempty"` @@ -79,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_elasticip_terraformed.go b/apis/ec2/v1alpha1/zz_eip_terraformed.go similarity index 68% rename from apis/ec2/v1alpha1/zz_elasticip_terraformed.go rename to apis/ec2/v1alpha1/zz_eip_terraformed.go index 930fd0609..7fe4c3177 100755 --- a/apis/ec2/v1alpha1/zz_elasticip_terraformed.go +++ b/apis/ec2/v1alpha1/zz_eip_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane-contrib/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ElasticIP -func (mg *ElasticIP) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this Eip +func (mg *Eip) GetTerraformResourceType() string { return "aws_eip" } -// GetConnectionDetailsMapping for this ElasticIP -func (tr *ElasticIP) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this Eip +func (tr *Eip) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ElasticIP -func (tr *ElasticIP) GetObservation() (map[string]interface{}, error) { +// 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 @@ -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 Eip +func (tr *Eip) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,8 +54,16 @@ func (tr *ElasticIP) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this ElasticIP -func (tr *ElasticIP) GetParameters() (map[string]interface{}, error) { +// 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 @@ -64,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 Eip +func (tr *Eip) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -73,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 Eip 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 *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") } @@ -87,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 *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 80% rename from apis/ec2/v1alpha1/zz_elasticip_types.go rename to apis/ec2/v1alpha1/zz_eip_types.go index fc294576e..852b561e0 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"` @@ -36,6 +36,8 @@ type ElasticIPObservation struct { Domain *string `json:"domain,omitempty" tf:"domain,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + PrivateDNS *string `json:"privateDns,omitempty" tf:"private_dns,omitempty"` PrivateIP *string `json:"privateIp,omitempty" tf:"private_ip,omitempty"` @@ -47,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"` @@ -93,54 +95,54 @@ type ElasticIPParameters struct { Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` // +kubebuilder:validation:Optional - Vpc *bool `json:"vpc,omitempty" tf:"vpc,omitempty"` + 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 0cd7e4772..0dbf8f371 100644 --- a/apis/ec2/v1alpha1/zz_generated.deepcopy.go +++ b/apis/ec2/v1alpha1/zz_generated.deepcopy.go @@ -43,18 +43,18 @@ func (in *AccepterObservation) DeepCopy() *AccepterObservation { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AccepterParameters) DeepCopyInto(out *AccepterParameters) { *out = *in - if in.AllowClassicLinkToRemoteVpc != nil { - in, out := &in.AllowClassicLinkToRemoteVpc, &out.AllowClassicLinkToRemoteVpc + 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 + 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 + if in.AllowVPCToRemoteClassicLink != nil { + in, out := &in.AllowVPCToRemoteClassicLink, &out.AllowVPCToRemoteClassicLink *out = new(bool) **out = **in } @@ -148,9 +148,9 @@ func (in *BlockDeviceMappingsParameters) DeepCopyInto(out *BlockDeviceMappingsPa *out = new(string) **out = **in } - if in.Ebs != nil { - in, out := &in.Ebs, &out.Ebs - *out = make([]EbsParameters, len(*in)) + if in.EBS != nil { + in, out := &in.EBS, &out.EBS + *out = make([]EBSParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -405,7 +405,7 @@ func (in *DNSEntryParameters) DeepCopy() *DNSEntryParameters { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EbsBlockDeviceObservation) DeepCopyInto(out *EbsBlockDeviceObservation) { +func (in *EBSBlockDeviceObservation) DeepCopyInto(out *EBSBlockDeviceObservation) { *out = *in if in.VolumeID != nil { in, out := &in.VolumeID, &out.VolumeID @@ -414,18 +414,18 @@ func (in *EbsBlockDeviceObservation) DeepCopyInto(out *EbsBlockDeviceObservation } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EbsBlockDeviceObservation. -func (in *EbsBlockDeviceObservation) DeepCopy() *EbsBlockDeviceObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EBSBlockDeviceObservation. +func (in *EBSBlockDeviceObservation) DeepCopy() *EBSBlockDeviceObservation { if in == nil { return nil } - out := new(EbsBlockDeviceObservation) + out := new(EBSBlockDeviceObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EbsBlockDeviceParameters) DeepCopyInto(out *EbsBlockDeviceParameters) { +func (in *EBSBlockDeviceParameters) DeepCopyInto(out *EBSBlockDeviceParameters) { *out = *in if in.DeleteOnTermination != nil { in, out := &in.DeleteOnTermination, &out.DeleteOnTermination @@ -447,18 +447,18 @@ func (in *EbsBlockDeviceParameters) DeepCopyInto(out *EbsBlockDeviceParameters) *out = new(int64) **out = **in } - if in.KmsKeyID != nil { - in, out := &in.KmsKeyID, &out.KmsKeyID + 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 + 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 + if in.KMSKeyIDSelector != nil { + in, out := &in.KMSKeyIDSelector, &out.KMSKeyIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -499,33 +499,33 @@ func (in *EbsBlockDeviceParameters) DeepCopyInto(out *EbsBlockDeviceParameters) } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EbsBlockDeviceParameters. -func (in *EbsBlockDeviceParameters) DeepCopy() *EbsBlockDeviceParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EBSBlockDeviceParameters. +func (in *EBSBlockDeviceParameters) DeepCopy() *EBSBlockDeviceParameters { if in == nil { return nil } - out := new(EbsBlockDeviceParameters) + out := new(EBSBlockDeviceParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EbsObservation) DeepCopyInto(out *EbsObservation) { +func (in *EBSObservation) DeepCopyInto(out *EBSObservation) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EbsObservation. -func (in *EbsObservation) DeepCopy() *EbsObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EBSObservation. +func (in *EBSObservation) DeepCopy() *EBSObservation { if in == nil { return nil } - out := new(EbsObservation) + out := new(EBSObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EbsParameters) DeepCopyInto(out *EbsParameters) { +func (in *EBSParameters) DeepCopyInto(out *EBSParameters) { *out = *in if in.DeleteOnTermination != nil { in, out := &in.DeleteOnTermination, &out.DeleteOnTermination @@ -542,18 +542,18 @@ func (in *EbsParameters) DeepCopyInto(out *EbsParameters) { *out = new(int64) **out = **in } - if in.KmsKeyID != nil { - in, out := &in.KmsKeyID, &out.KmsKeyID + 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 + 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 + if in.KMSKeyIDSelector != nil { + in, out := &in.KMSKeyIDSelector, &out.KMSKeyIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -579,12 +579,240 @@ func (in *EbsParameters) DeepCopyInto(out *EbsParameters) { } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EbsParameters. -func (in *EbsParameters) DeepCopy() *EbsParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EBSParameters. +func (in *EBSParameters) DeepCopy() *EBSParameters { if in == nil { return nil } - out := new(EbsParameters) + out := new(EBSParameters) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +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 EBSVolume. +func (in *EBSVolume) DeepCopy() *EBSVolume { + if in == nil { + return nil + } + 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 *EBSVolumeList) DeepCopyInto(out *EBSVolumeList) { + *out = *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 { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// 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.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 EBSVolumeObservation. +func (in *EBSVolumeObservation) DeepCopy() *EBSVolumeObservation { + if in == nil { + return nil + } + 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.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 EBSVolumeParameters. +func (in *EBSVolumeParameters) DeepCopy() *EBSVolumeParameters { + if in == nil { + return nil + } + 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 *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 EBSVolumeSpec. +func (in *EBSVolumeSpec) DeepCopy() *EBSVolumeSpec { + if in == nil { + return nil + } + 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 *EBSVolumeStatus) DeepCopyInto(out *EBSVolumeStatus) { + *out = *in + in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) + in.AtProvider.DeepCopyInto(&out.AtProvider) +} + +// 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(EBSVolumeStatus) in.DeepCopyInto(out) return out } @@ -699,42 +927,7 @@ func (in *EgressParameters) DeepCopy() *EgressParameters { } // 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 *ElasticIP) DeepCopyInto(out *ElasticIP) { +func (in *Eip) DeepCopyInto(out *Eip) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -742,18 +935,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 +954,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 +986,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 @@ -820,6 +1013,11 @@ func (in *ElasticIPObservation) DeepCopyInto(out *ElasticIPObservation) { *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.PrivateDNS != nil { in, out := &in.PrivateDNS, &out.PrivateDNS *out = new(string) @@ -857,18 +1055,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 @@ -945,74 +1143,74 @@ func (in *ElasticIPParameters) DeepCopyInto(out *ElasticIPParameters) { (*out)[key] = outVal } } - if in.Vpc != nil { - in, out := &in.Vpc, &out.Vpc + if in.VPC != nil { + in, out := &in.VPC, &out.VPC *out = new(bool) **out = **in } } -// 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 *ElasticGpuSpecificationsObservation) DeepCopyInto(out *ElasticGpuSpecificationsObservation) { *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 ElasticGpuSpecificationsObservation. +func (in *ElasticGpuSpecificationsObservation) DeepCopy() *ElasticGpuSpecificationsObservation { if in == nil { return nil } - out := new(ElasticInferenceAcceleratorObservation) + 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 *ElasticInferenceAcceleratorParameters) DeepCopyInto(out *ElasticInferenceAcceleratorParameters) { +func (in *ElasticGpuSpecificationsParameters) DeepCopyInto(out *ElasticGpuSpecificationsParameters) { *out = *in if in.Type != nil { in, out := &in.Type, &out.Type @@ -1021,33 +1219,68 @@ func (in *ElasticInferenceAcceleratorParameters) DeepCopyInto(out *ElasticInfere } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticInferenceAcceleratorParameters. -func (in *ElasticInferenceAcceleratorParameters) DeepCopy() *ElasticInferenceAcceleratorParameters { +// 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(ElasticInferenceAcceleratorParameters) + 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 *EnclaveOptionsObservation) DeepCopyInto(out *EnclaveOptionsObservation) { +func (in *ElasticInferenceAcceleratorObservation) DeepCopyInto(out *ElasticInferenceAcceleratorObservation) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnclaveOptionsObservation. -func (in *EnclaveOptionsObservation) DeepCopy() *EnclaveOptionsObservation { +// 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(EnclaveOptionsObservation) + 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 *EnclaveOptionsParameters) DeepCopyInto(out *EnclaveOptionsParameters) { +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 @@ -1147,170 +1380,22 @@ func (in *HibernationOptionsParameters) DeepCopy() *HibernationOptionsParameters } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IPv4CIDRBlockAssociation) DeepCopyInto(out *IPv4CIDRBlockAssociation) { - *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 { - if in == nil { - return nil - } - out := new(IPv4CIDRBlockAssociation) - 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) { - *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)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// 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 -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPv4CIDRBlockAssociationObservation. -func (in *IPv4CIDRBlockAssociationObservation) DeepCopy() *IPv4CIDRBlockAssociationObservation { - if in == nil { - return nil - } - 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) - out.AtProvider = in.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 *IamInstanceProfileObservation) DeepCopyInto(out *IamInstanceProfileObservation) { +func (in *IAMInstanceProfileObservation) DeepCopyInto(out *IAMInstanceProfileObservation) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IamInstanceProfileObservation. -func (in *IamInstanceProfileObservation) DeepCopy() *IamInstanceProfileObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IAMInstanceProfileObservation. +func (in *IAMInstanceProfileObservation) DeepCopy() *IAMInstanceProfileObservation { if in == nil { return nil } - out := new(IamInstanceProfileObservation) + out := new(IAMInstanceProfileObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IamInstanceProfileParameters) DeepCopyInto(out *IamInstanceProfileParameters) { +func (in *IAMInstanceProfileParameters) DeepCopyInto(out *IAMInstanceProfileParameters) { *out = *in if in.Arn != nil { in, out := &in.Arn, &out.Arn @@ -1344,12 +1429,12 @@ func (in *IamInstanceProfileParameters) DeepCopyInto(out *IamInstanceProfilePara } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IamInstanceProfileParameters. -func (in *IamInstanceProfileParameters) DeepCopy() *IamInstanceProfileParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IAMInstanceProfileParameters. +func (in *IAMInstanceProfileParameters) DeepCopy() *IAMInstanceProfileParameters { if in == nil { return nil } - out := new(IamInstanceProfileParameters) + out := new(IAMInstanceProfileParameters) in.DeepCopyInto(out) return out } @@ -1572,6 +1657,11 @@ func (in *InstanceObservation) DeepCopyInto(out *InstanceObservation) { *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.InstanceState != nil { in, out := &in.InstanceState, &out.InstanceState *out = new(string) @@ -1637,8 +1727,8 @@ func (in *InstanceObservation) DeepCopy() *InstanceObservation { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *InstanceParameters) DeepCopyInto(out *InstanceParameters) { *out = *in - if in.Ami != nil { - in, out := &in.Ami, &out.Ami + if in.AMI != nil { + in, out := &in.AMI, &out.AMI *out = new(string) **out = **in } @@ -1681,15 +1771,15 @@ func (in *InstanceParameters) DeepCopyInto(out *InstanceParameters) { *out = new(bool) **out = **in } - if in.EbsBlockDevice != nil { - in, out := &in.EbsBlockDevice, &out.EbsBlockDevice - *out = make([]EbsBlockDeviceParameters, len(*in)) + if in.EBSBlockDevice != nil { + in, out := &in.EBSBlockDevice, &out.EBSBlockDevice + *out = make([]EBSBlockDeviceParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.EbsOptimized != nil { - in, out := &in.EbsOptimized, &out.EbsOptimized + if in.EBSOptimized != nil { + in, out := &in.EBSOptimized, &out.EBSOptimized *out = new(bool) **out = **in } @@ -1722,6 +1812,11 @@ func (in *InstanceParameters) DeepCopyInto(out *InstanceParameters) { *out = new(string) **out = **in } + if in.IAMInstanceProfile != nil { + in, out := &in.IAMInstanceProfile, &out.IAMInstanceProfile + *out = new(string) + **out = **in + } if in.IPv6AddressCount != nil { in, out := &in.IPv6AddressCount, &out.IPv6AddressCount *out = new(int64) @@ -1738,11 +1833,6 @@ func (in *InstanceParameters) DeepCopyInto(out *InstanceParameters) { } } } - if in.IamInstanceProfile != nil { - in, out := &in.IamInstanceProfile, &out.IamInstanceProfile - *out = new(string) - **out = **in - } if in.InstanceInitiatedShutdownBehavior != nil { in, out := &in.InstanceInitiatedShutdownBehavior, &out.InstanceInitiatedShutdownBehavior *out = new(string) @@ -1898,6 +1988,17 @@ func (in *InstanceParameters) DeepCopyInto(out *InstanceParameters) { *out = new(string) **out = **in } + if in.VPCSecurityGroupIds != nil { + in, out := &in.VPCSecurityGroupIds, &out.VPCSecurityGroupIds + *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.VolumeTags != nil { in, out := &in.VolumeTags, &out.VolumeTags *out = make(map[string]*string, len(*in)) @@ -1913,17 +2014,6 @@ func (in *InstanceParameters) DeepCopyInto(out *InstanceParameters) { (*out)[key] = outVal } } - if in.VpcSecurityGroupIds != nil { - in, out := &in.VpcSecurityGroupIds, &out.VpcSecurityGroupIds - *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 InstanceParameters. @@ -2209,6 +2299,11 @@ func (in *LaunchTemplateObservation_2) DeepCopyInto(out *LaunchTemplateObservati *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.LatestVersion != nil { in, out := &in.LatestVersion, &out.LatestVersion *out = new(int64) @@ -2317,8 +2412,8 @@ func (in *LaunchTemplateParameters_2) DeepCopyInto(out *LaunchTemplateParameters *out = new(bool) **out = **in } - if in.EbsOptimized != nil { - in, out := &in.EbsOptimized, &out.EbsOptimized + if in.EBSOptimized != nil { + in, out := &in.EBSOptimized, &out.EBSOptimized *out = new(string) **out = **in } @@ -2350,9 +2445,9 @@ func (in *LaunchTemplateParameters_2) DeepCopyInto(out *LaunchTemplateParameters (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.IamInstanceProfile != nil { - in, out := &in.IamInstanceProfile, &out.IamInstanceProfile - *out = make([]IamInstanceProfileParameters, len(*in)) + if in.IAMInstanceProfile != nil { + in, out := &in.IAMInstanceProfile, &out.IAMInstanceProfile + *out = make([]IAMInstanceProfileParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2497,6 +2592,17 @@ func (in *LaunchTemplateParameters_2) DeepCopyInto(out *LaunchTemplateParameters *out = new(string) **out = **in } + if in.VPCSecurityGroupIds != nil { + in, out := &in.VPCSecurityGroupIds, &out.VPCSecurityGroupIds + *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.VpcSecurityGroupIdRefs != nil { in, out := &in.VpcSecurityGroupIdRefs, &out.VpcSecurityGroupIdRefs *out = make([]v1.Reference, len(*in)) @@ -2507,17 +2613,6 @@ func (in *LaunchTemplateParameters_2) DeepCopyInto(out *LaunchTemplateParameters *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.VpcSecurityGroupIds != nil { - in, out := &in.VpcSecurityGroupIds, &out.VpcSecurityGroupIds - *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 LaunchTemplateParameters_2. @@ -2756,6 +2851,11 @@ func (in *NetworkInterfaceObservation) DeepCopy() *NetworkInterfaceObservation { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NetworkInterfaceObservation_2) DeepCopyInto(out *NetworkInterfaceObservation_2) { *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.MacAddress != nil { in, out := &in.MacAddress, &out.MacAddress *out = new(string) @@ -3151,339 +3251,42 @@ 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) { - *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 { - if in == nil { - return nil - } - out := new(PeeringConnectionAccepter) - 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 - } - return nil -} - -// 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 *PlacementObservation) DeepCopyInto(out *PlacementObservation) { *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 PlacementObservation. +func (in *PlacementObservation) DeepCopy() *PlacementObservation { if in == nil { return nil } - out := new(PeeringConnectionAccepterAccepterObservation) + out := new(PlacementObservation) 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 *PlacementParameters) DeepCopyInto(out *PlacementParameters) { *out = *in - if in.AllowClassicLinkToRemoteVpc != nil { - in, out := &in.AllowClassicLinkToRemoteVpc, &out.AllowClassicLinkToRemoteVpc - *out = new(bool) + if in.Affinity != nil { + in, out := &in.Affinity, &out.Affinity + *out = new(string) **out = **in } - if in.AllowRemoteVpcDNSResolution != nil { - in, out := &in.AllowRemoteVpcDNSResolution, &out.AllowRemoteVpcDNSResolution - *out = new(bool) + if in.AvailabilityZone != nil { + in, out := &in.AvailabilityZone, &out.AvailabilityZone + *out = new(string) **out = **in } - if in.AllowVpcToRemoteClassicLink != nil { - in, out := &in.AllowVpcToRemoteClassicLink, &out.AllowVpcToRemoteClassicLink - *out = new(bool) + if in.GroupName != nil { + in, out := &in.GroupName, &out.GroupName + *out = new(string) **out = **in } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringConnectionAccepterAccepterParameters. -func (in *PeeringConnectionAccepterAccepterParameters) DeepCopy() *PeeringConnectionAccepterAccepterParameters { - if in == nil { - return nil - } - out := new(PeeringConnectionAccepterAccepterParameters) - 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) { - *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]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringConnectionAccepterList. -func (in *PeeringConnectionAccepterList) DeepCopy() *PeeringConnectionAccepterList { - if in == nil { - return nil - } - out := new(PeeringConnectionAccepterList) - 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) { - *out = *in - if in.AcceptStatus != nil { - in, out := &in.AcceptStatus, &out.AcceptStatus - *out = new(string) - **out = **in - } - if in.PeerOwnerID != nil { - in, out := &in.PeerOwnerID, &out.PeerOwnerID - *out = new(string) - **out = **in - } - if in.PeerRegion != nil { - in, out := &in.PeerRegion, &out.PeerRegion - *out = new(string) - **out = **in - } - if in.PeerVpcID != nil { - in, out := &in.PeerVpcID, &out.PeerVpcID - *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.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.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.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 PeeringConnectionAccepterParameters. -func (in *PeeringConnectionAccepterParameters) DeepCopy() *PeeringConnectionAccepterParameters { - if in == nil { - return nil - } - out := new(PeeringConnectionAccepterParameters) - 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) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringConnectionAccepterRequesterObservation. -func (in *PeeringConnectionAccepterRequesterObservation) DeepCopy() *PeeringConnectionAccepterRequesterObservation { - if in == nil { - return nil - } - out := new(PeeringConnectionAccepterRequesterObservation) - 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 - } - out := new(PeeringConnectionAccepterRequesterParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PeeringConnectionAccepterSpec) DeepCopyInto(out *PeeringConnectionAccepterSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PeeringConnectionAccepterSpec. -func (in *PeeringConnectionAccepterSpec) DeepCopy() *PeeringConnectionAccepterSpec { - if in == nil { - return nil - } - out := new(PeeringConnectionAccepterSpec) - 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 - } - out := new(PeeringConnectionAccepterStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PlacementObservation) DeepCopyInto(out *PlacementObservation) { - *out = *in -} - -// 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(PlacementObservation) - 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) { - *out = *in - if in.Affinity != nil { - in, out := &in.Affinity, &out.Affinity - *out = new(string) - **out = **in - } - 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.HostID != nil { + in, out := &in.HostID, &out.HostID + *out = new(string) + **out = **in } if in.HostResourceGroupArn != nil { in, out := &in.HostResourceGroupArn, &out.HostResourceGroupArn @@ -3535,18 +3338,18 @@ func (in *RequesterObservation) DeepCopy() *RequesterObservation { // 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 + 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 + 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 + if in.AllowVPCToRemoteClassicLink != nil { + in, out := &in.AllowVPCToRemoteClassicLink, &out.AllowVPCToRemoteClassicLink *out = new(bool) **out = **in } @@ -3605,18 +3408,18 @@ func (in *RootBlockDeviceParameters) DeepCopyInto(out *RootBlockDeviceParameters *out = new(int64) **out = **in } - if in.KmsKeyID != nil { - in, out := &in.KmsKeyID, &out.KmsKeyID + 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 + 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 + if in.KMSKeyIDSelector != nil { + in, out := &in.KMSKeyIDSelector, &out.KMSKeyIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -3724,6 +3527,11 @@ 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) { *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) @@ -3804,8 +3612,8 @@ func (in *RouteParameters) DeepCopyInto(out *RouteParameters) { *out = new(string) **out = **in } - if in.NatGatewayID != nil { - in, out := &in.NatGatewayID, &out.NatGatewayID + if in.NATGatewayID != nil { + in, out := &in.NATGatewayID, &out.NATGatewayID *out = new(string) **out = **in } @@ -3859,33 +3667,33 @@ func (in *RouteParameters) DeepCopyInto(out *RouteParameters) { *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.VpcEndpointID != nil { - in, out := &in.VpcEndpointID, &out.VpcEndpointID + 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 + 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 + 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.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.VPCPeeringConnectionIDRef != nil { + in, out := &in.VPCPeeringConnectionIDRef, &out.VPCPeeringConnectionIDRef *out = new(v1.Reference) **out = **in } - if in.VpcPeeringConnectionIDSelector != nil { - in, out := &in.VpcPeeringConnectionIDSelector, &out.VpcPeeringConnectionIDSelector + if in.VPCPeeringConnectionIDSelector != nil { + in, out := &in.VPCPeeringConnectionIDSelector, &out.VPCPeeringConnectionIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -4024,6 +3832,11 @@ func (in *RouteTableAssociationList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RouteTableAssociationObservation) DeepCopyInto(out *RouteTableAssociationObservation) { *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. @@ -4112,7 +3925,7 @@ func (in *RouteTableAssociationSpec) DeepCopy() *RouteTableAssociationSpec { func (in *RouteTableAssociationStatus) DeepCopyInto(out *RouteTableAssociationStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - out.AtProvider = in.AtProvider + in.AtProvider.DeepCopyInto(&out.AtProvider) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteTableAssociationStatus. @@ -4165,6 +3978,11 @@ func (in *RouteTableObservation) DeepCopyInto(out *RouteTableObservation) { *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) @@ -4238,18 +4056,18 @@ func (in *RouteTableParameters) DeepCopyInto(out *RouteTableParameters) { (*out)[key] = outVal } } - if in.VpcID != nil { - in, out := &in.VpcID, &out.VpcID + 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 + 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 + if in.VPCIDSelector != nil { + in, out := &in.VPCIDSelector, &out.VPCIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -4333,8 +4151,8 @@ func (in *RouteTableRouteParameters) DeepCopyInto(out *RouteTableRouteParameters *out = new(string) **out = **in } - if in.NatGatewayID != nil { - in, out := &in.NatGatewayID, &out.NatGatewayID + if in.NATGatewayID != nil { + in, out := &in.NATGatewayID, &out.NATGatewayID *out = new(string) **out = **in } @@ -4358,33 +4176,33 @@ func (in *RouteTableRouteParameters) DeepCopyInto(out *RouteTableRouteParameters *out = new(string) **out = **in } - if in.VpcEndpointID != nil { - in, out := &in.VpcEndpointID, &out.VpcEndpointID + 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 + 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 + 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.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.VPCPeeringConnectionIDRef != nil { + in, out := &in.VPCPeeringConnectionIDRef, &out.VPCPeeringConnectionIDRef *out = new(v1.Reference) **out = **in } - if in.VpcPeeringConnectionIDSelector != nil { - in, out := &in.VpcPeeringConnectionIDSelector, &out.VpcPeeringConnectionIDSelector + if in.VPCPeeringConnectionIDSelector != nil { + in, out := &in.VPCPeeringConnectionIDSelector, &out.VPCPeeringConnectionIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -4501,6 +4319,11 @@ func (in *SecurityGroupObservation) DeepCopyInto(out *SecurityGroupObservation) *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) @@ -4590,18 +4413,18 @@ func (in *SecurityGroupParameters) DeepCopyInto(out *SecurityGroupParameters) { (*out)[key] = outVal } } - if in.VpcID != nil { - in, out := &in.VpcID, &out.VpcID + 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 + 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 + if in.VPCIDSelector != nil { + in, out := &in.VPCIDSelector, &out.VPCIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -4679,6 +4502,11 @@ 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) { *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 SecurityGroupRuleObservation. @@ -4815,7 +4643,7 @@ func (in *SecurityGroupRuleSpec) DeepCopy() *SecurityGroupRuleSpec { func (in *SecurityGroupRuleStatus) DeepCopyInto(out *SecurityGroupRuleStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - out.AtProvider = in.AtProvider + in.AtProvider.DeepCopyInto(&out.AtProvider) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecurityGroupRuleStatus. @@ -4984,6 +4812,11 @@ func (in *SubnetObservation) DeepCopyInto(out *SubnetObservation) { *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) @@ -5089,18 +4922,18 @@ func (in *SubnetParameters) DeepCopyInto(out *SubnetParameters) { (*out)[key] = outVal } } - if in.VpcID != nil { - in, out := &in.VpcID, &out.VpcID + 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 + 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 + if in.VPCIDSelector != nil { + in, out := &in.VPCIDSelector, &out.VPCIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -5272,9 +5105,14 @@ func (in *TransitGatewayObservation) DeepCopyInto(out *TransitGatewayObservation *out = new(string) **out = **in } - if in.OwnerID != nil { - in, out := &in.OwnerID, &out.OwnerID - *out = new(string) + 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 { @@ -5362,8 +5200,8 @@ func (in *TransitGatewayParameters) DeepCopyInto(out *TransitGatewayParameters) (*out)[key] = outVal } } - if in.VpnEcmpSupport != nil { - in, out := &in.VpnEcmpSupport, &out.VpnEcmpSupport + if in.VPNEcmpSupport != nil { + in, out := &in.VPNEcmpSupport, &out.VPNEcmpSupport *out = new(string) **out = **in } @@ -5441,6 +5279,11 @@ 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) { *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 TransitGatewayRouteObservation. @@ -5534,7 +5377,7 @@ func (in *TransitGatewayRouteSpec) DeepCopy() *TransitGatewayRouteSpec { func (in *TransitGatewayRouteStatus) DeepCopyInto(out *TransitGatewayRouteStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - out.AtProvider = in.AtProvider + in.AtProvider.DeepCopyInto(&out.AtProvider) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransitGatewayRouteStatus. @@ -5636,6 +5479,11 @@ func (in *TransitGatewayRouteTableAssociationList) DeepCopyObject() runtime.Obje // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 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) @@ -5792,6 +5640,11 @@ func (in *TransitGatewayRouteTableObservation) DeepCopyInto(out *TransitGatewayR *out = new(bool) **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)) @@ -5931,6 +5784,11 @@ 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) { *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) @@ -6204,6 +6062,11 @@ func (in *TransitGatewayVPCAttachmentAccepterObservation) DeepCopyInto(out *Tran *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.IPv6Support != nil { in, out := &in.IPv6Support, &out.IPv6Support *out = new(string) @@ -6240,13 +6103,13 @@ func (in *TransitGatewayVPCAttachmentAccepterObservation) DeepCopyInto(out *Tran *out = new(string) **out = **in } - if in.VpcID != nil { - in, out := &in.VpcID, &out.VpcID + 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 + if in.VPCOwnerID != nil { + in, out := &in.VPCOwnerID, &out.VPCOwnerID *out = new(string) **out = **in } @@ -6391,6 +6254,11 @@ 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) { *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)) @@ -6406,8 +6274,8 @@ func (in *TransitGatewayVPCAttachmentObservation) DeepCopyInto(out *TransitGatew (*out)[key] = outVal } } - if in.VpcOwnerID != nil { - in, out := &in.VpcOwnerID, &out.VpcOwnerID + if in.VPCOwnerID != nil { + in, out := &in.VPCOwnerID, &out.VPCOwnerID *out = new(string) **out = **in } @@ -6507,18 +6375,18 @@ func (in *TransitGatewayVPCAttachmentParameters) DeepCopyInto(out *TransitGatewa *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.VpcID != nil { - in, out := &in.VpcID, &out.VpcID + 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 + 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 + if in.VPCIDSelector != nil { + in, out := &in.VPCIDSelector, &out.VPCIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -6680,6 +6548,11 @@ func (in *VPCEndpointObservation) DeepCopyInto(out *VPCEndpointObservation) { (*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)) @@ -6844,23 +6717,23 @@ func (in *VPCEndpointParameters) DeepCopyInto(out *VPCEndpointParameters) { (*out)[key] = outVal } } - if in.VpcEndpointType != nil { - in, out := &in.VpcEndpointType, &out.VpcEndpointType + 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 + 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 + 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 + if in.VPCIDSelector != nil { + in, out := &in.VPCIDSelector, &out.VPCIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -6910,6 +6783,159 @@ func (in *VPCEndpointStatus) DeepCopy() *VPCEndpointStatus { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VPCIPv4CidrBlockAssociation) DeepCopyInto(out *VPCIPv4CidrBlockAssociation) { + *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 VPCIPv4CidrBlockAssociation. +func (in *VPCIPv4CidrBlockAssociation) DeepCopy() *VPCIPv4CidrBlockAssociation { + if in == nil { + return nil + } + 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 *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([]VPCIPv4CidrBlockAssociation, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// 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(VPCIPv4CidrBlockAssociationList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VPCIPv4CidrBlockAssociationList) 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 *VPCIPv4CidrBlockAssociationObservation) DeepCopyInto(out *VPCIPv4CidrBlockAssociationObservation) { + *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 VPCIPv4CidrBlockAssociationObservation. +func (in *VPCIPv4CidrBlockAssociationObservation) DeepCopy() *VPCIPv4CidrBlockAssociationObservation { + if in == nil { + return nil + } + 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 *VPCIPv4CidrBlockAssociationParameters) DeepCopyInto(out *VPCIPv4CidrBlockAssociationParameters) { + *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 VPCIPv4CidrBlockAssociationParameters. +func (in *VPCIPv4CidrBlockAssociationParameters) DeepCopy() *VPCIPv4CidrBlockAssociationParameters { + if in == nil { + return nil + } + 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 *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 VPCIPv4CidrBlockAssociationSpec. +func (in *VPCIPv4CidrBlockAssociationSpec) DeepCopy() *VPCIPv4CidrBlockAssociationSpec { + if in == nil { + return nil + } + 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 *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 VPCIPv4CidrBlockAssociationStatus. +func (in *VPCIPv4CidrBlockAssociationStatus) DeepCopy() *VPCIPv4CidrBlockAssociationStatus { + if in == nil { + return nil + } + out := new(VPCIPv4CidrBlockAssociationStatus) + 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) { *out = *in @@ -6950,6 +6976,11 @@ func (in *VPCObservation) DeepCopyInto(out *VPCObservation) { *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) @@ -6965,8 +6996,8 @@ func (in *VPCObservation) DeepCopyInto(out *VPCObservation) { *out = new(string) **out = **in } - if in.DhcpOptionsID != nil { - in, out := &in.DhcpOptionsID, &out.DhcpOptionsID + if in.ID != nil { + in, out := &in.ID, &out.ID *out = new(string) **out = **in } @@ -7114,6 +7145,308 @@ func (in *VPCPeeringConnection) DeepCopyObject() runtime.Object { return nil } +// 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(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 *VPCPeeringConnectionAccepterAccepterObservation) DeepCopyInto(out *VPCPeeringConnectionAccepterAccepterObservation) { + *out = *in +} + +// 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(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 *VPCPeeringConnectionAccepterAccepterParameters) DeepCopyInto(out *VPCPeeringConnectionAccepterAccepterParameters) { + *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 VPCPeeringConnectionAccepterAccepterParameters. +func (in *VPCPeeringConnectionAccepterAccepterParameters) DeepCopy() *VPCPeeringConnectionAccepterAccepterParameters { + if in == nil { + return nil + } + 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 *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([]VPCPeeringConnectionAccepter, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// 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(VPCPeeringConnectionAccepterList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *VPCPeeringConnectionAccepterList) 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 *VPCPeeringConnectionAccepterObservation) DeepCopyInto(out *VPCPeeringConnectionAccepterObservation) { + *out = *in + if in.AcceptStatus != nil { + in, out := &in.AcceptStatus, &out.AcceptStatus + *out = new(string) + **out = **in + } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.PeerOwnerID != nil { + in, out := &in.PeerOwnerID, &out.PeerOwnerID + *out = new(string) + **out = **in + } + if in.PeerRegion != nil { + in, out := &in.PeerRegion, &out.PeerRegion + *out = new(string) + **out = **in + } + if in.PeerVPCID != nil { + in, out := &in.PeerVPCID, &out.PeerVPCID + *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.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 VPCPeeringConnectionAccepterObservation. +func (in *VPCPeeringConnectionAccepterObservation) DeepCopy() *VPCPeeringConnectionAccepterObservation { + if in == nil { + return nil + } + 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 *VPCPeeringConnectionAccepterParameters) DeepCopyInto(out *VPCPeeringConnectionAccepterParameters) { + *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.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([]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)) + 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.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 VPCPeeringConnectionAccepterParameters. +func (in *VPCPeeringConnectionAccepterParameters) DeepCopy() *VPCPeeringConnectionAccepterParameters { + if in == nil { + return nil + } + 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 *VPCPeeringConnectionAccepterRequesterObservation) DeepCopyInto(out *VPCPeeringConnectionAccepterRequesterObservation) { + *out = *in +} + +// 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(VPCPeeringConnectionAccepterRequesterObservation) + in.DeepCopyInto(out) + return out +} + +// 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 + } + 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. func (in *VPCPeeringConnectionList) DeepCopyInto(out *VPCPeeringConnectionList) { *out = *in @@ -7154,6 +7487,11 @@ func (in *VPCPeeringConnectionObservation) DeepCopyInto(out *VPCPeeringConnectio *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)) @@ -7206,18 +7544,18 @@ func (in *VPCPeeringConnectionParameters) DeepCopyInto(out *VPCPeeringConnection *out = new(string) **out = **in } - if in.PeerVpcID != nil { - in, out := &in.PeerVpcID, &out.PeerVpcID + if in.PeerVPCID != nil { + in, out := &in.PeerVPCID, &out.PeerVPCID *out = new(string) **out = **in } - if in.PeerVpcIDRef != nil { - in, out := &in.PeerVpcIDRef, &out.PeerVpcIDRef + if in.PeerVPCIDRef != nil { + in, out := &in.PeerVPCIDRef, &out.PeerVPCIDRef *out = new(v1.Reference) **out = **in } - if in.PeerVpcIDSelector != nil { - in, out := &in.PeerVpcIDSelector, &out.PeerVpcIDSelector + if in.PeerVPCIDSelector != nil { + in, out := &in.PeerVPCIDSelector, &out.PeerVPCIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -7248,18 +7586,18 @@ func (in *VPCPeeringConnectionParameters) DeepCopyInto(out *VPCPeeringConnection (*out)[key] = outVal } } - if in.VpcID != nil { - in, out := &in.VpcID, &out.VpcID + 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 + 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 + if in.VPCIDSelector != nil { + in, out := &in.VPCIDSelector, &out.VPCIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } diff --git a/apis/ec2/v1alpha1/zz_generated.managed.go b/apis/ec2/v1alpha1/zz_generated.managed.go index acf0c2851..39ca94a6c 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..9ca2fb73f 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 140b86630..89907f73e 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) @@ -103,22 +103,22 @@ func (mg *Instance) ResolveReferences(ctx context.Context, c client.Reader) erro var mrsp reference.MultiResolutionResponse var err error - for i3 := 0; i3 < len(mg.Spec.ForProvider.EbsBlockDevice); i3++ { + for i3 := 0; i3 < len(mg.Spec.ForProvider.EBSBlockDevice); i3++ { rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.EbsBlockDevice[i3].KmsKeyID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.EBSBlockDevice[i3].KMSKeyID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.EbsBlockDevice[i3].KmsKeyIDRef, - Selector: mg.Spec.ForProvider.EbsBlockDevice[i3].KmsKeyIDSelector, + Reference: mg.Spec.ForProvider.EBSBlockDevice[i3].KMSKeyIDRef, + Selector: mg.Spec.ForProvider.EBSBlockDevice[i3].KMSKeyIDSelector, To: reference.To{ List: &v1alpha1.KeyList{}, Managed: &v1alpha1.Key{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.EbsBlockDevice[i3].KmsKeyID") + return errors.Wrap(err, "mg.Spec.ForProvider.EBSBlockDevice[i3].KMSKeyID") } - mg.Spec.ForProvider.EbsBlockDevice[i3].KmsKeyID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.EbsBlockDevice[i3].KmsKeyIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.EBSBlockDevice[i3].KMSKeyID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.EBSBlockDevice[i3].KMSKeyIDRef = rsp.ResolvedReference } for i3 := 0; i3 < len(mg.Spec.ForProvider.NetworkInterface); i3++ { @@ -141,20 +141,20 @@ func (mg *Instance) ResolveReferences(ctx context.Context, c client.Reader) erro } for i3 := 0; i3 < len(mg.Spec.ForProvider.RootBlockDevice); i3++ { rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.RootBlockDevice[i3].KmsKeyID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.RootBlockDevice[i3].KMSKeyID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.RootBlockDevice[i3].KmsKeyIDRef, - Selector: mg.Spec.ForProvider.RootBlockDevice[i3].KmsKeyIDSelector, + Reference: mg.Spec.ForProvider.RootBlockDevice[i3].KMSKeyIDRef, + Selector: mg.Spec.ForProvider.RootBlockDevice[i3].KMSKeyIDSelector, To: reference.To{ List: &v1alpha1.KeyList{}, Managed: &v1alpha1.Key{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.RootBlockDevice[i3].KmsKeyID") + return errors.Wrap(err, "mg.Spec.ForProvider.RootBlockDevice[i3].KMSKeyID") } - mg.Spec.ForProvider.RootBlockDevice[i3].KmsKeyID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.RootBlockDevice[i3].KmsKeyIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.RootBlockDevice[i3].KMSKeyID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.RootBlockDevice[i3].KMSKeyIDRef = rsp.ResolvedReference } mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ @@ -190,7 +190,7 @@ func (mg *Instance) ResolveReferences(ctx context.Context, c client.Reader) erro mg.Spec.ForProvider.SubnetIDRef = rsp.ResolvedReference mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ - CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.VpcSecurityGroupIds), + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.VPCSecurityGroupIds), Extract: reference.ExternalName(), References: mg.Spec.ForProvider.SecurityGroupIdRefs, Selector: mg.Spec.ForProvider.SecurityGroupIdSelector, @@ -200,9 +200,9 @@ func (mg *Instance) ResolveReferences(ctx context.Context, c client.Reader) erro }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.VpcSecurityGroupIds") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCSecurityGroupIds") } - mg.Spec.ForProvider.VpcSecurityGroupIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.VPCSecurityGroupIds = reference.ToPtrValues(mrsp.ResolvedValues) mg.Spec.ForProvider.SecurityGroupIdRefs = mrsp.ResolvedReferences return nil @@ -217,59 +217,59 @@ func (mg *LaunchTemplate) ResolveReferences(ctx context.Context, c client.Reader var err error for i3 := 0; i3 < len(mg.Spec.ForProvider.BlockDeviceMappings); i3++ { - for i4 := 0; i4 < len(mg.Spec.ForProvider.BlockDeviceMappings[i3].Ebs); i4++ { + for i4 := 0; i4 < len(mg.Spec.ForProvider.BlockDeviceMappings[i3].EBS); i4++ { rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.BlockDeviceMappings[i3].Ebs[i4].KmsKeyID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.BlockDeviceMappings[i3].EBS[i4].KMSKeyID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.BlockDeviceMappings[i3].Ebs[i4].KmsKeyIDRef, - Selector: mg.Spec.ForProvider.BlockDeviceMappings[i3].Ebs[i4].KmsKeyIDSelector, + Reference: mg.Spec.ForProvider.BlockDeviceMappings[i3].EBS[i4].KMSKeyIDRef, + Selector: mg.Spec.ForProvider.BlockDeviceMappings[i3].EBS[i4].KMSKeyIDSelector, To: reference.To{ List: &v1alpha1.KeyList{}, Managed: &v1alpha1.Key{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.BlockDeviceMappings[i3].Ebs[i4].KmsKeyID") + return errors.Wrap(err, "mg.Spec.ForProvider.BlockDeviceMappings[i3].EBS[i4].KMSKeyID") } - mg.Spec.ForProvider.BlockDeviceMappings[i3].Ebs[i4].KmsKeyID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.BlockDeviceMappings[i3].Ebs[i4].KmsKeyIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.BlockDeviceMappings[i3].EBS[i4].KMSKeyID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.BlockDeviceMappings[i3].EBS[i4].KMSKeyIDRef = rsp.ResolvedReference } } - for i3 := 0; i3 < len(mg.Spec.ForProvider.IamInstanceProfile); i3++ { + for i3 := 0; i3 < len(mg.Spec.ForProvider.IAMInstanceProfile); i3++ { rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.IamInstanceProfile[i3].Arn), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.IAMInstanceProfile[i3].Arn), Extract: common.ARNExtractor(), - Reference: mg.Spec.ForProvider.IamInstanceProfile[i3].ArnRef, - Selector: mg.Spec.ForProvider.IamInstanceProfile[i3].ArnSelector, + Reference: mg.Spec.ForProvider.IAMInstanceProfile[i3].ArnRef, + Selector: mg.Spec.ForProvider.IAMInstanceProfile[i3].ArnSelector, To: reference.To{ List: &v1alpha11.InstanceProfileList{}, Managed: &v1alpha11.InstanceProfile{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.IamInstanceProfile[i3].Arn") + return errors.Wrap(err, "mg.Spec.ForProvider.IAMInstanceProfile[i3].Arn") } - mg.Spec.ForProvider.IamInstanceProfile[i3].Arn = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.IamInstanceProfile[i3].ArnRef = rsp.ResolvedReference + mg.Spec.ForProvider.IAMInstanceProfile[i3].Arn = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.IAMInstanceProfile[i3].ArnRef = rsp.ResolvedReference } - for i3 := 0; i3 < len(mg.Spec.ForProvider.IamInstanceProfile); i3++ { + for i3 := 0; i3 < len(mg.Spec.ForProvider.IAMInstanceProfile); i3++ { rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.IamInstanceProfile[i3].Name), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.IAMInstanceProfile[i3].Name), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.IamInstanceProfile[i3].NameRef, - Selector: mg.Spec.ForProvider.IamInstanceProfile[i3].NameSelector, + Reference: mg.Spec.ForProvider.IAMInstanceProfile[i3].NameRef, + Selector: mg.Spec.ForProvider.IAMInstanceProfile[i3].NameSelector, To: reference.To{ List: &v1alpha11.InstanceProfileList{}, Managed: &v1alpha11.InstanceProfile{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.IamInstanceProfile[i3].Name") + return errors.Wrap(err, "mg.Spec.ForProvider.IAMInstanceProfile[i3].Name") } - mg.Spec.ForProvider.IamInstanceProfile[i3].Name = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.IamInstanceProfile[i3].NameRef = rsp.ResolvedReference + mg.Spec.ForProvider.IAMInstanceProfile[i3].Name = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.IAMInstanceProfile[i3].NameRef = rsp.ResolvedReference } for i3 := 0; i3 < len(mg.Spec.ForProvider.NetworkInterfaces); i3++ { @@ -343,7 +343,7 @@ func (mg *LaunchTemplate) ResolveReferences(ctx context.Context, c client.Reader mg.Spec.ForProvider.SecurityGroupNameRefs = mrsp.ResolvedReferences mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ - CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.VpcSecurityGroupIds), + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.VPCSecurityGroupIds), Extract: reference.ExternalName(), References: mg.Spec.ForProvider.VpcSecurityGroupIdRefs, Selector: mg.Spec.ForProvider.VpcSecurityGroupIdSelector, @@ -353,9 +353,9 @@ func (mg *LaunchTemplate) ResolveReferences(ctx context.Context, c client.Reader }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.VpcSecurityGroupIds") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCSecurityGroupIds") } - mg.Spec.ForProvider.VpcSecurityGroupIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.VPCSecurityGroupIds = reference.ToPtrValues(mrsp.ResolvedValues) mg.Spec.ForProvider.VpcSecurityGroupIdRefs = mrsp.ResolvedReferences return nil @@ -494,36 +494,36 @@ func (mg *Route) ResolveReferences(ctx context.Context, c client.Reader) error { mg.Spec.ForProvider.TransitGatewayIDRef = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VpcEndpointID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VPCEndpointID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.VpcEndpointIDRef, - Selector: mg.Spec.ForProvider.VpcEndpointIDSelector, + Reference: mg.Spec.ForProvider.VPCEndpointIDRef, + Selector: mg.Spec.ForProvider.VPCEndpointIDSelector, To: reference.To{ List: &VPCEndpointList{}, Managed: &VPCEndpoint{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.VpcEndpointID") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCEndpointID") } - mg.Spec.ForProvider.VpcEndpointID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.VpcEndpointIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.VPCEndpointID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.VPCEndpointIDRef = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VpcPeeringConnectionID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VPCPeeringConnectionID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.VpcPeeringConnectionIDRef, - Selector: mg.Spec.ForProvider.VpcPeeringConnectionIDSelector, + Reference: mg.Spec.ForProvider.VPCPeeringConnectionIDRef, + Selector: mg.Spec.ForProvider.VPCPeeringConnectionIDSelector, To: reference.To{ List: &VPCPeeringConnectionList{}, Managed: &VPCPeeringConnection{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.VpcPeeringConnectionID") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCPeeringConnectionID") } - mg.Spec.ForProvider.VpcPeeringConnectionID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.VpcPeeringConnectionIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.VPCPeeringConnectionID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.VPCPeeringConnectionIDRef = rsp.ResolvedReference return nil } @@ -573,55 +573,55 @@ func (mg *RouteTable) ResolveReferences(ctx context.Context, c client.Reader) er } for i3 := 0; i3 < len(mg.Spec.ForProvider.Route); i3++ { rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.Route[i3].VpcEndpointID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.Route[i3].VPCEndpointID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.Route[i3].VpcEndpointIDRef, - Selector: mg.Spec.ForProvider.Route[i3].VpcEndpointIDSelector, + Reference: mg.Spec.ForProvider.Route[i3].VPCEndpointIDRef, + Selector: mg.Spec.ForProvider.Route[i3].VPCEndpointIDSelector, To: reference.To{ List: &VPCEndpointList{}, Managed: &VPCEndpoint{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.Route[i3].VpcEndpointID") + return errors.Wrap(err, "mg.Spec.ForProvider.Route[i3].VPCEndpointID") } - mg.Spec.ForProvider.Route[i3].VpcEndpointID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.Route[i3].VpcEndpointIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.Route[i3].VPCEndpointID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.Route[i3].VPCEndpointIDRef = rsp.ResolvedReference } for i3 := 0; i3 < len(mg.Spec.ForProvider.Route); i3++ { rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.Route[i3].VpcPeeringConnectionID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.Route[i3].VPCPeeringConnectionID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.Route[i3].VpcPeeringConnectionIDRef, - Selector: mg.Spec.ForProvider.Route[i3].VpcPeeringConnectionIDSelector, + Reference: mg.Spec.ForProvider.Route[i3].VPCPeeringConnectionIDRef, + Selector: mg.Spec.ForProvider.Route[i3].VPCPeeringConnectionIDSelector, To: reference.To{ List: &VPCPeeringConnectionList{}, Managed: &VPCPeeringConnection{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.Route[i3].VpcPeeringConnectionID") + return errors.Wrap(err, "mg.Spec.ForProvider.Route[i3].VPCPeeringConnectionID") } - mg.Spec.ForProvider.Route[i3].VpcPeeringConnectionID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.Route[i3].VpcPeeringConnectionIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.Route[i3].VPCPeeringConnectionID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.Route[i3].VPCPeeringConnectionIDRef = rsp.ResolvedReference } rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VpcID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VPCID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.VpcIDRef, - Selector: mg.Spec.ForProvider.VpcIDSelector, + 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") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCID") } - mg.Spec.ForProvider.VpcID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.VpcIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.VPCID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.VPCIDRef = rsp.ResolvedReference return nil } @@ -713,20 +713,20 @@ func (mg *SecurityGroup) ResolveReferences(ctx context.Context, c client.Reader) } rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VpcID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VPCID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.VpcIDRef, - Selector: mg.Spec.ForProvider.VpcIDSelector, + 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") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCID") } - mg.Spec.ForProvider.VpcID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.VpcIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.VPCID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.VPCIDRef = rsp.ResolvedReference return nil } @@ -765,20 +765,20 @@ func (mg *Subnet) ResolveReferences(ctx context.Context, c client.Reader) error var err error rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VpcID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VPCID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.VpcIDRef, - Selector: mg.Spec.ForProvider.VpcIDSelector, + 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") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCID") } - mg.Spec.ForProvider.VpcID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.VpcIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.VPCID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.VPCIDRef = rsp.ResolvedReference return nil } @@ -976,20 +976,20 @@ func (mg *TransitGatewayVPCAttachment) ResolveReferences(ctx context.Context, c mg.Spec.ForProvider.TransitGatewayIDRef = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VpcID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VPCID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.VpcIDRef, - Selector: mg.Spec.ForProvider.VpcIDSelector, + 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") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCID") } - mg.Spec.ForProvider.VpcID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.VpcIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.VPCID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.VPCIDRef = rsp.ResolvedReference return nil } @@ -1077,20 +1077,46 @@ func (mg *VPCEndpoint) ResolveReferences(ctx context.Context, c client.Reader) e mg.Spec.ForProvider.SubnetIdRefs = mrsp.ResolvedReferences rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VpcID), + 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 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, + 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") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCID") } - mg.Spec.ForProvider.VpcID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.VpcIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.VPCID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.VPCIDRef = rsp.ResolvedReference return nil } @@ -1103,36 +1129,36 @@ func (mg *VPCPeeringConnection) ResolveReferences(ctx context.Context, c client. var err error rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.PeerVpcID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.PeerVPCID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.PeerVpcIDRef, - Selector: mg.Spec.ForProvider.PeerVpcIDSelector, + Reference: mg.Spec.ForProvider.PeerVPCIDRef, + Selector: mg.Spec.ForProvider.PeerVPCIDSelector, To: reference.To{ List: &VPCList{}, Managed: &VPC{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.PeerVpcID") + return errors.Wrap(err, "mg.Spec.ForProvider.PeerVPCID") } - mg.Spec.ForProvider.PeerVpcID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.PeerVpcIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.PeerVPCID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.PeerVPCIDRef = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VpcID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VPCID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.VpcIDRef, - Selector: mg.Spec.ForProvider.VpcIDSelector, + 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") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCID") } - mg.Spec.ForProvider.VpcID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.VpcIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.VPCID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.VPCIDRef = rsp.ResolvedReference return nil } diff --git a/apis/ec2/v1alpha1/zz_instance_terraformed.go b/apis/ec2/v1alpha1/zz_instance_terraformed.go index b8787103b..81c6af527 100755 --- a/apis/ec2/v1alpha1/zz_instance_terraformed.go +++ b/apis/ec2/v1alpha1/zz_instance_terraformed.go @@ -54,6 +54,14 @@ func (tr *Instance) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// 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 Instance func (tr *Instance) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_instance_types.go b/apis/ec2/v1alpha1/zz_instance_types.go index 00e23554d..91a95e4b3 100755 --- a/apis/ec2/v1alpha1/zz_instance_types.go +++ b/apis/ec2/v1alpha1/zz_instance_types.go @@ -55,11 +55,11 @@ type CreditSpecificationParameters struct { CPUCredits *string `json:"cpuCredits,omitempty" tf:"cpu_credits,omitempty"` } -type EbsBlockDeviceObservation struct { +type EBSBlockDeviceObservation struct { VolumeID *string `json:"volumeId,omitempty" tf:"volume_id,omitempty"` } -type EbsBlockDeviceParameters struct { +type EBSBlockDeviceParameters struct { // +kubebuilder:validation:Optional DeleteOnTermination *bool `json:"deleteOnTermination,omitempty" tf:"delete_on_termination,omitempty"` @@ -75,13 +75,13 @@ type EbsBlockDeviceParameters struct { // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/kms/v1alpha1.Key // +kubebuilder:validation:Optional - KmsKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"` + KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"` // +kubebuilder:validation:Optional - KmsKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"` + KMSKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - KmsKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"` + KMSKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"` // +kubebuilder:validation:Optional SnapshotID *string `json:"snapshotId,omitempty" tf:"snapshot_id,omitempty"` @@ -126,6 +126,8 @@ type EphemeralBlockDeviceParameters struct { type InstanceObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + InstanceState *string `json:"instanceState,omitempty" tf:"instance_state,omitempty"` OutpostArn *string `json:"outpostArn,omitempty" tf:"outpost_arn,omitempty"` @@ -146,7 +148,7 @@ type InstanceObservation struct { type InstanceParameters struct { // +kubebuilder:validation:Optional - Ami *string `json:"ami,omitempty" tf:"ami,omitempty"` + AMI *string `json:"ami,omitempty" tf:"ami,omitempty"` // +kubebuilder:validation:Optional AssociatePublicIPAddress *bool `json:"associatePublicIpAddress,omitempty" tf:"associate_public_ip_address,omitempty"` @@ -170,10 +172,10 @@ type InstanceParameters struct { DisableAPITermination *bool `json:"disableApiTermination,omitempty" tf:"disable_api_termination,omitempty"` // +kubebuilder:validation:Optional - EbsBlockDevice []EbsBlockDeviceParameters `json:"ebsBlockDevice,omitempty" tf:"ebs_block_device,omitempty"` + EBSBlockDevice []EBSBlockDeviceParameters `json:"ebsBlockDevice,omitempty" tf:"ebs_block_device,omitempty"` // +kubebuilder:validation:Optional - EbsOptimized *bool `json:"ebsOptimized,omitempty" tf:"ebs_optimized,omitempty"` + EBSOptimized *bool `json:"ebsOptimized,omitempty" tf:"ebs_optimized,omitempty"` // +kubebuilder:validation:Optional EnclaveOptions []EnclaveOptionsParameters `json:"enclaveOptions,omitempty" tf:"enclave_options,omitempty"` @@ -191,13 +193,13 @@ type InstanceParameters struct { HostID *string `json:"hostId,omitempty" tf:"host_id,omitempty"` // +kubebuilder:validation:Optional - IPv6AddressCount *int64 `json:"ipv6AddressCount,omitempty" tf:"ipv6_address_count,omitempty"` + IAMInstanceProfile *string `json:"iamInstanceProfile,omitempty" tf:"iam_instance_profile,omitempty"` // +kubebuilder:validation:Optional - IPv6Addresses []*string `json:"ipv6Addresses,omitempty" tf:"ipv6_addresses,omitempty"` + IPv6AddressCount *int64 `json:"ipv6AddressCount,omitempty" tf:"ipv6_address_count,omitempty"` // +kubebuilder:validation:Optional - IamInstanceProfile *string `json:"iamInstanceProfile,omitempty" tf:"iam_instance_profile,omitempty"` + IPv6Addresses []*string `json:"ipv6Addresses,omitempty" tf:"ipv6_addresses,omitempty"` // +kubebuilder:validation:Optional InstanceInitiatedShutdownBehavior *string `json:"instanceInitiatedShutdownBehavior,omitempty" tf:"instance_initiated_shutdown_behavior,omitempty"` @@ -280,14 +282,14 @@ type InstanceParameters struct { // +kubebuilder:validation:Optional UserDataBase64 *string `json:"userDataBase64,omitempty" tf:"user_data_base64,omitempty"` - // +kubebuilder:validation:Optional - VolumeTags map[string]*string `json:"volumeTags,omitempty" tf:"volume_tags,omitempty"` - // +crossplane:generate:reference:type=SecurityGroup // +crossplane:generate:reference:refFieldName=SecurityGroupIdRefs // +crossplane:generate:reference:selectorFieldName=SecurityGroupIdSelector // +kubebuilder:validation:Optional - VpcSecurityGroupIds []*string `json:"vpcSecurityGroupIds,omitempty" tf:"vpc_security_group_ids,omitempty"` + VPCSecurityGroupIds []*string `json:"vpcSecurityGroupIds,omitempty" tf:"vpc_security_group_ids,omitempty"` + + // +kubebuilder:validation:Optional + VolumeTags map[string]*string `json:"volumeTags,omitempty" tf:"volume_tags,omitempty"` } type LaunchTemplateObservation struct { @@ -361,13 +363,13 @@ type RootBlockDeviceParameters struct { // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/kms/v1alpha1.Key // +kubebuilder:validation:Optional - KmsKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"` + KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"` // +kubebuilder:validation:Optional - KmsKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"` + KMSKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - KmsKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"` + KMSKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"` // +kubebuilder:validation:Optional Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` diff --git a/apis/ec2/v1alpha1/zz_launchtemplate_terraformed.go b/apis/ec2/v1alpha1/zz_launchtemplate_terraformed.go index 58269fdad..132bcf3db 100755 --- a/apis/ec2/v1alpha1/zz_launchtemplate_terraformed.go +++ b/apis/ec2/v1alpha1/zz_launchtemplate_terraformed.go @@ -54,6 +54,14 @@ func (tr *LaunchTemplate) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this LaunchTemplate +func (tr *LaunchTemplate) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this LaunchTemplate func (tr *LaunchTemplate) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_launchtemplate_types.go b/apis/ec2/v1alpha1/zz_launchtemplate_types.go index 1554999b8..6338799b4 100755 --- a/apis/ec2/v1alpha1/zz_launchtemplate_types.go +++ b/apis/ec2/v1alpha1/zz_launchtemplate_types.go @@ -34,7 +34,7 @@ type BlockDeviceMappingsParameters struct { DeviceName *string `json:"deviceName,omitempty" tf:"device_name,omitempty"` // +kubebuilder:validation:Optional - Ebs []EbsParameters `json:"ebs,omitempty" tf:"ebs,omitempty"` + EBS []EBSParameters `json:"ebs,omitempty" tf:"ebs,omitempty"` // +kubebuilder:validation:Optional NoDevice *string `json:"noDevice,omitempty" tf:"no_device,omitempty"` @@ -64,10 +64,10 @@ type CapacityReservationSpecificationCapacityReservationTargetParameters struct CapacityReservationID *string `json:"capacityReservationId,omitempty" tf:"capacity_reservation_id,omitempty"` } -type EbsObservation struct { +type EBSObservation struct { } -type EbsParameters struct { +type EBSParameters struct { // +kubebuilder:validation:Optional DeleteOnTermination *string `json:"deleteOnTermination,omitempty" tf:"delete_on_termination,omitempty"` @@ -80,13 +80,13 @@ type EbsParameters struct { // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/kms/v1alpha1.Key // +kubebuilder:validation:Optional - KmsKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"` + KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"` // +kubebuilder:validation:Optional - KmsKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"` + KMSKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - KmsKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"` + KMSKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"` // +kubebuilder:validation:Optional SnapshotID *string `json:"snapshotId,omitempty" tf:"snapshot_id,omitempty"` @@ -128,10 +128,10 @@ type HibernationOptionsParameters struct { Configured *bool `json:"configured" tf:"configured,omitempty"` } -type IamInstanceProfileObservation struct { +type IAMInstanceProfileObservation struct { } -type IamInstanceProfileParameters struct { +type IAMInstanceProfileParameters struct { // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/iam/v1alpha1.InstanceProfile // +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-jet-aws/config/common.ARNExtractor() @@ -215,6 +215,8 @@ type LaunchTemplateMetadataOptionsParameters struct { type LaunchTemplateObservation_2 struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + LatestVersion *int64 `json:"latestVersion,omitempty" tf:"latest_version,omitempty"` TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` @@ -244,7 +246,7 @@ type LaunchTemplateParameters_2 struct { DisableAPITermination *bool `json:"disableApiTermination,omitempty" tf:"disable_api_termination,omitempty"` // +kubebuilder:validation:Optional - EbsOptimized *string `json:"ebsOptimized,omitempty" tf:"ebs_optimized,omitempty"` + EBSOptimized *string `json:"ebsOptimized,omitempty" tf:"ebs_optimized,omitempty"` // +kubebuilder:validation:Optional ElasticGpuSpecifications []ElasticGpuSpecificationsParameters `json:"elasticGpuSpecifications,omitempty" tf:"elastic_gpu_specifications,omitempty"` @@ -259,7 +261,7 @@ type LaunchTemplateParameters_2 struct { HibernationOptions []HibernationOptionsParameters `json:"hibernationOptions,omitempty" tf:"hibernation_options,omitempty"` // +kubebuilder:validation:Optional - IamInstanceProfile []IamInstanceProfileParameters `json:"iamInstanceProfile,omitempty" tf:"iam_instance_profile,omitempty"` + IAMInstanceProfile []IAMInstanceProfileParameters `json:"iamInstanceProfile,omitempty" tf:"iam_instance_profile,omitempty"` // +kubebuilder:validation:Optional ImageID *string `json:"imageId,omitempty" tf:"image_id,omitempty"` @@ -332,17 +334,17 @@ type LaunchTemplateParameters_2 struct { // +kubebuilder:validation:Optional UserData *string `json:"userData,omitempty" tf:"user_data,omitempty"` + // +crossplane:generate:reference:type=SecurityGroup + // +crossplane:generate:reference:refFieldName=VpcSecurityGroupIdRefs + // +crossplane:generate:reference:selectorFieldName=VpcSecurityGroupIdSelector // +kubebuilder:validation:Optional - VpcSecurityGroupIdRefs []v1.Reference `json:"vpcSecurityGroupIdRefs,omitempty" tf:"-"` + VPCSecurityGroupIds []*string `json:"vpcSecurityGroupIds,omitempty" tf:"vpc_security_group_ids,omitempty"` // +kubebuilder:validation:Optional - VpcSecurityGroupIdSelector *v1.Selector `json:"vpcSecurityGroupIdSelector,omitempty" tf:"-"` + VpcSecurityGroupIdRefs []v1.Reference `json:"vpcSecurityGroupIdRefs,omitempty" tf:"-"` - // +crossplane:generate:reference:type=SecurityGroup - // +crossplane:generate:reference:refFieldName=VpcSecurityGroupIdRefs - // +crossplane:generate:reference:selectorFieldName=VpcSecurityGroupIdSelector // +kubebuilder:validation:Optional - VpcSecurityGroupIds []*string `json:"vpcSecurityGroupIds,omitempty" tf:"vpc_security_group_ids,omitempty"` + VpcSecurityGroupIdSelector *v1.Selector `json:"vpcSecurityGroupIdSelector,omitempty" tf:"-"` } type LicenseSpecificationObservation struct { diff --git a/apis/ec2/v1alpha1/zz_networkinterface_terraformed.go b/apis/ec2/v1alpha1/zz_networkinterface_terraformed.go index 754907612..a7241981b 100755 --- a/apis/ec2/v1alpha1/zz_networkinterface_terraformed.go +++ b/apis/ec2/v1alpha1/zz_networkinterface_terraformed.go @@ -54,6 +54,14 @@ func (tr *NetworkInterface) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this NetworkInterface +func (tr *NetworkInterface) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this NetworkInterface func (tr *NetworkInterface) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_networkinterface_types.go b/apis/ec2/v1alpha1/zz_networkinterface_types.go index 6cb5199c8..bae70ebfa 100755 --- a/apis/ec2/v1alpha1/zz_networkinterface_types.go +++ b/apis/ec2/v1alpha1/zz_networkinterface_types.go @@ -46,6 +46,8 @@ type AttachmentParameters struct { } type NetworkInterfaceObservation_2 struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` + MacAddress *string `json:"macAddress,omitempty" tf:"mac_address,omitempty"` OutpostArn *string `json:"outpostArn,omitempty" tf:"outpost_arn,omitempty"` diff --git a/apis/ec2/v1alpha1/zz_route_terraformed.go b/apis/ec2/v1alpha1/zz_route_terraformed.go index 58adfd0d0..5107425a8 100755 --- a/apis/ec2/v1alpha1/zz_route_terraformed.go +++ b/apis/ec2/v1alpha1/zz_route_terraformed.go @@ -54,6 +54,14 @@ func (tr *Route) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this Route +func (tr *Route) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this Route func (tr *Route) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_route_types.go b/apis/ec2/v1alpha1/zz_route_types.go index 7ea1ac169..c0a4d662e 100755 --- a/apis/ec2/v1alpha1/zz_route_types.go +++ b/apis/ec2/v1alpha1/zz_route_types.go @@ -26,6 +26,8 @@ import ( ) type RouteObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` + InstanceOwnerID *string `json:"instanceOwnerId,omitempty" tf:"instance_owner_id,omitempty"` Origin *string `json:"origin,omitempty" tf:"origin,omitempty"` @@ -67,7 +69,7 @@ type RouteParameters struct { LocalGatewayID *string `json:"localGatewayId,omitempty" tf:"local_gateway_id,omitempty"` // +kubebuilder:validation:Optional - NatGatewayID *string `json:"natGatewayId,omitempty" tf:"nat_gateway_id,omitempty"` + NATGatewayID *string `json:"natGatewayId,omitempty" tf:"nat_gateway_id,omitempty"` // +crossplane:generate:reference:type=NetworkInterface // +kubebuilder:validation:Optional @@ -106,23 +108,23 @@ type RouteParameters struct { // +crossplane:generate:reference:type=VPCEndpoint // +kubebuilder:validation:Optional - VpcEndpointID *string `json:"vpcEndpointId,omitempty" tf:"vpc_endpoint_id,omitempty"` + VPCEndpointID *string `json:"vpcEndpointId,omitempty" tf:"vpc_endpoint_id,omitempty"` // +kubebuilder:validation:Optional - VpcEndpointIDRef *v1.Reference `json:"vpcEndpointIdRef,omitempty" tf:"-"` + VPCEndpointIDRef *v1.Reference `json:"vpcEndpointIdRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcEndpointIDSelector *v1.Selector `json:"vpcEndpointIdSelector,omitempty" tf:"-"` + VPCEndpointIDSelector *v1.Selector `json:"vpcEndpointIdSelector,omitempty" tf:"-"` // +crossplane:generate:reference:type=VPCPeeringConnection // +kubebuilder:validation:Optional - VpcPeeringConnectionID *string `json:"vpcPeeringConnectionId,omitempty" tf:"vpc_peering_connection_id,omitempty"` + VPCPeeringConnectionID *string `json:"vpcPeeringConnectionId,omitempty" tf:"vpc_peering_connection_id,omitempty"` // +kubebuilder:validation:Optional - VpcPeeringConnectionIDRef *v1.Reference `json:"vpcPeeringConnectionIdRef,omitempty" tf:"-"` + VPCPeeringConnectionIDRef *v1.Reference `json:"vpcPeeringConnectionIdRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcPeeringConnectionIDSelector *v1.Selector `json:"vpcPeeringConnectionIdSelector,omitempty" tf:"-"` + VPCPeeringConnectionIDSelector *v1.Selector `json:"vpcPeeringConnectionIdSelector,omitempty" tf:"-"` } // RouteSpec defines the desired state of Route diff --git a/apis/ec2/v1alpha1/zz_routetable_terraformed.go b/apis/ec2/v1alpha1/zz_routetable_terraformed.go index 780084a6d..052e3ca3d 100755 --- a/apis/ec2/v1alpha1/zz_routetable_terraformed.go +++ b/apis/ec2/v1alpha1/zz_routetable_terraformed.go @@ -54,6 +54,14 @@ func (tr *RouteTable) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this RouteTable +func (tr *RouteTable) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this RouteTable func (tr *RouteTable) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_routetable_types.go b/apis/ec2/v1alpha1/zz_routetable_types.go index 2221f9c06..30939d3ee 100755 --- a/apis/ec2/v1alpha1/zz_routetable_types.go +++ b/apis/ec2/v1alpha1/zz_routetable_types.go @@ -28,6 +28,8 @@ import ( type RouteTableObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + OwnerID *string `json:"ownerId,omitempty" tf:"owner_id,omitempty"` TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` @@ -51,13 +53,13 @@ type RouteTableParameters struct { // +crossplane:generate:reference:type=VPC // +kubebuilder:validation:Optional - VpcID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` + VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` // +kubebuilder:validation:Optional - VpcIDRef *v1.Reference `json:"vpcIdRef,omitempty" tf:"-"` + VPCIDRef *v1.Reference `json:"vpcidRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcIDSelector *v1.Selector `json:"vpcIdSelector,omitempty" tf:"-"` + VPCIDSelector *v1.Selector `json:"vpcidSelector,omitempty" tf:"-"` } type RouteTableRouteObservation struct { @@ -97,7 +99,7 @@ type RouteTableRouteParameters struct { LocalGatewayID *string `json:"localGatewayId,omitempty" tf:"local_gateway_id,omitempty"` // +kubebuilder:validation:Optional - NatGatewayID *string `json:"natGatewayId,omitempty" tf:"nat_gateway_id,omitempty"` + NATGatewayID *string `json:"natGatewayId,omitempty" tf:"nat_gateway_id,omitempty"` // +crossplane:generate:reference:type=NetworkInterface // +kubebuilder:validation:Optional @@ -114,23 +116,23 @@ type RouteTableRouteParameters struct { // +crossplane:generate:reference:type=VPCEndpoint // +kubebuilder:validation:Optional - VpcEndpointID *string `json:"vpcEndpointId,omitempty" tf:"vpc_endpoint_id,omitempty"` + VPCEndpointID *string `json:"vpcEndpointId,omitempty" tf:"vpc_endpoint_id,omitempty"` // +kubebuilder:validation:Optional - VpcEndpointIDRef *v1.Reference `json:"vpcEndpointIdRef,omitempty" tf:"-"` + VPCEndpointIDRef *v1.Reference `json:"vpcEndpointIdRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcEndpointIDSelector *v1.Selector `json:"vpcEndpointIdSelector,omitempty" tf:"-"` + VPCEndpointIDSelector *v1.Selector `json:"vpcEndpointIdSelector,omitempty" tf:"-"` // +crossplane:generate:reference:type=VPCPeeringConnection // +kubebuilder:validation:Optional - VpcPeeringConnectionID *string `json:"vpcPeeringConnectionId,omitempty" tf:"vpc_peering_connection_id,omitempty"` + VPCPeeringConnectionID *string `json:"vpcPeeringConnectionId,omitempty" tf:"vpc_peering_connection_id,omitempty"` // +kubebuilder:validation:Optional - VpcPeeringConnectionIDRef *v1.Reference `json:"vpcPeeringConnectionIdRef,omitempty" tf:"-"` + VPCPeeringConnectionIDRef *v1.Reference `json:"vpcPeeringConnectionIdRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcPeeringConnectionIDSelector *v1.Selector `json:"vpcPeeringConnectionIdSelector,omitempty" tf:"-"` + VPCPeeringConnectionIDSelector *v1.Selector `json:"vpcPeeringConnectionIdSelector,omitempty" tf:"-"` } // RouteTableSpec defines the desired state of RouteTable diff --git a/apis/ec2/v1alpha1/zz_routetableassociation_terraformed.go b/apis/ec2/v1alpha1/zz_routetableassociation_terraformed.go index 2cc584a89..a7075e990 100755 --- a/apis/ec2/v1alpha1/zz_routetableassociation_terraformed.go +++ b/apis/ec2/v1alpha1/zz_routetableassociation_terraformed.go @@ -54,6 +54,14 @@ func (tr *RouteTableAssociation) SetObservation(obs map[string]interface{}) erro return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this RouteTableAssociation +func (tr *RouteTableAssociation) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this RouteTableAssociation func (tr *RouteTableAssociation) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_routetableassociation_types.go b/apis/ec2/v1alpha1/zz_routetableassociation_types.go index 3c0596664..48671052e 100755 --- a/apis/ec2/v1alpha1/zz_routetableassociation_types.go +++ b/apis/ec2/v1alpha1/zz_routetableassociation_types.go @@ -26,6 +26,7 @@ import ( ) type RouteTableAssociationObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` } type RouteTableAssociationParameters struct { diff --git a/apis/ec2/v1alpha1/zz_securitygroup_terraformed.go b/apis/ec2/v1alpha1/zz_securitygroup_terraformed.go index b245bf6d9..27d346ec7 100755 --- a/apis/ec2/v1alpha1/zz_securitygroup_terraformed.go +++ b/apis/ec2/v1alpha1/zz_securitygroup_terraformed.go @@ -54,6 +54,14 @@ func (tr *SecurityGroup) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this SecurityGroup +func (tr *SecurityGroup) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this SecurityGroup func (tr *SecurityGroup) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_securitygroup_types.go b/apis/ec2/v1alpha1/zz_securitygroup_types.go index 1288f6b2c..58f95094e 100755 --- a/apis/ec2/v1alpha1/zz_securitygroup_types.go +++ b/apis/ec2/v1alpha1/zz_securitygroup_types.go @@ -112,6 +112,8 @@ type IngressParameters struct { type SecurityGroupObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + OwnerID *string `json:"ownerId,omitempty" tf:"owner_id,omitempty"` TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` @@ -147,13 +149,13 @@ type SecurityGroupParameters struct { // +crossplane:generate:reference:type=VPC // +kubebuilder:validation:Optional - VpcID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` + VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` // +kubebuilder:validation:Optional - VpcIDRef *v1.Reference `json:"vpcIdRef,omitempty" tf:"-"` + VPCIDRef *v1.Reference `json:"vpcidRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcIDSelector *v1.Selector `json:"vpcIdSelector,omitempty" tf:"-"` + VPCIDSelector *v1.Selector `json:"vpcidSelector,omitempty" tf:"-"` } // SecurityGroupSpec defines the desired state of SecurityGroup diff --git a/apis/ec2/v1alpha1/zz_securitygrouprule_terraformed.go b/apis/ec2/v1alpha1/zz_securitygrouprule_terraformed.go index 584a16ee2..4bc4db581 100755 --- a/apis/ec2/v1alpha1/zz_securitygrouprule_terraformed.go +++ b/apis/ec2/v1alpha1/zz_securitygrouprule_terraformed.go @@ -54,6 +54,14 @@ func (tr *SecurityGroupRule) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this SecurityGroupRule +func (tr *SecurityGroupRule) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this SecurityGroupRule func (tr *SecurityGroupRule) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_securitygrouprule_types.go b/apis/ec2/v1alpha1/zz_securitygrouprule_types.go index d6cba7e17..0d25c53c8 100755 --- a/apis/ec2/v1alpha1/zz_securitygrouprule_types.go +++ b/apis/ec2/v1alpha1/zz_securitygrouprule_types.go @@ -26,6 +26,7 @@ import ( ) type SecurityGroupRuleObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` } type SecurityGroupRuleParameters struct { diff --git a/apis/ec2/v1alpha1/zz_subnet_terraformed.go b/apis/ec2/v1alpha1/zz_subnet_terraformed.go index 7346acf2c..e038b4753 100755 --- a/apis/ec2/v1alpha1/zz_subnet_terraformed.go +++ b/apis/ec2/v1alpha1/zz_subnet_terraformed.go @@ -54,6 +54,14 @@ func (tr *Subnet) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this Subnet +func (tr *Subnet) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this Subnet func (tr *Subnet) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_subnet_types.go b/apis/ec2/v1alpha1/zz_subnet_types.go index 46f6447f0..e47fdf00e 100755 --- a/apis/ec2/v1alpha1/zz_subnet_types.go +++ b/apis/ec2/v1alpha1/zz_subnet_types.go @@ -28,6 +28,8 @@ import ( type SubnetObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + IPv6CidrBlockAssociationID *string `json:"ipv6CidrBlockAssociationId,omitempty" tf:"ipv6_cidr_block_association_id,omitempty"` OwnerID *string `json:"ownerId,omitempty" tf:"owner_id,omitempty"` @@ -74,13 +76,13 @@ type SubnetParameters struct { // +crossplane:generate:reference:type=VPC // +kubebuilder:validation:Optional - VpcID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` + VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` // +kubebuilder:validation:Optional - VpcIDRef *v1.Reference `json:"vpcIdRef,omitempty" tf:"-"` + VPCIDRef *v1.Reference `json:"vpcidRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcIDSelector *v1.Selector `json:"vpcIdSelector,omitempty" tf:"-"` + VPCIDSelector *v1.Selector `json:"vpcidSelector,omitempty" tf:"-"` } // SubnetSpec defines the desired state of Subnet diff --git a/apis/ec2/v1alpha1/zz_transitgateway_terraformed.go b/apis/ec2/v1alpha1/zz_transitgateway_terraformed.go index 89857a605..4a5c2f929 100755 --- a/apis/ec2/v1alpha1/zz_transitgateway_terraformed.go +++ b/apis/ec2/v1alpha1/zz_transitgateway_terraformed.go @@ -54,6 +54,14 @@ func (tr *TransitGateway) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this TransitGateway +func (tr *TransitGateway) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this TransitGateway func (tr *TransitGateway) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_transitgateway_types.go b/apis/ec2/v1alpha1/zz_transitgateway_types.go index 780da61e6..13b9be407 100755 --- a/apis/ec2/v1alpha1/zz_transitgateway_types.go +++ b/apis/ec2/v1alpha1/zz_transitgateway_types.go @@ -30,6 +30,8 @@ type TransitGatewayObservation struct { AssociationDefaultRouteTableID *string `json:"associationDefaultRouteTableId,omitempty" tf:"association_default_route_table_id,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + OwnerID *string `json:"ownerId,omitempty" tf:"owner_id,omitempty"` PropagationDefaultRouteTableID *string `json:"propagationDefaultRouteTableId,omitempty" tf:"propagation_default_route_table_id,omitempty"` @@ -66,7 +68,7 @@ type TransitGatewayParameters struct { Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` // +kubebuilder:validation:Optional - VpnEcmpSupport *string `json:"vpnEcmpSupport,omitempty" tf:"vpn_ecmp_support,omitempty"` + VPNEcmpSupport *string `json:"vpnEcmpSupport,omitempty" tf:"vpn_ecmp_support,omitempty"` } // TransitGatewaySpec defines the desired state of TransitGateway diff --git a/apis/ec2/v1alpha1/zz_transitgatewayroute_terraformed.go b/apis/ec2/v1alpha1/zz_transitgatewayroute_terraformed.go index ac0b8946b..b9881f098 100755 --- a/apis/ec2/v1alpha1/zz_transitgatewayroute_terraformed.go +++ b/apis/ec2/v1alpha1/zz_transitgatewayroute_terraformed.go @@ -54,6 +54,14 @@ func (tr *TransitGatewayRoute) SetObservation(obs map[string]interface{}) error return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this TransitGatewayRoute +func (tr *TransitGatewayRoute) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this TransitGatewayRoute func (tr *TransitGatewayRoute) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_transitgatewayroute_types.go b/apis/ec2/v1alpha1/zz_transitgatewayroute_types.go index 0141cb058..caeaa2a5b 100755 --- a/apis/ec2/v1alpha1/zz_transitgatewayroute_types.go +++ b/apis/ec2/v1alpha1/zz_transitgatewayroute_types.go @@ -26,6 +26,7 @@ import ( ) type TransitGatewayRouteObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` } type TransitGatewayRouteParameters struct { diff --git a/apis/ec2/v1alpha1/zz_transitgatewayroutetable_terraformed.go b/apis/ec2/v1alpha1/zz_transitgatewayroutetable_terraformed.go index 56556f9a5..2552a726f 100755 --- a/apis/ec2/v1alpha1/zz_transitgatewayroutetable_terraformed.go +++ b/apis/ec2/v1alpha1/zz_transitgatewayroutetable_terraformed.go @@ -54,6 +54,14 @@ func (tr *TransitGatewayRouteTable) SetObservation(obs map[string]interface{}) e return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this TransitGatewayRouteTable +func (tr *TransitGatewayRouteTable) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this TransitGatewayRouteTable func (tr *TransitGatewayRouteTable) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_transitgatewayroutetable_types.go b/apis/ec2/v1alpha1/zz_transitgatewayroutetable_types.go index 512e6480d..213c83496 100755 --- a/apis/ec2/v1alpha1/zz_transitgatewayroutetable_types.go +++ b/apis/ec2/v1alpha1/zz_transitgatewayroutetable_types.go @@ -32,6 +32,8 @@ type TransitGatewayRouteTableObservation struct { DefaultPropagationRouteTable *bool `json:"defaultPropagationRouteTable,omitempty" tf:"default_propagation_route_table,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } diff --git a/apis/ec2/v1alpha1/zz_transitgatewayroutetableassociation_terraformed.go b/apis/ec2/v1alpha1/zz_transitgatewayroutetableassociation_terraformed.go index c927dc966..9f581c1d0 100755 --- a/apis/ec2/v1alpha1/zz_transitgatewayroutetableassociation_terraformed.go +++ b/apis/ec2/v1alpha1/zz_transitgatewayroutetableassociation_terraformed.go @@ -54,6 +54,14 @@ func (tr *TransitGatewayRouteTableAssociation) SetObservation(obs map[string]int return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this TransitGatewayRouteTableAssociation +func (tr *TransitGatewayRouteTableAssociation) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this TransitGatewayRouteTableAssociation func (tr *TransitGatewayRouteTableAssociation) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_transitgatewayroutetableassociation_types.go b/apis/ec2/v1alpha1/zz_transitgatewayroutetableassociation_types.go index 4029e6376..8dbc02169 100755 --- a/apis/ec2/v1alpha1/zz_transitgatewayroutetableassociation_types.go +++ b/apis/ec2/v1alpha1/zz_transitgatewayroutetableassociation_types.go @@ -26,6 +26,8 @@ import ( ) type TransitGatewayRouteTableAssociationObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` + ResourceID *string `json:"resourceId,omitempty" tf:"resource_id,omitempty"` ResourceType *string `json:"resourceType,omitempty" tf:"resource_type,omitempty"` diff --git a/apis/ec2/v1alpha1/zz_transitgatewayroutetablepropagation_terraformed.go b/apis/ec2/v1alpha1/zz_transitgatewayroutetablepropagation_terraformed.go index bb84827c5..4ba482230 100755 --- a/apis/ec2/v1alpha1/zz_transitgatewayroutetablepropagation_terraformed.go +++ b/apis/ec2/v1alpha1/zz_transitgatewayroutetablepropagation_terraformed.go @@ -54,6 +54,14 @@ func (tr *TransitGatewayRouteTablePropagation) SetObservation(obs map[string]int return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this TransitGatewayRouteTablePropagation +func (tr *TransitGatewayRouteTablePropagation) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this TransitGatewayRouteTablePropagation func (tr *TransitGatewayRouteTablePropagation) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_transitgatewayroutetablepropagation_types.go b/apis/ec2/v1alpha1/zz_transitgatewayroutetablepropagation_types.go index 35ae98438..6c3acb06d 100755 --- a/apis/ec2/v1alpha1/zz_transitgatewayroutetablepropagation_types.go +++ b/apis/ec2/v1alpha1/zz_transitgatewayroutetablepropagation_types.go @@ -26,6 +26,8 @@ import ( ) type TransitGatewayRouteTablePropagationObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` + ResourceID *string `json:"resourceId,omitempty" tf:"resource_id,omitempty"` ResourceType *string `json:"resourceType,omitempty" tf:"resource_type,omitempty"` diff --git a/apis/ec2/v1alpha1/zz_transitgatewayvpcattachment_terraformed.go b/apis/ec2/v1alpha1/zz_transitgatewayvpcattachment_terraformed.go index 5ebea9bdd..69c636ae2 100755 --- a/apis/ec2/v1alpha1/zz_transitgatewayvpcattachment_terraformed.go +++ b/apis/ec2/v1alpha1/zz_transitgatewayvpcattachment_terraformed.go @@ -54,6 +54,14 @@ func (tr *TransitGatewayVPCAttachment) SetObservation(obs map[string]interface{} return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this TransitGatewayVPCAttachment +func (tr *TransitGatewayVPCAttachment) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this TransitGatewayVPCAttachment func (tr *TransitGatewayVPCAttachment) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_transitgatewayvpcattachment_types.go b/apis/ec2/v1alpha1/zz_transitgatewayvpcattachment_types.go index 0c93d4d7c..7b471b2f8 100755 --- a/apis/ec2/v1alpha1/zz_transitgatewayvpcattachment_types.go +++ b/apis/ec2/v1alpha1/zz_transitgatewayvpcattachment_types.go @@ -26,9 +26,11 @@ import ( ) type TransitGatewayVPCAttachmentObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` + TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` - VpcOwnerID *string `json:"vpcOwnerId,omitempty" tf:"vpc_owner_id,omitempty"` + VPCOwnerID *string `json:"vpcOwnerId,omitempty" tf:"vpc_owner_id,omitempty"` } type TransitGatewayVPCAttachmentParameters struct { @@ -80,13 +82,13 @@ type TransitGatewayVPCAttachmentParameters struct { // +crossplane:generate:reference:type=VPC // +kubebuilder:validation:Optional - VpcID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` + VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` // +kubebuilder:validation:Optional - VpcIDRef *v1.Reference `json:"vpcIdRef,omitempty" tf:"-"` + VPCIDRef *v1.Reference `json:"vpcidRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcIDSelector *v1.Selector `json:"vpcIdSelector,omitempty" tf:"-"` + VPCIDSelector *v1.Selector `json:"vpcidSelector,omitempty" tf:"-"` } // TransitGatewayVPCAttachmentSpec defines the desired state of TransitGatewayVPCAttachment diff --git a/apis/ec2/v1alpha1/zz_transitgatewayvpcattachmentaccepter_terraformed.go b/apis/ec2/v1alpha1/zz_transitgatewayvpcattachmentaccepter_terraformed.go index 2e2fac9c4..0ed803281 100755 --- a/apis/ec2/v1alpha1/zz_transitgatewayvpcattachmentaccepter_terraformed.go +++ b/apis/ec2/v1alpha1/zz_transitgatewayvpcattachmentaccepter_terraformed.go @@ -54,6 +54,14 @@ func (tr *TransitGatewayVPCAttachmentAccepter) SetObservation(obs map[string]int return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this TransitGatewayVPCAttachmentAccepter +func (tr *TransitGatewayVPCAttachmentAccepter) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this TransitGatewayVPCAttachmentAccepter func (tr *TransitGatewayVPCAttachmentAccepter) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_transitgatewayvpcattachmentaccepter_types.go b/apis/ec2/v1alpha1/zz_transitgatewayvpcattachmentaccepter_types.go index 33460a28b..413726faa 100755 --- a/apis/ec2/v1alpha1/zz_transitgatewayvpcattachmentaccepter_types.go +++ b/apis/ec2/v1alpha1/zz_transitgatewayvpcattachmentaccepter_types.go @@ -30,6 +30,8 @@ type TransitGatewayVPCAttachmentAccepterObservation struct { DNSSupport *string `json:"dnsSupport,omitempty" tf:"dns_support,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + IPv6Support *string `json:"ipv6Support,omitempty" tf:"ipv6_support,omitempty"` SubnetIds []*string `json:"subnetIds,omitempty" tf:"subnet_ids,omitempty"` @@ -38,9 +40,9 @@ type TransitGatewayVPCAttachmentAccepterObservation struct { TransitGatewayID *string `json:"transitGatewayId,omitempty" tf:"transit_gateway_id,omitempty"` - VpcID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` + VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` - VpcOwnerID *string `json:"vpcOwnerId,omitempty" tf:"vpc_owner_id,omitempty"` + VPCOwnerID *string `json:"vpcOwnerId,omitempty" tf:"vpc_owner_id,omitempty"` } type TransitGatewayVPCAttachmentAccepterParameters struct { diff --git a/apis/ec2/v1alpha1/zz_vpc_terraformed.go b/apis/ec2/v1alpha1/zz_vpc_terraformed.go index 5708e8a68..78fb0b2fe 100755 --- a/apis/ec2/v1alpha1/zz_vpc_terraformed.go +++ b/apis/ec2/v1alpha1/zz_vpc_terraformed.go @@ -54,6 +54,14 @@ func (tr *VPC) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this VPC +func (tr *VPC) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this VPC func (tr *VPC) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_vpc_types.go b/apis/ec2/v1alpha1/zz_vpc_types.go index e943cdddf..333a609ef 100755 --- a/apis/ec2/v1alpha1/zz_vpc_types.go +++ b/apis/ec2/v1alpha1/zz_vpc_types.go @@ -28,13 +28,15 @@ import ( type VPCObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + DHCPOptionsID *string `json:"dhcpOptionsId,omitempty" tf:"dhcp_options_id,omitempty"` + DefaultNetworkACLID *string `json:"defaultNetworkAclId,omitempty" tf:"default_network_acl_id,omitempty"` DefaultRouteTableID *string `json:"defaultRouteTableId,omitempty" tf:"default_route_table_id,omitempty"` DefaultSecurityGroupID *string `json:"defaultSecurityGroupId,omitempty" tf:"default_security_group_id,omitempty"` - DhcpOptionsID *string `json:"dhcpOptionsId,omitempty" tf:"dhcp_options_id,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` IPv6AssociationID *string `json:"ipv6AssociationId,omitempty" tf:"ipv6_association_id,omitempty"` diff --git a/apis/ec2/v1alpha1/zz_vpcendpoint_terraformed.go b/apis/ec2/v1alpha1/zz_vpcendpoint_terraformed.go index 33578aac9..3b3b91fa6 100755 --- a/apis/ec2/v1alpha1/zz_vpcendpoint_terraformed.go +++ b/apis/ec2/v1alpha1/zz_vpcendpoint_terraformed.go @@ -54,6 +54,14 @@ func (tr *VPCEndpoint) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this VPCEndpoint +func (tr *VPCEndpoint) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this VPCEndpoint func (tr *VPCEndpoint) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_vpcendpoint_types.go b/apis/ec2/v1alpha1/zz_vpcendpoint_types.go index 2b6801164..d3bd0b11e 100755 --- a/apis/ec2/v1alpha1/zz_vpcendpoint_types.go +++ b/apis/ec2/v1alpha1/zz_vpcendpoint_types.go @@ -41,6 +41,8 @@ type VPCEndpointObservation struct { DNSEntry []DNSEntryObservation `json:"dnsEntry,omitempty" tf:"dns_entry,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + NetworkInterfaceIds []*string `json:"networkInterfaceIds,omitempty" tf:"network_interface_ids,omitempty"` OwnerID *string `json:"ownerId,omitempty" tf:"owner_id,omitempty"` @@ -113,17 +115,17 @@ type VPCEndpointParameters struct { Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` // +kubebuilder:validation:Optional - VpcEndpointType *string `json:"vpcEndpointType,omitempty" tf:"vpc_endpoint_type,omitempty"` + VPCEndpointType *string `json:"vpcEndpointType,omitempty" tf:"vpc_endpoint_type,omitempty"` // +crossplane:generate:reference:type=VPC // +kubebuilder:validation:Optional - VpcID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` + VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` // +kubebuilder:validation:Optional - VpcIDRef *v1.Reference `json:"vpcIdRef,omitempty" tf:"-"` + VPCIDRef *v1.Reference `json:"vpcidRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcIDSelector *v1.Selector `json:"vpcIdSelector,omitempty" tf:"-"` + VPCIDSelector *v1.Selector `json:"vpcidSelector,omitempty" tf:"-"` } // VPCEndpointSpec defines the desired state of VPCEndpoint diff --git a/apis/ec2/v1alpha1/zz_ipv4cidrblockassociation_terraformed.go b/apis/ec2/v1alpha1/zz_vpcipv4cidrblockassociation_terraformed.go similarity index 60% rename from apis/ec2/v1alpha1/zz_ipv4cidrblockassociation_terraformed.go rename to apis/ec2/v1alpha1/zz_vpcipv4cidrblockassociation_terraformed.go index 9b4ea6b63..1b598ac2f 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-contrib/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,8 +54,16 @@ func (tr *IPv4CIDRBlockAssociation) SetObservation(obs map[string]interface{}) e return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this IPv4CIDRBlockAssociation -func (tr *IPv4CIDRBlockAssociation) GetParameters() (map[string]interface{}, error) { +// 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 VPCIPv4CidrBlockAssociation +func (tr *VPCIPv4CidrBlockAssociation) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,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 @@ -73,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") } @@ -87,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 54% rename from apis/ec2/v1alpha1/zz_ipv4cidrblockassociation_types.go rename to apis/ec2/v1alpha1/zz_vpcipv4cidrblockassociation_types.go index fa8a4a0a2..83c16b266 100755 --- a/apis/ec2/v1alpha1/zz_ipv4cidrblockassociation_types.go +++ b/apis/ec2/v1alpha1/zz_vpcipv4cidrblockassociation_types.go @@ -25,10 +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"` @@ -40,60 +41,60 @@ type IPv4CIDRBlockAssociationParameters struct { // +crossplane:generate:reference:type=VPC // +kubebuilder:validation:Optional - VpcID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` + VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` // +kubebuilder:validation:Optional - VpcIDRef *v1.Reference `json:"vpcIdRef,omitempty" tf:"-"` + VPCIDRef *v1.Reference `json:"vpcidRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcIDSelector *v1.Selector `json:"vpcIdSelector,omitempty" tf:"-"` + 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_vpcpeeringconnection_terraformed.go b/apis/ec2/v1alpha1/zz_vpcpeeringconnection_terraformed.go index 69e9e3fd6..c7b1fb197 100755 --- a/apis/ec2/v1alpha1/zz_vpcpeeringconnection_terraformed.go +++ b/apis/ec2/v1alpha1/zz_vpcpeeringconnection_terraformed.go @@ -54,6 +54,14 @@ func (tr *VPCPeeringConnection) SetObservation(obs map[string]interface{}) error return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this VPCPeeringConnection +func (tr *VPCPeeringConnection) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this VPCPeeringConnection func (tr *VPCPeeringConnection) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ec2/v1alpha1/zz_vpcpeeringconnection_types.go b/apis/ec2/v1alpha1/zz_vpcpeeringconnection_types.go index 3df10e562..c1f73aaad 100755 --- a/apis/ec2/v1alpha1/zz_vpcpeeringconnection_types.go +++ b/apis/ec2/v1alpha1/zz_vpcpeeringconnection_types.go @@ -31,13 +31,13 @@ type AccepterObservation struct { type AccepterParameters struct { // +kubebuilder:validation:Optional - AllowClassicLinkToRemoteVpc *bool `json:"allowClassicLinkToRemoteVpc,omitempty" tf:"allow_classic_link_to_remote_vpc,omitempty"` + AllowClassicLinkToRemoteVPC *bool `json:"allowClassicLinkToRemoteVpc,omitempty" tf:"allow_classic_link_to_remote_vpc,omitempty"` // +kubebuilder:validation:Optional - AllowRemoteVpcDNSResolution *bool `json:"allowRemoteVpcDnsResolution,omitempty" tf:"allow_remote_vpc_dns_resolution,omitempty"` + AllowRemoteVPCDNSResolution *bool `json:"allowRemoteVpcDnsResolution,omitempty" tf:"allow_remote_vpc_dns_resolution,omitempty"` // +kubebuilder:validation:Optional - AllowVpcToRemoteClassicLink *bool `json:"allowVpcToRemoteClassicLink,omitempty" tf:"allow_vpc_to_remote_classic_link,omitempty"` + AllowVPCToRemoteClassicLink *bool `json:"allowVpcToRemoteClassicLink,omitempty" tf:"allow_vpc_to_remote_classic_link,omitempty"` } type RequesterObservation struct { @@ -46,18 +46,20 @@ type RequesterObservation struct { type RequesterParameters struct { // +kubebuilder:validation:Optional - AllowClassicLinkToRemoteVpc *bool `json:"allowClassicLinkToRemoteVpc,omitempty" tf:"allow_classic_link_to_remote_vpc,omitempty"` + AllowClassicLinkToRemoteVPC *bool `json:"allowClassicLinkToRemoteVpc,omitempty" tf:"allow_classic_link_to_remote_vpc,omitempty"` // +kubebuilder:validation:Optional - AllowRemoteVpcDNSResolution *bool `json:"allowRemoteVpcDnsResolution,omitempty" tf:"allow_remote_vpc_dns_resolution,omitempty"` + AllowRemoteVPCDNSResolution *bool `json:"allowRemoteVpcDnsResolution,omitempty" tf:"allow_remote_vpc_dns_resolution,omitempty"` // +kubebuilder:validation:Optional - AllowVpcToRemoteClassicLink *bool `json:"allowVpcToRemoteClassicLink,omitempty" tf:"allow_vpc_to_remote_classic_link,omitempty"` + AllowVPCToRemoteClassicLink *bool `json:"allowVpcToRemoteClassicLink,omitempty" tf:"allow_vpc_to_remote_classic_link,omitempty"` } type VPCPeeringConnectionObservation struct { AcceptStatus *string `json:"acceptStatus,omitempty" tf:"accept_status,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } @@ -77,13 +79,13 @@ type VPCPeeringConnectionParameters struct { // +crossplane:generate:reference:type=VPC // +kubebuilder:validation:Optional - PeerVpcID *string `json:"peerVpcId,omitempty" tf:"peer_vpc_id,omitempty"` + PeerVPCID *string `json:"peerVpcId,omitempty" tf:"peer_vpc_id,omitempty"` // +kubebuilder:validation:Optional - PeerVpcIDRef *v1.Reference `json:"peerVpcIdRef,omitempty" tf:"-"` + PeerVPCIDRef *v1.Reference `json:"peerVpcidRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - PeerVpcIDSelector *v1.Selector `json:"peerVpcIdSelector,omitempty" tf:"-"` + PeerVPCIDSelector *v1.Selector `json:"peerVpcidSelector,omitempty" tf:"-"` // Region is the region you'd like your resource to be created in. // +terrajet:crd:field:TFTag=- @@ -98,13 +100,13 @@ type VPCPeeringConnectionParameters struct { // +crossplane:generate:reference:type=VPC // +kubebuilder:validation:Optional - VpcID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` + VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` // +kubebuilder:validation:Optional - VpcIDRef *v1.Reference `json:"vpcIdRef,omitempty" tf:"-"` + VPCIDRef *v1.Reference `json:"vpcidRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcIDSelector *v1.Selector `json:"vpcIdSelector,omitempty" tf:"-"` + VPCIDSelector *v1.Selector `json:"vpcidSelector,omitempty" tf:"-"` } // VPCPeeringConnectionSpec defines the desired state of VPCPeeringConnection diff --git a/apis/ec2/v1alpha1/zz_peeringconnectionaccepter_terraformed.go b/apis/ec2/v1alpha1/zz_vpcpeeringconnectionaccepter_terraformed.go similarity index 60% rename from apis/ec2/v1alpha1/zz_peeringconnectionaccepter_terraformed.go rename to apis/ec2/v1alpha1/zz_vpcpeeringconnectionaccepter_terraformed.go index 92328c4e3..92fa64684 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-contrib/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,8 +54,16 @@ func (tr *PeeringConnectionAccepter) SetObservation(obs map[string]interface{}) return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this PeeringConnectionAccepter -func (tr *PeeringConnectionAccepter) GetParameters() (map[string]interface{}, error) { +// 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 VPCPeeringConnectionAccepter +func (tr *VPCPeeringConnectionAccepter) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,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 @@ -73,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") } @@ -87,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 54% rename from apis/ec2/v1alpha1/zz_peeringconnectionaccepter_types.go rename to apis/ec2/v1alpha1/zz_vpcpeeringconnectionaccepter_types.go index dababfb57..891311e45 100755 --- a/apis/ec2/v1alpha1/zz_peeringconnectionaccepter_types.go +++ b/apis/ec2/v1alpha1/zz_vpcpeeringconnectionaccepter_types.go @@ -25,39 +25,41 @@ 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"` + AllowClassicLinkToRemoteVPC *bool `json:"allowClassicLinkToRemoteVpc,omitempty" tf:"allow_classic_link_to_remote_vpc,omitempty"` // +kubebuilder:validation:Optional - AllowRemoteVpcDNSResolution *bool `json:"allowRemoteVpcDnsResolution,omitempty" tf:"allow_remote_vpc_dns_resolution,omitempty"` + AllowRemoteVPCDNSResolution *bool `json:"allowRemoteVpcDnsResolution,omitempty" tf:"allow_remote_vpc_dns_resolution,omitempty"` // +kubebuilder:validation:Optional - AllowVpcToRemoteClassicLink *bool `json:"allowVpcToRemoteClassicLink,omitempty" tf:"allow_vpc_to_remote_classic_link,omitempty"` + 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"` + PeerOwnerID *string `json:"peerOwnerId,omitempty" tf:"peer_owner_id,omitempty"` PeerRegion *string `json:"peerRegion,omitempty" tf:"peer_region,omitempty"` - PeerVpcID *string `json:"peerVpcId,omitempty" tf:"peer_vpc_id,omitempty"` + PeerVPCID *string `json:"peerVpcId,omitempty" tf:"peer_vpc_id,omitempty"` TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` - VpcID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` + 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"` @@ -68,75 +70,75 @@ 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"` // +kubebuilder:validation:Required - VpcPeeringConnectionID *string `json:"vpcPeeringConnectionId" tf:"vpc_peering_connection_id,omitempty"` + 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"` + AllowClassicLinkToRemoteVPC *bool `json:"allowClassicLinkToRemoteVpc,omitempty" tf:"allow_classic_link_to_remote_vpc,omitempty"` // +kubebuilder:validation:Optional - AllowRemoteVpcDNSResolution *bool `json:"allowRemoteVpcDnsResolution,omitempty" tf:"allow_remote_vpc_dns_resolution,omitempty"` + AllowRemoteVPCDNSResolution *bool `json:"allowRemoteVpcDnsResolution,omitempty" tf:"allow_remote_vpc_dns_resolution,omitempty"` // +kubebuilder:validation:Optional - AllowVpcToRemoteClassicLink *bool `json:"allowVpcToRemoteClassicLink,omitempty" tf:"allow_vpc_to_remote_classic_link,omitempty"` + 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/ecr/v1alpha1/zz_generated.deepcopy.go b/apis/ecr/v1alpha1/zz_generated.deepcopy.go index b554857db..45a04e732 100644 --- a/apis/ecr/v1alpha1/zz_generated.deepcopy.go +++ b/apis/ecr/v1alpha1/zz_generated.deepcopy.go @@ -48,18 +48,18 @@ func (in *EncryptionConfigurationParameters) DeepCopyInto(out *EncryptionConfigu *out = new(string) **out = **in } - if in.KmsKey != nil { - in, out := &in.KmsKey, &out.KmsKey + if in.KMSKey != nil { + in, out := &in.KMSKey, &out.KMSKey *out = new(string) **out = **in } - if in.KmsKeyRef != nil { - in, out := &in.KmsKeyRef, &out.KmsKeyRef + if in.KMSKeyRef != nil { + in, out := &in.KMSKeyRef, &out.KMSKeyRef *out = new(v1.Reference) **out = **in } - if in.KmsKeySelector != nil { - in, out := &in.KmsKeySelector, &out.KmsKeySelector + if in.KMSKeySelector != nil { + in, out := &in.KMSKeySelector, &out.KMSKeySelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -177,6 +177,11 @@ func (in *RepositoryObservation) DeepCopyInto(out *RepositoryObservation) { *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.RegistryID != nil { in, out := &in.RegistryID, &out.RegistryID *out = new(string) diff --git a/apis/ecr/v1alpha1/zz_generated.resolvers.go b/apis/ecr/v1alpha1/zz_generated.resolvers.go index d0c2530dd..c5b06a1b7 100644 --- a/apis/ecr/v1alpha1/zz_generated.resolvers.go +++ b/apis/ecr/v1alpha1/zz_generated.resolvers.go @@ -35,20 +35,20 @@ func (mg *Repository) ResolveReferences(ctx context.Context, c client.Reader) er for i3 := 0; i3 < len(mg.Spec.ForProvider.EncryptionConfiguration); i3++ { rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.EncryptionConfiguration[i3].KmsKey), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.EncryptionConfiguration[i3].KMSKey), Extract: common.ARNExtractor(), - Reference: mg.Spec.ForProvider.EncryptionConfiguration[i3].KmsKeyRef, - Selector: mg.Spec.ForProvider.EncryptionConfiguration[i3].KmsKeySelector, + Reference: mg.Spec.ForProvider.EncryptionConfiguration[i3].KMSKeyRef, + Selector: mg.Spec.ForProvider.EncryptionConfiguration[i3].KMSKeySelector, To: reference.To{ List: &v1alpha1.KeyList{}, Managed: &v1alpha1.Key{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.EncryptionConfiguration[i3].KmsKey") + return errors.Wrap(err, "mg.Spec.ForProvider.EncryptionConfiguration[i3].KMSKey") } - mg.Spec.ForProvider.EncryptionConfiguration[i3].KmsKey = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.EncryptionConfiguration[i3].KmsKeyRef = rsp.ResolvedReference + mg.Spec.ForProvider.EncryptionConfiguration[i3].KMSKey = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.EncryptionConfiguration[i3].KMSKeyRef = rsp.ResolvedReference } diff --git a/apis/ecr/v1alpha1/zz_repository_terraformed.go b/apis/ecr/v1alpha1/zz_repository_terraformed.go index 3f3f9c7b9..1beb43452 100755 --- a/apis/ecr/v1alpha1/zz_repository_terraformed.go +++ b/apis/ecr/v1alpha1/zz_repository_terraformed.go @@ -54,6 +54,14 @@ func (tr *Repository) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this Repository +func (tr *Repository) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this Repository func (tr *Repository) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ecr/v1alpha1/zz_repository_types.go b/apis/ecr/v1alpha1/zz_repository_types.go index 3dd9fa7e5..87e7f0a70 100755 --- a/apis/ecr/v1alpha1/zz_repository_types.go +++ b/apis/ecr/v1alpha1/zz_repository_types.go @@ -36,13 +36,13 @@ type EncryptionConfigurationParameters struct { // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/kms/v1alpha1.Key // +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-jet-aws/config/common.ARNExtractor() // +kubebuilder:validation:Optional - KmsKey *string `json:"kmsKey,omitempty" tf:"kms_key,omitempty"` + KMSKey *string `json:"kmsKey,omitempty" tf:"kms_key,omitempty"` // +kubebuilder:validation:Optional - KmsKeyRef *v1.Reference `json:"kmsKeyRef,omitempty" tf:"-"` + KMSKeyRef *v1.Reference `json:"kmsKeyRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - KmsKeySelector *v1.Selector `json:"kmsKeySelector,omitempty" tf:"-"` + KMSKeySelector *v1.Selector `json:"kmsKeySelector,omitempty" tf:"-"` } type ImageScanningConfigurationObservation struct { @@ -57,6 +57,8 @@ type ImageScanningConfigurationParameters struct { type RepositoryObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + RegistryID *string `json:"registryId,omitempty" tf:"registry_id,omitempty"` RepositoryURL *string `json:"repositoryUrl,omitempty" tf:"repository_url,omitempty"` diff --git a/apis/ecrpublic/v1alpha1/zz_generated.deepcopy.go b/apis/ecrpublic/v1alpha1/zz_generated.deepcopy.go index 6aab1861a..6edf36080 100644 --- a/apis/ecrpublic/v1alpha1/zz_generated.deepcopy.go +++ b/apis/ecrpublic/v1alpha1/zz_generated.deepcopy.go @@ -163,6 +163,11 @@ func (in *RepositoryObservation) DeepCopyInto(out *RepositoryObservation) { *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.RegistryID != nil { in, out := &in.RegistryID, &out.RegistryID *out = new(string) diff --git a/apis/ecrpublic/v1alpha1/zz_repository_terraformed.go b/apis/ecrpublic/v1alpha1/zz_repository_terraformed.go index e99770f59..651ccc700 100755 --- a/apis/ecrpublic/v1alpha1/zz_repository_terraformed.go +++ b/apis/ecrpublic/v1alpha1/zz_repository_terraformed.go @@ -54,6 +54,14 @@ func (tr *Repository) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this Repository +func (tr *Repository) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this Repository func (tr *Repository) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ecrpublic/v1alpha1/zz_repository_types.go b/apis/ecrpublic/v1alpha1/zz_repository_types.go index ca24ecf60..6eb905e73 100755 --- a/apis/ecrpublic/v1alpha1/zz_repository_types.go +++ b/apis/ecrpublic/v1alpha1/zz_repository_types.go @@ -52,6 +52,8 @@ type CatalogDataParameters struct { type RepositoryObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + RegistryID *string `json:"registryId,omitempty" tf:"registry_id,omitempty"` RepositoryURI *string `json:"repositoryUri,omitempty" tf:"repository_uri,omitempty"` diff --git a/apis/ecs/v1alpha1/zz_capacityprovider_terraformed.go b/apis/ecs/v1alpha1/zz_capacityprovider_terraformed.go index 28942f6f1..b0a042171 100755 --- a/apis/ecs/v1alpha1/zz_capacityprovider_terraformed.go +++ b/apis/ecs/v1alpha1/zz_capacityprovider_terraformed.go @@ -54,6 +54,14 @@ func (tr *CapacityProvider) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this CapacityProvider +func (tr *CapacityProvider) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this CapacityProvider func (tr *CapacityProvider) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ecs/v1alpha1/zz_capacityprovider_types.go b/apis/ecs/v1alpha1/zz_capacityprovider_types.go index 3720e82ab..a216f76aa 100755 --- a/apis/ecs/v1alpha1/zz_capacityprovider_types.go +++ b/apis/ecs/v1alpha1/zz_capacityprovider_types.go @@ -51,6 +51,8 @@ type AutoScalingGroupProviderParameters struct { type CapacityProviderObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } diff --git a/apis/ecs/v1alpha1/zz_cluster_terraformed.go b/apis/ecs/v1alpha1/zz_cluster_terraformed.go index b060e3fca..647d7f27e 100755 --- a/apis/ecs/v1alpha1/zz_cluster_terraformed.go +++ b/apis/ecs/v1alpha1/zz_cluster_terraformed.go @@ -54,6 +54,14 @@ func (tr *Cluster) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// 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 Cluster func (tr *Cluster) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ecs/v1alpha1/zz_cluster_types.go b/apis/ecs/v1alpha1/zz_cluster_types.go index 181e5103f..005a721a6 100755 --- a/apis/ecs/v1alpha1/zz_cluster_types.go +++ b/apis/ecs/v1alpha1/zz_cluster_types.go @@ -28,6 +28,8 @@ import ( type ClusterObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } @@ -91,7 +93,7 @@ type ExecuteCommandConfigurationObservation struct { type ExecuteCommandConfigurationParameters struct { // +kubebuilder:validation:Optional - KmsKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"` + KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"` // +kubebuilder:validation:Optional LogConfiguration []LogConfigurationParameters `json:"logConfiguration,omitempty" tf:"log_configuration,omitempty"` diff --git a/apis/ecs/v1alpha1/zz_generated.deepcopy.go b/apis/ecs/v1alpha1/zz_generated.deepcopy.go index 74a4e94da..5256f671e 100644 --- a/apis/ecs/v1alpha1/zz_generated.deepcopy.go +++ b/apis/ecs/v1alpha1/zz_generated.deepcopy.go @@ -48,8 +48,8 @@ func (in *AuthorizationConfigParameters) DeepCopyInto(out *AuthorizationConfigPa *out = new(string) **out = **in } - if in.Iam != nil { - in, out := &in.Iam, &out.Iam + if in.IAM != nil { + in, out := &in.IAM, &out.IAM *out = new(string) **out = **in } @@ -189,6 +189,11 @@ func (in *CapacityProviderObservation) DeepCopyInto(out *CapacityProviderObserva *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)) @@ -404,6 +409,11 @@ func (in *ClusterObservation) DeepCopyInto(out *ClusterObservation) { *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)) @@ -775,22 +785,22 @@ func (in *DockerVolumeConfigurationParameters) DeepCopy() *DockerVolumeConfigura } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EfsVolumeConfigurationObservation) DeepCopyInto(out *EfsVolumeConfigurationObservation) { +func (in *EFSVolumeConfigurationObservation) DeepCopyInto(out *EFSVolumeConfigurationObservation) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EfsVolumeConfigurationObservation. -func (in *EfsVolumeConfigurationObservation) DeepCopy() *EfsVolumeConfigurationObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EFSVolumeConfigurationObservation. +func (in *EFSVolumeConfigurationObservation) DeepCopy() *EFSVolumeConfigurationObservation { if in == nil { return nil } - out := new(EfsVolumeConfigurationObservation) + out := new(EFSVolumeConfigurationObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *EfsVolumeConfigurationParameters) DeepCopyInto(out *EfsVolumeConfigurationParameters) { +func (in *EFSVolumeConfigurationParameters) DeepCopyInto(out *EFSVolumeConfigurationParameters) { *out = *in if in.AuthorizationConfig != nil { in, out := &in.AuthorizationConfig, &out.AuthorizationConfig @@ -821,12 +831,12 @@ func (in *EfsVolumeConfigurationParameters) DeepCopyInto(out *EfsVolumeConfigura } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EfsVolumeConfigurationParameters. -func (in *EfsVolumeConfigurationParameters) DeepCopy() *EfsVolumeConfigurationParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EFSVolumeConfigurationParameters. +func (in *EFSVolumeConfigurationParameters) DeepCopy() *EFSVolumeConfigurationParameters { if in == nil { return nil } - out := new(EfsVolumeConfigurationParameters) + out := new(EFSVolumeConfigurationParameters) in.DeepCopyInto(out) return out } @@ -884,8 +894,8 @@ func (in *ExecuteCommandConfigurationObservation) DeepCopy() *ExecuteCommandConf // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ExecuteCommandConfigurationParameters) DeepCopyInto(out *ExecuteCommandConfigurationParameters) { *out = *in - if in.KmsKeyID != nil { - in, out := &in.KmsKeyID, &out.KmsKeyID + if in.KMSKeyID != nil { + in, out := &in.KMSKeyID, &out.KMSKeyID *out = new(string) **out = **in } @@ -914,22 +924,22 @@ func (in *ExecuteCommandConfigurationParameters) DeepCopy() *ExecuteCommandConfi } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FsxWindowsFileServerVolumeConfigurationAuthorizationConfigObservation) DeepCopyInto(out *FsxWindowsFileServerVolumeConfigurationAuthorizationConfigObservation) { +func (in *FSXWindowsFileServerVolumeConfigurationAuthorizationConfigObservation) DeepCopyInto(out *FSXWindowsFileServerVolumeConfigurationAuthorizationConfigObservation) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FsxWindowsFileServerVolumeConfigurationAuthorizationConfigObservation. -func (in *FsxWindowsFileServerVolumeConfigurationAuthorizationConfigObservation) DeepCopy() *FsxWindowsFileServerVolumeConfigurationAuthorizationConfigObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FSXWindowsFileServerVolumeConfigurationAuthorizationConfigObservation. +func (in *FSXWindowsFileServerVolumeConfigurationAuthorizationConfigObservation) DeepCopy() *FSXWindowsFileServerVolumeConfigurationAuthorizationConfigObservation { if in == nil { return nil } - out := new(FsxWindowsFileServerVolumeConfigurationAuthorizationConfigObservation) + out := new(FSXWindowsFileServerVolumeConfigurationAuthorizationConfigObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FsxWindowsFileServerVolumeConfigurationAuthorizationConfigParameters) DeepCopyInto(out *FsxWindowsFileServerVolumeConfigurationAuthorizationConfigParameters) { +func (in *FSXWindowsFileServerVolumeConfigurationAuthorizationConfigParameters) DeepCopyInto(out *FSXWindowsFileServerVolumeConfigurationAuthorizationConfigParameters) { *out = *in if in.CredentialsParameter != nil { in, out := &in.CredentialsParameter, &out.CredentialsParameter @@ -943,37 +953,37 @@ func (in *FsxWindowsFileServerVolumeConfigurationAuthorizationConfigParameters) } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FsxWindowsFileServerVolumeConfigurationAuthorizationConfigParameters. -func (in *FsxWindowsFileServerVolumeConfigurationAuthorizationConfigParameters) DeepCopy() *FsxWindowsFileServerVolumeConfigurationAuthorizationConfigParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FSXWindowsFileServerVolumeConfigurationAuthorizationConfigParameters. +func (in *FSXWindowsFileServerVolumeConfigurationAuthorizationConfigParameters) DeepCopy() *FSXWindowsFileServerVolumeConfigurationAuthorizationConfigParameters { if in == nil { return nil } - out := new(FsxWindowsFileServerVolumeConfigurationAuthorizationConfigParameters) + out := new(FSXWindowsFileServerVolumeConfigurationAuthorizationConfigParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FsxWindowsFileServerVolumeConfigurationObservation) DeepCopyInto(out *FsxWindowsFileServerVolumeConfigurationObservation) { +func (in *FSXWindowsFileServerVolumeConfigurationObservation) DeepCopyInto(out *FSXWindowsFileServerVolumeConfigurationObservation) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FsxWindowsFileServerVolumeConfigurationObservation. -func (in *FsxWindowsFileServerVolumeConfigurationObservation) DeepCopy() *FsxWindowsFileServerVolumeConfigurationObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FSXWindowsFileServerVolumeConfigurationObservation. +func (in *FSXWindowsFileServerVolumeConfigurationObservation) DeepCopy() *FSXWindowsFileServerVolumeConfigurationObservation { if in == nil { return nil } - out := new(FsxWindowsFileServerVolumeConfigurationObservation) + out := new(FSXWindowsFileServerVolumeConfigurationObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *FsxWindowsFileServerVolumeConfigurationParameters) DeepCopyInto(out *FsxWindowsFileServerVolumeConfigurationParameters) { +func (in *FSXWindowsFileServerVolumeConfigurationParameters) DeepCopyInto(out *FSXWindowsFileServerVolumeConfigurationParameters) { *out = *in if in.AuthorizationConfig != nil { in, out := &in.AuthorizationConfig, &out.AuthorizationConfig - *out = make([]FsxWindowsFileServerVolumeConfigurationAuthorizationConfigParameters, len(*in)) + *out = make([]FSXWindowsFileServerVolumeConfigurationAuthorizationConfigParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -990,12 +1000,12 @@ func (in *FsxWindowsFileServerVolumeConfigurationParameters) DeepCopyInto(out *F } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FsxWindowsFileServerVolumeConfigurationParameters. -func (in *FsxWindowsFileServerVolumeConfigurationParameters) DeepCopy() *FsxWindowsFileServerVolumeConfigurationParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FSXWindowsFileServerVolumeConfigurationParameters. +func (in *FSXWindowsFileServerVolumeConfigurationParameters) DeepCopy() *FSXWindowsFileServerVolumeConfigurationParameters { if in == nil { return nil } - out := new(FsxWindowsFileServerVolumeConfigurationParameters) + out := new(FSXWindowsFileServerVolumeConfigurationParameters) in.DeepCopyInto(out) return out } @@ -1474,6 +1484,11 @@ func (in *ServiceList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServiceObservation) DeepCopyInto(out *ServiceObservation) { *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)) @@ -1575,18 +1590,18 @@ func (in *ServiceParameters) DeepCopyInto(out *ServiceParameters) { *out = new(int64) **out = **in } - if in.IamRole != nil { - in, out := &in.IamRole, &out.IamRole + if in.IAMRole != nil { + in, out := &in.IAMRole, &out.IAMRole *out = new(string) **out = **in } - if in.IamRoleRef != nil { - in, out := &in.IamRoleRef, &out.IamRoleRef + if in.IAMRoleRef != nil { + in, out := &in.IAMRoleRef, &out.IAMRoleRef *out = new(v1.Reference) **out = **in } - if in.IamRoleSelector != nil { - in, out := &in.IamRoleSelector, &out.IamRoleSelector + if in.IAMRoleSelector != nil { + in, out := &in.IAMRoleSelector, &out.IAMRoleSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -1878,6 +1893,11 @@ func (in *TaskDefinitionObservation) DeepCopyInto(out *TaskDefinitionObservation *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.Revision != nil { in, out := &in.Revision, &out.Revision *out = new(int64) @@ -2145,16 +2165,16 @@ func (in *VolumeParameters) DeepCopyInto(out *VolumeParameters) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.EfsVolumeConfiguration != nil { - in, out := &in.EfsVolumeConfiguration, &out.EfsVolumeConfiguration - *out = make([]EfsVolumeConfigurationParameters, len(*in)) + if in.EFSVolumeConfiguration != nil { + in, out := &in.EFSVolumeConfiguration, &out.EFSVolumeConfiguration + *out = make([]EFSVolumeConfigurationParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.FsxWindowsFileServerVolumeConfiguration != nil { - in, out := &in.FsxWindowsFileServerVolumeConfiguration, &out.FsxWindowsFileServerVolumeConfiguration - *out = make([]FsxWindowsFileServerVolumeConfigurationParameters, len(*in)) + if in.FSXWindowsFileServerVolumeConfiguration != nil { + in, out := &in.FSXWindowsFileServerVolumeConfiguration, &out.FSXWindowsFileServerVolumeConfiguration + *out = make([]FSXWindowsFileServerVolumeConfigurationParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } diff --git a/apis/ecs/v1alpha1/zz_generated.resolvers.go b/apis/ecs/v1alpha1/zz_generated.resolvers.go index 14d9e98f5..30fb4ef30 100644 --- a/apis/ecs/v1alpha1/zz_generated.resolvers.go +++ b/apis/ecs/v1alpha1/zz_generated.resolvers.go @@ -108,20 +108,20 @@ func (mg *Service) ResolveReferences(ctx context.Context, c client.Reader) error mg.Spec.ForProvider.ClusterRef = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.IamRole), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.IAMRole), Extract: common.ARNExtractor(), - Reference: mg.Spec.ForProvider.IamRoleRef, - Selector: mg.Spec.ForProvider.IamRoleSelector, + Reference: mg.Spec.ForProvider.IAMRoleRef, + Selector: mg.Spec.ForProvider.IAMRoleSelector, To: reference.To{ List: &v1alpha11.RoleList{}, Managed: &v1alpha11.Role{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.IamRole") + return errors.Wrap(err, "mg.Spec.ForProvider.IAMRole") } - mg.Spec.ForProvider.IamRole = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.IamRoleRef = rsp.ResolvedReference + mg.Spec.ForProvider.IAMRole = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.IAMRoleRef = rsp.ResolvedReference for i3 := 0; i3 < len(mg.Spec.ForProvider.NetworkConfiguration); i3++ { mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ diff --git a/apis/ecs/v1alpha1/zz_service_terraformed.go b/apis/ecs/v1alpha1/zz_service_terraformed.go index 87c7c31aa..59179b3fd 100755 --- a/apis/ecs/v1alpha1/zz_service_terraformed.go +++ b/apis/ecs/v1alpha1/zz_service_terraformed.go @@ -54,6 +54,14 @@ func (tr *Service) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this Service +func (tr *Service) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this Service func (tr *Service) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ecs/v1alpha1/zz_service_types.go b/apis/ecs/v1alpha1/zz_service_types.go index b14964644..3b13ac167 100755 --- a/apis/ecs/v1alpha1/zz_service_types.go +++ b/apis/ecs/v1alpha1/zz_service_types.go @@ -137,6 +137,8 @@ type PlacementConstraintsParameters struct { } type ServiceObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` + TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } @@ -186,13 +188,13 @@ type ServiceParameters struct { // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/iam/v1alpha1.Role // +crossplane:generate:reference:extractor=github.com/crossplane-contrib/provider-jet-aws/config/common.ARNExtractor() // +kubebuilder:validation:Optional - IamRole *string `json:"iamRole,omitempty" tf:"iam_role,omitempty"` + IAMRole *string `json:"iamRole,omitempty" tf:"iam_role,omitempty"` // +kubebuilder:validation:Optional - IamRoleRef *v1.Reference `json:"iamRoleRef,omitempty" tf:"-"` + IAMRoleRef *v1.Reference `json:"iamRoleRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - IamRoleSelector *v1.Selector `json:"iamRoleSelector,omitempty" tf:"-"` + IAMRoleSelector *v1.Selector `json:"iamRoleSelector,omitempty" tf:"-"` // +kubebuilder:validation:Optional LaunchType *string `json:"launchType,omitempty" tf:"launch_type,omitempty"` diff --git a/apis/ecs/v1alpha1/zz_taskdefinition_terraformed.go b/apis/ecs/v1alpha1/zz_taskdefinition_terraformed.go index 30797022a..9951ade0d 100755 --- a/apis/ecs/v1alpha1/zz_taskdefinition_terraformed.go +++ b/apis/ecs/v1alpha1/zz_taskdefinition_terraformed.go @@ -54,6 +54,14 @@ func (tr *TaskDefinition) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this TaskDefinition +func (tr *TaskDefinition) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this TaskDefinition func (tr *TaskDefinition) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/ecs/v1alpha1/zz_taskdefinition_types.go b/apis/ecs/v1alpha1/zz_taskdefinition_types.go index 4512a94cc..423a70b8e 100755 --- a/apis/ecs/v1alpha1/zz_taskdefinition_types.go +++ b/apis/ecs/v1alpha1/zz_taskdefinition_types.go @@ -34,7 +34,7 @@ type AuthorizationConfigParameters struct { AccessPointID *string `json:"accessPointId,omitempty" tf:"access_point_id,omitempty"` // +kubebuilder:validation:Optional - Iam *string `json:"iam,omitempty" tf:"iam,omitempty"` + IAM *string `json:"iam,omitempty" tf:"iam,omitempty"` } type DockerVolumeConfigurationObservation struct { @@ -58,10 +58,10 @@ type DockerVolumeConfigurationParameters struct { Scope *string `json:"scope,omitempty" tf:"scope,omitempty"` } -type EfsVolumeConfigurationObservation struct { +type EFSVolumeConfigurationObservation struct { } -type EfsVolumeConfigurationParameters struct { +type EFSVolumeConfigurationParameters struct { // +kubebuilder:validation:Optional AuthorizationConfig []AuthorizationConfigParameters `json:"authorizationConfig,omitempty" tf:"authorization_config,omitempty"` @@ -88,10 +88,10 @@ type EphemeralStorageParameters struct { SizeInGib *int64 `json:"sizeInGib" tf:"size_in_gib,omitempty"` } -type FsxWindowsFileServerVolumeConfigurationAuthorizationConfigObservation struct { +type FSXWindowsFileServerVolumeConfigurationAuthorizationConfigObservation struct { } -type FsxWindowsFileServerVolumeConfigurationAuthorizationConfigParameters struct { +type FSXWindowsFileServerVolumeConfigurationAuthorizationConfigParameters struct { // +kubebuilder:validation:Required CredentialsParameter *string `json:"credentialsParameter" tf:"credentials_parameter,omitempty"` @@ -100,13 +100,13 @@ type FsxWindowsFileServerVolumeConfigurationAuthorizationConfigParameters struct Domain *string `json:"domain" tf:"domain,omitempty"` } -type FsxWindowsFileServerVolumeConfigurationObservation struct { +type FSXWindowsFileServerVolumeConfigurationObservation struct { } -type FsxWindowsFileServerVolumeConfigurationParameters struct { +type FSXWindowsFileServerVolumeConfigurationParameters struct { // +kubebuilder:validation:Required - AuthorizationConfig []FsxWindowsFileServerVolumeConfigurationAuthorizationConfigParameters `json:"authorizationConfig" tf:"authorization_config,omitempty"` + AuthorizationConfig []FSXWindowsFileServerVolumeConfigurationAuthorizationConfigParameters `json:"authorizationConfig" tf:"authorization_config,omitempty"` // +kubebuilder:validation:Required FileSystemID *string `json:"fileSystemId" tf:"file_system_id,omitempty"` @@ -145,6 +145,8 @@ type ProxyConfigurationParameters struct { type TaskDefinitionObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + Revision *int64 `json:"revision,omitempty" tf:"revision,omitempty"` TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` @@ -235,10 +237,10 @@ type VolumeParameters struct { DockerVolumeConfiguration []DockerVolumeConfigurationParameters `json:"dockerVolumeConfiguration,omitempty" tf:"docker_volume_configuration,omitempty"` // +kubebuilder:validation:Optional - EfsVolumeConfiguration []EfsVolumeConfigurationParameters `json:"efsVolumeConfiguration,omitempty" tf:"efs_volume_configuration,omitempty"` + EFSVolumeConfiguration []EFSVolumeConfigurationParameters `json:"efsVolumeConfiguration,omitempty" tf:"efs_volume_configuration,omitempty"` // +kubebuilder:validation:Optional - FsxWindowsFileServerVolumeConfiguration []FsxWindowsFileServerVolumeConfigurationParameters `json:"fsxWindowsFileServerVolumeConfiguration,omitempty" tf:"fsx_windows_file_server_volume_configuration,omitempty"` + FSXWindowsFileServerVolumeConfiguration []FSXWindowsFileServerVolumeConfigurationParameters `json:"fsxWindowsFileServerVolumeConfiguration,omitempty" tf:"fsx_windows_file_server_volume_configuration,omitempty"` // +kubebuilder:validation:Optional HostPath *string `json:"hostPath,omitempty" tf:"host_path,omitempty"` diff --git a/apis/eks/v1alpha1/zz_addon_terraformed.go b/apis/eks/v1alpha1/zz_addon_terraformed.go index c96fb0282..0d7337070 100755 --- a/apis/eks/v1alpha1/zz_addon_terraformed.go +++ b/apis/eks/v1alpha1/zz_addon_terraformed.go @@ -54,6 +54,14 @@ func (tr *Addon) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this Addon +func (tr *Addon) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this Addon func (tr *Addon) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/eks/v1alpha1/zz_addon_types.go b/apis/eks/v1alpha1/zz_addon_types.go index 44f6b98fb..2dba2ed72 100755 --- a/apis/eks/v1alpha1/zz_addon_types.go +++ b/apis/eks/v1alpha1/zz_addon_types.go @@ -30,6 +30,8 @@ type AddonObservation struct { CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + ModifiedAt *string `json:"modifiedAt,omitempty" tf:"modified_at,omitempty"` TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` diff --git a/apis/eks/v1alpha1/zz_cluster_terraformed.go b/apis/eks/v1alpha1/zz_cluster_terraformed.go index 1eeed48d6..05636ca06 100755 --- a/apis/eks/v1alpha1/zz_cluster_terraformed.go +++ b/apis/eks/v1alpha1/zz_cluster_terraformed.go @@ -54,6 +54,14 @@ func (tr *Cluster) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// 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 Cluster func (tr *Cluster) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/eks/v1alpha1/zz_cluster_types.go b/apis/eks/v1alpha1/zz_cluster_types.go index 3ed04f771..6852e098c 100755 --- a/apis/eks/v1alpha1/zz_cluster_types.go +++ b/apis/eks/v1alpha1/zz_cluster_types.go @@ -41,6 +41,8 @@ type ClusterObservation struct { Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + Identity []IdentityObservation `json:"identity,omitempty" tf:"identity,omitempty"` PlatformVersion *string `json:"platformVersion,omitempty" tf:"platform_version,omitempty"` @@ -80,11 +82,11 @@ type ClusterParameters struct { // +kubebuilder:validation:Optional Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` + // +kubebuilder:validation:Required + VPCConfig []VPCConfigParameters `json:"vpcConfig" tf:"vpc_config,omitempty"` + // +kubebuilder:validation:Optional Version *string `json:"version,omitempty" tf:"version,omitempty"` - - // +kubebuilder:validation:Required - VpcConfig []VpcConfigParameters `json:"vpcConfig" tf:"vpc_config,omitempty"` } type EncryptionConfigObservation struct { @@ -131,13 +133,13 @@ type ProviderParameters struct { KeyArn *string `json:"keyArn" tf:"key_arn,omitempty"` } -type VpcConfigObservation struct { +type VPCConfigObservation struct { ClusterSecurityGroupID *string `json:"clusterSecurityGroupId,omitempty" tf:"cluster_security_group_id,omitempty"` - VpcID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` + VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` } -type VpcConfigParameters struct { +type VPCConfigParameters struct { // +kubebuilder:validation:Optional EndpointPrivateAccess *bool `json:"endpointPrivateAccess,omitempty" tf:"endpoint_private_access,omitempty"` diff --git a/apis/eks/v1alpha1/zz_fargateprofile_terraformed.go b/apis/eks/v1alpha1/zz_fargateprofile_terraformed.go index 549bef2e0..50da71527 100755 --- a/apis/eks/v1alpha1/zz_fargateprofile_terraformed.go +++ b/apis/eks/v1alpha1/zz_fargateprofile_terraformed.go @@ -54,6 +54,14 @@ func (tr *FargateProfile) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this FargateProfile +func (tr *FargateProfile) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this FargateProfile func (tr *FargateProfile) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/eks/v1alpha1/zz_fargateprofile_types.go b/apis/eks/v1alpha1/zz_fargateprofile_types.go index 0d8a97337..0ce94afd2 100755 --- a/apis/eks/v1alpha1/zz_fargateprofile_types.go +++ b/apis/eks/v1alpha1/zz_fargateprofile_types.go @@ -28,6 +28,8 @@ import ( type FargateProfileObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + Status *string `json:"status,omitempty" tf:"status,omitempty"` TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` diff --git a/apis/eks/v1alpha1/zz_generated.deepcopy.go b/apis/eks/v1alpha1/zz_generated.deepcopy.go index 29914c00c..e84e856cb 100644 --- a/apis/eks/v1alpha1/zz_generated.deepcopy.go +++ b/apis/eks/v1alpha1/zz_generated.deepcopy.go @@ -97,6 +97,11 @@ func (in *AddonObservation) DeepCopyInto(out *AddonObservation) { *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.ModifiedAt != nil { in, out := &in.ModifiedAt, &out.ModifiedAt *out = new(string) @@ -392,6 +397,11 @@ func (in *ClusterObservation) DeepCopyInto(out *ClusterObservation) { *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.Identity != nil { in, out := &in.Identity, &out.Identity *out = make([]IdentityObservation, len(*in)) @@ -499,18 +509,18 @@ func (in *ClusterParameters) DeepCopyInto(out *ClusterParameters) { (*out)[key] = outVal } } + if in.VPCConfig != nil { + in, out := &in.VPCConfig, &out.VPCConfig + *out = make([]VPCConfigParameters, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } if in.Version != nil { in, out := &in.Version, &out.Version *out = new(string) **out = **in } - if in.VpcConfig != nil { - in, out := &in.VpcConfig, &out.VpcConfig - *out = make([]VpcConfigParameters, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterParameters. @@ -672,6 +682,11 @@ func (in *FargateProfileObservation) DeepCopyInto(out *FargateProfileObservation *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.Status != nil { in, out := &in.Status, &out.Status *out = new(string) @@ -935,6 +950,11 @@ func (in *IdentityProviderConfigObservation) DeepCopyInto(out *IdentityProviderC *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.Status != nil { in, out := &in.Status, &out.Status *out = new(string) @@ -1285,6 +1305,11 @@ func (in *NodeGroupObservation) DeepCopyInto(out *NodeGroupObservation) { *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.Resources != nil { in, out := &in.Resources, &out.Resources *out = make([]ResourcesObservation, len(*in)) @@ -1327,8 +1352,8 @@ func (in *NodeGroupObservation) DeepCopy() *NodeGroupObservation { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *NodeGroupParameters) DeepCopyInto(out *NodeGroupParameters) { *out = *in - if in.AmiType != nil { - in, out := &in.AmiType, &out.AmiType + if in.AMIType != nil { + in, out := &in.AMIType, &out.AMIType *out = new(string) **out = **in } @@ -1616,8 +1641,8 @@ func (in *RemoteAccessObservation) DeepCopy() *RemoteAccessObservation { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RemoteAccessParameters) DeepCopyInto(out *RemoteAccessParameters) { *out = *in - if in.Ec2SSHKey != nil { - in, out := &in.Ec2SSHKey, &out.Ec2SSHKey + if in.EC2SSHKey != nil { + in, out := &in.EC2SSHKey, &out.EC2SSHKey *out = new(string) **out = **in } @@ -1837,32 +1862,32 @@ func (in *TaintParameters) DeepCopy() *TaintParameters { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VpcConfigObservation) DeepCopyInto(out *VpcConfigObservation) { +func (in *VPCConfigObservation) DeepCopyInto(out *VPCConfigObservation) { *out = *in if in.ClusterSecurityGroupID != nil { in, out := &in.ClusterSecurityGroupID, &out.ClusterSecurityGroupID *out = new(string) **out = **in } - if in.VpcID != nil { - in, out := &in.VpcID, &out.VpcID + 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 VpcConfigObservation. -func (in *VpcConfigObservation) DeepCopy() *VpcConfigObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCConfigObservation. +func (in *VPCConfigObservation) DeepCopy() *VPCConfigObservation { if in == nil { return nil } - out := new(VpcConfigObservation) + out := new(VPCConfigObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VpcConfigParameters) DeepCopyInto(out *VpcConfigParameters) { +func (in *VPCConfigParameters) DeepCopyInto(out *VPCConfigParameters) { *out = *in if in.EndpointPrivateAccess != nil { in, out := &in.EndpointPrivateAccess, &out.EndpointPrivateAccess @@ -1929,12 +1954,12 @@ func (in *VpcConfigParameters) DeepCopyInto(out *VpcConfigParameters) { } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VpcConfigParameters. -func (in *VpcConfigParameters) DeepCopy() *VpcConfigParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCConfigParameters. +func (in *VPCConfigParameters) DeepCopy() *VPCConfigParameters { if in == nil { return nil } - out := new(VpcConfigParameters) + out := new(VPCConfigParameters) in.DeepCopyInto(out) return out } diff --git a/apis/eks/v1alpha1/zz_generated.resolvers.go b/apis/eks/v1alpha1/zz_generated.resolvers.go index 8aa22e131..d56ab9c7b 100644 --- a/apis/eks/v1alpha1/zz_generated.resolvers.go +++ b/apis/eks/v1alpha1/zz_generated.resolvers.go @@ -93,40 +93,40 @@ func (mg *Cluster) ResolveReferences(ctx context.Context, c client.Reader) error mg.Spec.ForProvider.RoleArn = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.RoleArnRef = rsp.ResolvedReference - for i3 := 0; i3 < len(mg.Spec.ForProvider.VpcConfig); i3++ { + for i3 := 0; i3 < len(mg.Spec.ForProvider.VPCConfig); i3++ { mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ - CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.VpcConfig[i3].SecurityGroupIds), + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.VPCConfig[i3].SecurityGroupIds), Extract: reference.ExternalName(), - References: mg.Spec.ForProvider.VpcConfig[i3].SecurityGroupIdRefs, - Selector: mg.Spec.ForProvider.VpcConfig[i3].SecurityGroupIdSelector, + References: mg.Spec.ForProvider.VPCConfig[i3].SecurityGroupIdRefs, + Selector: mg.Spec.ForProvider.VPCConfig[i3].SecurityGroupIdSelector, To: reference.To{ List: &v1alpha11.SecurityGroupList{}, Managed: &v1alpha11.SecurityGroup{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.VpcConfig[i3].SecurityGroupIds") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCConfig[i3].SecurityGroupIds") } - mg.Spec.ForProvider.VpcConfig[i3].SecurityGroupIds = reference.ToPtrValues(mrsp.ResolvedValues) - mg.Spec.ForProvider.VpcConfig[i3].SecurityGroupIdRefs = mrsp.ResolvedReferences + mg.Spec.ForProvider.VPCConfig[i3].SecurityGroupIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.VPCConfig[i3].SecurityGroupIdRefs = mrsp.ResolvedReferences } - for i3 := 0; i3 < len(mg.Spec.ForProvider.VpcConfig); i3++ { + for i3 := 0; i3 < len(mg.Spec.ForProvider.VPCConfig); i3++ { mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ - CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.VpcConfig[i3].SubnetIds), + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.VPCConfig[i3].SubnetIds), Extract: reference.ExternalName(), - References: mg.Spec.ForProvider.VpcConfig[i3].SubnetIdRefs, - Selector: mg.Spec.ForProvider.VpcConfig[i3].SubnetIdSelector, + References: mg.Spec.ForProvider.VPCConfig[i3].SubnetIdRefs, + Selector: mg.Spec.ForProvider.VPCConfig[i3].SubnetIdSelector, To: reference.To{ List: &v1alpha11.SubnetList{}, Managed: &v1alpha11.Subnet{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.VpcConfig[i3].SubnetIds") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCConfig[i3].SubnetIds") } - mg.Spec.ForProvider.VpcConfig[i3].SubnetIds = reference.ToPtrValues(mrsp.ResolvedValues) - mg.Spec.ForProvider.VpcConfig[i3].SubnetIdRefs = mrsp.ResolvedReferences + mg.Spec.ForProvider.VPCConfig[i3].SubnetIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.VPCConfig[i3].SubnetIdRefs = mrsp.ResolvedReferences } diff --git a/apis/eks/v1alpha1/zz_identityproviderconfig_terraformed.go b/apis/eks/v1alpha1/zz_identityproviderconfig_terraformed.go index f52ed7a25..a82797120 100755 --- a/apis/eks/v1alpha1/zz_identityproviderconfig_terraformed.go +++ b/apis/eks/v1alpha1/zz_identityproviderconfig_terraformed.go @@ -54,6 +54,14 @@ func (tr *IdentityProviderConfig) SetObservation(obs map[string]interface{}) err return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this IdentityProviderConfig +func (tr *IdentityProviderConfig) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this IdentityProviderConfig func (tr *IdentityProviderConfig) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/eks/v1alpha1/zz_identityproviderconfig_types.go b/apis/eks/v1alpha1/zz_identityproviderconfig_types.go index 0a22d76d2..30b9aff52 100755 --- a/apis/eks/v1alpha1/zz_identityproviderconfig_types.go +++ b/apis/eks/v1alpha1/zz_identityproviderconfig_types.go @@ -28,6 +28,8 @@ import ( type IdentityProviderConfigObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + Status *string `json:"status,omitempty" tf:"status,omitempty"` TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` diff --git a/apis/eks/v1alpha1/zz_nodegroup_terraformed.go b/apis/eks/v1alpha1/zz_nodegroup_terraformed.go index 2b31f1818..5531c4ed5 100755 --- a/apis/eks/v1alpha1/zz_nodegroup_terraformed.go +++ b/apis/eks/v1alpha1/zz_nodegroup_terraformed.go @@ -54,6 +54,14 @@ func (tr *NodeGroup) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this NodeGroup +func (tr *NodeGroup) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this NodeGroup func (tr *NodeGroup) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/eks/v1alpha1/zz_nodegroup_types.go b/apis/eks/v1alpha1/zz_nodegroup_types.go index a5a33862d..6653779ec 100755 --- a/apis/eks/v1alpha1/zz_nodegroup_types.go +++ b/apis/eks/v1alpha1/zz_nodegroup_types.go @@ -50,6 +50,8 @@ type LaunchTemplateParameters struct { type NodeGroupObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + Resources []ResourcesObservation `json:"resources,omitempty" tf:"resources,omitempty"` Status *string `json:"status,omitempty" tf:"status,omitempty"` @@ -60,7 +62,7 @@ type NodeGroupObservation struct { type NodeGroupParameters struct { // +kubebuilder:validation:Optional - AmiType *string `json:"amiType,omitempty" tf:"ami_type,omitempty"` + AMIType *string `json:"amiType,omitempty" tf:"ami_type,omitempty"` // +kubebuilder:validation:Optional CapacityType *string `json:"capacityType,omitempty" tf:"capacity_type,omitempty"` @@ -143,7 +145,7 @@ type RemoteAccessObservation struct { type RemoteAccessParameters struct { // +kubebuilder:validation:Optional - Ec2SSHKey *string `json:"ec2SshKey,omitempty" tf:"ec2_ssh_key,omitempty"` + EC2SSHKey *string `json:"ec2SshKey,omitempty" tf:"ec2_ssh_key,omitempty"` // +kubebuilder:validation:Optional SourceSecurityGroupIdRefs []v1.Reference `json:"sourceSecurityGroupIdRefs,omitempty" tf:"-"` diff --git a/apis/elasticache/v1alpha1/zz_cluster_terraformed.go b/apis/elasticache/v1alpha1/zz_cluster_terraformed.go index 78090d287..2e7cb430b 100755 --- a/apis/elasticache/v1alpha1/zz_cluster_terraformed.go +++ b/apis/elasticache/v1alpha1/zz_cluster_terraformed.go @@ -54,6 +54,14 @@ func (tr *Cluster) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// 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 Cluster func (tr *Cluster) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/elasticache/v1alpha1/zz_cluster_types.go b/apis/elasticache/v1alpha1/zz_cluster_types.go index fcc274d8a..b4235bca1 100755 --- a/apis/elasticache/v1alpha1/zz_cluster_types.go +++ b/apis/elasticache/v1alpha1/zz_cluster_types.go @@ -49,6 +49,8 @@ type ClusterObservation struct { EngineVersionActual *string `json:"engineVersionActual,omitempty" tf:"engine_version_actual,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } diff --git a/apis/elasticache/v1alpha1/zz_generated.deepcopy.go b/apis/elasticache/v1alpha1/zz_generated.deepcopy.go index 9bdadb565..ea64c6f53 100644 --- a/apis/elasticache/v1alpha1/zz_generated.deepcopy.go +++ b/apis/elasticache/v1alpha1/zz_generated.deepcopy.go @@ -204,6 +204,11 @@ func (in *ClusterObservation) DeepCopyInto(out *ClusterObservation) { *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)) @@ -506,6 +511,11 @@ func (in *ParameterGroupObservation) DeepCopyInto(out *ParameterGroupObservation *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)) @@ -741,6 +751,11 @@ func (in *ReplicationGroupObservation) DeepCopyInto(out *ReplicationGroupObserva *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.MemberClusters != nil { in, out := &in.MemberClusters, &out.MemberClusters *out = make([]*string, len(*in)) @@ -855,8 +870,8 @@ func (in *ReplicationGroupParameters) DeepCopyInto(out *ReplicationGroupParamete *out = new(string) **out = **in } - if in.KmsKeyID != nil { - in, out := &in.KmsKeyID, &out.KmsKeyID + if in.KMSKeyID != nil { + in, out := &in.KMSKeyID, &out.KMSKeyID *out = new(string) **out = **in } @@ -1113,6 +1128,11 @@ func (in *UserGroupList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UserGroupObservation) DeepCopyInto(out *UserGroupObservation) { *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)) @@ -1275,6 +1295,11 @@ func (in *UserList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UserObservation) DeepCopyInto(out *UserObservation) { *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)) diff --git a/apis/elasticache/v1alpha1/zz_parametergroup_terraformed.go b/apis/elasticache/v1alpha1/zz_parametergroup_terraformed.go index 48faf2cda..3381fdcae 100755 --- a/apis/elasticache/v1alpha1/zz_parametergroup_terraformed.go +++ b/apis/elasticache/v1alpha1/zz_parametergroup_terraformed.go @@ -54,6 +54,14 @@ func (tr *ParameterGroup) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// 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 ParameterGroup func (tr *ParameterGroup) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/elasticache/v1alpha1/zz_parametergroup_types.go b/apis/elasticache/v1alpha1/zz_parametergroup_types.go index 5c3a58e7f..cc2adc38f 100755 --- a/apis/elasticache/v1alpha1/zz_parametergroup_types.go +++ b/apis/elasticache/v1alpha1/zz_parametergroup_types.go @@ -28,6 +28,8 @@ import ( type ParameterGroupObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } diff --git a/apis/elasticache/v1alpha1/zz_replicationgroup_terraformed.go b/apis/elasticache/v1alpha1/zz_replicationgroup_terraformed.go index d5e9fd051..3a32ac350 100755 --- a/apis/elasticache/v1alpha1/zz_replicationgroup_terraformed.go +++ b/apis/elasticache/v1alpha1/zz_replicationgroup_terraformed.go @@ -54,6 +54,14 @@ func (tr *ReplicationGroup) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this ReplicationGroup +func (tr *ReplicationGroup) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this ReplicationGroup func (tr *ReplicationGroup) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/elasticache/v1alpha1/zz_replicationgroup_types.go b/apis/elasticache/v1alpha1/zz_replicationgroup_types.go index dd9fc6ea0..864555a50 100755 --- a/apis/elasticache/v1alpha1/zz_replicationgroup_types.go +++ b/apis/elasticache/v1alpha1/zz_replicationgroup_types.go @@ -46,6 +46,8 @@ type ReplicationGroupObservation struct { EngineVersionActual *string `json:"engineVersionActual,omitempty" tf:"engine_version_actual,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + MemberClusters []*string `json:"memberClusters,omitempty" tf:"member_clusters,omitempty"` PrimaryEndpointAddress *string `json:"primaryEndpointAddress,omitempty" tf:"primary_endpoint_address,omitempty"` @@ -91,7 +93,7 @@ type ReplicationGroupParameters struct { GlobalReplicationGroupID *string `json:"globalReplicationGroupId,omitempty" tf:"global_replication_group_id,omitempty"` // +kubebuilder:validation:Optional - KmsKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"` + KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"` // +kubebuilder:validation:Optional MaintenanceWindow *string `json:"maintenanceWindow,omitempty" tf:"maintenance_window,omitempty"` diff --git a/apis/elasticache/v1alpha1/zz_user_terraformed.go b/apis/elasticache/v1alpha1/zz_user_terraformed.go index 9434d86b6..1f10963e5 100755 --- a/apis/elasticache/v1alpha1/zz_user_terraformed.go +++ b/apis/elasticache/v1alpha1/zz_user_terraformed.go @@ -54,6 +54,14 @@ func (tr *User) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this User +func (tr *User) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this User func (tr *User) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/elasticache/v1alpha1/zz_user_types.go b/apis/elasticache/v1alpha1/zz_user_types.go index 633040f5e..e6d71848e 100755 --- a/apis/elasticache/v1alpha1/zz_user_types.go +++ b/apis/elasticache/v1alpha1/zz_user_types.go @@ -26,6 +26,8 @@ import ( ) type UserObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` + TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } diff --git a/apis/elasticache/v1alpha1/zz_usergroup_terraformed.go b/apis/elasticache/v1alpha1/zz_usergroup_terraformed.go index caa88468d..9b50c0a19 100755 --- a/apis/elasticache/v1alpha1/zz_usergroup_terraformed.go +++ b/apis/elasticache/v1alpha1/zz_usergroup_terraformed.go @@ -54,6 +54,14 @@ func (tr *UserGroup) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this UserGroup +func (tr *UserGroup) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this UserGroup func (tr *UserGroup) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/elasticache/v1alpha1/zz_usergroup_types.go b/apis/elasticache/v1alpha1/zz_usergroup_types.go index dc7456915..f8d9bc3b3 100755 --- a/apis/elasticache/v1alpha1/zz_usergroup_types.go +++ b/apis/elasticache/v1alpha1/zz_usergroup_types.go @@ -26,6 +26,8 @@ import ( ) type UserGroupObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` + TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } 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 19056889a..000000000 --- a/apis/elasticloadbalancing/v1alpha1/zz_targetgroupattachment_terraformed.go +++ /dev/null @@ -1,92 +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-contrib/terrajet/pkg/resource" - "github.com/crossplane-contrib/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) -} - -// 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 84% rename from apis/elasticloadbalancing/v1alpha1/zz_generated.deepcopy.go rename to apis/elbv2/v1alpha1/zz_generated.deepcopy.go index 7aedc0eca..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,13 +624,18 @@ 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 *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)) @@ -648,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 @@ -708,8 +713,8 @@ func (in *LoadBalancerListenerParameters) DeepCopyInto(out *LoadBalancerListener *out = new(string) **out = **in } - if in.SslPolicy != nil { - in, out := &in.SslPolicy, &out.SslPolicy + if in.SSLPolicy != nil { + in, out := &in.SSLPolicy, &out.SSLPolicy *out = new(string) **out = **in } @@ -730,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 @@ -792,6 +797,11 @@ func (in *LoadBalancerObservation) DeepCopyInto(out *LoadBalancerObservation) { *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)) @@ -807,8 +817,8 @@ func (in *LoadBalancerObservation) DeepCopyInto(out *LoadBalancerObservation) { (*out)[key] = outVal } } - if in.VpcID != nil { - in, out := &in.VpcID, &out.VpcID + if in.VPCID != nil { + in, out := &in.VPCID, &out.VPCID *out = new(string) **out = **in } @@ -819,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 @@ -960,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 { - if in == nil { - return nil - } - out := new(LoadBalancerStatus) - 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 { +// 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(SubnetMappingObservation) + 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 *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) @@ -1178,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 } @@ -1197,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) @@ -1205,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 } @@ -1224,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 } @@ -1256,22 +1101,27 @@ 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 + *out = new(string) + **out = **in + } } -// 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 @@ -1310,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) - out.AtProvider = in.AtProvider + 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 } @@ -1387,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 @@ -1414,6 +1249,11 @@ func (in *TargetGroupObservation_2) DeepCopyInto(out *TargetGroupObservation_2) *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)) @@ -1431,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) + 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) 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 -} - -// 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 @@ -1543,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]) } @@ -1568,84 +1373,84 @@ func (in *TargetGroupParameters_2) DeepCopyInto(out *TargetGroupParameters_2) { *out = new(string) **out = **in } - if in.VpcID != nil { - in, out := &in.VpcID, &out.VpcID + 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 + 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 + 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 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 @@ -1669,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(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(TargetGroupStickinessParameters) + 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 89% rename from apis/elasticloadbalancing/v1alpha1/zz_generated.resolvers.go rename to apis/elbv2/v1alpha1/zz_generated.resolvers.go index 3b4fb415e..db1035788 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 @@ -171,34 +171,34 @@ 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 var err error rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VpcID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VPCID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.VpcIDRef, - Selector: mg.Spec.ForProvider.VpcIDSelector, + Reference: mg.Spec.ForProvider.VPCIDRef, + Selector: mg.Spec.ForProvider.VPCIDSelector, To: reference.To{ List: &v1alpha11.VPCList{}, Managed: &v1alpha11.VPC{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.VpcID") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCID") } - mg.Spec.ForProvider.VpcID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.VpcIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.VPCID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.VPCIDRef = rsp.ResolvedReference 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 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/elasticloadbalancing/v1alpha1/zz_loadbalancer_terraformed.go b/apis/elbv2/v1alpha1/zz_lb_terraformed.go similarity index 69% rename from apis/elasticloadbalancing/v1alpha1/zz_loadbalancer_terraformed.go rename to apis/elbv2/v1alpha1/zz_lb_terraformed.go index 7b94493ae..9fd9cd5e0 100755 --- a/apis/elasticloadbalancing/v1alpha1/zz_loadbalancer_terraformed.go +++ b/apis/elbv2/v1alpha1/zz_lb_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane-contrib/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this LoadBalancer -func (mg *LoadBalancer) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this LB +func (mg *LB) GetTerraformResourceType() string { return "aws_lb" } -// GetConnectionDetailsMapping for this LoadBalancer -func (tr *LoadBalancer) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this LB +func (tr *LB) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this LoadBalancer -func (tr *LoadBalancer) GetObservation() (map[string]interface{}, error) { +// 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 @@ -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 LB +func (tr *LB) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,8 +54,16 @@ func (tr *LoadBalancer) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this LoadBalancer -func (tr *LoadBalancer) GetParameters() (map[string]interface{}, error) { +// 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 @@ -64,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 LB +func (tr *LB) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -73,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 LB 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 *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") } @@ -87,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 *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 85% rename from apis/elasticloadbalancing/v1alpha1/zz_loadbalancer_types.go rename to apis/elbv2/v1alpha1/zz_lb_types.go index 1262fe2fd..a247d3bfd 100755 --- a/apis/elasticloadbalancing/v1alpha1/zz_loadbalancer_types.go +++ b/apis/elbv2/v1alpha1/zz_lb_types.go @@ -47,21 +47,23 @@ 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"` DNSName *string `json:"dnsName,omitempty" tf:"dns_name,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` - VpcID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` + VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` 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"` @@ -158,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 67% rename from apis/elasticloadbalancing/v1alpha1/zz_loadbalancerlistener_terraformed.go rename to apis/elbv2/v1alpha1/zz_lblistener_terraformed.go index 1510ffd32..8b7c1b5f8 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-contrib/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,8 +54,16 @@ func (tr *LoadBalancerListener) SetObservation(obs map[string]interface{}) error return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this LoadBalancerListener -func (tr *LoadBalancerListener) GetParameters() (map[string]interface{}, error) { +// 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 LBListener +func (tr *LBListener) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,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 @@ -73,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") } @@ -87,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 87% rename from apis/elasticloadbalancing/v1alpha1/zz_loadbalancerlistener_types.go rename to apis/elbv2/v1alpha1/zz_lblistener_types.go index b4eaad398..7b4999f39 100755 --- a/apis/elasticloadbalancing/v1alpha1/zz_loadbalancerlistener_types.go +++ b/apis/elbv2/v1alpha1/zz_lblistener_types.go @@ -158,13 +158,15 @@ 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"` + 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"` @@ -197,7 +199,7 @@ type LoadBalancerListenerParameters struct { Region *string `json:"region" tf:"-"` // +kubebuilder:validation:Optional - SslPolicy *string `json:"sslPolicy,omitempty" tf:"ssl_policy,omitempty"` + SSLPolicy *string `json:"sslPolicy,omitempty" tf:"ssl_policy,omitempty"` // +kubebuilder:validation:Optional Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` @@ -258,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 65% rename from apis/elasticloadbalancing/v1alpha1/zz_targetgroup_terraformed.go rename to apis/elbv2/v1alpha1/zz_lbtargetgroup_terraformed.go index 9981a8cb9..1893d31de 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-contrib/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,8 +54,16 @@ func (tr *TargetGroup) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this TargetGroup -func (tr *TargetGroup) GetParameters() (map[string]interface{}, error) { +// 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 LBTargetGroup +func (tr *LBTargetGroup) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,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 @@ -73,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") } @@ -87,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 77% rename from apis/elasticloadbalancing/v1alpha1/zz_targetgroup_types.go rename to apis/elbv2/v1alpha1/zz_lbtargetgroup_types.go index effd7b6c7..c70fdc34b 100755 --- a/apis/elasticloadbalancing/v1alpha1/zz_targetgroup_types.go +++ b/apis/elbv2/v1alpha1/zz_lbtargetgroup_types.go @@ -58,15 +58,17 @@ 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"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + 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"` @@ -107,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"` @@ -117,19 +119,19 @@ type TargetGroupParameters_2 struct { // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha1.VPC // +kubebuilder:validation:Optional - VpcID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` + VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` // +kubebuilder:validation:Optional - VpcIDRef *v1.Reference `json:"vpcIdRef,omitempty" tf:"-"` + VPCIDRef *v1.Reference `json:"vpcidRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcIDSelector *v1.Selector `json:"vpcIdSelector,omitempty" tf:"-"` + 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"` @@ -144,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 64% rename from apis/route53/v1alpha1/zz_resolverruleassociation_terraformed.go rename to apis/elbv2/v1alpha1/zz_lbtargetgroupattachment_terraformed.go index 81eeb9d38..ee8dee460 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-contrib/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,8 +54,16 @@ func (tr *ResolverRuleAssociation) SetObservation(obs map[string]interface{}) er return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this ResolverRuleAssociation -func (tr *ResolverRuleAssociation) GetParameters() (map[string]interface{}, error) { +// 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 LBTargetGroupAttachment +func (tr *LBTargetGroupAttachment) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,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 @@ -73,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") } @@ -87,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 79caa328d..16217115a 100755 --- a/apis/elasticloadbalancing/v1alpha1/zz_targetgroupattachment_types.go +++ b/apis/elbv2/v1alpha1/zz_lbtargetgroupattachment_types.go @@ -25,10 +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"` @@ -55,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/iam/v1alpha1/zz_accesskey_terraformed.go b/apis/iam/v1alpha1/zz_accesskey_terraformed.go index 3157854e5..6872d47bd 100755 --- a/apis/iam/v1alpha1/zz_accesskey_terraformed.go +++ b/apis/iam/v1alpha1/zz_accesskey_terraformed.go @@ -54,6 +54,14 @@ func (tr *AccessKey) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this AccessKey +func (tr *AccessKey) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this AccessKey func (tr *AccessKey) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/iam/v1alpha1/zz_accesskey_types.go b/apis/iam/v1alpha1/zz_accesskey_types.go index f49d5dc64..e885f20b3 100755 --- a/apis/iam/v1alpha1/zz_accesskey_types.go +++ b/apis/iam/v1alpha1/zz_accesskey_types.go @@ -32,6 +32,8 @@ type AccessKeyObservation struct { EncryptedSesSMTPPasswordV4 *string `json:"encryptedSesSmtpPasswordV4,omitempty" tf:"encrypted_ses_smtp_password_v4,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + KeyFingerprint *string `json:"keyFingerprint,omitempty" tf:"key_fingerprint,omitempty"` } diff --git a/apis/iam/v1alpha1/zz_generated.deepcopy.go b/apis/iam/v1alpha1/zz_generated.deepcopy.go index 8baefc3bb..03d477c9c 100644 --- a/apis/iam/v1alpha1/zz_generated.deepcopy.go +++ b/apis/iam/v1alpha1/zz_generated.deepcopy.go @@ -102,6 +102,11 @@ func (in *AccessKeyObservation) DeepCopyInto(out *AccessKeyObservation) { *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.KeyFingerprint != nil { in, out := &in.KeyFingerprint, &out.KeyFingerprint *out = new(string) @@ -260,6 +265,11 @@ func (in *GroupObservation) DeepCopyInto(out *GroupObservation) { *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.UniqueID != nil { in, out := &in.UniqueID, &out.UniqueID *out = new(string) @@ -359,6 +369,11 @@ func (in *GroupPolicyAttachmentList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GroupPolicyAttachmentObservation) DeepCopyInto(out *GroupPolicyAttachmentObservation) { *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 GroupPolicyAttachmentObservation. @@ -437,7 +452,7 @@ func (in *GroupPolicyAttachmentSpec) DeepCopy() *GroupPolicyAttachmentSpec { func (in *GroupPolicyAttachmentStatus) DeepCopyInto(out *GroupPolicyAttachmentStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - out.AtProvider = in.AtProvider + in.AtProvider.DeepCopyInto(&out.AtProvider) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupPolicyAttachmentStatus. @@ -596,6 +611,11 @@ func (in *InstanceProfileObservation) DeepCopyInto(out *InstanceProfileObservati *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)) @@ -779,6 +799,11 @@ func (in *PolicyObservation) DeepCopyInto(out *PolicyObservation) { *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.PolicyID != nil { in, out := &in.PolicyID, &out.PolicyID *out = new(string) @@ -972,6 +997,11 @@ func (in *RoleObservation) DeepCopyInto(out *RoleObservation) { *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)) @@ -1144,6 +1174,11 @@ func (in *RolePolicyAttachmentList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RolePolicyAttachmentObservation) DeepCopyInto(out *RolePolicyAttachmentObservation) { *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 RolePolicyAttachmentObservation. @@ -1222,7 +1257,7 @@ func (in *RolePolicyAttachmentSpec) DeepCopy() *RolePolicyAttachmentSpec { func (in *RolePolicyAttachmentStatus) DeepCopyInto(out *RolePolicyAttachmentStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - out.AtProvider = in.AtProvider + in.AtProvider.DeepCopyInto(&out.AtProvider) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RolePolicyAttachmentStatus. @@ -1358,6 +1393,11 @@ func (in *UserGroupMembershipList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UserGroupMembershipObservation) DeepCopyInto(out *UserGroupMembershipObservation) { *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 UserGroupMembershipObservation. @@ -1442,7 +1482,7 @@ func (in *UserGroupMembershipSpec) DeepCopy() *UserGroupMembershipSpec { func (in *UserGroupMembershipStatus) DeepCopyInto(out *UserGroupMembershipStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - out.AtProvider = in.AtProvider + in.AtProvider.DeepCopyInto(&out.AtProvider) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserGroupMembershipStatus. @@ -1495,6 +1535,11 @@ func (in *UserObservation) DeepCopyInto(out *UserObservation) { *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)) @@ -1634,6 +1679,11 @@ func (in *UserPolicyAttachmentList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *UserPolicyAttachmentObservation) DeepCopyInto(out *UserPolicyAttachmentObservation) { *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 UserPolicyAttachmentObservation. @@ -1712,7 +1762,7 @@ func (in *UserPolicyAttachmentSpec) DeepCopy() *UserPolicyAttachmentSpec { func (in *UserPolicyAttachmentStatus) DeepCopyInto(out *UserPolicyAttachmentStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - out.AtProvider = in.AtProvider + in.AtProvider.DeepCopyInto(&out.AtProvider) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserPolicyAttachmentStatus. diff --git a/apis/iam/v1alpha1/zz_group_terraformed.go b/apis/iam/v1alpha1/zz_group_terraformed.go index 83d1f701c..56b48a17c 100755 --- a/apis/iam/v1alpha1/zz_group_terraformed.go +++ b/apis/iam/v1alpha1/zz_group_terraformed.go @@ -54,6 +54,14 @@ func (tr *Group) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this Group +func (tr *Group) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this Group func (tr *Group) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/iam/v1alpha1/zz_group_types.go b/apis/iam/v1alpha1/zz_group_types.go index 1c0af3e24..8e15aec6d 100755 --- a/apis/iam/v1alpha1/zz_group_types.go +++ b/apis/iam/v1alpha1/zz_group_types.go @@ -28,6 +28,8 @@ import ( type GroupObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + UniqueID *string `json:"uniqueId,omitempty" tf:"unique_id,omitempty"` } diff --git a/apis/iam/v1alpha1/zz_grouppolicyattachment_terraformed.go b/apis/iam/v1alpha1/zz_grouppolicyattachment_terraformed.go index 4a85dde88..64fa8d5cb 100755 --- a/apis/iam/v1alpha1/zz_grouppolicyattachment_terraformed.go +++ b/apis/iam/v1alpha1/zz_grouppolicyattachment_terraformed.go @@ -54,6 +54,14 @@ func (tr *GroupPolicyAttachment) SetObservation(obs map[string]interface{}) erro return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this GroupPolicyAttachment +func (tr *GroupPolicyAttachment) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this GroupPolicyAttachment func (tr *GroupPolicyAttachment) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/iam/v1alpha1/zz_grouppolicyattachment_types.go b/apis/iam/v1alpha1/zz_grouppolicyattachment_types.go index fcf7d54e2..f50a48c91 100755 --- a/apis/iam/v1alpha1/zz_grouppolicyattachment_types.go +++ b/apis/iam/v1alpha1/zz_grouppolicyattachment_types.go @@ -26,6 +26,7 @@ import ( ) type GroupPolicyAttachmentObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` } type GroupPolicyAttachmentParameters struct { diff --git a/apis/iam/v1alpha1/zz_instanceprofile_terraformed.go b/apis/iam/v1alpha1/zz_instanceprofile_terraformed.go index a69913c07..6fd191f09 100755 --- a/apis/iam/v1alpha1/zz_instanceprofile_terraformed.go +++ b/apis/iam/v1alpha1/zz_instanceprofile_terraformed.go @@ -54,6 +54,14 @@ func (tr *InstanceProfile) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this InstanceProfile +func (tr *InstanceProfile) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this InstanceProfile func (tr *InstanceProfile) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/iam/v1alpha1/zz_instanceprofile_types.go b/apis/iam/v1alpha1/zz_instanceprofile_types.go index 24d077f99..058b9055c 100755 --- a/apis/iam/v1alpha1/zz_instanceprofile_types.go +++ b/apis/iam/v1alpha1/zz_instanceprofile_types.go @@ -30,6 +30,8 @@ type InstanceProfileObservation struct { CreateDate *string `json:"createDate,omitempty" tf:"create_date,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` UniqueID *string `json:"uniqueId,omitempty" tf:"unique_id,omitempty"` diff --git a/apis/iam/v1alpha1/zz_policy_terraformed.go b/apis/iam/v1alpha1/zz_policy_terraformed.go index 1aa3d18b5..c5f7592c4 100755 --- a/apis/iam/v1alpha1/zz_policy_terraformed.go +++ b/apis/iam/v1alpha1/zz_policy_terraformed.go @@ -54,6 +54,14 @@ func (tr *Policy) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this Policy +func (tr *Policy) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this Policy func (tr *Policy) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/iam/v1alpha1/zz_policy_types.go b/apis/iam/v1alpha1/zz_policy_types.go index 17a16b716..638803255 100755 --- a/apis/iam/v1alpha1/zz_policy_types.go +++ b/apis/iam/v1alpha1/zz_policy_types.go @@ -28,6 +28,8 @@ import ( type PolicyObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + PolicyID *string `json:"policyId,omitempty" tf:"policy_id,omitempty"` TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` diff --git a/apis/iam/v1alpha1/zz_role_terraformed.go b/apis/iam/v1alpha1/zz_role_terraformed.go index f3d29910d..3ec57a565 100755 --- a/apis/iam/v1alpha1/zz_role_terraformed.go +++ b/apis/iam/v1alpha1/zz_role_terraformed.go @@ -54,6 +54,14 @@ func (tr *Role) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this Role +func (tr *Role) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this Role func (tr *Role) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/iam/v1alpha1/zz_role_types.go b/apis/iam/v1alpha1/zz_role_types.go index df8ac9766..5d90c2450 100755 --- a/apis/iam/v1alpha1/zz_role_types.go +++ b/apis/iam/v1alpha1/zz_role_types.go @@ -42,6 +42,8 @@ type RoleObservation struct { CreateDate *string `json:"createDate,omitempty" tf:"create_date,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` UniqueID *string `json:"uniqueId,omitempty" tf:"unique_id,omitempty"` diff --git a/apis/iam/v1alpha1/zz_rolepolicyattachment_terraformed.go b/apis/iam/v1alpha1/zz_rolepolicyattachment_terraformed.go index fd7a41c9d..c03550091 100755 --- a/apis/iam/v1alpha1/zz_rolepolicyattachment_terraformed.go +++ b/apis/iam/v1alpha1/zz_rolepolicyattachment_terraformed.go @@ -54,6 +54,14 @@ func (tr *RolePolicyAttachment) SetObservation(obs map[string]interface{}) error return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this RolePolicyAttachment +func (tr *RolePolicyAttachment) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this RolePolicyAttachment func (tr *RolePolicyAttachment) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/iam/v1alpha1/zz_rolepolicyattachment_types.go b/apis/iam/v1alpha1/zz_rolepolicyattachment_types.go index 2c7dc332f..494268119 100755 --- a/apis/iam/v1alpha1/zz_rolepolicyattachment_types.go +++ b/apis/iam/v1alpha1/zz_rolepolicyattachment_types.go @@ -26,6 +26,7 @@ import ( ) type RolePolicyAttachmentObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` } type RolePolicyAttachmentParameters struct { diff --git a/apis/iam/v1alpha1/zz_user_terraformed.go b/apis/iam/v1alpha1/zz_user_terraformed.go index d403faea4..dd67ff5af 100755 --- a/apis/iam/v1alpha1/zz_user_terraformed.go +++ b/apis/iam/v1alpha1/zz_user_terraformed.go @@ -54,6 +54,14 @@ func (tr *User) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this User +func (tr *User) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this User func (tr *User) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/iam/v1alpha1/zz_user_types.go b/apis/iam/v1alpha1/zz_user_types.go index a78125390..03ea478b6 100755 --- a/apis/iam/v1alpha1/zz_user_types.go +++ b/apis/iam/v1alpha1/zz_user_types.go @@ -28,6 +28,8 @@ import ( type UserObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` UniqueID *string `json:"uniqueId,omitempty" tf:"unique_id,omitempty"` diff --git a/apis/iam/v1alpha1/zz_usergroupmembership_terraformed.go b/apis/iam/v1alpha1/zz_usergroupmembership_terraformed.go index a407039bf..e0cea7ad4 100755 --- a/apis/iam/v1alpha1/zz_usergroupmembership_terraformed.go +++ b/apis/iam/v1alpha1/zz_usergroupmembership_terraformed.go @@ -54,6 +54,14 @@ func (tr *UserGroupMembership) SetObservation(obs map[string]interface{}) error return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this UserGroupMembership +func (tr *UserGroupMembership) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this UserGroupMembership func (tr *UserGroupMembership) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/iam/v1alpha1/zz_usergroupmembership_types.go b/apis/iam/v1alpha1/zz_usergroupmembership_types.go index 811b43198..4a9afa823 100755 --- a/apis/iam/v1alpha1/zz_usergroupmembership_types.go +++ b/apis/iam/v1alpha1/zz_usergroupmembership_types.go @@ -26,6 +26,7 @@ import ( ) type UserGroupMembershipObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` } type UserGroupMembershipParameters struct { diff --git a/apis/iam/v1alpha1/zz_userpolicyattachment_terraformed.go b/apis/iam/v1alpha1/zz_userpolicyattachment_terraformed.go index 9d09b2793..f14b4c207 100755 --- a/apis/iam/v1alpha1/zz_userpolicyattachment_terraformed.go +++ b/apis/iam/v1alpha1/zz_userpolicyattachment_terraformed.go @@ -54,6 +54,14 @@ func (tr *UserPolicyAttachment) SetObservation(obs map[string]interface{}) error return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this UserPolicyAttachment +func (tr *UserPolicyAttachment) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this UserPolicyAttachment func (tr *UserPolicyAttachment) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/iam/v1alpha1/zz_userpolicyattachment_types.go b/apis/iam/v1alpha1/zz_userpolicyattachment_types.go index 99976d6fd..0a2b1baca 100755 --- a/apis/iam/v1alpha1/zz_userpolicyattachment_types.go +++ b/apis/iam/v1alpha1/zz_userpolicyattachment_types.go @@ -26,6 +26,7 @@ import ( ) type UserPolicyAttachmentObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` } type UserPolicyAttachmentParameters struct { diff --git a/apis/kms/v1alpha1/zz_generated.deepcopy.go b/apis/kms/v1alpha1/zz_generated.deepcopy.go index 7453e6ba2..8452bdddb 100644 --- a/apis/kms/v1alpha1/zz_generated.deepcopy.go +++ b/apis/kms/v1alpha1/zz_generated.deepcopy.go @@ -91,6 +91,11 @@ func (in *KeyObservation) DeepCopyInto(out *KeyObservation) { *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.KeyID != nil { in, out := &in.KeyID, &out.KeyID *out = new(string) diff --git a/apis/kms/v1alpha1/zz_key_terraformed.go b/apis/kms/v1alpha1/zz_key_terraformed.go index 4321bf080..92717bf27 100755 --- a/apis/kms/v1alpha1/zz_key_terraformed.go +++ b/apis/kms/v1alpha1/zz_key_terraformed.go @@ -54,6 +54,14 @@ func (tr *Key) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this Key +func (tr *Key) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this Key func (tr *Key) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/kms/v1alpha1/zz_key_types.go b/apis/kms/v1alpha1/zz_key_types.go index 1348474fe..7d58455a6 100755 --- a/apis/kms/v1alpha1/zz_key_types.go +++ b/apis/kms/v1alpha1/zz_key_types.go @@ -28,6 +28,8 @@ import ( type KeyObservation struct { Arn *string `json:"arn,omitempty" tf:"arn,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + KeyID *string `json:"keyId,omitempty" tf:"key_id,omitempty"` TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` diff --git a/apis/rds/v1alpha1/zz_dbcluster_terraformed.go b/apis/rds/v1alpha1/zz_cluster_terraformed.go similarity index 68% rename from apis/rds/v1alpha1/zz_dbcluster_terraformed.go rename to apis/rds/v1alpha1/zz_cluster_terraformed.go index d0bf6edaa..80340f4ed 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-contrib/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,8 +54,16 @@ func (tr *DBCluster) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this DBCluster -func (tr *DBCluster) GetParameters() (map[string]interface{}, error) { +// 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 Cluster +func (tr *Cluster) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,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 @@ -73,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") } @@ -87,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 84% rename from apis/rds/v1alpha1/zz_dbcluster_types.go rename to apis/rds/v1alpha1/zz_cluster_types.go index e9a731e8c..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"` @@ -36,12 +36,14 @@ type DBClusterObservation struct { HostedZoneID *string `json:"hostedZoneId,omitempty" tf:"hosted_zone_id,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + ReaderEndpoint *string `json:"readerEndpoint,omitempty" tf:"reader_endpoint,omitempty"` 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"` @@ -104,13 +106,13 @@ type DBClusterParameters struct { GlobalClusterIdentifier *string `json:"globalClusterIdentifier,omitempty" tf:"global_cluster_identifier,omitempty"` // +kubebuilder:validation:Optional - IamDatabaseAuthenticationEnabled *bool `json:"iamDatabaseAuthenticationEnabled,omitempty" tf:"iam_database_authentication_enabled,omitempty"` + IAMDatabaseAuthenticationEnabled *bool `json:"iamDatabaseAuthenticationEnabled,omitempty" tf:"iam_database_authentication_enabled,omitempty"` // +kubebuilder:validation:Optional - IamRoles []*string `json:"iamRoles,omitempty" tf:"iam_roles,omitempty"` + IAMRoles []*string `json:"iamRoles,omitempty" tf:"iam_roles,omitempty"` // +kubebuilder:validation:Optional - KmsKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"` + KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"` // +kubebuilder:validation:Optional MasterPasswordSecretRef *v1.SecretKeySelector `json:"masterPasswordSecretRef,omitempty" tf:"-"` @@ -136,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"` @@ -160,13 +162,13 @@ type DBClusterParameters struct { Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` // +kubebuilder:validation:Optional - VpcSecurityGroupIds []*string `json:"vpcSecurityGroupIds,omitempty" tf:"vpc_security_group_ids,omitempty"` + 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"` @@ -181,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"` @@ -223,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 c5f375362..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 @@ -112,6 +112,11 @@ func (in *DBClusterObservation) DeepCopyInto(out *DBClusterObservation) { *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.ReaderEndpoint != nil { in, out := &in.ReaderEndpoint, &out.ReaderEndpoint *out = new(string) @@ -134,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 @@ -265,13 +270,13 @@ func (in *DBClusterParameters) DeepCopyInto(out *DBClusterParameters) { *out = new(string) **out = **in } - if in.IamDatabaseAuthenticationEnabled != nil { - in, out := &in.IamDatabaseAuthenticationEnabled, &out.IamDatabaseAuthenticationEnabled + if in.IAMDatabaseAuthenticationEnabled != nil { + in, out := &in.IAMDatabaseAuthenticationEnabled, &out.IAMDatabaseAuthenticationEnabled *out = new(bool) **out = **in } - if in.IamRoles != nil { - in, out := &in.IamRoles, &out.IamRoles + if in.IAMRoles != nil { + in, out := &in.IAMRoles, &out.IAMRoles *out = make([]*string, len(*in)) for i := range *in { if (*in)[i] != nil { @@ -281,8 +286,8 @@ func (in *DBClusterParameters) DeepCopyInto(out *DBClusterParameters) { } } } - if in.KmsKeyID != nil { - in, out := &in.KmsKeyID, &out.KmsKeyID + if in.KMSKeyID != nil { + in, out := &in.KMSKeyID, &out.KMSKeyID *out = new(string) **out = **in } @@ -323,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]) } @@ -377,8 +382,8 @@ func (in *DBClusterParameters) DeepCopyInto(out *DBClusterParameters) { (*out)[key] = outVal } } - if in.VpcSecurityGroupIds != nil { - in, out := &in.VpcSecurityGroupIds, &out.VpcSecurityGroupIds + if in.VPCSecurityGroupIds != nil { + in, out := &in.VPCSecurityGroupIds, &out.VPCSecurityGroupIds *out = make([]*string, len(*in)) for i := range *in { if (*in)[i] != nil { @@ -390,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 @@ -440,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 @@ -495,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) @@ -548,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 } @@ -567,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 } @@ -599,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 @@ -621,6 +626,11 @@ func (in *DBInstanceObservation) DeepCopyInto(out *DBInstanceObservation) { *out = new(string) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.LatestRestorableTime != nil { in, out := &in.LatestRestorableTime, &out.LatestRestorableTime *out = new(string) @@ -664,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 @@ -712,8 +722,8 @@ func (in *DBInstanceParameters) DeepCopyInto(out *DBInstanceParameters) { *out = new(string) **out = **in } - if in.CaCertIdentifier != nil { - in, out := &in.CaCertIdentifier, &out.CaCertIdentifier + if in.CACertIdentifier != nil { + in, out := &in.CACertIdentifier, &out.CACertIdentifier *out = new(string) **out = **in } @@ -752,8 +762,8 @@ func (in *DBInstanceParameters) DeepCopyInto(out *DBInstanceParameters) { *out = new(string) **out = **in } - if in.DomainIamRoleName != nil { - in, out := &in.DomainIamRoleName, &out.DomainIamRoleName + if in.DomainIAMRoleName != nil { + in, out := &in.DomainIAMRoleName, &out.DomainIAMRoleName *out = new(string) **out = **in } @@ -783,8 +793,8 @@ func (in *DBInstanceParameters) DeepCopyInto(out *DBInstanceParameters) { *out = new(string) **out = **in } - if in.IamDatabaseAuthenticationEnabled != nil { - in, out := &in.IamDatabaseAuthenticationEnabled, &out.IamDatabaseAuthenticationEnabled + if in.IAMDatabaseAuthenticationEnabled != nil { + in, out := &in.IAMDatabaseAuthenticationEnabled, &out.IAMDatabaseAuthenticationEnabled *out = new(bool) **out = **in } @@ -798,18 +808,18 @@ func (in *DBInstanceParameters) DeepCopyInto(out *DBInstanceParameters) { *out = new(int64) **out = **in } - if in.KmsKeyID != nil { - in, out := &in.KmsKeyID, &out.KmsKeyID + 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 + 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 + if in.KMSKeyIDSelector != nil { + in, out := &in.KMSKeyIDSelector, &out.KMSKeyIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -883,18 +893,18 @@ func (in *DBInstanceParameters) DeepCopyInto(out *DBInstanceParameters) { *out = new(bool) **out = **in } - if in.PerformanceInsightsKmsKeyID != nil { - in, out := &in.PerformanceInsightsKmsKeyID, &out.PerformanceInsightsKmsKeyID + if in.PerformanceInsightsKMSKeyID != nil { + in, out := &in.PerformanceInsightsKMSKeyID, &out.PerformanceInsightsKMSKeyID *out = new(string) **out = **in } - if in.PerformanceInsightsKmsKeyIDRef != nil { - in, out := &in.PerformanceInsightsKmsKeyIDRef, &out.PerformanceInsightsKmsKeyIDRef + if in.PerformanceInsightsKMSKeyIDRef != nil { + in, out := &in.PerformanceInsightsKMSKeyIDRef, &out.PerformanceInsightsKMSKeyIDRef *out = new(v1.Reference) **out = **in } - if in.PerformanceInsightsKmsKeyIDSelector != nil { - in, out := &in.PerformanceInsightsKmsKeyIDSelector, &out.PerformanceInsightsKmsKeyIDSelector + if in.PerformanceInsightsKMSKeyIDSelector != nil { + in, out := &in.PerformanceInsightsKMSKeyIDSelector, &out.PerformanceInsightsKMSKeyIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } @@ -1003,6 +1013,17 @@ func (in *DBInstanceParameters) DeepCopyInto(out *DBInstanceParameters) { *out = new(string) **out = **in } + if in.VPCSecurityGroupIds != nil { + in, out := &in.VPCSecurityGroupIds, &out.VPCSecurityGroupIds + *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.VpcSecurityGroupIdRefs != nil { in, out := &in.VpcSecurityGroupIdRefs, &out.VpcSecurityGroupIdRefs *out = make([]v1.Reference, len(*in)) @@ -1013,65 +1034,54 @@ func (in *DBInstanceParameters) DeepCopyInto(out *DBInstanceParameters) { *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.VpcSecurityGroupIds != nil { - in, out := &in.VpcSecurityGroupIds, &out.VpcSecurityGroupIds - *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 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) @@ -1079,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 } @@ -1098,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 } @@ -1130,13 +1140,18 @@ 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 *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)) @@ -1154,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 @@ -1206,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 fc75a8baa..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 @@ -36,20 +36,20 @@ func (mg *DBInstance) ResolveReferences(ctx context.Context, c client.Reader) er var err error rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.KmsKeyID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.KMSKeyID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.KmsKeyIDRef, - Selector: mg.Spec.ForProvider.KmsKeyIDSelector, + 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") + return errors.Wrap(err, "mg.Spec.ForProvider.KMSKeyID") } - mg.Spec.ForProvider.KmsKeyID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.KmsKeyIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.KMSKeyID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.KMSKeyIDRef = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ParameterGroupName), @@ -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 { @@ -68,20 +68,20 @@ func (mg *DBInstance) ResolveReferences(ctx context.Context, c client.Reader) er mg.Spec.ForProvider.ParameterGroupNameRef = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.PerformanceInsightsKmsKeyID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.PerformanceInsightsKMSKeyID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.PerformanceInsightsKmsKeyIDRef, - Selector: mg.Spec.ForProvider.PerformanceInsightsKmsKeyIDSelector, + Reference: mg.Spec.ForProvider.PerformanceInsightsKMSKeyIDRef, + Selector: mg.Spec.ForProvider.PerformanceInsightsKMSKeyIDSelector, To: reference.To{ List: &v1alpha1.KeyList{}, Managed: &v1alpha1.Key{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.PerformanceInsightsKmsKeyID") + return errors.Wrap(err, "mg.Spec.ForProvider.PerformanceInsightsKMSKeyID") } - mg.Spec.ForProvider.PerformanceInsightsKmsKeyID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.PerformanceInsightsKmsKeyIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.PerformanceInsightsKMSKeyID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.PerformanceInsightsKMSKeyIDRef = rsp.ResolvedReference for i3 := 0; i3 < len(mg.Spec.ForProvider.RestoreToPointInTime); i3++ { rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ @@ -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 { @@ -136,7 +136,7 @@ func (mg *DBInstance) ResolveReferences(ctx context.Context, c client.Reader) er mg.Spec.ForProvider.SecurityGroupNameRefs = mrsp.ResolvedReferences mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ - CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.VpcSecurityGroupIds), + CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.VPCSecurityGroupIds), Extract: reference.ExternalName(), References: mg.Spec.ForProvider.VpcSecurityGroupIdRefs, Selector: mg.Spec.ForProvider.VpcSecurityGroupIdSelector, @@ -146,9 +146,9 @@ func (mg *DBInstance) ResolveReferences(ctx context.Context, c client.Reader) er }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.VpcSecurityGroupIds") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCSecurityGroupIds") } - mg.Spec.ForProvider.VpcSecurityGroupIds = reference.ToPtrValues(mrsp.ResolvedValues) + mg.Spec.ForProvider.VPCSecurityGroupIds = reference.ToPtrValues(mrsp.ResolvedValues) mg.Spec.ForProvider.VpcSecurityGroupIdRefs = mrsp.ResolvedReferences return nil diff --git a/apis/rds/v1alpha1/zz_dbinstance_terraformed.go b/apis/rds/v1alpha1/zz_instance_terraformed.go similarity index 67% rename from apis/rds/v1alpha1/zz_dbinstance_terraformed.go rename to apis/rds/v1alpha1/zz_instance_terraformed.go index 8e9399841..cf1b8c341 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-contrib/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,8 +54,16 @@ func (tr *DBInstance) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this DBInstance -func (tr *DBInstance) GetParameters() (map[string]interface{}, error) { +// 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 Instance +func (tr *Instance) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,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 @@ -73,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") } @@ -87,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 87% rename from apis/rds/v1alpha1/zz_dbinstance_types.go rename to apis/rds/v1alpha1/zz_instance_types.go index 3d8b21b29..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"` @@ -34,6 +34,8 @@ type DBInstanceObservation struct { HostedZoneID *string `json:"hostedZoneId,omitempty" tf:"hosted_zone_id,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + LatestRestorableTime *string `json:"latestRestorableTime,omitempty" tf:"latest_restorable_time,omitempty"` Replicas []*string `json:"replicas,omitempty" tf:"replicas,omitempty"` @@ -45,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"` @@ -69,7 +71,7 @@ type DBInstanceParameters struct { BackupWindow *string `json:"backupWindow,omitempty" tf:"backup_window,omitempty"` // +kubebuilder:validation:Optional - CaCertIdentifier *string `json:"caCertIdentifier,omitempty" tf:"ca_cert_identifier,omitempty"` + CACertIdentifier *string `json:"caCertIdentifier,omitempty" tf:"ca_cert_identifier,omitempty"` // +kubebuilder:validation:Optional CharacterSetName *string `json:"characterSetName,omitempty" tf:"character_set_name,omitempty"` @@ -93,7 +95,7 @@ type DBInstanceParameters struct { Domain *string `json:"domain,omitempty" tf:"domain,omitempty"` // +kubebuilder:validation:Optional - DomainIamRoleName *string `json:"domainIamRoleName,omitempty" tf:"domain_iam_role_name,omitempty"` + DomainIAMRoleName *string `json:"domainIamRoleName,omitempty" tf:"domain_iam_role_name,omitempty"` // +kubebuilder:validation:Optional EnabledCloudwatchLogsExports []*string `json:"enabledCloudwatchLogsExports,omitempty" tf:"enabled_cloudwatch_logs_exports,omitempty"` @@ -108,7 +110,7 @@ type DBInstanceParameters struct { FinalSnapshotIdentifier *string `json:"finalSnapshotIdentifier,omitempty" tf:"final_snapshot_identifier,omitempty"` // +kubebuilder:validation:Optional - IamDatabaseAuthenticationEnabled *bool `json:"iamDatabaseAuthenticationEnabled,omitempty" tf:"iam_database_authentication_enabled,omitempty"` + IAMDatabaseAuthenticationEnabled *bool `json:"iamDatabaseAuthenticationEnabled,omitempty" tf:"iam_database_authentication_enabled,omitempty"` // +kubebuilder:validation:Required InstanceClass *string `json:"instanceClass" tf:"instance_class,omitempty"` @@ -118,13 +120,13 @@ type DBInstanceParameters struct { // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/kms/v1alpha1.Key // +kubebuilder:validation:Optional - KmsKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"` + KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"` // +kubebuilder:validation:Optional - KmsKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"` + KMSKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - KmsKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"` + KMSKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"` // +kubebuilder:validation:Optional LicenseModel *string `json:"licenseModel,omitempty" tf:"license_model,omitempty"` @@ -153,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"` @@ -171,13 +173,13 @@ type DBInstanceParameters struct { // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/kms/v1alpha1.Key // +kubebuilder:validation:Optional - PerformanceInsightsKmsKeyID *string `json:"performanceInsightsKmsKeyId,omitempty" tf:"performance_insights_kms_key_id,omitempty"` + PerformanceInsightsKMSKeyID *string `json:"performanceInsightsKmsKeyId,omitempty" tf:"performance_insights_kms_key_id,omitempty"` // +kubebuilder:validation:Optional - PerformanceInsightsKmsKeyIDRef *v1.Reference `json:"performanceInsightsKmsKeyIdRef,omitempty" tf:"-"` + PerformanceInsightsKMSKeyIDRef *v1.Reference `json:"performanceInsightsKmsKeyIdRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - PerformanceInsightsKmsKeyIDSelector *v1.Selector `json:"performanceInsightsKmsKeyIdSelector,omitempty" tf:"-"` + PerformanceInsightsKMSKeyIDSelector *v1.Selector `json:"performanceInsightsKmsKeyIdSelector,omitempty" tf:"-"` // +kubebuilder:validation:Optional PerformanceInsightsRetentionPeriod *int64 `json:"performanceInsightsRetentionPeriod,omitempty" tf:"performance_insights_retention_period,omitempty"` @@ -235,17 +237,17 @@ type DBInstanceParameters struct { // +kubebuilder:validation:Optional Username *string `json:"username,omitempty" tf:"username,omitempty"` + // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha1.SecurityGroup + // +crossplane:generate:reference:refFieldName=VpcSecurityGroupIdRefs + // +crossplane:generate:reference:selectorFieldName=VpcSecurityGroupIdSelector // +kubebuilder:validation:Optional - VpcSecurityGroupIdRefs []v1.Reference `json:"vpcSecurityGroupIdRefs,omitempty" tf:"-"` + VPCSecurityGroupIds []*string `json:"vpcSecurityGroupIds,omitempty" tf:"vpc_security_group_ids,omitempty"` // +kubebuilder:validation:Optional - VpcSecurityGroupIdSelector *v1.Selector `json:"vpcSecurityGroupIdSelector,omitempty" tf:"-"` + VpcSecurityGroupIdRefs []v1.Reference `json:"vpcSecurityGroupIdRefs,omitempty" tf:"-"` - // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha1.SecurityGroup - // +crossplane:generate:reference:refFieldName=VpcSecurityGroupIdRefs - // +crossplane:generate:reference:selectorFieldName=VpcSecurityGroupIdSelector // +kubebuilder:validation:Optional - VpcSecurityGroupIds []*string `json:"vpcSecurityGroupIds,omitempty" tf:"vpc_security_group_ids,omitempty"` + VpcSecurityGroupIdSelector *v1.Selector `json:"vpcSecurityGroupIdSelector,omitempty" tf:"-"` } type RestoreToPointInTimeObservation struct { @@ -256,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"` @@ -301,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 65% rename from apis/rds/v1alpha1/zz_dbparametergroup_terraformed.go rename to apis/rds/v1alpha1/zz_parametergroup_terraformed.go index 0120f91b7..c805fc282 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-contrib/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,8 +54,16 @@ func (tr *DBParameterGroup) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this DBParameterGroup -func (tr *DBParameterGroup) GetParameters() (map[string]interface{}, error) { +// 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 ParameterGroup +func (tr *ParameterGroup) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,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 @@ -73,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") } @@ -87,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 d09eb4115..2852b4db0 100755 --- a/apis/rds/v1alpha1/zz_dbparametergroup_types.go +++ b/apis/rds/v1alpha1/zz_parametergroup_types.go @@ -25,13 +25,15 @@ 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"` + 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"` @@ -66,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_delegationset_terraformed.go b/apis/route53/v1alpha1/zz_delegationset_terraformed.go index 36cc9f553..e8c9e167b 100755 --- a/apis/route53/v1alpha1/zz_delegationset_terraformed.go +++ b/apis/route53/v1alpha1/zz_delegationset_terraformed.go @@ -54,6 +54,14 @@ func (tr *DelegationSet) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this DelegationSet +func (tr *DelegationSet) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this DelegationSet func (tr *DelegationSet) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/route53/v1alpha1/zz_delegationset_types.go b/apis/route53/v1alpha1/zz_delegationset_types.go index 0d9d2e82c..431a5d143 100755 --- a/apis/route53/v1alpha1/zz_delegationset_types.go +++ b/apis/route53/v1alpha1/zz_delegationset_types.go @@ -26,6 +26,8 @@ import ( ) type DelegationSetObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` + NameServers []*string `json:"nameServers,omitempty" tf:"name_servers,omitempty"` } diff --git a/apis/route53/v1alpha1/zz_generated.deepcopy.go b/apis/route53/v1alpha1/zz_generated.deepcopy.go index 5a869d5fb..a4c47d494 100644 --- a/apis/route53/v1alpha1/zz_generated.deepcopy.go +++ b/apis/route53/v1alpha1/zz_generated.deepcopy.go @@ -132,6 +132,11 @@ func (in *DelegationSetList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DelegationSetObservation) DeepCopyInto(out *DelegationSetObservation) { *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.NameServers != nil { in, out := &in.NameServers, &out.NameServers *out = make([]*string, len(*in)) @@ -356,6 +361,11 @@ func (in *HealthCheckList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *HealthCheckObservation) DeepCopyInto(out *HealthCheckObservation) { *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)) @@ -560,7 +570,7 @@ func (in *HealthCheckStatus) DeepCopy() *HealthCheckStatus { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HostedZoneDnssec) DeepCopyInto(out *HostedZoneDnssec) { +func (in *HostedZoneDNSSEC) DeepCopyInto(out *HostedZoneDNSSEC) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -568,18 +578,18 @@ func (in *HostedZoneDnssec) DeepCopyInto(out *HostedZoneDnssec) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostedZoneDnssec. -func (in *HostedZoneDnssec) DeepCopy() *HostedZoneDnssec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostedZoneDNSSEC. +func (in *HostedZoneDNSSEC) DeepCopy() *HostedZoneDNSSEC { if in == nil { return nil } - out := new(HostedZoneDnssec) + out := new(HostedZoneDNSSEC) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *HostedZoneDnssec) DeepCopyObject() runtime.Object { +func (in *HostedZoneDNSSEC) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -587,31 +597,31 @@ func (in *HostedZoneDnssec) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HostedZoneDnssecList) DeepCopyInto(out *HostedZoneDnssecList) { +func (in *HostedZoneDNSSECList) DeepCopyInto(out *HostedZoneDNSSECList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]HostedZoneDnssec, len(*in)) + *out = make([]HostedZoneDNSSEC, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostedZoneDnssecList. -func (in *HostedZoneDnssecList) DeepCopy() *HostedZoneDnssecList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostedZoneDNSSECList. +func (in *HostedZoneDNSSECList) DeepCopy() *HostedZoneDNSSECList { if in == nil { return nil } - out := new(HostedZoneDnssecList) + out := new(HostedZoneDNSSECList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *HostedZoneDnssecList) DeepCopyObject() runtime.Object { +func (in *HostedZoneDNSSECList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -619,22 +629,27 @@ func (in *HostedZoneDnssecList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HostedZoneDnssecObservation) DeepCopyInto(out *HostedZoneDnssecObservation) { +func (in *HostedZoneDNSSECObservation) DeepCopyInto(out *HostedZoneDNSSECObservation) { *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 HostedZoneDnssecObservation. -func (in *HostedZoneDnssecObservation) DeepCopy() *HostedZoneDnssecObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostedZoneDNSSECObservation. +func (in *HostedZoneDNSSECObservation) DeepCopy() *HostedZoneDNSSECObservation { if in == nil { return nil } - out := new(HostedZoneDnssecObservation) + out := new(HostedZoneDNSSECObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HostedZoneDnssecParameters) DeepCopyInto(out *HostedZoneDnssecParameters) { +func (in *HostedZoneDNSSECParameters) DeepCopyInto(out *HostedZoneDNSSECParameters) { *out = *in if in.HostedZoneID != nil { in, out := &in.HostedZoneID, &out.HostedZoneID @@ -663,91 +678,46 @@ func (in *HostedZoneDnssecParameters) DeepCopyInto(out *HostedZoneDnssecParamete } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostedZoneDnssecParameters. -func (in *HostedZoneDnssecParameters) DeepCopy() *HostedZoneDnssecParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostedZoneDNSSECParameters. +func (in *HostedZoneDNSSECParameters) DeepCopy() *HostedZoneDNSSECParameters { if in == nil { return nil } - out := new(HostedZoneDnssecParameters) + out := new(HostedZoneDNSSECParameters) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HostedZoneDnssecSpec) DeepCopyInto(out *HostedZoneDnssecSpec) { +func (in *HostedZoneDNSSECSpec) DeepCopyInto(out *HostedZoneDNSSECSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) in.ForProvider.DeepCopyInto(&out.ForProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostedZoneDnssecSpec. -func (in *HostedZoneDnssecSpec) DeepCopy() *HostedZoneDnssecSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostedZoneDNSSECSpec. +func (in *HostedZoneDNSSECSpec) DeepCopy() *HostedZoneDNSSECSpec { if in == nil { return nil } - out := new(HostedZoneDnssecSpec) + out := new(HostedZoneDNSSECSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *HostedZoneDnssecStatus) DeepCopyInto(out *HostedZoneDnssecStatus) { +func (in *HostedZoneDNSSECStatus) DeepCopyInto(out *HostedZoneDNSSECStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - out.AtProvider = in.AtProvider -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostedZoneDnssecStatus. -func (in *HostedZoneDnssecStatus) DeepCopy() *HostedZoneDnssecStatus { - if in == nil { - return nil - } - out := new(HostedZoneDnssecStatus) - 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 - } + in.AtProvider.DeepCopyInto(&out.AtProvider) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddressParameters. -func (in *IPAddressParameters) DeepCopy() *IPAddressParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostedZoneDNSSECStatus. +func (in *HostedZoneDNSSECStatus) DeepCopy() *HostedZoneDNSSECStatus { if in == nil { return nil } - out := new(IPAddressParameters) + out := new(HostedZoneDNSSECStatus) in.DeepCopyInto(out) return out } @@ -844,6 +814,11 @@ func (in *KeySigningKeyObservation) DeepCopyInto(out *KeySigningKeyObservation) *out = new(int64) **out = **in } + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.KeyTag != nil { in, out := &in.KeyTag, &out.KeyTag *out = new(int64) @@ -1067,6 +1042,11 @@ func (in *QueryLogList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *QueryLogObservation) DeepCopyInto(out *QueryLogObservation) { *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 QueryLogObservation. @@ -1130,7 +1110,7 @@ func (in *QueryLogSpec) DeepCopy() *QueryLogSpec { func (in *QueryLogStatus) DeepCopyInto(out *QueryLogStatus) { *out = *in in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - out.AtProvider = in.AtProvider + in.AtProvider.DeepCopyInto(&out.AtProvider) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QueryLogStatus. @@ -1210,6 +1190,11 @@ func (in *RecordObservation) DeepCopyInto(out *RecordObservation) { *out = new(string) **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 RecordObservation. @@ -1383,7 +1368,7 @@ func (in *RecordStatus) DeepCopy() *RecordStatus { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverDnssecConfig) DeepCopyInto(out *ResolverDnssecConfig) { +func (in *VPCAssociationAuthorization) DeepCopyInto(out *VPCAssociationAuthorization) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -1391,18 +1376,18 @@ func (in *ResolverDnssecConfig) DeepCopyInto(out *ResolverDnssecConfig) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverDnssecConfig. -func (in *ResolverDnssecConfig) DeepCopy() *ResolverDnssecConfig { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCAssociationAuthorization. +func (in *VPCAssociationAuthorization) DeepCopy() *VPCAssociationAuthorization { if in == nil { return nil } - out := new(ResolverDnssecConfig) + out := new(VPCAssociationAuthorization) 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 { +func (in *VPCAssociationAuthorization) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1410,31 +1395,31 @@ func (in *ResolverDnssecConfig) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverDnssecConfigList) DeepCopyInto(out *ResolverDnssecConfigList) { +func (in *VPCAssociationAuthorizationList) DeepCopyInto(out *VPCAssociationAuthorizationList) { *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)) + *out = make([]VPCAssociationAuthorization, 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 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCAssociationAuthorizationList. +func (in *VPCAssociationAuthorizationList) DeepCopy() *VPCAssociationAuthorizationList { if in == nil { return nil } - out := new(ResolverDnssecConfigList) + out := new(VPCAssociationAuthorizationList) 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 { +func (in *VPCAssociationAuthorizationList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1442,297 +1427,228 @@ func (in *ResolverDnssecConfigList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverDnssecConfigObservation) DeepCopyInto(out *ResolverDnssecConfigObservation) { +func (in *VPCAssociationAuthorizationObservation) DeepCopyInto(out *VPCAssociationAuthorizationObservation) { *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 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCAssociationAuthorizationObservation. +func (in *VPCAssociationAuthorizationObservation) DeepCopy() *VPCAssociationAuthorizationObservation { if in == nil { return nil } - out := new(ResolverDnssecConfigObservation) + out := new(VPCAssociationAuthorizationObservation) 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) { +func (in *VPCAssociationAuthorizationParameters) DeepCopyInto(out *VPCAssociationAuthorizationParameters) { *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 + 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) + } + if in.VPCRegion != nil { + in, out := &in.VPCRegion, &out.VPCRegion + *out = new(string) + **out = **in + } + if in.ZoneID != nil { + in, out := &in.ZoneID, &out.ZoneID *out = new(string) **out = **in } + if in.ZoneIDRef != nil { + in, out := &in.ZoneIDRef, &out.ZoneIDRef + *out = new(v1.Reference) + **out = **in + } + if in.ZoneIDSelector != nil { + in, out := &in.ZoneIDSelector, &out.ZoneIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverDnssecConfigParameters. -func (in *ResolverDnssecConfigParameters) DeepCopy() *ResolverDnssecConfigParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCAssociationAuthorizationParameters. +func (in *VPCAssociationAuthorizationParameters) DeepCopy() *VPCAssociationAuthorizationParameters { if in == nil { return nil } - out := new(ResolverDnssecConfigParameters) + out := new(VPCAssociationAuthorizationParameters) 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) { +func (in *VPCAssociationAuthorizationSpec) DeepCopyInto(out *VPCAssociationAuthorizationSpec) { *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 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCAssociationAuthorizationSpec. +func (in *VPCAssociationAuthorizationSpec) DeepCopy() *VPCAssociationAuthorizationSpec { if in == nil { return nil } - out := new(ResolverDnssecConfigSpec) + out := new(VPCAssociationAuthorizationSpec) 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) { +func (in *VPCAssociationAuthorizationStatus) DeepCopyInto(out *VPCAssociationAuthorizationStatus) { *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 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCAssociationAuthorizationStatus. +func (in *VPCAssociationAuthorizationStatus) DeepCopy() *VPCAssociationAuthorizationStatus { if in == nil { return nil } - out := new(ResolverDnssecConfigStatus) + out := new(VPCAssociationAuthorizationStatus) 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) { +func (in *VPCObservation) DeepCopyInto(out *VPCObservation) { *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 { +// 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(ResolverEndpointList) + out := new(VPCObservation) 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) { +func (in *VPCParameters) DeepCopyInto(out *VPCParameters) { *out = *in - if in.Arn != nil { - in, out := &in.Arn, &out.Arn + if in.VPCID != nil { + in, out := &in.VPCID, &out.VPCID *out = new(string) **out = **in } - if in.HostVpcID != nil { - in, out := &in.HostVpcID, &out.HostVpcID - *out = new(string) + if in.VPCIDRef != nil { + in, out := &in.VPCIDRef, &out.VPCIDRef + *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.VPCIDSelector != nil { + in, out := &in.VPCIDSelector, &out.VPCIDSelector + *out = new(v1.Selector) + (*in).DeepCopyInto(*out) + } + if in.VPCRegion != nil { + in, out := &in.VPCRegion, &out.VPCRegion + *out = new(string) + **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverEndpointObservation. -func (in *ResolverEndpointObservation) DeepCopy() *ResolverEndpointObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VPCParameters. +func (in *VPCParameters) DeepCopy() *VPCParameters { if in == nil { return nil } - out := new(ResolverEndpointObservation) + 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 *ResolverEndpointParameters) DeepCopyInto(out *ResolverEndpointParameters) { +func (in *WeightedRoutingPolicyObservation) DeepCopyInto(out *WeightedRoutingPolicyObservation) { *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 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WeightedRoutingPolicyObservation. +func (in *WeightedRoutingPolicyObservation) DeepCopy() *WeightedRoutingPolicyObservation { if in == nil { return nil } - out := new(ResolverEndpointParameters) + out := new(WeightedRoutingPolicyObservation) 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) { +func (in *WeightedRoutingPolicyParameters) DeepCopyInto(out *WeightedRoutingPolicyParameters) { *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) + 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 ResolverEndpointSpec. -func (in *ResolverEndpointSpec) DeepCopy() *ResolverEndpointSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WeightedRoutingPolicyParameters. +func (in *WeightedRoutingPolicyParameters) DeepCopy() *WeightedRoutingPolicyParameters { if in == nil { return nil } - out := new(ResolverEndpointSpec) + out := new(WeightedRoutingPolicyParameters) 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) { +func (in *Zone) DeepCopyInto(out *Zone) { *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 ResolverEndpointStatus. -func (in *ResolverEndpointStatus) DeepCopy() *ResolverEndpointStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Zone. +func (in *Zone) DeepCopy() *Zone { if in == nil { return nil } - out := new(ResolverEndpointStatus) + out := new(Zone) in.DeepCopyInto(out) return out } +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Zone) 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 *ResolverFirewallConfig) DeepCopyInto(out *ResolverFirewallConfig) { +func (in *ZoneAssociation) DeepCopyInto(out *ZoneAssociation) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -1740,18 +1656,18 @@ func (in *ResolverFirewallConfig) DeepCopyInto(out *ResolverFirewallConfig) { in.Status.DeepCopyInto(&out.Status) } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallConfig. -func (in *ResolverFirewallConfig) DeepCopy() *ResolverFirewallConfig { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZoneAssociation. +func (in *ZoneAssociation) DeepCopy() *ZoneAssociation { if in == nil { return nil } - out := new(ResolverFirewallConfig) + out := new(ZoneAssociation) 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 { +func (in *ZoneAssociation) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1759,31 +1675,31 @@ func (in *ResolverFirewallConfig) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallConfigList) DeepCopyInto(out *ResolverFirewallConfigList) { +func (in *ZoneAssociationList) DeepCopyInto(out *ZoneAssociationList) { *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)) + *out = make([]ZoneAssociation, 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 { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZoneAssociationList. +func (in *ZoneAssociationList) DeepCopy() *ZoneAssociationList { if in == nil { return nil } - out := new(ResolverFirewallConfigList) + out := new(ZoneAssociationList) 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 { +func (in *ZoneAssociationList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1791,1895 +1707,55 @@ func (in *ResolverFirewallConfigList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ResolverFirewallConfigObservation) DeepCopyInto(out *ResolverFirewallConfigObservation) { +func (in *ZoneAssociationObservation) DeepCopyInto(out *ZoneAssociationObservation) { *out = *in - if in.OwnerID != nil { - in, out := &in.OwnerID, &out.OwnerID + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } + if in.OwningAccount != nil { + in, out := &in.OwningAccount, &out.OwningAccount *out = new(string) **out = **in } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverFirewallConfigObservation. -func (in *ResolverFirewallConfigObservation) DeepCopy() *ResolverFirewallConfigObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZoneAssociationObservation. +func (in *ZoneAssociationObservation) DeepCopy() *ZoneAssociationObservation { if in == nil { return nil } - out := new(ResolverFirewallConfigObservation) + out := new(ZoneAssociationObservation) 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) { +func (in *ZoneAssociationParameters) DeepCopyInto(out *ZoneAssociationParameters) { *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 + 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 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.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.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 -} - -// 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) - out.AtProvider = in.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 -} - -// 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) - out.AtProvider = in.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.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 -} - -// 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) - out.AtProvider = in.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.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 - 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 VpcAssociationAuthorization. -func (in *VpcAssociationAuthorization) DeepCopy() *VpcAssociationAuthorization { - if in == nil { - return nil - } - out := new(VpcAssociationAuthorization) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VpcAssociationAuthorization) 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 *VpcAssociationAuthorizationList) DeepCopyInto(out *VpcAssociationAuthorizationList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]VpcAssociationAuthorization, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VpcAssociationAuthorizationList. -func (in *VpcAssociationAuthorizationList) DeepCopy() *VpcAssociationAuthorizationList { - if in == nil { - return nil - } - out := new(VpcAssociationAuthorizationList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *VpcAssociationAuthorizationList) 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 *VpcAssociationAuthorizationObservation) DeepCopyInto(out *VpcAssociationAuthorizationObservation) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VpcAssociationAuthorizationObservation. -func (in *VpcAssociationAuthorizationObservation) DeepCopy() *VpcAssociationAuthorizationObservation { - if in == nil { - return nil - } - out := new(VpcAssociationAuthorizationObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VpcAssociationAuthorizationParameters) DeepCopyInto(out *VpcAssociationAuthorizationParameters) { - *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) - } - if in.VpcRegion != nil { - in, out := &in.VpcRegion, &out.VpcRegion - *out = new(string) - **out = **in - } - if in.ZoneID != nil { - in, out := &in.ZoneID, &out.ZoneID - *out = new(string) - **out = **in - } - if in.ZoneIDRef != nil { - in, out := &in.ZoneIDRef, &out.ZoneIDRef - *out = new(v1.Reference) - **out = **in - } - if in.ZoneIDSelector != nil { - in, out := &in.ZoneIDSelector, &out.ZoneIDSelector - *out = new(v1.Selector) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VpcAssociationAuthorizationParameters. -func (in *VpcAssociationAuthorizationParameters) DeepCopy() *VpcAssociationAuthorizationParameters { - if in == nil { - return nil - } - out := new(VpcAssociationAuthorizationParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VpcAssociationAuthorizationSpec) DeepCopyInto(out *VpcAssociationAuthorizationSpec) { - *out = *in - in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) - in.ForProvider.DeepCopyInto(&out.ForProvider) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VpcAssociationAuthorizationSpec. -func (in *VpcAssociationAuthorizationSpec) DeepCopy() *VpcAssociationAuthorizationSpec { - if in == nil { - return nil - } - out := new(VpcAssociationAuthorizationSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VpcAssociationAuthorizationStatus) DeepCopyInto(out *VpcAssociationAuthorizationStatus) { - *out = *in - in.ResourceStatus.DeepCopyInto(&out.ResourceStatus) - out.AtProvider = in.AtProvider -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VpcAssociationAuthorizationStatus. -func (in *VpcAssociationAuthorizationStatus) DeepCopy() *VpcAssociationAuthorizationStatus { - if in == nil { - return nil - } - out := new(VpcAssociationAuthorizationStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VpcObservation) DeepCopyInto(out *VpcObservation) { - *out = *in -} - -// 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(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 *VpcParameters) DeepCopyInto(out *VpcParameters) { - *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) - } - if in.VpcRegion != nil { - in, out := &in.VpcRegion, &out.VpcRegion - *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 - } - 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 *WeightedRoutingPolicyObservation) DeepCopyInto(out *WeightedRoutingPolicyObservation) { - *out = *in -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WeightedRoutingPolicyObservation. -func (in *WeightedRoutingPolicyObservation) DeepCopy() *WeightedRoutingPolicyObservation { - if in == nil { - return nil - } - out := new(WeightedRoutingPolicyObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *WeightedRoutingPolicyParameters) DeepCopyInto(out *WeightedRoutingPolicyParameters) { - *out = *in - 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 WeightedRoutingPolicyParameters. -func (in *WeightedRoutingPolicyParameters) DeepCopy() *WeightedRoutingPolicyParameters { - if in == nil { - return nil - } - out := new(WeightedRoutingPolicyParameters) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Zone) DeepCopyInto(out *Zone) { - *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 Zone. -func (in *Zone) DeepCopy() *Zone { - if in == nil { - return nil - } - out := new(Zone) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Zone) 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 *ZoneAssociation) DeepCopyInto(out *ZoneAssociation) { - *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 ZoneAssociation. -func (in *ZoneAssociation) DeepCopy() *ZoneAssociation { - if in == nil { - return nil - } - out := new(ZoneAssociation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ZoneAssociation) 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 *ZoneAssociationList) DeepCopyInto(out *ZoneAssociationList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ZoneAssociation, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZoneAssociationList. -func (in *ZoneAssociationList) DeepCopy() *ZoneAssociationList { - if in == nil { - return nil - } - out := new(ZoneAssociationList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ZoneAssociationList) 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 *ZoneAssociationObservation) DeepCopyInto(out *ZoneAssociationObservation) { - *out = *in - if in.OwningAccount != nil { - in, out := &in.OwningAccount, &out.OwningAccount - *out = new(string) - **out = **in - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZoneAssociationObservation. -func (in *ZoneAssociationObservation) DeepCopy() *ZoneAssociationObservation { - if in == nil { - return nil - } - out := new(ZoneAssociationObservation) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ZoneAssociationParameters) DeepCopyInto(out *ZoneAssociationParameters) { - *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 + 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 + if in.VPCIDSelector != nil { + in, out := &in.VPCIDSelector, &out.VPCIDSelector *out = new(v1.Selector) (*in).DeepCopyInto(*out) } - if in.VpcRegion != nil { - in, out := &in.VpcRegion, &out.VpcRegion + if in.VPCRegion != nil { + in, out := &in.VPCRegion, &out.VPCRegion *out = new(string) **out = **in } @@ -3779,6 +1855,11 @@ func (in *ZoneList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ZoneObservation) DeepCopyInto(out *ZoneObservation) { *out = *in + if in.ID != nil { + in, out := &in.ID, &out.ID + *out = new(string) + **out = **in + } if in.NameServers != nil { in, out := &in.NameServers, &out.NameServers *out = make([]*string, len(*in)) @@ -3875,9 +1956,9 @@ func (in *ZoneParameters) DeepCopyInto(out *ZoneParameters) { (*out)[key] = outVal } } - if in.Vpc != nil { - in, out := &in.Vpc, &out.Vpc - *out = make([]VpcParameters, len(*in)) + if in.VPC != nil { + in, out := &in.VPC, &out.VPC + *out = make([]VPCParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } diff --git a/apis/route53/v1alpha1/zz_generated.managed.go b/apis/route53/v1alpha1/zz_generated.managed.go index 9ca023905..d68d47a84 100644 --- a/apis/route53/v1alpha1/zz_generated.managed.go +++ b/apis/route53/v1alpha1/zz_generated.managed.go @@ -131,59 +131,59 @@ func (mg *HealthCheck) SetWriteConnectionSecretToReference(r *xpv1.SecretReferen mg.Spec.WriteConnectionSecretToReference = r } -// GetCondition of this HostedZoneDnssec. -func (mg *HostedZoneDnssec) GetCondition(ct xpv1.ConditionType) xpv1.Condition { +// GetCondition of this HostedZoneDNSSEC. +func (mg *HostedZoneDNSSEC) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) } -// GetDeletionPolicy of this HostedZoneDnssec. -func (mg *HostedZoneDnssec) GetDeletionPolicy() xpv1.DeletionPolicy { +// GetDeletionPolicy of this HostedZoneDNSSEC. +func (mg *HostedZoneDNSSEC) GetDeletionPolicy() xpv1.DeletionPolicy { return mg.Spec.DeletionPolicy } -// GetProviderConfigReference of this HostedZoneDnssec. -func (mg *HostedZoneDnssec) GetProviderConfigReference() *xpv1.Reference { +// GetProviderConfigReference of this HostedZoneDNSSEC. +func (mg *HostedZoneDNSSEC) GetProviderConfigReference() *xpv1.Reference { return mg.Spec.ProviderConfigReference } /* -GetProviderReference of this HostedZoneDnssec. +GetProviderReference of this HostedZoneDNSSEC. Deprecated: Use GetProviderConfigReference. */ -func (mg *HostedZoneDnssec) GetProviderReference() *xpv1.Reference { +func (mg *HostedZoneDNSSEC) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } -// GetWriteConnectionSecretToReference of this HostedZoneDnssec. -func (mg *HostedZoneDnssec) GetWriteConnectionSecretToReference() *xpv1.SecretReference { +// GetWriteConnectionSecretToReference of this HostedZoneDNSSEC. +func (mg *HostedZoneDNSSEC) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference } -// SetConditions of this HostedZoneDnssec. -func (mg *HostedZoneDnssec) SetConditions(c ...xpv1.Condition) { +// SetConditions of this HostedZoneDNSSEC. +func (mg *HostedZoneDNSSEC) SetConditions(c ...xpv1.Condition) { mg.Status.SetConditions(c...) } -// SetDeletionPolicy of this HostedZoneDnssec. -func (mg *HostedZoneDnssec) SetDeletionPolicy(r xpv1.DeletionPolicy) { +// SetDeletionPolicy of this HostedZoneDNSSEC. +func (mg *HostedZoneDNSSEC) SetDeletionPolicy(r xpv1.DeletionPolicy) { mg.Spec.DeletionPolicy = r } -// SetProviderConfigReference of this HostedZoneDnssec. -func (mg *HostedZoneDnssec) SetProviderConfigReference(r *xpv1.Reference) { +// SetProviderConfigReference of this HostedZoneDNSSEC. +func (mg *HostedZoneDNSSEC) SetProviderConfigReference(r *xpv1.Reference) { mg.Spec.ProviderConfigReference = r } /* -SetProviderReference of this HostedZoneDnssec. +SetProviderReference of this HostedZoneDNSSEC. Deprecated: Use SetProviderConfigReference. */ -func (mg *HostedZoneDnssec) SetProviderReference(r *xpv1.Reference) { +func (mg *HostedZoneDNSSEC) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } -// SetWriteConnectionSecretToReference of this HostedZoneDnssec. -func (mg *HostedZoneDnssec) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { +// SetWriteConnectionSecretToReference of this HostedZoneDNSSEC. +func (mg *HostedZoneDNSSEC) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } @@ -355,675 +355,59 @@ func (mg *Record) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } -// GetCondition of this ResolverDnssecConfig. -func (mg *ResolverDnssecConfig) GetCondition(ct xpv1.ConditionType) xpv1.Condition { +// GetCondition of this VPCAssociationAuthorization. +func (mg *VPCAssociationAuthorization) GetCondition(ct xpv1.ConditionType) xpv1.Condition { return mg.Status.GetCondition(ct) } -// GetDeletionPolicy of this ResolverDnssecConfig. -func (mg *ResolverDnssecConfig) GetDeletionPolicy() xpv1.DeletionPolicy { +// GetDeletionPolicy of this VPCAssociationAuthorization. +func (mg *VPCAssociationAuthorization) GetDeletionPolicy() xpv1.DeletionPolicy { return mg.Spec.DeletionPolicy } -// GetProviderConfigReference of this ResolverDnssecConfig. -func (mg *ResolverDnssecConfig) GetProviderConfigReference() *xpv1.Reference { +// GetProviderConfigReference of this VPCAssociationAuthorization. +func (mg *VPCAssociationAuthorization) GetProviderConfigReference() *xpv1.Reference { return mg.Spec.ProviderConfigReference } /* -GetProviderReference of this ResolverDnssecConfig. +GetProviderReference of this VPCAssociationAuthorization. Deprecated: Use GetProviderConfigReference. */ -func (mg *ResolverDnssecConfig) GetProviderReference() *xpv1.Reference { +func (mg *VPCAssociationAuthorization) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } -// GetWriteConnectionSecretToReference of this ResolverDnssecConfig. -func (mg *ResolverDnssecConfig) GetWriteConnectionSecretToReference() *xpv1.SecretReference { +// GetWriteConnectionSecretToReference of this VPCAssociationAuthorization. +func (mg *VPCAssociationAuthorization) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference } -// SetConditions of this ResolverDnssecConfig. -func (mg *ResolverDnssecConfig) SetConditions(c ...xpv1.Condition) { +// SetConditions of this VPCAssociationAuthorization. +func (mg *VPCAssociationAuthorization) SetConditions(c ...xpv1.Condition) { mg.Status.SetConditions(c...) } -// SetDeletionPolicy of this ResolverDnssecConfig. -func (mg *ResolverDnssecConfig) SetDeletionPolicy(r xpv1.DeletionPolicy) { +// SetDeletionPolicy of this VPCAssociationAuthorization. +func (mg *VPCAssociationAuthorization) SetDeletionPolicy(r xpv1.DeletionPolicy) { mg.Spec.DeletionPolicy = r } -// SetProviderConfigReference of this ResolverDnssecConfig. -func (mg *ResolverDnssecConfig) SetProviderConfigReference(r *xpv1.Reference) { +// SetProviderConfigReference of this VPCAssociationAuthorization. +func (mg *VPCAssociationAuthorization) SetProviderConfigReference(r *xpv1.Reference) { mg.Spec.ProviderConfigReference = r } /* -SetProviderReference of this ResolverDnssecConfig. +SetProviderReference of this VPCAssociationAuthorization. Deprecated: Use SetProviderConfigReference. */ -func (mg *ResolverDnssecConfig) SetProviderReference(r *xpv1.Reference) { +func (mg *VPCAssociationAuthorization) 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) -} - -// GetDeletionPolicy of this VpcAssociationAuthorization. -func (mg *VpcAssociationAuthorization) GetDeletionPolicy() xpv1.DeletionPolicy { - return mg.Spec.DeletionPolicy -} - -// GetProviderConfigReference of this VpcAssociationAuthorization. -func (mg *VpcAssociationAuthorization) GetProviderConfigReference() *xpv1.Reference { - return mg.Spec.ProviderConfigReference -} - -/* -GetProviderReference of this VpcAssociationAuthorization. -Deprecated: Use GetProviderConfigReference. -*/ -func (mg *VpcAssociationAuthorization) GetProviderReference() *xpv1.Reference { - return mg.Spec.ProviderReference -} - -// GetWriteConnectionSecretToReference of this VpcAssociationAuthorization. -func (mg *VpcAssociationAuthorization) GetWriteConnectionSecretToReference() *xpv1.SecretReference { - return mg.Spec.WriteConnectionSecretToReference -} - -// SetConditions of this VpcAssociationAuthorization. -func (mg *VpcAssociationAuthorization) SetConditions(c ...xpv1.Condition) { - mg.Status.SetConditions(c...) -} - -// SetDeletionPolicy of this VpcAssociationAuthorization. -func (mg *VpcAssociationAuthorization) SetDeletionPolicy(r xpv1.DeletionPolicy) { - mg.Spec.DeletionPolicy = r -} - -// SetProviderConfigReference of this VpcAssociationAuthorization. -func (mg *VpcAssociationAuthorization) SetProviderConfigReference(r *xpv1.Reference) { - mg.Spec.ProviderConfigReference = r -} - -/* -SetProviderReference of this VpcAssociationAuthorization. -Deprecated: Use SetProviderConfigReference. -*/ -func (mg *VpcAssociationAuthorization) SetProviderReference(r *xpv1.Reference) { - mg.Spec.ProviderReference = r -} - -// SetWriteConnectionSecretToReference of this VpcAssociationAuthorization. -func (mg *VpcAssociationAuthorization) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { +// SetWriteConnectionSecretToReference of this VPCAssociationAuthorization. +func (mg *VPCAssociationAuthorization) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r } diff --git a/apis/route53/v1alpha1/zz_generated.managedlist.go b/apis/route53/v1alpha1/zz_generated.managedlist.go index 87d279d9b..22f2140e4 100644 --- a/apis/route53/v1alpha1/zz_generated.managedlist.go +++ b/apis/route53/v1alpha1/zz_generated.managedlist.go @@ -37,8 +37,8 @@ func (l *HealthCheckList) GetItems() []resource.Managed { return items } -// GetItems of this HostedZoneDnssecList. -func (l *HostedZoneDnssecList) GetItems() []resource.Managed { +// GetItems of this HostedZoneDNSSECList. +func (l *HostedZoneDNSSECList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] @@ -73,107 +73,8 @@ 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 { +// GetItems of this VPCAssociationAuthorizationList. +func (l *VPCAssociationAuthorizationList) GetItems() []resource.Managed { items := make([]resource.Managed, len(l.Items)) for i := range l.Items { items[i] = &l.Items[i] diff --git a/apis/route53/v1alpha1/zz_generated.resolvers.go b/apis/route53/v1alpha1/zz_generated.resolvers.go index 4b6328443..b4beea933 100644 --- a/apis/route53/v1alpha1/zz_generated.resolvers.go +++ b/apis/route53/v1alpha1/zz_generated.resolvers.go @@ -26,8 +26,8 @@ import ( client "sigs.k8s.io/controller-runtime/pkg/client" ) -// ResolveReferences of this HostedZoneDnssec. -func (mg *HostedZoneDnssec) ResolveReferences(ctx context.Context, c client.Reader) error { +// ResolveReferences of this HostedZoneDNSSEC. +func (mg *HostedZoneDNSSEC) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse @@ -136,28 +136,28 @@ func (mg *Record) ResolveReferences(ctx context.Context, c client.Reader) error return nil } -// ResolveReferences of this VpcAssociationAuthorization. -func (mg *VpcAssociationAuthorization) ResolveReferences(ctx context.Context, c client.Reader) error { +// ResolveReferences of this VPCAssociationAuthorization. +func (mg *VPCAssociationAuthorization) 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), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VPCID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.VpcIDRef, - Selector: mg.Spec.ForProvider.VpcIDSelector, + Reference: mg.Spec.ForProvider.VPCIDRef, + Selector: mg.Spec.ForProvider.VPCIDSelector, To: reference.To{ List: &v1alpha11.VPCList{}, Managed: &v1alpha11.VPC{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.VpcID") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCID") } - mg.Spec.ForProvider.VpcID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.VpcIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.VPCID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.VPCIDRef = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ZoneID), @@ -201,22 +201,22 @@ func (mg *Zone) ResolveReferences(ctx context.Context, c client.Reader) error { mg.Spec.ForProvider.DelegationSetID = reference.ToPtrValue(rsp.ResolvedValue) mg.Spec.ForProvider.DelegationSetIDRef = rsp.ResolvedReference - for i3 := 0; i3 < len(mg.Spec.ForProvider.Vpc); i3++ { + for i3 := 0; i3 < len(mg.Spec.ForProvider.VPC); i3++ { rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.Vpc[i3].VpcID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VPC[i3].VPCID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.Vpc[i3].VpcIDRef, - Selector: mg.Spec.ForProvider.Vpc[i3].VpcIDSelector, + Reference: mg.Spec.ForProvider.VPC[i3].VPCIDRef, + Selector: mg.Spec.ForProvider.VPC[i3].VPCIDSelector, To: reference.To{ List: &v1alpha11.VPCList{}, Managed: &v1alpha11.VPC{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.Vpc[i3].VpcID") + return errors.Wrap(err, "mg.Spec.ForProvider.VPC[i3].VPCID") } - mg.Spec.ForProvider.Vpc[i3].VpcID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.Vpc[i3].VpcIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.VPC[i3].VPCID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.VPC[i3].VPCIDRef = rsp.ResolvedReference } @@ -231,20 +231,20 @@ func (mg *ZoneAssociation) ResolveReferences(ctx context.Context, c client.Reade var err error rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ - CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VpcID), + CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.VPCID), Extract: reference.ExternalName(), - Reference: mg.Spec.ForProvider.VpcIDRef, - Selector: mg.Spec.ForProvider.VpcIDSelector, + Reference: mg.Spec.ForProvider.VPCIDRef, + Selector: mg.Spec.ForProvider.VPCIDSelector, To: reference.To{ List: &v1alpha11.VPCList{}, Managed: &v1alpha11.VPC{}, }, }) if err != nil { - return errors.Wrap(err, "mg.Spec.ForProvider.VpcID") + return errors.Wrap(err, "mg.Spec.ForProvider.VPCID") } - mg.Spec.ForProvider.VpcID = reference.ToPtrValue(rsp.ResolvedValue) - mg.Spec.ForProvider.VpcIDRef = rsp.ResolvedReference + mg.Spec.ForProvider.VPCID = reference.ToPtrValue(rsp.ResolvedValue) + mg.Spec.ForProvider.VPCIDRef = rsp.ResolvedReference rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ZoneID), diff --git a/apis/route53/v1alpha1/zz_healthcheck_terraformed.go b/apis/route53/v1alpha1/zz_healthcheck_terraformed.go index 9b5644927..e9c8e7de2 100755 --- a/apis/route53/v1alpha1/zz_healthcheck_terraformed.go +++ b/apis/route53/v1alpha1/zz_healthcheck_terraformed.go @@ -54,6 +54,14 @@ func (tr *HealthCheck) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this HealthCheck +func (tr *HealthCheck) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this HealthCheck func (tr *HealthCheck) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/route53/v1alpha1/zz_healthcheck_types.go b/apis/route53/v1alpha1/zz_healthcheck_types.go index b35e2407c..13459eb44 100755 --- a/apis/route53/v1alpha1/zz_healthcheck_types.go +++ b/apis/route53/v1alpha1/zz_healthcheck_types.go @@ -26,6 +26,8 @@ import ( ) type HealthCheckObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` + TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } diff --git a/apis/route53/v1alpha1/zz_hostedzonednssec_terraformed.go b/apis/route53/v1alpha1/zz_hostedzonednssec_terraformed.go index b5b0b4681..4dff33ce5 100755 --- a/apis/route53/v1alpha1/zz_hostedzonednssec_terraformed.go +++ b/apis/route53/v1alpha1/zz_hostedzonednssec_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane-contrib/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this HostedZoneDnssec -func (mg *HostedZoneDnssec) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this HostedZoneDNSSEC +func (mg *HostedZoneDNSSEC) GetTerraformResourceType() string { return "aws_route53_hosted_zone_dnssec" } -// GetConnectionDetailsMapping for this HostedZoneDnssec -func (tr *HostedZoneDnssec) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this HostedZoneDNSSEC +func (tr *HostedZoneDNSSEC) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this HostedZoneDnssec -func (tr *HostedZoneDnssec) GetObservation() (map[string]interface{}, error) { +// GetObservation of this HostedZoneDNSSEC +func (tr *HostedZoneDNSSEC) 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 *HostedZoneDnssec) GetObservation() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this HostedZoneDnssec -func (tr *HostedZoneDnssec) SetObservation(obs map[string]interface{}) error { +// SetObservation for this HostedZoneDNSSEC +func (tr *HostedZoneDNSSEC) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,8 +54,16 @@ func (tr *HostedZoneDnssec) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this HostedZoneDnssec -func (tr *HostedZoneDnssec) GetParameters() (map[string]interface{}, error) { +// GetID returns ID of underlying Terraform resource of this HostedZoneDNSSEC +func (tr *HostedZoneDNSSEC) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this HostedZoneDNSSEC +func (tr *HostedZoneDNSSEC) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,8 +72,8 @@ func (tr *HostedZoneDnssec) GetParameters() (map[string]interface{}, error) { return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this HostedZoneDnssec -func (tr *HostedZoneDnssec) SetParameters(params map[string]interface{}) error { +// SetParameters for this HostedZoneDNSSEC +func (tr *HostedZoneDNSSEC) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -73,10 +81,10 @@ func (tr *HostedZoneDnssec) SetParameters(params map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this HostedZoneDnssec using its observed tfState. +// LateInitialize this HostedZoneDNSSEC using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *HostedZoneDnssec) LateInitialize(attrs []byte) (bool, error) { - params := &HostedZoneDnssecParameters{} +func (tr *HostedZoneDNSSEC) LateInitialize(attrs []byte) (bool, error) { + params := &HostedZoneDNSSECParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -87,6 +95,6 @@ func (tr *HostedZoneDnssec) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *HostedZoneDnssec) GetTerraformSchemaVersion() int { +func (tr *HostedZoneDNSSEC) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/route53/v1alpha1/zz_hostedzonednssec_types.go b/apis/route53/v1alpha1/zz_hostedzonednssec_types.go index 3fb37e7f0..196b09a9d 100755 --- a/apis/route53/v1alpha1/zz_hostedzonednssec_types.go +++ b/apis/route53/v1alpha1/zz_hostedzonednssec_types.go @@ -25,10 +25,11 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type HostedZoneDnssecObservation struct { +type HostedZoneDNSSECObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` } -type HostedZoneDnssecParameters struct { +type HostedZoneDNSSECParameters struct { // +crossplane:generate:reference:type=Zone // +kubebuilder:validation:Optional @@ -49,51 +50,51 @@ type HostedZoneDnssecParameters struct { SigningStatus *string `json:"signingStatus,omitempty" tf:"signing_status,omitempty"` } -// HostedZoneDnssecSpec defines the desired state of HostedZoneDnssec -type HostedZoneDnssecSpec struct { +// HostedZoneDNSSECSpec defines the desired state of HostedZoneDNSSEC +type HostedZoneDNSSECSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider HostedZoneDnssecParameters `json:"forProvider"` + ForProvider HostedZoneDNSSECParameters `json:"forProvider"` } -// HostedZoneDnssecStatus defines the observed state of HostedZoneDnssec. -type HostedZoneDnssecStatus struct { +// HostedZoneDNSSECStatus defines the observed state of HostedZoneDNSSEC. +type HostedZoneDNSSECStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider HostedZoneDnssecObservation `json:"atProvider,omitempty"` + AtProvider HostedZoneDNSSECObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// HostedZoneDnssec is the Schema for the HostedZoneDnssecs API +// HostedZoneDNSSEC is the Schema for the HostedZoneDNSSECs 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 HostedZoneDnssec struct { +type HostedZoneDNSSEC struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec HostedZoneDnssecSpec `json:"spec"` - Status HostedZoneDnssecStatus `json:"status,omitempty"` + Spec HostedZoneDNSSECSpec `json:"spec"` + Status HostedZoneDNSSECStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// HostedZoneDnssecList contains a list of HostedZoneDnssecs -type HostedZoneDnssecList struct { +// HostedZoneDNSSECList contains a list of HostedZoneDNSSECs +type HostedZoneDNSSECList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []HostedZoneDnssec `json:"items"` + Items []HostedZoneDNSSEC `json:"items"` } // Repository type metadata. var ( - HostedZoneDnssec_Kind = "HostedZoneDnssec" - HostedZoneDnssec_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: HostedZoneDnssec_Kind}.String() - HostedZoneDnssec_KindAPIVersion = HostedZoneDnssec_Kind + "." + CRDGroupVersion.String() - HostedZoneDnssec_GroupVersionKind = CRDGroupVersion.WithKind(HostedZoneDnssec_Kind) + HostedZoneDNSSEC_Kind = "HostedZoneDNSSEC" + HostedZoneDNSSEC_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: HostedZoneDNSSEC_Kind}.String() + HostedZoneDNSSEC_KindAPIVersion = HostedZoneDNSSEC_Kind + "." + CRDGroupVersion.String() + HostedZoneDNSSEC_GroupVersionKind = CRDGroupVersion.WithKind(HostedZoneDNSSEC_Kind) ) func init() { - SchemeBuilder.Register(&HostedZoneDnssec{}, &HostedZoneDnssecList{}) + SchemeBuilder.Register(&HostedZoneDNSSEC{}, &HostedZoneDNSSECList{}) } diff --git a/apis/route53/v1alpha1/zz_keysigningkey_terraformed.go b/apis/route53/v1alpha1/zz_keysigningkey_terraformed.go index 8057eb84c..8b741a570 100755 --- a/apis/route53/v1alpha1/zz_keysigningkey_terraformed.go +++ b/apis/route53/v1alpha1/zz_keysigningkey_terraformed.go @@ -54,6 +54,14 @@ func (tr *KeySigningKey) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this KeySigningKey +func (tr *KeySigningKey) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this KeySigningKey func (tr *KeySigningKey) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/route53/v1alpha1/zz_keysigningkey_types.go b/apis/route53/v1alpha1/zz_keysigningkey_types.go index 6727552f2..f9aa3285f 100755 --- a/apis/route53/v1alpha1/zz_keysigningkey_types.go +++ b/apis/route53/v1alpha1/zz_keysigningkey_types.go @@ -38,6 +38,8 @@ type KeySigningKeyObservation struct { Flag *int64 `json:"flag,omitempty" tf:"flag,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + KeyTag *int64 `json:"keyTag,omitempty" tf:"key_tag,omitempty"` PublicKey *string `json:"publicKey,omitempty" tf:"public_key,omitempty"` diff --git a/apis/route53/v1alpha1/zz_querylog_terraformed.go b/apis/route53/v1alpha1/zz_querylog_terraformed.go index 926927a32..4f710863a 100755 --- a/apis/route53/v1alpha1/zz_querylog_terraformed.go +++ b/apis/route53/v1alpha1/zz_querylog_terraformed.go @@ -54,6 +54,14 @@ func (tr *QueryLog) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this QueryLog +func (tr *QueryLog) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this QueryLog func (tr *QueryLog) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/route53/v1alpha1/zz_querylog_types.go b/apis/route53/v1alpha1/zz_querylog_types.go index c2ee885a8..9f18c1cd9 100755 --- a/apis/route53/v1alpha1/zz_querylog_types.go +++ b/apis/route53/v1alpha1/zz_querylog_types.go @@ -26,6 +26,7 @@ import ( ) type QueryLogObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` } type QueryLogParameters struct { diff --git a/apis/route53/v1alpha1/zz_record_terraformed.go b/apis/route53/v1alpha1/zz_record_terraformed.go index 1e6404d9b..f003a179c 100755 --- a/apis/route53/v1alpha1/zz_record_terraformed.go +++ b/apis/route53/v1alpha1/zz_record_terraformed.go @@ -54,6 +54,14 @@ func (tr *Record) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this Record +func (tr *Record) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this Record func (tr *Record) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/route53/v1alpha1/zz_record_types.go b/apis/route53/v1alpha1/zz_record_types.go index e4ef50840..8b61962fe 100755 --- a/apis/route53/v1alpha1/zz_record_types.go +++ b/apis/route53/v1alpha1/zz_record_types.go @@ -75,6 +75,8 @@ type LatencyRoutingPolicyParameters struct { type RecordObservation struct { Fqdn *string `json:"fqdn,omitempty" tf:"fqdn,omitempty"` + + ID *string `json:"id,omitempty" tf:"id,omitempty"` } type RecordParameters struct { diff --git a/apis/route53/v1alpha1/zz_resolverquerylogconfigassociation_terraformed.go b/apis/route53/v1alpha1/zz_resolverquerylogconfigassociation_terraformed.go deleted file mode 100755 index 0d9cc9205..000000000 --- a/apis/route53/v1alpha1/zz_resolverquerylogconfigassociation_terraformed.go +++ /dev/null @@ -1,92 +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-contrib/terrajet/pkg/resource" - "github.com/crossplane-contrib/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) -} - -// 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_vpcassociationauthorization_terraformed.go b/apis/route53/v1alpha1/zz_vpcassociationauthorization_terraformed.go index b11119ee3..4d8af0cf2 100755 --- a/apis/route53/v1alpha1/zz_vpcassociationauthorization_terraformed.go +++ b/apis/route53/v1alpha1/zz_vpcassociationauthorization_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane-contrib/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this VpcAssociationAuthorization -func (mg *VpcAssociationAuthorization) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this VPCAssociationAuthorization +func (mg *VPCAssociationAuthorization) GetTerraformResourceType() string { return "aws_route53_vpc_association_authorization" } -// GetConnectionDetailsMapping for this VpcAssociationAuthorization -func (tr *VpcAssociationAuthorization) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this VPCAssociationAuthorization +func (tr *VPCAssociationAuthorization) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this VpcAssociationAuthorization -func (tr *VpcAssociationAuthorization) GetObservation() (map[string]interface{}, error) { +// GetObservation of this VPCAssociationAuthorization +func (tr *VPCAssociationAuthorization) 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 *VpcAssociationAuthorization) GetObservation() (map[string]interface{}, return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this VpcAssociationAuthorization -func (tr *VpcAssociationAuthorization) SetObservation(obs map[string]interface{}) error { +// SetObservation for this VPCAssociationAuthorization +func (tr *VPCAssociationAuthorization) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,8 +54,16 @@ func (tr *VpcAssociationAuthorization) SetObservation(obs map[string]interface{} return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this VpcAssociationAuthorization -func (tr *VpcAssociationAuthorization) GetParameters() (map[string]interface{}, error) { +// GetID returns ID of underlying Terraform resource of this VPCAssociationAuthorization +func (tr *VPCAssociationAuthorization) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this VPCAssociationAuthorization +func (tr *VPCAssociationAuthorization) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,8 +72,8 @@ func (tr *VpcAssociationAuthorization) GetParameters() (map[string]interface{}, return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this VpcAssociationAuthorization -func (tr *VpcAssociationAuthorization) SetParameters(params map[string]interface{}) error { +// SetParameters for this VPCAssociationAuthorization +func (tr *VPCAssociationAuthorization) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -73,10 +81,10 @@ func (tr *VpcAssociationAuthorization) SetParameters(params map[string]interface return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this VpcAssociationAuthorization using its observed tfState. +// LateInitialize this VPCAssociationAuthorization using its observed tfState. // returns True if there are any spec changes for the resource. -func (tr *VpcAssociationAuthorization) LateInitialize(attrs []byte) (bool, error) { - params := &VpcAssociationAuthorizationParameters{} +func (tr *VPCAssociationAuthorization) LateInitialize(attrs []byte) (bool, error) { + params := &VPCAssociationAuthorizationParameters{} if err := json.TFParser.Unmarshal(attrs, params); err != nil { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } @@ -87,6 +95,6 @@ func (tr *VpcAssociationAuthorization) LateInitialize(attrs []byte) (bool, error } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *VpcAssociationAuthorization) GetTerraformSchemaVersion() int { +func (tr *VPCAssociationAuthorization) GetTerraformSchemaVersion() int { return 0 } diff --git a/apis/route53/v1alpha1/zz_vpcassociationauthorization_types.go b/apis/route53/v1alpha1/zz_vpcassociationauthorization_types.go index 9ef8d16f0..cca3f99f3 100755 --- a/apis/route53/v1alpha1/zz_vpcassociationauthorization_types.go +++ b/apis/route53/v1alpha1/zz_vpcassociationauthorization_types.go @@ -25,10 +25,11 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type VpcAssociationAuthorizationObservation struct { +type VPCAssociationAuthorizationObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` } -type VpcAssociationAuthorizationParameters struct { +type VPCAssociationAuthorizationParameters struct { // Region is the region you'd like your resource to be created in. // +terrajet:crd:field:TFTag=- @@ -37,16 +38,16 @@ type VpcAssociationAuthorizationParameters struct { // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha1.VPC // +kubebuilder:validation:Optional - VpcID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` + VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` // +kubebuilder:validation:Optional - VpcIDRef *v1.Reference `json:"vpcIdRef,omitempty" tf:"-"` + VPCIDRef *v1.Reference `json:"vpcidRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcIDSelector *v1.Selector `json:"vpcIdSelector,omitempty" tf:"-"` + VPCIDSelector *v1.Selector `json:"vpcidSelector,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcRegion *string `json:"vpcRegion,omitempty" tf:"vpc_region,omitempty"` + VPCRegion *string `json:"vpcRegion,omitempty" tf:"vpc_region,omitempty"` // +crossplane:generate:reference:type=Zone // +kubebuilder:validation:Optional @@ -59,51 +60,51 @@ type VpcAssociationAuthorizationParameters struct { ZoneIDSelector *v1.Selector `json:"zoneIdSelector,omitempty" tf:"-"` } -// VpcAssociationAuthorizationSpec defines the desired state of VpcAssociationAuthorization -type VpcAssociationAuthorizationSpec struct { +// VPCAssociationAuthorizationSpec defines the desired state of VPCAssociationAuthorization +type VPCAssociationAuthorizationSpec struct { v1.ResourceSpec `json:",inline"` - ForProvider VpcAssociationAuthorizationParameters `json:"forProvider"` + ForProvider VPCAssociationAuthorizationParameters `json:"forProvider"` } -// VpcAssociationAuthorizationStatus defines the observed state of VpcAssociationAuthorization. -type VpcAssociationAuthorizationStatus struct { +// VPCAssociationAuthorizationStatus defines the observed state of VPCAssociationAuthorization. +type VPCAssociationAuthorizationStatus struct { v1.ResourceStatus `json:",inline"` - AtProvider VpcAssociationAuthorizationObservation `json:"atProvider,omitempty"` + AtProvider VPCAssociationAuthorizationObservation `json:"atProvider,omitempty"` } // +kubebuilder:object:root=true -// VpcAssociationAuthorization is the Schema for the VpcAssociationAuthorizations API +// VPCAssociationAuthorization is the Schema for the VPCAssociationAuthorizations 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 VpcAssociationAuthorization struct { +type VPCAssociationAuthorization struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec VpcAssociationAuthorizationSpec `json:"spec"` - Status VpcAssociationAuthorizationStatus `json:"status,omitempty"` + Spec VPCAssociationAuthorizationSpec `json:"spec"` + Status VPCAssociationAuthorizationStatus `json:"status,omitempty"` } // +kubebuilder:object:root=true -// VpcAssociationAuthorizationList contains a list of VpcAssociationAuthorizations -type VpcAssociationAuthorizationList struct { +// VPCAssociationAuthorizationList contains a list of VPCAssociationAuthorizations +type VPCAssociationAuthorizationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []VpcAssociationAuthorization `json:"items"` + Items []VPCAssociationAuthorization `json:"items"` } // Repository type metadata. var ( - VpcAssociationAuthorization_Kind = "VpcAssociationAuthorization" - VpcAssociationAuthorization_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: VpcAssociationAuthorization_Kind}.String() - VpcAssociationAuthorization_KindAPIVersion = VpcAssociationAuthorization_Kind + "." + CRDGroupVersion.String() - VpcAssociationAuthorization_GroupVersionKind = CRDGroupVersion.WithKind(VpcAssociationAuthorization_Kind) + VPCAssociationAuthorization_Kind = "VPCAssociationAuthorization" + VPCAssociationAuthorization_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: VPCAssociationAuthorization_Kind}.String() + VPCAssociationAuthorization_KindAPIVersion = VPCAssociationAuthorization_Kind + "." + CRDGroupVersion.String() + VPCAssociationAuthorization_GroupVersionKind = CRDGroupVersion.WithKind(VPCAssociationAuthorization_Kind) ) func init() { - SchemeBuilder.Register(&VpcAssociationAuthorization{}, &VpcAssociationAuthorizationList{}) + SchemeBuilder.Register(&VPCAssociationAuthorization{}, &VPCAssociationAuthorizationList{}) } diff --git a/apis/route53/v1alpha1/zz_zone_terraformed.go b/apis/route53/v1alpha1/zz_zone_terraformed.go index 806c8350d..1d1eb46dd 100755 --- a/apis/route53/v1alpha1/zz_zone_terraformed.go +++ b/apis/route53/v1alpha1/zz_zone_terraformed.go @@ -54,6 +54,14 @@ func (tr *Zone) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this Zone +func (tr *Zone) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this Zone func (tr *Zone) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/route53/v1alpha1/zz_zone_types.go b/apis/route53/v1alpha1/zz_zone_types.go index 338d3ab3d..17184d190 100755 --- a/apis/route53/v1alpha1/zz_zone_types.go +++ b/apis/route53/v1alpha1/zz_zone_types.go @@ -25,26 +25,28 @@ import ( v1 "github.com/crossplane/crossplane-runtime/apis/common/v1" ) -type VpcObservation struct { +type VPCObservation struct { } -type VpcParameters struct { +type VPCParameters struct { // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha1.VPC // +kubebuilder:validation:Optional - VpcID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` + VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` // +kubebuilder:validation:Optional - VpcIDRef *v1.Reference `json:"vpcIdRef,omitempty" tf:"-"` + VPCIDRef *v1.Reference `json:"vpcidRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcIDSelector *v1.Selector `json:"vpcIdSelector,omitempty" tf:"-"` + VPCIDSelector *v1.Selector `json:"vpcidSelector,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcRegion *string `json:"vpcRegion,omitempty" tf:"vpc_region,omitempty"` + VPCRegion *string `json:"vpcRegion,omitempty" tf:"vpc_region,omitempty"` } type ZoneObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` + NameServers []*string `json:"nameServers,omitempty" tf:"name_servers,omitempty"` TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` @@ -82,7 +84,7 @@ type ZoneParameters struct { Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` // +kubebuilder:validation:Optional - Vpc []VpcParameters `json:"vpc,omitempty" tf:"vpc,omitempty"` + VPC []VPCParameters `json:"vpc,omitempty" tf:"vpc,omitempty"` } // ZoneSpec defines the desired state of Zone diff --git a/apis/route53/v1alpha1/zz_zoneassociation_terraformed.go b/apis/route53/v1alpha1/zz_zoneassociation_terraformed.go index 1c0aea978..370e796d3 100755 --- a/apis/route53/v1alpha1/zz_zoneassociation_terraformed.go +++ b/apis/route53/v1alpha1/zz_zoneassociation_terraformed.go @@ -54,6 +54,14 @@ func (tr *ZoneAssociation) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this ZoneAssociation +func (tr *ZoneAssociation) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this ZoneAssociation func (tr *ZoneAssociation) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/route53/v1alpha1/zz_zoneassociation_types.go b/apis/route53/v1alpha1/zz_zoneassociation_types.go index 8253129b7..f48079817 100755 --- a/apis/route53/v1alpha1/zz_zoneassociation_types.go +++ b/apis/route53/v1alpha1/zz_zoneassociation_types.go @@ -26,6 +26,8 @@ import ( ) type ZoneAssociationObservation struct { + ID *string `json:"id,omitempty" tf:"id,omitempty"` + OwningAccount *string `json:"owningAccount,omitempty" tf:"owning_account,omitempty"` } @@ -38,16 +40,16 @@ type ZoneAssociationParameters struct { // +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha1.VPC // +kubebuilder:validation:Optional - VpcID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` + VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"` // +kubebuilder:validation:Optional - VpcIDRef *v1.Reference `json:"vpcIdRef,omitempty" tf:"-"` + VPCIDRef *v1.Reference `json:"vpcidRef,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcIDSelector *v1.Selector `json:"vpcIdSelector,omitempty" tf:"-"` + VPCIDSelector *v1.Selector `json:"vpcidSelector,omitempty" tf:"-"` // +kubebuilder:validation:Optional - VpcRegion *string `json:"vpcRegion,omitempty" tf:"vpc_region,omitempty"` + VPCRegion *string `json:"vpcRegion,omitempty" tf:"vpc_region,omitempty"` // +crossplane:generate:reference:type=Zone // +kubebuilder:validation:Optional diff --git a/apis/route53/v1alpha1/zz_resolverdnssecconfig_terraformed.go b/apis/route53resolver/v1alpha1/zz_dnssecconfig_terraformed.go similarity index 65% rename from apis/route53/v1alpha1/zz_resolverdnssecconfig_terraformed.go rename to apis/route53resolver/v1alpha1/zz_dnssecconfig_terraformed.go index 8053fdc81..4923fc54b 100755 --- a/apis/route53/v1alpha1/zz_resolverdnssecconfig_terraformed.go +++ b/apis/route53resolver/v1alpha1/zz_dnssecconfig_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane-contrib/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ResolverDnssecConfig -func (mg *ResolverDnssecConfig) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this DNSSECConfig +func (mg *DNSSECConfig) GetTerraformResourceType() string { return "aws_route53_resolver_dnssec_config" } -// GetConnectionDetailsMapping for this ResolverDnssecConfig -func (tr *ResolverDnssecConfig) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this DNSSECConfig +func (tr *DNSSECConfig) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ResolverDnssecConfig -func (tr *ResolverDnssecConfig) 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 *ResolverDnssecConfig) GetObservation() (map[string]interface{}, error) return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this ResolverDnssecConfig -func (tr *ResolverDnssecConfig) 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,8 +54,16 @@ func (tr *ResolverDnssecConfig) SetObservation(obs map[string]interface{}) error return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this ResolverDnssecConfig -func (tr *ResolverDnssecConfig) GetParameters() (map[string]interface{}, error) { +// 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 DNSSECConfig +func (tr *DNSSECConfig) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,8 +72,8 @@ func (tr *ResolverDnssecConfig) GetParameters() (map[string]interface{}, error) return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this ResolverDnssecConfig -func (tr *ResolverDnssecConfig) 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 @@ -73,10 +81,10 @@ func (tr *ResolverDnssecConfig) SetParameters(params map[string]interface{}) err return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this ResolverDnssecConfig using its observed tfState. +// LateInitialize this DNSSECConfig 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{} +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") } @@ -87,6 +95,6 @@ func (tr *ResolverDnssecConfig) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ResolverDnssecConfig) 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 d9e524a9e..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/route53/v1alpha1/zz_resolverendpoint_terraformed.go b/apis/route53resolver/v1alpha1/zz_endpoint_terraformed.go similarity index 67% rename from apis/route53/v1alpha1/zz_resolverendpoint_terraformed.go rename to apis/route53resolver/v1alpha1/zz_endpoint_terraformed.go index afd6e106a..1047ac220 100755 --- a/apis/route53/v1alpha1/zz_resolverendpoint_terraformed.go +++ b/apis/route53resolver/v1alpha1/zz_endpoint_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane-contrib/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ResolverEndpoint -func (mg *ResolverEndpoint) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this Endpoint +func (mg *Endpoint) GetTerraformResourceType() string { return "aws_route53_resolver_endpoint" } -// GetConnectionDetailsMapping for this ResolverEndpoint -func (tr *ResolverEndpoint) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this Endpoint +func (tr *Endpoint) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ResolverEndpoint -func (tr *ResolverEndpoint) GetObservation() (map[string]interface{}, error) { +// 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 @@ -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 Endpoint +func (tr *Endpoint) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,8 +54,16 @@ func (tr *ResolverEndpoint) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this ResolverEndpoint -func (tr *ResolverEndpoint) GetParameters() (map[string]interface{}, error) { +// 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 @@ -64,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 Endpoint +func (tr *Endpoint) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -73,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 Endpoint 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 *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") } @@ -87,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 *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 69% rename from apis/route53/v1alpha1/zz_resolverendpoint_types.go rename to apis/route53resolver/v1alpha1/zz_endpoint_types.go index 01bcc7302..e8854ff78 100755 --- a/apis/route53/v1alpha1/zz_resolverendpoint_types.go +++ b/apis/route53resolver/v1alpha1/zz_endpoint_types.go @@ -25,28 +25,17 @@ 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"` + HostVPCID *string `json:"hostVpcId,omitempty" tf:"host_vpc_id,omitempty"` + + ID *string `json:"id,omitempty" tf:"id,omitempty"` 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"` @@ -69,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/route53/v1alpha1/zz_resolverfirewallconfig_terraformed.go b/apis/route53resolver/v1alpha1/zz_firewallconfig_terraformed.go similarity index 64% rename from apis/route53/v1alpha1/zz_resolverfirewallconfig_terraformed.go rename to apis/route53resolver/v1alpha1/zz_firewallconfig_terraformed.go index 3332b8c4c..1b80d1f4d 100755 --- a/apis/route53/v1alpha1/zz_resolverfirewallconfig_terraformed.go +++ b/apis/route53resolver/v1alpha1/zz_firewallconfig_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane-contrib/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ResolverFirewallConfig -func (mg *ResolverFirewallConfig) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this FirewallConfig +func (mg *FirewallConfig) GetTerraformResourceType() string { return "aws_route53_resolver_firewall_config" } -// GetConnectionDetailsMapping for this ResolverFirewallConfig -func (tr *ResolverFirewallConfig) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this FirewallConfig +func (tr *FirewallConfig) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ResolverFirewallConfig -func (tr *ResolverFirewallConfig) GetObservation() (map[string]interface{}, error) { +// 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 @@ -45,8 +45,8 @@ func (tr *ResolverFirewallConfig) GetObservation() (map[string]interface{}, erro return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this ResolverFirewallConfig -func (tr *ResolverFirewallConfig) SetObservation(obs map[string]interface{}) error { +// SetObservation for this FirewallConfig +func (tr *FirewallConfig) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,8 +54,16 @@ func (tr *ResolverFirewallConfig) SetObservation(obs map[string]interface{}) err return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this ResolverFirewallConfig -func (tr *ResolverFirewallConfig) GetParameters() (map[string]interface{}, error) { +// 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 @@ -64,8 +72,8 @@ func (tr *ResolverFirewallConfig) GetParameters() (map[string]interface{}, error return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this ResolverFirewallConfig -func (tr *ResolverFirewallConfig) SetParameters(params map[string]interface{}) error { +// SetParameters for this FirewallConfig +func (tr *FirewallConfig) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -73,10 +81,10 @@ func (tr *ResolverFirewallConfig) SetParameters(params map[string]interface{}) e return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this ResolverFirewallConfig using its observed tfState. +// LateInitialize this FirewallConfig 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{} +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") } @@ -87,6 +95,6 @@ func (tr *ResolverFirewallConfig) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ResolverFirewallConfig) GetTerraformSchemaVersion() int { +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 afbfce4a4..b9098fb24 100755 --- a/apis/route53/v1alpha1/zz_resolverfirewallconfig_types.go +++ b/apis/route53resolver/v1alpha1/zz_firewallconfig_types.go @@ -25,11 +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"` @@ -43,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/route53/v1alpha1/zz_resolverfirewalldomainlist_terraformed.go b/apis/route53resolver/v1alpha1/zz_firewalldomainlist_terraformed.go similarity index 63% rename from apis/route53/v1alpha1/zz_resolverfirewalldomainlist_terraformed.go rename to apis/route53resolver/v1alpha1/zz_firewalldomainlist_terraformed.go index 09e1b98e8..f86ab1eb9 100755 --- a/apis/route53/v1alpha1/zz_resolverfirewalldomainlist_terraformed.go +++ b/apis/route53resolver/v1alpha1/zz_firewalldomainlist_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane-contrib/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ResolverFirewallDomainList -func (mg *ResolverFirewallDomainList) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this FirewallDomainList +func (mg *FirewallDomainList) GetTerraformResourceType() string { return "aws_route53_resolver_firewall_domain_list" } -// GetConnectionDetailsMapping for this ResolverFirewallDomainList -func (tr *ResolverFirewallDomainList) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this FirewallDomainList +func (tr *FirewallDomainList) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ResolverFirewallDomainList -func (tr *ResolverFirewallDomainList) GetObservation() (map[string]interface{}, error) { +// 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 @@ -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 FirewallDomainList +func (tr *FirewallDomainList) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,8 +54,16 @@ func (tr *ResolverFirewallDomainList) SetObservation(obs map[string]interface{}) return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this ResolverFirewallDomainList -func (tr *ResolverFirewallDomainList) GetParameters() (map[string]interface{}, error) { +// 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 @@ -64,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 FirewallDomainList +func (tr *FirewallDomainList) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -73,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 FirewallDomainList 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 *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") } @@ -87,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 *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 60% rename from apis/route53/v1alpha1/zz_resolverfirewalldomainlist_types.go rename to apis/route53resolver/v1alpha1/zz_firewalldomainlist_types.go index ea59f58e4..99d06315e 100755 --- a/apis/route53/v1alpha1/zz_resolverfirewalldomainlist_types.go +++ b/apis/route53resolver/v1alpha1/zz_firewalldomainlist_types.go @@ -25,13 +25,15 @@ 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"` + 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"` @@ -48,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/route53/v1alpha1/zz_resolverfirewallrule_terraformed.go b/apis/route53resolver/v1alpha1/zz_firewallrule_terraformed.go similarity index 65% rename from apis/route53/v1alpha1/zz_resolverfirewallrule_terraformed.go rename to apis/route53resolver/v1alpha1/zz_firewallrule_terraformed.go index e61fd77b4..bab0173e8 100755 --- a/apis/route53/v1alpha1/zz_resolverfirewallrule_terraformed.go +++ b/apis/route53resolver/v1alpha1/zz_firewallrule_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane-contrib/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ResolverFirewallRule -func (mg *ResolverFirewallRule) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this FirewallRule +func (mg *FirewallRule) GetTerraformResourceType() string { return "aws_route53_resolver_firewall_rule" } -// GetConnectionDetailsMapping for this ResolverFirewallRule -func (tr *ResolverFirewallRule) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this FirewallRule +func (tr *FirewallRule) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ResolverFirewallRule -func (tr *ResolverFirewallRule) 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 *ResolverFirewallRule) GetObservation() (map[string]interface{}, error) return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this ResolverFirewallRule -func (tr *ResolverFirewallRule) 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,8 +54,16 @@ func (tr *ResolverFirewallRule) SetObservation(obs map[string]interface{}) error return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this ResolverFirewallRule -func (tr *ResolverFirewallRule) GetParameters() (map[string]interface{}, error) { +// 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 FirewallRule +func (tr *FirewallRule) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,8 +72,8 @@ func (tr *ResolverFirewallRule) GetParameters() (map[string]interface{}, error) return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this ResolverFirewallRule -func (tr *ResolverFirewallRule) 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 @@ -73,10 +81,10 @@ func (tr *ResolverFirewallRule) SetParameters(params map[string]interface{}) err return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this ResolverFirewallRule using its observed tfState. +// LateInitialize this FirewallRule 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{} +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") } @@ -87,6 +95,6 @@ func (tr *ResolverFirewallRule) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ResolverFirewallRule) 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 15f013003..90e231381 100755 --- a/apis/route53/v1alpha1/zz_resolverfirewallrule_types.go +++ b/apis/route53resolver/v1alpha1/zz_firewallrule_types.go @@ -25,10 +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"` @@ -63,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..14e63ec3c --- /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-contrib/terrajet/pkg/resource" + "github.com/crossplane-contrib/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_resolverfirewallrulegroupassociation_terraformed.go b/apis/route53resolver/v1alpha1/zz_firewallrulegroupassociation_terraformed.go similarity index 60% rename from apis/route53/v1alpha1/zz_resolverfirewallrulegroupassociation_terraformed.go rename to apis/route53resolver/v1alpha1/zz_firewallrulegroupassociation_terraformed.go index 5fd4268db..a2737f18b 100755 --- a/apis/route53/v1alpha1/zz_resolverfirewallrulegroupassociation_terraformed.go +++ b/apis/route53resolver/v1alpha1/zz_firewallrulegroupassociation_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane-contrib/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ResolverFirewallRuleGroupAssociation -func (mg *ResolverFirewallRuleGroupAssociation) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this FirewallRuleGroupAssociation +func (mg *FirewallRuleGroupAssociation) GetTerraformResourceType() string { return "aws_route53_resolver_firewall_rule_group_association" } -// GetConnectionDetailsMapping for this ResolverFirewallRuleGroupAssociation -func (tr *ResolverFirewallRuleGroupAssociation) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this FirewallRuleGroupAssociation +func (tr *FirewallRuleGroupAssociation) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ResolverFirewallRuleGroupAssociation -func (tr *ResolverFirewallRuleGroupAssociation) 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 *ResolverFirewallRuleGroupAssociation) GetObservation() (map[string]int return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this ResolverFirewallRuleGroupAssociation -func (tr *ResolverFirewallRuleGroupAssociation) 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,8 +54,16 @@ func (tr *ResolverFirewallRuleGroupAssociation) SetObservation(obs map[string]in return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this ResolverFirewallRuleGroupAssociation -func (tr *ResolverFirewallRuleGroupAssociation) GetParameters() (map[string]interface{}, error) { +// 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 FirewallRuleGroupAssociation +func (tr *FirewallRuleGroupAssociation) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,8 +72,8 @@ func (tr *ResolverFirewallRuleGroupAssociation) GetParameters() (map[string]inte return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this ResolverFirewallRuleGroupAssociation -func (tr *ResolverFirewallRuleGroupAssociation) 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 @@ -73,10 +81,10 @@ func (tr *ResolverFirewallRuleGroupAssociation) SetParameters(params map[string] return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this ResolverFirewallRuleGroupAssociation using its observed tfState. +// LateInitialize this FirewallRuleGroupAssociation 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{} +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") } @@ -87,6 +95,6 @@ func (tr *ResolverFirewallRuleGroupAssociation) LateInitialize(attrs []byte) (bo } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ResolverFirewallRuleGroupAssociation) 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 58% rename from apis/route53/v1alpha1/zz_resolverfirewallrulegroupassociation_types.go rename to apis/route53resolver/v1alpha1/zz_firewallrulegroupassociation_types.go index 1a7863f67..36c0a1b73 100755 --- a/apis/route53/v1alpha1/zz_resolverfirewallrulegroupassociation_types.go +++ b/apis/route53resolver/v1alpha1/zz_firewallrulegroupassociation_types.go @@ -25,13 +25,15 @@ 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"` + 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"` @@ -54,54 +56,54 @@ type ResolverFirewallRuleGroupAssociationParameters struct { Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"` // +kubebuilder:validation:Required - VpcID *string `json:"vpcId" tf:"vpc_id,omitempty"` + 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/route53/v1alpha1/zz_resolverquerylogconfig_terraformed.go b/apis/route53resolver/v1alpha1/zz_querylogconfig_terraformed.go similarity index 64% rename from apis/route53/v1alpha1/zz_resolverquerylogconfig_terraformed.go rename to apis/route53resolver/v1alpha1/zz_querylogconfig_terraformed.go index 0b98da7da..83e833fad 100755 --- a/apis/route53/v1alpha1/zz_resolverquerylogconfig_terraformed.go +++ b/apis/route53resolver/v1alpha1/zz_querylogconfig_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane-contrib/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ResolverQueryLogConfig -func (mg *ResolverQueryLogConfig) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this QueryLogConfig +func (mg *QueryLogConfig) GetTerraformResourceType() string { return "aws_route53_resolver_query_log_config" } -// GetConnectionDetailsMapping for this ResolverQueryLogConfig -func (tr *ResolverQueryLogConfig) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this QueryLogConfig +func (tr *QueryLogConfig) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ResolverQueryLogConfig -func (tr *ResolverQueryLogConfig) GetObservation() (map[string]interface{}, error) { +// 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 @@ -45,8 +45,8 @@ func (tr *ResolverQueryLogConfig) GetObservation() (map[string]interface{}, erro return base, json.TFParser.Unmarshal(o, &base) } -// SetObservation for this ResolverQueryLogConfig -func (tr *ResolverQueryLogConfig) SetObservation(obs map[string]interface{}) error { +// SetObservation for this QueryLogConfig +func (tr *QueryLogConfig) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,8 +54,16 @@ func (tr *ResolverQueryLogConfig) SetObservation(obs map[string]interface{}) err return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this ResolverQueryLogConfig -func (tr *ResolverQueryLogConfig) GetParameters() (map[string]interface{}, error) { +// 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 @@ -64,8 +72,8 @@ func (tr *ResolverQueryLogConfig) GetParameters() (map[string]interface{}, error return base, json.TFParser.Unmarshal(p, &base) } -// SetParameters for this ResolverQueryLogConfig -func (tr *ResolverQueryLogConfig) SetParameters(params map[string]interface{}) error { +// SetParameters for this QueryLogConfig +func (tr *QueryLogConfig) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -73,10 +81,10 @@ func (tr *ResolverQueryLogConfig) SetParameters(params map[string]interface{}) e return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) } -// LateInitialize this ResolverQueryLogConfig using its observed tfState. +// LateInitialize this QueryLogConfig 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{} +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") } @@ -87,6 +95,6 @@ func (tr *ResolverQueryLogConfig) LateInitialize(attrs []byte) (bool, error) { } // GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *ResolverQueryLogConfig) GetTerraformSchemaVersion() int { +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 489160d03..f7ce6c78e 100755 --- a/apis/route53/v1alpha1/zz_resolverquerylogconfig_types.go +++ b/apis/route53resolver/v1alpha1/zz_querylogconfig_types.go @@ -25,9 +25,11 @@ 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"` + OwnerID *string `json:"ownerId,omitempty" tf:"owner_id,omitempty"` ShareStatus *string `json:"shareStatus,omitempty" tf:"share_status,omitempty"` @@ -35,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"` @@ -52,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 64% rename from apis/route53/v1alpha1/zz_resolverfirewallrulegroup_terraformed.go rename to apis/route53resolver/v1alpha1/zz_querylogconfigassociation_terraformed.go index be0f16a3e..ea18c99b6 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-contrib/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,8 +54,16 @@ func (tr *ResolverFirewallRuleGroup) SetObservation(obs map[string]interface{}) return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this ResolverFirewallRuleGroup -func (tr *ResolverFirewallRuleGroup) GetParameters() (map[string]interface{}, error) { +// 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 QueryLogConfigAssociation +func (tr *QueryLogConfigAssociation) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,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 @@ -73,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") } @@ -87,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 55% rename from apis/route53/v1alpha1/zz_resolverquerylogconfigassociation_types.go rename to apis/route53resolver/v1alpha1/zz_querylogconfigassociation_types.go index e5578966d..a09ece892 100755 --- a/apis/route53/v1alpha1/zz_resolverquerylogconfigassociation_types.go +++ b/apis/route53resolver/v1alpha1/zz_querylogconfigassociation_types.go @@ -25,10 +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=- @@ -42,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/route53/v1alpha1/zz_resolverrule_terraformed.go b/apis/route53resolver/v1alpha1/zz_rule_terraformed.go similarity index 68% rename from apis/route53/v1alpha1/zz_resolverrule_terraformed.go rename to apis/route53resolver/v1alpha1/zz_rule_terraformed.go index 10a3723fd..0b84708a8 100755 --- a/apis/route53/v1alpha1/zz_resolverrule_terraformed.go +++ b/apis/route53resolver/v1alpha1/zz_rule_terraformed.go @@ -25,18 +25,18 @@ import ( "github.com/crossplane-contrib/terrajet/pkg/resource/json" ) -// GetTerraformResourceType returns Terraform resource type for this ResolverRule -func (mg *ResolverRule) GetTerraformResourceType() string { +// GetTerraformResourceType returns Terraform resource type for this Rule +func (mg *Rule) GetTerraformResourceType() string { return "aws_route53_resolver_rule" } -// GetConnectionDetailsMapping for this ResolverRule -func (tr *ResolverRule) GetConnectionDetailsMapping() map[string]string { +// GetConnectionDetailsMapping for this Rule +func (tr *Rule) GetConnectionDetailsMapping() map[string]string { return nil } -// GetObservation of this ResolverRule -func (tr *ResolverRule) 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 *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 Rule +func (tr *Rule) SetObservation(obs map[string]interface{}) error { p, err := json.TFParser.Marshal(obs) if err != nil { return err @@ -54,8 +54,16 @@ func (tr *ResolverRule) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } -// GetParameters of this ResolverRule -func (tr *ResolverRule) GetParameters() (map[string]interface{}, error) { +// 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 Rule +func (tr *Rule) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) if err != nil { return nil, err @@ -64,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 Rule +func (tr *Rule) SetParameters(params map[string]interface{}) error { p, err := json.TFParser.Marshal(params) if err != nil { return err @@ -73,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 Rule 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 *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") } @@ -87,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 *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 73% rename from apis/route53/v1alpha1/zz_resolverrule_types.go rename to apis/route53resolver/v1alpha1/zz_rule_types.go index 82fa39544..20baa98b7 100755 --- a/apis/route53/v1alpha1/zz_resolverrule_types.go +++ b/apis/route53resolver/v1alpha1/zz_rule_types.go @@ -25,9 +25,11 @@ 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"` + OwnerID *string `json:"ownerId,omitempty" tf:"owner_id,omitempty"` ShareStatus *string `json:"shareStatus,omitempty" tf:"share_status,omitempty"` @@ -35,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"` @@ -73,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/route53resolver/v1alpha1/zz_ruleassociation_terraformed.go b/apis/route53resolver/v1alpha1/zz_ruleassociation_terraformed.go new file mode 100755 index 000000000..7e85c731d --- /dev/null +++ b/apis/route53resolver/v1alpha1/zz_ruleassociation_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-contrib/terrajet/pkg/resource" + "github.com/crossplane-contrib/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this RuleAssociation +func (mg *RuleAssociation) GetTerraformResourceType() string { + return "aws_route53_resolver_rule_association" +} + +// GetConnectionDetailsMapping for this RuleAssociation +func (tr *RuleAssociation) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this RuleAssociation +func (tr *RuleAssociation) 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 RuleAssociation +func (tr *RuleAssociation) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this RuleAssociation +func (tr *RuleAssociation) 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 RuleAssociation using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *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 59% rename from apis/route53/v1alpha1/zz_resolverruleassociation_types.go rename to apis/route53resolver/v1alpha1/zz_ruleassociation_types.go index 4b4534b01..7cab9c090 100755 --- a/apis/route53/v1alpha1/zz_resolverruleassociation_types.go +++ b/apis/route53resolver/v1alpha1/zz_ruleassociation_types.go @@ -25,10 +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"` @@ -42,54 +43,54 @@ type ResolverRuleAssociationParameters struct { ResolverRuleID *string `json:"resolverRuleId" tf:"resolver_rule_id,omitempty"` // +kubebuilder:validation:Required - VpcID *string `json:"vpcId" tf:"vpc_id,omitempty"` + 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/s3/v1alpha1/zz_bucket_terraformed.go b/apis/s3/v1alpha1/zz_bucket_terraformed.go index 2f6e9a973..8470d2d55 100755 --- a/apis/s3/v1alpha1/zz_bucket_terraformed.go +++ b/apis/s3/v1alpha1/zz_bucket_terraformed.go @@ -54,6 +54,14 @@ func (tr *Bucket) SetObservation(obs map[string]interface{}) error { return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) } +// GetID returns ID of underlying Terraform resource of this Bucket +func (tr *Bucket) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + // GetParameters of this Bucket func (tr *Bucket) GetParameters() (map[string]interface{}, error) { p, err := json.TFParser.Marshal(tr.Spec.ForProvider) diff --git a/apis/s3/v1alpha1/zz_bucket_types.go b/apis/s3/v1alpha1/zz_bucket_types.go index 236387560..9db3c3420 100755 --- a/apis/s3/v1alpha1/zz_bucket_types.go +++ b/apis/s3/v1alpha1/zz_bucket_types.go @@ -40,7 +40,7 @@ type ApplyServerSideEncryptionByDefaultObservation struct { type ApplyServerSideEncryptionByDefaultParameters struct { // +kubebuilder:validation:Optional - KmsMasterKeyID *string `json:"kmsMasterKeyId,omitempty" tf:"kms_master_key_id,omitempty"` + KMSMasterKeyID *string `json:"kmsMasterKeyId,omitempty" tf:"kms_master_key_id,omitempty"` // +kubebuilder:validation:Required SseAlgorithm *string `json:"sseAlgorithm" tf:"sse_algorithm,omitempty"` @@ -51,6 +51,8 @@ type BucketObservation struct { BucketRegionalDomainName *string `json:"bucketRegionalDomainName,omitempty" tf:"bucket_regional_domain_name,omitempty"` + ID *string `json:"id,omitempty" tf:"id,omitempty"` + TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"` } @@ -176,7 +178,7 @@ type DestinationParameters struct { Bucket *string `json:"bucket" tf:"bucket,omitempty"` // +kubebuilder:validation:Optional - ReplicaKmsKeyID *string `json:"replicaKmsKeyId,omitempty" tf:"replica_kms_key_id,omitempty"` + ReplicaKMSKeyID *string `json:"replicaKmsKeyId,omitempty" tf:"replica_kms_key_id,omitempty"` // +kubebuilder:validation:Optional StorageClass *string `json:"storageClass,omitempty" tf:"storage_class,omitempty"` @@ -383,13 +385,13 @@ type SourceSelectionCriteriaObservation struct { type SourceSelectionCriteriaParameters struct { // +kubebuilder:validation:Optional - SseKmsEncryptedObjects []SseKmsEncryptedObjectsParameters `json:"sseKmsEncryptedObjects,omitempty" tf:"sse_kms_encrypted_objects,omitempty"` + SseKMSEncryptedObjects []SseKMSEncryptedObjectsParameters `json:"sseKmsEncryptedObjects,omitempty" tf:"sse_kms_encrypted_objects,omitempty"` } -type SseKmsEncryptedObjectsObservation struct { +type SseKMSEncryptedObjectsObservation struct { } -type SseKmsEncryptedObjectsParameters struct { +type SseKMSEncryptedObjectsParameters struct { // +kubebuilder:validation:Required Enabled *bool `json:"enabled" tf:"enabled,omitempty"` diff --git a/apis/s3/v1alpha1/zz_generated.deepcopy.go b/apis/s3/v1alpha1/zz_generated.deepcopy.go index d187a8d02..d86d7e3fb 100644 --- a/apis/s3/v1alpha1/zz_generated.deepcopy.go +++ b/apis/s3/v1alpha1/zz_generated.deepcopy.go @@ -77,8 +77,8 @@ func (in *ApplyServerSideEncryptionByDefaultObservation) DeepCopy() *ApplyServer // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ApplyServerSideEncryptionByDefaultParameters) DeepCopyInto(out *ApplyServerSideEncryptionByDefaultParameters) { *out = *in - if in.KmsMasterKeyID != nil { - in, out := &in.KmsMasterKeyID, &out.KmsMasterKeyID + if in.KMSMasterKeyID != nil { + in, out := &in.KMSMasterKeyID, &out.KMSMasterKeyID *out = new(string) **out = **in } @@ -171,6 +171,11 @@ func (in *BucketObservation) DeepCopyInto(out *BucketObservation) { *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)) @@ -544,8 +549,8 @@ func (in *DestinationParameters) DeepCopyInto(out *DestinationParameters) { *out = new(string) **out = **in } - if in.ReplicaKmsKeyID != nil { - in, out := &in.ReplicaKmsKeyID, &out.ReplicaKmsKeyID + if in.ReplicaKMSKeyID != nil { + in, out := &in.ReplicaKMSKeyID, &out.ReplicaKMSKeyID *out = new(string) **out = **in } @@ -1219,9 +1224,9 @@ func (in *SourceSelectionCriteriaObservation) DeepCopy() *SourceSelectionCriteri // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SourceSelectionCriteriaParameters) DeepCopyInto(out *SourceSelectionCriteriaParameters) { *out = *in - if in.SseKmsEncryptedObjects != nil { - in, out := &in.SseKmsEncryptedObjects, &out.SseKmsEncryptedObjects - *out = make([]SseKmsEncryptedObjectsParameters, len(*in)) + if in.SseKMSEncryptedObjects != nil { + in, out := &in.SseKMSEncryptedObjects, &out.SseKMSEncryptedObjects + *out = make([]SseKMSEncryptedObjectsParameters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -1239,22 +1244,22 @@ func (in *SourceSelectionCriteriaParameters) DeepCopy() *SourceSelectionCriteria } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SseKmsEncryptedObjectsObservation) DeepCopyInto(out *SseKmsEncryptedObjectsObservation) { +func (in *SseKMSEncryptedObjectsObservation) DeepCopyInto(out *SseKMSEncryptedObjectsObservation) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SseKmsEncryptedObjectsObservation. -func (in *SseKmsEncryptedObjectsObservation) DeepCopy() *SseKmsEncryptedObjectsObservation { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SseKMSEncryptedObjectsObservation. +func (in *SseKMSEncryptedObjectsObservation) DeepCopy() *SseKMSEncryptedObjectsObservation { if in == nil { return nil } - out := new(SseKmsEncryptedObjectsObservation) + out := new(SseKMSEncryptedObjectsObservation) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SseKmsEncryptedObjectsParameters) DeepCopyInto(out *SseKmsEncryptedObjectsParameters) { +func (in *SseKMSEncryptedObjectsParameters) DeepCopyInto(out *SseKMSEncryptedObjectsParameters) { *out = *in if in.Enabled != nil { in, out := &in.Enabled, &out.Enabled @@ -1263,12 +1268,12 @@ func (in *SseKmsEncryptedObjectsParameters) DeepCopyInto(out *SseKmsEncryptedObj } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SseKmsEncryptedObjectsParameters. -func (in *SseKmsEncryptedObjectsParameters) DeepCopy() *SseKmsEncryptedObjectsParameters { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SseKMSEncryptedObjectsParameters. +func (in *SseKMSEncryptedObjectsParameters) DeepCopy() *SseKMSEncryptedObjectsParameters { if in == nil { return nil } - out := new(SseKmsEncryptedObjectsParameters) + out := new(SseKMSEncryptedObjectsParameters) in.DeepCopyInto(out) return out } 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/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 f4b9349b0..d983b27ab 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-contrib/terrajet/pkg/controller" "github.com/crossplane-contrib/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 df0acb995..3f556bd95 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 8649eabf8..ad9d60c37 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 c6fd65d0c..9baded5f0 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 a3f4edb18..ba3208834 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-contrib/terrajet/pkg/controller" "github.com/crossplane-contrib/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 35ae2648b..e267ae20e 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-contrib/terrajet/pkg/controller" "github.com/crossplane-contrib/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 7f3bfe543..1f51d7f92 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-contrib/terrajet/pkg/controller" "github.com/crossplane-contrib/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 c44bc5a1d..caa665845 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-contrib/terrajet/pkg/controller" "github.com/crossplane-contrib/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 40044106c..1dc855ec7 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 5ab10200b..16805a818 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 abe90ec3f..d20dba869 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/hostedzonednssec/zz_controller.go b/internal/controller/route53/hostedzonednssec/zz_controller.go index 39f385862..11f49952d 100755 --- a/internal/controller/route53/hostedzonednssec/zz_controller.go +++ b/internal/controller/route53/hostedzonednssec/zz_controller.go @@ -37,11 +37,11 @@ import ( v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53/v1alpha1" ) -// Setup adds a controller that reconciles HostedZoneDnssec managed resources. +// Setup adds a controller that reconciles HostedZoneDNSSEC 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.HostedZoneDnssec_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.HostedZoneDNSSEC_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.HostedZoneDnssec_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.HostedZoneDNSSEC_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_route53_hosted_zone_dnssec"])), 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.HostedZoneDnssec{}). + For(&v1alpha1.HostedZoneDNSSEC{}). Complete(r) } diff --git a/internal/controller/route53/vpcassociationauthorization/zz_controller.go b/internal/controller/route53/vpcassociationauthorization/zz_controller.go index 45e975fb6..153ee2e7c 100755 --- a/internal/controller/route53/vpcassociationauthorization/zz_controller.go +++ b/internal/controller/route53/vpcassociationauthorization/zz_controller.go @@ -37,11 +37,11 @@ import ( v1alpha1 "github.com/crossplane-contrib/provider-jet-aws/apis/route53/v1alpha1" ) -// Setup adds a controller that reconciles VpcAssociationAuthorization managed resources. +// Setup adds a controller that reconciles VPCAssociationAuthorization 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.VpcAssociationAuthorization_GroupVersionKind.String()) + name := managed.ControllerName(v1alpha1.VPCAssociationAuthorization_GroupVersionKind.String()) r := managed.NewReconciler(mgr, - xpresource.ManagedKind(v1alpha1.VpcAssociationAuthorization_GroupVersionKind), + xpresource.ManagedKind(v1alpha1.VPCAssociationAuthorization_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), ws, s, cfg.Resources["aws_route53_vpc_association_authorization"])), 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.VpcAssociationAuthorization{}). + For(&v1alpha1.VPCAssociationAuthorization{}). 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 f8add848c..49ef74a51 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-contrib/terrajet/pkg/controller" "github.com/crossplane-contrib/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 87% rename from internal/controller/route53/resolverendpoint/zz_controller.go rename to internal/controller/route53resolver/endpoint/zz_controller.go index 65e9e3fe2..f0f63fca8 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-contrib/terrajet/pkg/controller" "github.com/crossplane-contrib/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 6cc172c7d..a1811fa9d 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-contrib/terrajet/pkg/controller" "github.com/crossplane-contrib/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 544aed4b0..8e5c1841f 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-contrib/terrajet/pkg/controller" "github.com/crossplane-contrib/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 fe7992ae3..6ed78f07c 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-contrib/terrajet/pkg/controller" "github.com/crossplane-contrib/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 780e30bcd..51a213151 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-contrib/terrajet/pkg/controller" "github.com/crossplane-contrib/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 2ec957fbb..fd101aba4 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-contrib/terrajet/pkg/controller" "github.com/crossplane-contrib/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 16ed42732..0ecf5999f 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-contrib/terrajet/pkg/controller" "github.com/crossplane-contrib/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 73193d35c..04c3fe3ab 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-contrib/terrajet/pkg/controller" "github.com/crossplane-contrib/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 999133957..f839dfc3f 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-contrib/terrajet/pkg/controller" "github.com/crossplane-contrib/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 eb579e3ff..0c6648c5f 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-contrib/terrajet/pkg/controller" "github.com/crossplane-contrib/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 d28028a5e..df3505d5a 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/autoscaling.aws.jet.crossplane.io_attachments.yaml b/package/crds/autoscaling.aws.jet.crossplane.io_attachments.yaml index adf766589..81f211d36 100644 --- a/package/crds/autoscaling.aws.jet.crossplane.io_attachments.yaml +++ b/package/crds/autoscaling.aws.jet.crossplane.io_attachments.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -169,6 +171,9 @@ spec: description: AttachmentStatus defines the observed state of Attachment. properties: atProvider: + properties: + id: + type: string type: object conditions: description: Conditions of the resource. diff --git a/package/crds/autoscaling.aws.jet.crossplane.io_autoscalinggroups.yaml b/package/crds/autoscaling.aws.jet.crossplane.io_autoscalinggroups.yaml index 9a88e401e..a8e418055 100644 --- a/package/crds/autoscaling.aws.jet.crossplane.io_autoscalinggroups.yaml +++ b/package/crds/autoscaling.aws.jet.crossplane.io_autoscalinggroups.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -367,6 +369,8 @@ spec: properties: arn: type: string + id: + type: string loadBalancers: items: type: string diff --git a/package/crds/aws.jet.crossplane.io_providerconfigs.yaml b/package/crds/aws.jet.crossplane.io_providerconfigs.yaml index cf3f78492..4c8128aed 100644 --- a/package/crds/aws.jet.crossplane.io_providerconfigs.yaml +++ b/package/crds/aws.jet.crossplane.io_providerconfigs.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: diff --git a/package/crds/aws.jet.crossplane.io_providerconfigusages.yaml b/package/crds/aws.jet.crossplane.io_providerconfigusages.yaml index 0aab6c2db..0417f0f97 100644 --- a/package/crds/aws.jet.crossplane.io_providerconfigusages.yaml +++ b/package/crds/aws.jet.crossplane.io_providerconfigusages.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: diff --git a/package/crds/ebs.aws.jet.crossplane.io_volumes.yaml b/package/crds/ec2.aws.jet.crossplane.io_ebsvolumes.yaml similarity index 94% rename from package/crds/ebs.aws.jet.crossplane.io_volumes.yaml rename to package/crds/ec2.aws.jet.crossplane.io_ebsvolumes.yaml index 0b591a6f8..d43aa2007 100644 --- a/package/crds/ebs.aws.jet.crossplane.io_volumes.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_ebsvolumes.yaml @@ -1,21 +1,23 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +36,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 +51,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,12 +167,14 @@ spec: - forProvider type: object status: - description: VolumeStatus defines the observed state of Volume. + description: EBSVolumeStatus defines the observed state of EBSVolume. properties: atProvider: properties: arn: type: string + id: + type: string tagsAll: additionalProperties: type: string 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 8cc1a52cb..dc51aa7de 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_elasticips.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_eips.yaml @@ -1,10 +1,12 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +14,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 +36,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 +51,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 +182,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: @@ -194,6 +196,8 @@ spec: type: string domain: type: string + id: + type: string privateDns: type: string privateIp: diff --git a/package/crds/ec2.aws.jet.crossplane.io_instances.yaml b/package/crds/ec2.aws.jet.crossplane.io_instances.yaml index 35c143eb7..186cf6aa4 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_instances.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_instances.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -474,6 +476,8 @@ spec: properties: arn: type: string + id: + type: string instanceState: type: string outpostArn: diff --git a/package/crds/ec2.aws.jet.crossplane.io_launchtemplates.yaml b/package/crds/ec2.aws.jet.crossplane.io_launchtemplates.yaml index 98e3e8347..c915c35b7 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_launchtemplates.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_launchtemplates.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -593,6 +595,8 @@ spec: properties: arn: type: string + id: + type: string latestVersion: format: int64 type: integer diff --git a/package/crds/ec2.aws.jet.crossplane.io_networkinterfaces.yaml b/package/crds/ec2.aws.jet.crossplane.io_networkinterfaces.yaml index 064801688..38d5fef5c 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_networkinterfaces.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_networkinterfaces.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -234,6 +236,8 @@ spec: properties: atProvider: properties: + id: + type: string macAddress: type: string outpostArn: diff --git a/package/crds/ec2.aws.jet.crossplane.io_routes.yaml b/package/crds/ec2.aws.jet.crossplane.io_routes.yaml index 28168027d..e8ca98236 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_routes.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_routes.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -284,6 +286,8 @@ spec: properties: atProvider: properties: + id: + type: string instanceOwnerId: type: string origin: diff --git a/package/crds/ec2.aws.jet.crossplane.io_routetableassociations.yaml b/package/crds/ec2.aws.jet.crossplane.io_routetableassociations.yaml index 38ea9379d..45d08649f 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_routetableassociations.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_routetableassociations.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -171,6 +173,9 @@ spec: RouteTableAssociation. properties: atProvider: + properties: + id: + type: string type: object conditions: description: Conditions of the resource. diff --git a/package/crds/ec2.aws.jet.crossplane.io_routetables.yaml b/package/crds/ec2.aws.jet.crossplane.io_routetables.yaml index cdad2bc2c..2fc863522 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_routetables.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_routetables.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -203,7 +205,7 @@ spec: type: object vpcId: type: string - vpcIdRef: + vpcidRef: description: A Reference to a named object. properties: name: @@ -212,7 +214,7 @@ spec: required: - name type: object - vpcIdSelector: + vpcidSelector: description: A Selector selects an object. properties: matchControllerRef: @@ -280,6 +282,8 @@ spec: properties: arn: type: string + id: + type: string ownerId: type: string tagsAll: diff --git a/package/crds/ec2.aws.jet.crossplane.io_securitygrouprules.yaml b/package/crds/ec2.aws.jet.crossplane.io_securitygrouprules.yaml index be398baa2..41b8d03c1 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_securitygrouprules.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_securitygrouprules.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -175,6 +177,9 @@ spec: description: SecurityGroupRuleStatus defines the observed state of SecurityGroupRule. properties: atProvider: + properties: + id: + type: string type: object conditions: description: Conditions of the resource. diff --git a/package/crds/ec2.aws.jet.crossplane.io_securitygroups.yaml b/package/crds/ec2.aws.jet.crossplane.io_securitygroups.yaml index 924c33475..7e51e6f89 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_securitygroups.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_securitygroups.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -206,7 +208,7 @@ spec: type: object vpcId: type: string - vpcIdRef: + vpcidRef: description: A Reference to a named object. properties: name: @@ -215,7 +217,7 @@ spec: required: - name type: object - vpcIdSelector: + vpcidSelector: description: A Selector selects an object. properties: matchControllerRef: @@ -283,6 +285,8 @@ spec: properties: arn: type: string + id: + type: string ownerId: type: string tagsAll: diff --git a/package/crds/ec2.aws.jet.crossplane.io_subnets.yaml b/package/crds/ec2.aws.jet.crossplane.io_subnets.yaml index bb2ba3b1b..b61cfecc5 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_subnets.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_subnets.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -90,7 +92,7 @@ spec: type: object vpcId: type: string - vpcIdRef: + vpcidRef: description: A Reference to a named object. properties: name: @@ -99,7 +101,7 @@ spec: required: - name type: object - vpcIdSelector: + vpcidSelector: description: A Selector selects an object. properties: matchControllerRef: @@ -168,6 +170,8 @@ spec: properties: arn: type: string + id: + type: string ipv6CidrBlockAssociationId: type: string ownerId: diff --git a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutes.yaml b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutes.yaml index 6cca9c01a..072e8e3d0 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutes.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutes.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -173,6 +175,9 @@ spec: description: TransitGatewayRouteStatus defines the observed state of TransitGatewayRoute. properties: atProvider: + properties: + id: + type: string type: object conditions: description: Conditions of the resource. diff --git a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetableassociations.yaml b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetableassociations.yaml index 4298ad259..b5deb6a2b 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetableassociations.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetableassociations.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -171,6 +173,8 @@ spec: properties: atProvider: properties: + id: + type: string resourceId: type: string resourceType: diff --git a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetablepropagations.yaml b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetablepropagations.yaml index d636dbdf1..7995c455a 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetablepropagations.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetablepropagations.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -171,6 +173,8 @@ spec: properties: atProvider: properties: + id: + type: string resourceId: type: string resourceType: diff --git a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetables.yaml b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetables.yaml index 840380720..0c54e40f8 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetables.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetables.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -156,6 +158,8 @@ spec: type: boolean defaultPropagationRouteTable: type: boolean + id: + type: string tagsAll: additionalProperties: type: string diff --git a/package/crds/ec2.aws.jet.crossplane.io_transitgateways.yaml b/package/crds/ec2.aws.jet.crossplane.io_transitgateways.yaml index 7407b2b05..5da1de833 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_transitgateways.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_transitgateways.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -141,6 +143,8 @@ spec: type: string associationDefaultRouteTableId: type: string + id: + type: string ownerId: type: string propagationDefaultRouteTableId: diff --git a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayvpcattachmentaccepters.yaml b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayvpcattachmentaccepters.yaml index 228d1768d..ebbbaa83c 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayvpcattachmentaccepters.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayvpcattachmentaccepters.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -158,6 +160,8 @@ spec: type: string dnsSupport: type: string + id: + type: string ipv6Support: type: string subnetIds: diff --git a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayvpcattachments.yaml b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayvpcattachments.yaml index dfc126caf..fa5f182fc 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayvpcattachments.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayvpcattachments.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -138,7 +140,7 @@ spec: type: object vpcId: type: string - vpcIdRef: + vpcidRef: description: A Reference to a named object. properties: name: @@ -147,7 +149,7 @@ spec: required: - name type: object - vpcIdSelector: + vpcidSelector: description: A Selector selects an object. properties: matchControllerRef: @@ -214,6 +216,8 @@ spec: properties: atProvider: properties: + id: + type: string tagsAll: additionalProperties: type: string diff --git a/package/crds/ec2.aws.jet.crossplane.io_vpcendpoints.yaml b/package/crds/ec2.aws.jet.crossplane.io_vpcendpoints.yaml index 4669c228f..bd6adcdd7 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_vpcendpoints.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_vpcendpoints.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -169,7 +171,7 @@ spec: type: string vpcId: type: string - vpcIdRef: + vpcidRef: description: A Reference to a named object. properties: name: @@ -178,7 +180,7 @@ spec: required: - name type: object - vpcIdSelector: + vpcidSelector: description: A Selector selects an object. properties: matchControllerRef: @@ -260,6 +262,8 @@ spec: type: string type: object type: array + id: + type: string networkInterfaceIds: items: type: string diff --git a/package/crds/ec2.aws.jet.crossplane.io_ipv4cidrblockassociations.yaml b/package/crds/ec2.aws.jet.crossplane.io_vpcipv4cidrblockassociations.yaml similarity index 90% rename from package/crds/ec2.aws.jet.crossplane.io_ipv4cidrblockassociations.yaml rename to package/crds/ec2.aws.jet.crossplane.io_vpcipv4cidrblockassociations.yaml index 0865d5ac3..3c5da6b83 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_ipv4cidrblockassociations.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_vpcipv4cidrblockassociations.yaml @@ -1,10 +1,12 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +14,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 +36,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 +52,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 @@ -72,7 +74,7 @@ spec: type: string vpcId: type: string - vpcIdRef: + vpcidRef: description: A Reference to a named object. properties: name: @@ -81,7 +83,7 @@ spec: required: - name type: object - vpcIdSelector: + vpcidSelector: description: A Selector selects an object. properties: matchControllerRef: @@ -144,10 +146,13 @@ spec: - forProvider type: object status: - description: IPv4CIDRBlockAssociationStatus defines the observed state - of IPv4CIDRBlockAssociation. + description: VPCIPv4CidrBlockAssociationStatus defines the observed state + of VPCIPv4CidrBlockAssociation. properties: atProvider: + properties: + id: + type: string type: object conditions: description: Conditions of the resource. 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 292afce22..10689f766 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_peeringconnectionaccepters.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_vpcpeeringconnectionaccepters.yaml @@ -1,10 +1,12 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +14,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 +36,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 +52,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,13 +149,15 @@ spec: - forProvider type: object status: - description: PeeringConnectionAccepterStatus defines the observed state - of PeeringConnectionAccepter. + description: VPCPeeringConnectionAccepterStatus defines the observed state + of VPCPeeringConnectionAccepter. properties: atProvider: properties: acceptStatus: type: string + id: + type: string peerOwnerId: type: string peerRegion: diff --git a/package/crds/ec2.aws.jet.crossplane.io_vpcpeeringconnections.yaml b/package/crds/ec2.aws.jet.crossplane.io_vpcpeeringconnections.yaml index cbb27e002..4de84f711 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_vpcpeeringconnections.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_vpcpeeringconnections.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -82,7 +84,7 @@ spec: type: string peerVpcId: type: string - peerVpcIdRef: + peerVpcidRef: description: A Reference to a named object. properties: name: @@ -91,7 +93,7 @@ spec: required: - name type: object - peerVpcIdSelector: + peerVpcidSelector: description: A Selector selects an object. properties: matchControllerRef: @@ -126,7 +128,7 @@ spec: type: object vpcId: type: string - vpcIdRef: + vpcidRef: description: A Reference to a named object. properties: name: @@ -135,7 +137,7 @@ spec: required: - name type: object - vpcIdSelector: + vpcidSelector: description: A Selector selects an object. properties: matchControllerRef: @@ -204,6 +206,8 @@ spec: properties: acceptStatus: type: string + id: + type: string tagsAll: additionalProperties: type: string diff --git a/package/crds/ec2.aws.jet.crossplane.io_vpcs.yaml b/package/crds/ec2.aws.jet.crossplane.io_vpcs.yaml index 667bc6e6c..78101f4a1 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_vpcs.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_vpcs.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -147,6 +149,8 @@ spec: type: string dhcpOptionsId: type: string + id: + type: string ipv6AssociationId: type: string ipv6CidrBlock: diff --git a/package/crds/ecr.aws.jet.crossplane.io_repositories.yaml b/package/crds/ecr.aws.jet.crossplane.io_repositories.yaml index bb5162f4c..c09a16bf3 100644 --- a/package/crds/ecr.aws.jet.crossplane.io_repositories.yaml +++ b/package/crds/ecr.aws.jet.crossplane.io_repositories.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -168,6 +170,8 @@ spec: properties: arn: type: string + id: + type: string registryId: type: string repositoryUrl: diff --git a/package/crds/ecrpublic.aws.jet.crossplane.io_repositories.yaml b/package/crds/ecrpublic.aws.jet.crossplane.io_repositories.yaml index 33e839983..f71325efe 100644 --- a/package/crds/ecrpublic.aws.jet.crossplane.io_repositories.yaml +++ b/package/crds/ecrpublic.aws.jet.crossplane.io_repositories.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -143,6 +145,8 @@ spec: properties: arn: type: string + id: + type: string registryId: type: string repositoryUri: diff --git a/package/crds/ecs.aws.jet.crossplane.io_capacityproviders.yaml b/package/crds/ecs.aws.jet.crossplane.io_capacityproviders.yaml index 14c9ffebb..636a97fc1 100644 --- a/package/crds/ecs.aws.jet.crossplane.io_capacityproviders.yaml +++ b/package/crds/ecs.aws.jet.crossplane.io_capacityproviders.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -177,6 +179,8 @@ spec: properties: arn: type: string + id: + type: string tagsAll: additionalProperties: type: string diff --git a/package/crds/ecs.aws.jet.crossplane.io_clusters.yaml b/package/crds/ecs.aws.jet.crossplane.io_clusters.yaml index 785d47efd..ef1636b6f 100644 --- a/package/crds/ecs.aws.jet.crossplane.io_clusters.yaml +++ b/package/crds/ecs.aws.jet.crossplane.io_clusters.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -209,6 +211,8 @@ spec: properties: arn: type: string + id: + type: string tagsAll: additionalProperties: type: string diff --git a/package/crds/ecs.aws.jet.crossplane.io_services.yaml b/package/crds/ecs.aws.jet.crossplane.io_services.yaml index bafb0a2b2..bffcb1253 100644 --- a/package/crds/ecs.aws.jet.crossplane.io_services.yaml +++ b/package/crds/ecs.aws.jet.crossplane.io_services.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -359,6 +361,8 @@ spec: properties: atProvider: properties: + id: + type: string tagsAll: additionalProperties: type: string diff --git a/package/crds/ecs.aws.jet.crossplane.io_taskdefinitions.yaml b/package/crds/ecs.aws.jet.crossplane.io_taskdefinitions.yaml index 27e772796..db51769e3 100644 --- a/package/crds/ecs.aws.jet.crossplane.io_taskdefinitions.yaml +++ b/package/crds/ecs.aws.jet.crossplane.io_taskdefinitions.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -299,6 +301,8 @@ spec: properties: arn: type: string + id: + type: string revision: format: int64 type: integer diff --git a/package/crds/eks.aws.jet.crossplane.io_addons.yaml b/package/crds/eks.aws.jet.crossplane.io_addons.yaml index b98732ba0..0ef48dba8 100644 --- a/package/crds/eks.aws.jet.crossplane.io_addons.yaml +++ b/package/crds/eks.aws.jet.crossplane.io_addons.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -180,6 +182,8 @@ spec: type: string createdAt: type: string + id: + type: string modifiedAt: type: string tagsAll: diff --git a/package/crds/eks.aws.jet.crossplane.io_clusters.yaml b/package/crds/eks.aws.jet.crossplane.io_clusters.yaml index 964c1113d..db50ecad7 100644 --- a/package/crds/eks.aws.jet.crossplane.io_clusters.yaml +++ b/package/crds/eks.aws.jet.crossplane.io_clusters.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -268,6 +270,8 @@ spec: type: string endpoint: type: string + id: + type: string identity: items: properties: diff --git a/package/crds/eks.aws.jet.crossplane.io_fargateprofiles.yaml b/package/crds/eks.aws.jet.crossplane.io_fargateprofiles.yaml index 48e428caa..7ba057fa4 100644 --- a/package/crds/eks.aws.jet.crossplane.io_fargateprofiles.yaml +++ b/package/crds/eks.aws.jet.crossplane.io_fargateprofiles.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -217,6 +219,8 @@ spec: properties: arn: type: string + id: + type: string status: type: string tagsAll: diff --git a/package/crds/eks.aws.jet.crossplane.io_identityproviderconfigs.yaml b/package/crds/eks.aws.jet.crossplane.io_identityproviderconfigs.yaml index 8c0a5f928..2a174c870 100644 --- a/package/crds/eks.aws.jet.crossplane.io_identityproviderconfigs.yaml +++ b/package/crds/eks.aws.jet.crossplane.io_identityproviderconfigs.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -179,6 +181,8 @@ spec: properties: arn: type: string + id: + type: string status: type: string tagsAll: diff --git a/package/crds/eks.aws.jet.crossplane.io_nodegroups.yaml b/package/crds/eks.aws.jet.crossplane.io_nodegroups.yaml index c15839013..365b62be4 100644 --- a/package/crds/eks.aws.jet.crossplane.io_nodegroups.yaml +++ b/package/crds/eks.aws.jet.crossplane.io_nodegroups.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -307,6 +309,8 @@ spec: properties: arn: type: string + id: + type: string resources: items: properties: diff --git a/package/crds/elasticache.aws.jet.crossplane.io_clusters.yaml b/package/crds/elasticache.aws.jet.crossplane.io_clusters.yaml index 8b72144c5..a8a68e246 100644 --- a/package/crds/elasticache.aws.jet.crossplane.io_clusters.yaml +++ b/package/crds/elasticache.aws.jet.crossplane.io_clusters.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -220,6 +222,8 @@ spec: type: string engineVersionActual: type: string + id: + type: string tagsAll: additionalProperties: type: string diff --git a/package/crds/elasticache.aws.jet.crossplane.io_parametergroups.yaml b/package/crds/elasticache.aws.jet.crossplane.io_parametergroups.yaml index 7a1672aac..6e3aad2d9 100644 --- a/package/crds/elasticache.aws.jet.crossplane.io_parametergroups.yaml +++ b/package/crds/elasticache.aws.jet.crossplane.io_parametergroups.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -141,6 +143,8 @@ spec: properties: arn: type: string + id: + type: string tagsAll: additionalProperties: type: string diff --git a/package/crds/elasticache.aws.jet.crossplane.io_replicationgroups.yaml b/package/crds/elasticache.aws.jet.crossplane.io_replicationgroups.yaml index 2929f7b7a..829dd2b7d 100644 --- a/package/crds/elasticache.aws.jet.crossplane.io_replicationgroups.yaml +++ b/package/crds/elasticache.aws.jet.crossplane.io_replicationgroups.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -225,6 +227,8 @@ spec: type: string engineVersionActual: type: string + id: + type: string memberClusters: items: type: string diff --git a/package/crds/elasticache.aws.jet.crossplane.io_usergroups.yaml b/package/crds/elasticache.aws.jet.crossplane.io_usergroups.yaml index 532522727..9bdb05d73 100644 --- a/package/crds/elasticache.aws.jet.crossplane.io_usergroups.yaml +++ b/package/crds/elasticache.aws.jet.crossplane.io_usergroups.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -156,6 +158,8 @@ spec: properties: atProvider: properties: + id: + type: string tagsAll: additionalProperties: type: string diff --git a/package/crds/elasticache.aws.jet.crossplane.io_users.yaml b/package/crds/elasticache.aws.jet.crossplane.io_users.yaml index 79dd24c1b..748643020 100644 --- a/package/crds/elasticache.aws.jet.crossplane.io_users.yaml +++ b/package/crds/elasticache.aws.jet.crossplane.io_users.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -139,6 +141,8 @@ spec: properties: atProvider: properties: + id: + type: string tagsAll: additionalProperties: type: string 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 70765e243..f1c2f5d13 100644 --- a/package/crds/elasticloadbalancing.aws.jet.crossplane.io_loadbalancerlisteners.yaml +++ b/package/crds/elbv2.aws.jet.crossplane.io_lblisteners.yaml @@ -1,21 +1,23 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +36,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 +51,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,13 +361,14 @@ spec: - forProvider type: object status: - description: LoadBalancerListenerStatus defines the observed state of - LoadBalancerListener. + description: LBListenerStatus defines the observed state of LBListener. properties: atProvider: properties: arn: type: string + id: + type: string tagsAll: additionalProperties: type: string 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 9cffb9760..079afc45e 100644 --- a/package/crds/elasticloadbalancing.aws.jet.crossplane.io_loadbalancers.yaml +++ b/package/crds/elbv2.aws.jet.crossplane.io_lbs.yaml @@ -1,21 +1,23 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +36,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 +51,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 +271,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: @@ -279,6 +281,8 @@ spec: type: string dnsName: type: string + id: + type: string tagsAll: additionalProperties: type: string diff --git a/package/crds/elasticloadbalancing.aws.jet.crossplane.io_targetgroupattachments.yaml b/package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroupattachments.yaml similarity index 91% rename from package/crds/elasticloadbalancing.aws.jet.crossplane.io_targetgroupattachments.yaml rename to package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroupattachments.yaml index d2d92e5bb..8acd5f8a8 100644 --- a/package/crds/elasticloadbalancing.aws.jet.crossplane.io_targetgroupattachments.yaml +++ b/package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroupattachments.yaml @@ -1,21 +1,23 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +36,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 +52,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,10 +151,13 @@ spec: - forProvider type: object status: - description: TargetGroupAttachmentStatus defines the observed state of - TargetGroupAttachment. + description: LBTargetGroupAttachmentStatus defines the observed state + of LBTargetGroupAttachment. properties: atProvider: + properties: + id: + type: string type: object conditions: description: Conditions of the resource. diff --git a/package/crds/elasticloadbalancing.aws.jet.crossplane.io_targetgroups.yaml b/package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroups.yaml similarity index 94% rename from package/crds/elasticloadbalancing.aws.jet.crossplane.io_targetgroups.yaml rename to package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroups.yaml index 03b8f109d..d7eb789ad 100644 --- a/package/crds/elasticloadbalancing.aws.jet.crossplane.io_targetgroups.yaml +++ b/package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroups.yaml @@ -1,21 +1,23 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +36,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 +51,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 @@ -140,7 +142,7 @@ spec: type: string vpcId: type: string - vpcIdRef: + vpcidRef: description: A Reference to a named object. properties: name: @@ -149,7 +151,7 @@ spec: required: - name type: object - vpcIdSelector: + vpcidSelector: description: A Selector selects an object. properties: matchControllerRef: @@ -212,7 +214,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: @@ -220,6 +222,8 @@ spec: type: string arnSuffix: type: string + id: + type: string tagsAll: additionalProperties: type: string diff --git a/package/crds/iam.aws.jet.crossplane.io_accesskeys.yaml b/package/crds/iam.aws.jet.crossplane.io_accesskeys.yaml index a4141ba55..13bedf9cc 100644 --- a/package/crds/iam.aws.jet.crossplane.io_accesskeys.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_accesskeys.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -147,6 +149,8 @@ spec: type: string encryptedSesSmtpPasswordV4: type: string + id: + type: string keyFingerprint: type: string type: object diff --git a/package/crds/iam.aws.jet.crossplane.io_grouppolicyattachments.yaml b/package/crds/iam.aws.jet.crossplane.io_grouppolicyattachments.yaml index 802678f47..ce0fd777d 100644 --- a/package/crds/iam.aws.jet.crossplane.io_grouppolicyattachments.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_grouppolicyattachments.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -163,6 +165,9 @@ spec: GroupPolicyAttachment. properties: atProvider: + properties: + id: + type: string type: object conditions: description: Conditions of the resource. diff --git a/package/crds/iam.aws.jet.crossplane.io_groups.yaml b/package/crds/iam.aws.jet.crossplane.io_groups.yaml index 6724be96a..d63247c2c 100644 --- a/package/crds/iam.aws.jet.crossplane.io_groups.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_groups.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -116,6 +118,8 @@ spec: properties: arn: type: string + id: + type: string uniqueId: type: string type: object diff --git a/package/crds/iam.aws.jet.crossplane.io_instanceprofiles.yaml b/package/crds/iam.aws.jet.crossplane.io_instanceprofiles.yaml index 6677f8b6b..827ea0cee 100644 --- a/package/crds/iam.aws.jet.crossplane.io_instanceprofiles.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_instanceprofiles.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -147,6 +149,8 @@ spec: type: string createDate: type: string + id: + type: string tagsAll: additionalProperties: type: string diff --git a/package/crds/iam.aws.jet.crossplane.io_policies.yaml b/package/crds/iam.aws.jet.crossplane.io_policies.yaml index 99dcbb594..ffb34dd26 100644 --- a/package/crds/iam.aws.jet.crossplane.io_policies.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_policies.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -130,6 +132,8 @@ spec: properties: arn: type: string + id: + type: string policyId: type: string tagsAll: diff --git a/package/crds/iam.aws.jet.crossplane.io_rolepolicyattachments.yaml b/package/crds/iam.aws.jet.crossplane.io_rolepolicyattachments.yaml index d92a471cf..11710749b 100644 --- a/package/crds/iam.aws.jet.crossplane.io_rolepolicyattachments.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_rolepolicyattachments.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -163,6 +165,9 @@ spec: RolePolicyAttachment. properties: atProvider: + properties: + id: + type: string type: object conditions: description: Conditions of the resource. diff --git a/package/crds/iam.aws.jet.crossplane.io_roles.yaml b/package/crds/iam.aws.jet.crossplane.io_roles.yaml index a9491e871..4571f0e5e 100644 --- a/package/crds/iam.aws.jet.crossplane.io_roles.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_roles.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -148,6 +150,8 @@ spec: type: string createDate: type: string + id: + type: string tagsAll: additionalProperties: type: string diff --git a/package/crds/iam.aws.jet.crossplane.io_usergroupmemberships.yaml b/package/crds/iam.aws.jet.crossplane.io_usergroupmemberships.yaml index 856d91fad..345416769 100644 --- a/package/crds/iam.aws.jet.crossplane.io_usergroupmemberships.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_usergroupmemberships.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -166,6 +168,9 @@ spec: description: UserGroupMembershipStatus defines the observed state of UserGroupMembership. properties: atProvider: + properties: + id: + type: string type: object conditions: description: Conditions of the resource. diff --git a/package/crds/iam.aws.jet.crossplane.io_userpolicyattachments.yaml b/package/crds/iam.aws.jet.crossplane.io_userpolicyattachments.yaml index a097c2cdb..f28475cd5 100644 --- a/package/crds/iam.aws.jet.crossplane.io_userpolicyattachments.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_userpolicyattachments.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -163,6 +165,9 @@ spec: UserPolicyAttachment. properties: atProvider: + properties: + id: + type: string type: object conditions: description: Conditions of the resource. diff --git a/package/crds/iam.aws.jet.crossplane.io_users.yaml b/package/crds/iam.aws.jet.crossplane.io_users.yaml index eca1c0a6c..9ae59b040 100644 --- a/package/crds/iam.aws.jet.crossplane.io_users.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_users.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -126,6 +128,8 @@ spec: properties: arn: type: string + id: + type: string tagsAll: additionalProperties: type: string diff --git a/package/crds/kms.aws.jet.crossplane.io_keys.yaml b/package/crds/kms.aws.jet.crossplane.io_keys.yaml index 2356ab635..0c3835724 100644 --- a/package/crds/kms.aws.jet.crossplane.io_keys.yaml +++ b/package/crds/kms.aws.jet.crossplane.io_keys.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -141,6 +143,8 @@ spec: properties: arn: type: string + id: + type: string keyId: type: string tagsAll: diff --git a/package/crds/rds.aws.jet.crossplane.io_dbclusters.yaml b/package/crds/rds.aws.jet.crossplane.io_clusters.yaml similarity index 96% rename from package/crds/rds.aws.jet.crossplane.io_dbclusters.yaml rename to package/crds/rds.aws.jet.crossplane.io_clusters.yaml index 47680b2b6..91c8d56a1 100644 --- a/package/crds/rds.aws.jet.crossplane.io_dbclusters.yaml +++ b/package/crds/rds.aws.jet.crossplane.io_clusters.yaml @@ -1,10 +1,12 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +14,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 +36,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 +51,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 +270,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: @@ -282,6 +284,8 @@ spec: type: string hostedZoneId: type: string + id: + type: string readerEndpoint: type: string tagsAll: 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 d077eb111..6b7bb063e 100644 --- a/package/crds/rds.aws.jet.crossplane.io_dbinstances.yaml +++ b/package/crds/rds.aws.jet.crossplane.io_instances.yaml @@ -1,10 +1,12 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +14,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 +36,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 +51,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 +447,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: @@ -457,6 +459,8 @@ spec: type: string hostedZoneId: type: string + id: + type: string latestRestorableTime: type: string replicas: diff --git a/package/crds/rds.aws.jet.crossplane.io_dbparametergroups.yaml b/package/crds/rds.aws.jet.crossplane.io_parametergroups.yaml similarity index 93% rename from package/crds/rds.aws.jet.crossplane.io_dbparametergroups.yaml rename to package/crds/rds.aws.jet.crossplane.io_parametergroups.yaml index ed4f17fc0..06aa33eb8 100644 --- a/package/crds/rds.aws.jet.crossplane.io_dbparametergroups.yaml +++ b/package/crds/rds.aws.jet.crossplane.io_parametergroups.yaml @@ -1,10 +1,12 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +14,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 +36,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 +51,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,12 +139,14 @@ spec: - forProvider type: object status: - description: DBParameterGroupStatus defines the observed state of DBParameterGroup. + description: ParameterGroupStatus defines the observed state of ParameterGroup. properties: atProvider: properties: arn: type: string + id: + type: string tagsAll: additionalProperties: type: string diff --git a/package/crds/route53.aws.jet.crossplane.io_delegationsets.yaml b/package/crds/route53.aws.jet.crossplane.io_delegationsets.yaml index 63be66dcc..6a9c7530c 100644 --- a/package/crds/route53.aws.jet.crossplane.io_delegationsets.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_delegationsets.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -120,6 +122,8 @@ spec: properties: atProvider: properties: + id: + type: string nameServers: items: type: string diff --git a/package/crds/route53.aws.jet.crossplane.io_healthchecks.yaml b/package/crds/route53.aws.jet.crossplane.io_healthchecks.yaml index 1c94d9997..1a53eaafd 100644 --- a/package/crds/route53.aws.jet.crossplane.io_healthchecks.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_healthchecks.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -169,6 +171,8 @@ spec: properties: atProvider: properties: + id: + type: string tagsAll: additionalProperties: type: string diff --git a/package/crds/route53.aws.jet.crossplane.io_hostedzonednssecs.yaml b/package/crds/route53.aws.jet.crossplane.io_hostedzonednssecs.yaml index 0cde37243..129927c89 100644 --- a/package/crds/route53.aws.jet.crossplane.io_hostedzonednssecs.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_hostedzonednssecs.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -12,8 +14,8 @@ spec: - crossplane - managed - awsjet - kind: HostedZoneDnssec - listKind: HostedZoneDnssecList + kind: HostedZoneDNSSEC + listKind: HostedZoneDNSSECList plural: hostedzonednssecs singular: hostedzonednssec scope: Cluster @@ -34,7 +36,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: HostedZoneDnssec is the Schema for the HostedZoneDnssecs API + description: HostedZoneDNSSEC is the Schema for the HostedZoneDNSSECs API properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation @@ -49,7 +51,7 @@ spec: metadata: type: object spec: - description: HostedZoneDnssecSpec defines the desired state of HostedZoneDnssec + description: HostedZoneDNSSECSpec defines the desired state of HostedZoneDNSSEC properties: deletionPolicy: default: Delete @@ -141,9 +143,12 @@ spec: - forProvider type: object status: - description: HostedZoneDnssecStatus defines the observed state of HostedZoneDnssec. + description: HostedZoneDNSSECStatus defines the observed state of HostedZoneDNSSEC. properties: atProvider: + properties: + id: + type: string type: object conditions: description: Conditions of the resource. diff --git a/package/crds/route53.aws.jet.crossplane.io_keysigningkeys.yaml b/package/crds/route53.aws.jet.crossplane.io_keysigningkeys.yaml index 31b3610aa..abfe19fe3 100644 --- a/package/crds/route53.aws.jet.crossplane.io_keysigningkeys.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_keysigningkeys.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -187,6 +189,8 @@ spec: flag: format: int64 type: integer + id: + type: string keyTag: format: int64 type: integer diff --git a/package/crds/route53.aws.jet.crossplane.io_querylogs.yaml b/package/crds/route53.aws.jet.crossplane.io_querylogs.yaml index c616a4b79..cd71cc8b3 100644 --- a/package/crds/route53.aws.jet.crossplane.io_querylogs.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_querylogs.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -123,6 +125,9 @@ spec: description: QueryLogStatus defines the observed state of QueryLog. properties: atProvider: + properties: + id: + type: string type: object conditions: description: Conditions of the resource. diff --git a/package/crds/route53.aws.jet.crossplane.io_records.yaml b/package/crds/route53.aws.jet.crossplane.io_records.yaml index 3aa244dd9..61ac24cd3 100644 --- a/package/crds/route53.aws.jet.crossplane.io_records.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_records.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -243,6 +245,8 @@ spec: properties: fqdn: type: string + id: + type: string type: object conditions: description: Conditions of the resource. diff --git a/package/crds/route53.aws.jet.crossplane.io_vpcassociationauthorizations.yaml b/package/crds/route53.aws.jet.crossplane.io_vpcassociationauthorizations.yaml index 7fd7b510a..16731cb37 100644 --- a/package/crds/route53.aws.jet.crossplane.io_vpcassociationauthorizations.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_vpcassociationauthorizations.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -12,8 +14,8 @@ spec: - crossplane - managed - awsjet - kind: VpcAssociationAuthorization - listKind: VpcAssociationAuthorizationList + kind: VPCAssociationAuthorization + listKind: VPCAssociationAuthorizationList plural: vpcassociationauthorizations singular: vpcassociationauthorization scope: Cluster @@ -34,7 +36,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: VpcAssociationAuthorization is the Schema for the VpcAssociationAuthorizations + description: VPCAssociationAuthorization is the Schema for the VPCAssociationAuthorizations API properties: apiVersion: @@ -50,8 +52,8 @@ spec: metadata: type: object spec: - description: VpcAssociationAuthorizationSpec defines the desired state - of VpcAssociationAuthorization + description: VPCAssociationAuthorizationSpec defines the desired state + of VPCAssociationAuthorization properties: deletionPolicy: default: Delete @@ -70,7 +72,9 @@ spec: type: string vpcId: type: string - vpcIdRef: + vpcRegion: + type: string + vpcidRef: description: A Reference to a named object. properties: name: @@ -79,7 +83,7 @@ spec: required: - name type: object - vpcIdSelector: + vpcidSelector: description: A Selector selects an object. properties: matchControllerRef: @@ -93,8 +97,6 @@ spec: is selected. type: object type: object - vpcRegion: - type: string zoneId: type: string zoneIdRef: @@ -168,10 +170,13 @@ spec: - forProvider type: object status: - description: VpcAssociationAuthorizationStatus defines the observed state - of VpcAssociationAuthorization. + description: VPCAssociationAuthorizationStatus defines the observed state + of VPCAssociationAuthorization. properties: atProvider: + properties: + id: + type: string type: object conditions: description: Conditions of the resource. diff --git a/package/crds/route53.aws.jet.crossplane.io_zoneassociations.yaml b/package/crds/route53.aws.jet.crossplane.io_zoneassociations.yaml index 77ccbb8e3..107d28c70 100644 --- a/package/crds/route53.aws.jet.crossplane.io_zoneassociations.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_zoneassociations.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -68,7 +70,9 @@ spec: type: string vpcId: type: string - vpcIdRef: + vpcRegion: + type: string + vpcidRef: description: A Reference to a named object. properties: name: @@ -77,7 +81,7 @@ spec: required: - name type: object - vpcIdSelector: + vpcidSelector: description: A Selector selects an object. properties: matchControllerRef: @@ -91,8 +95,6 @@ spec: is selected. type: object type: object - vpcRegion: - type: string zoneId: type: string zoneIdRef: @@ -170,6 +172,8 @@ spec: properties: atProvider: properties: + id: + type: string owningAccount: type: string type: object diff --git a/package/crds/route53.aws.jet.crossplane.io_zones.yaml b/package/crds/route53.aws.jet.crossplane.io_zones.yaml index 5e8aad180..39bc69784 100644 --- a/package/crds/route53.aws.jet.crossplane.io_zones.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_zones.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -106,7 +108,9 @@ spec: properties: vpcId: type: string - vpcIdRef: + vpcRegion: + type: string + vpcidRef: description: A Reference to a named object. properties: name: @@ -115,7 +119,7 @@ spec: required: - name type: object - vpcIdSelector: + vpcidSelector: description: A Selector selects an object. properties: matchControllerRef: @@ -130,8 +134,6 @@ spec: labels is selected. type: object type: object - vpcRegion: - type: string type: object type: array required: @@ -187,6 +189,8 @@ spec: properties: atProvider: properties: + id: + type: string nameServers: items: type: string 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 6f7b42269..a005d1750 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverdnssecconfigs.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_dnssecconfigs.yaml @@ -1,21 +1,23 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +36,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 +51,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 +119,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 e1beaa5bc..186f4ec3b 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverendpoints.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_endpoints.yaml @@ -1,21 +1,23 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +36,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 +51,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 +142,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: @@ -148,6 +150,8 @@ spec: type: string hostVpcId: type: string + id: + type: string tagsAll: additionalProperties: type: string 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 fe0b23d00..8c792dab0 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverfirewallconfigs.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_firewallconfigs.yaml @@ -1,21 +1,23 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +36,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 +51,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,11 +121,12 @@ spec: - forProvider type: object status: - description: ResolverFirewallConfigStatus defines the observed state of - ResolverFirewallConfig. + description: FirewallConfigStatus defines the observed state of FirewallConfig. properties: atProvider: properties: + id: + type: string ownerId: type: string type: object 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 456105ab2..7ac2d5302 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverfirewalldomainlists.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_firewalldomainlists.yaml @@ -1,21 +1,23 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +36,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 +52,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,13 +128,14 @@ spec: - forProvider type: object status: - description: ResolverFirewallDomainListStatus defines the observed state - of ResolverFirewallDomainList. + description: FirewallDomainListStatus defines the observed state of FirewallDomainList. properties: atProvider: properties: arn: type: string + id: + type: string tagsAll: additionalProperties: type: string 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 7ffcb5342..dc0a6afad 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverfirewallrulegroupassociations.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_firewallrulegroupassociations.yaml @@ -1,21 +1,23 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +36,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 +52,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,13 +137,15 @@ spec: - forProvider type: object status: - description: ResolverFirewallRuleGroupAssociationStatus defines the observed - state of ResolverFirewallRuleGroupAssociation. + description: FirewallRuleGroupAssociationStatus defines the observed state + of FirewallRuleGroupAssociation. properties: atProvider: properties: arn: type: string + id: + type: string tagsAll: additionalProperties: type: string 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..70822428d 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverfirewallrulegroups.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_firewallrulegroups.yaml @@ -1,21 +1,23 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +36,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 +51,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 +123,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 7e9288213..8464fc010 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverfirewallrules.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_firewallrules.yaml @@ -1,21 +1,23 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +36,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 +51,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,10 +141,12 @@ spec: - forProvider type: object status: - description: ResolverFirewallRuleStatus defines the observed state of - ResolverFirewallRule. + description: FirewallRuleStatus defines the observed state of FirewallRule. properties: atProvider: + properties: + id: + type: string type: object conditions: description: Conditions of the resource. diff --git a/package/crds/route53.aws.jet.crossplane.io_resolverquerylogconfigassociations.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigassociations.yaml similarity index 89% rename from package/crds/route53.aws.jet.crossplane.io_resolverquerylogconfigassociations.yaml rename to package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigassociations.yaml index 53c35ab04..7d0f7f91b 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverquerylogconfigassociations.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigassociations.yaml @@ -1,21 +1,23 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +36,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 +52,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,10 +124,13 @@ spec: - forProvider type: object status: - description: ResolverQueryLogConfigAssociationStatus defines the observed - state of ResolverQueryLogConfigAssociation. + description: QueryLogConfigAssociationStatus defines the observed state + of QueryLogConfigAssociation. properties: atProvider: + properties: + id: + type: string type: object conditions: description: Conditions of the resource. 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 a420d981c..2db502b8e 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverquerylogconfigs.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigs.yaml @@ -1,21 +1,23 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +36,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 +51,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,13 +126,14 @@ spec: - forProvider type: object status: - description: ResolverQueryLogConfigStatus defines the observed state of - ResolverQueryLogConfig. + description: QueryLogConfigStatus defines the observed state of QueryLogConfig. properties: atProvider: properties: arn: type: string + id: + type: string ownerId: type: string shareStatus: 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 ac339e2a9..cb9007b1d 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverruleassociations.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_ruleassociations.yaml @@ -1,21 +1,23 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +36,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 +51,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,10 +124,12 @@ spec: - forProvider type: object status: - description: ResolverRuleAssociationStatus defines the observed state - of ResolverRuleAssociation. + description: RuleAssociationStatus defines the observed state of RuleAssociation. properties: atProvider: + properties: + id: + type: string type: object conditions: description: Conditions of the resource. 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 33154d780..1deb0ea99 100644 --- a/package/crds/route53.aws.jet.crossplane.io_resolverrules.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_rules.yaml @@ -1,21 +1,23 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition 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 +36,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 +51,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,12 +142,14 @@ spec: - forProvider type: object status: - description: ResolverRuleStatus defines the observed state of ResolverRule. + description: RuleStatus defines the observed state of Rule. properties: atProvider: properties: arn: type: string + id: + type: string ownerId: type: string shareStatus: diff --git a/package/crds/s3.aws.jet.crossplane.io_buckets.yaml b/package/crds/s3.aws.jet.crossplane.io_buckets.yaml index 3a2286f53..8c3cecb98 100644 --- a/package/crds/s3.aws.jet.crossplane.io_buckets.yaml +++ b/package/crds/s3.aws.jet.crossplane.io_buckets.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: @@ -428,6 +430,8 @@ spec: type: string bucketRegionalDomainName: type: string + id: + type: string tagsAll: additionalProperties: type: string