diff --git a/apis/autoscaling/v1alpha2/zz_attachment_terraformed.go b/apis/autoscaling/v1alpha2/zz_attachment_terraformed.go deleted file mode 100755 index 98d483d38..000000000 --- a/apis/autoscaling/v1alpha2/zz_attachment_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Attachment -func (mg *Attachment) GetTerraformResourceType() string { - return "aws_autoscaling_attachment" -} - -// GetConnectionDetailsMapping for this Attachment -func (tr *Attachment) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this Attachment -func (tr *Attachment) 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 Attachment -func (tr *Attachment) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Attachment -func (tr *Attachment) 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 Attachment using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *Attachment) LateInitialize(attrs []byte) (bool, error) { - params := &AttachmentParameters{} - 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 *Attachment) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/autoscaling/v1alpha2/zz_generated.managed.go b/apis/autoscaling/v1alpha2/zz_generated.managed.go index 35b267450..37ee713b2 100644 --- a/apis/autoscaling/v1alpha2/zz_generated.managed.go +++ b/apis/autoscaling/v1alpha2/zz_generated.managed.go @@ -42,6 +42,11 @@ func (mg *Attachment) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Attachment. +func (mg *Attachment) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Attachment. func (mg *Attachment) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -70,6 +75,11 @@ func (mg *Attachment) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Attachment. +func (mg *Attachment) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Attachment. func (mg *Attachment) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -98,6 +108,11 @@ func (mg *AutoscalingGroup) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this AutoscalingGroup. +func (mg *AutoscalingGroup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this AutoscalingGroup. func (mg *AutoscalingGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -126,6 +141,11 @@ func (mg *AutoscalingGroup) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this AutoscalingGroup. +func (mg *AutoscalingGroup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this AutoscalingGroup. func (mg *AutoscalingGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r diff --git a/apis/autoscaling/v1alpha2/zz_autoscalinggroup_terraformed.go b/apis/autoscaling/v1alpha2/zz_generated_terraformed.go similarity index 57% rename from apis/autoscaling/v1alpha2/zz_autoscalinggroup_terraformed.go rename to apis/autoscaling/v1alpha2/zz_generated_terraformed.go index 1510336b5..74d6649d7 100755 --- a/apis/autoscaling/v1alpha2/zz_autoscalinggroup_terraformed.go +++ b/apis/autoscaling/v1alpha2/zz_generated_terraformed.go @@ -25,6 +25,80 @@ import ( "github.com/crossplane/terrajet/pkg/resource/json" ) +// GetTerraformResourceType returns Terraform resource type for this Attachment +func (mg *Attachment) GetTerraformResourceType() string { + return "aws_autoscaling_attachment" +} + +// GetConnectionDetailsMapping for this Attachment +func (tr *Attachment) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this Attachment +func (tr *Attachment) 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 Attachment +func (tr *Attachment) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Attachment +func (tr *Attachment) 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 Attachment using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *Attachment) LateInitialize(attrs []byte) (bool, error) { + params := &AttachmentParameters{} + 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 *Attachment) GetTerraformSchemaVersion() int { + return 0 +} + // GetTerraformResourceType returns Terraform resource type for this AutoscalingGroup func (mg *AutoscalingGroup) GetTerraformResourceType() string { return "aws_autoscaling_group" diff --git a/apis/ec2/v1alpha2/zz_ebsvolume_terraformed.go b/apis/ec2/v1alpha2/zz_ebsvolume_terraformed.go deleted file mode 100755 index 31f0c20f9..000000000 --- a/apis/ec2/v1alpha2/zz_ebsvolume_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this EBSVolume -func (mg *EBSVolume) GetTerraformResourceType() string { - return "aws_ebs_volume" -} - -// GetConnectionDetailsMapping for this EBSVolume -func (tr *EBSVolume) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this EBSVolume -func (tr *EBSVolume) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this EBSVolume -func (tr *EBSVolume) 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 EBSVolume using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *EBSVolume) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ec2/v1alpha2/zz_eip_terraformed.go b/apis/ec2/v1alpha2/zz_eip_terraformed.go deleted file mode 100755 index a269d6f72..000000000 --- a/apis/ec2/v1alpha2/zz_eip_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this EIP -func (mg *EIP) GetTerraformResourceType() string { - return "aws_eip" -} - -// GetConnectionDetailsMapping for this EIP -func (tr *EIP) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this EIP -func (tr *EIP) GetObservation() (map[string]interface{}, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this EIP -func (tr *EIP) SetObservation(obs map[string]interface{}) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this EIP -func (tr *EIP) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this EIP -func (tr *EIP) GetParameters() (map[string]interface{}, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this EIP -func (tr *EIP) SetParameters(params map[string]interface{}) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this EIP using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *EIP) LateInitialize(attrs []byte) (bool, error) { - params := &EIPParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *EIP) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ec2/v1alpha2/zz_generated.managed.go b/apis/ec2/v1alpha2/zz_generated.managed.go index 88055a415..310fcc520 100644 --- a/apis/ec2/v1alpha2/zz_generated.managed.go +++ b/apis/ec2/v1alpha2/zz_generated.managed.go @@ -42,6 +42,11 @@ func (mg *EBSVolume) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this EBSVolume. +func (mg *EBSVolume) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this EBSVolume. func (mg *EBSVolume) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -70,6 +75,11 @@ func (mg *EBSVolume) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this EBSVolume. +func (mg *EBSVolume) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this EBSVolume. func (mg *EBSVolume) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -98,6 +108,11 @@ func (mg *EIP) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this EIP. +func (mg *EIP) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this EIP. func (mg *EIP) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -126,6 +141,11 @@ func (mg *EIP) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this EIP. +func (mg *EIP) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this EIP. func (mg *EIP) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -154,6 +174,11 @@ func (mg *Instance) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Instance. +func (mg *Instance) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Instance. func (mg *Instance) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -182,6 +207,11 @@ func (mg *Instance) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Instance. +func (mg *Instance) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Instance. func (mg *Instance) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -210,6 +240,11 @@ func (mg *LaunchTemplate) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this LaunchTemplate. +func (mg *LaunchTemplate) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this LaunchTemplate. func (mg *LaunchTemplate) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -238,6 +273,11 @@ func (mg *LaunchTemplate) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this LaunchTemplate. +func (mg *LaunchTemplate) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this LaunchTemplate. func (mg *LaunchTemplate) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -266,6 +306,11 @@ func (mg *NetworkInterface) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this NetworkInterface. +func (mg *NetworkInterface) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this NetworkInterface. func (mg *NetworkInterface) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -294,6 +339,11 @@ func (mg *NetworkInterface) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this NetworkInterface. +func (mg *NetworkInterface) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this NetworkInterface. func (mg *NetworkInterface) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -322,6 +372,11 @@ func (mg *Route) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Route. +func (mg *Route) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Route. func (mg *Route) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -350,6 +405,11 @@ func (mg *Route) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Route. +func (mg *Route) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Route. func (mg *Route) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -378,6 +438,11 @@ func (mg *RouteTable) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this RouteTable. +func (mg *RouteTable) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this RouteTable. func (mg *RouteTable) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -406,6 +471,11 @@ func (mg *RouteTable) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this RouteTable. +func (mg *RouteTable) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this RouteTable. func (mg *RouteTable) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -434,6 +504,11 @@ func (mg *RouteTableAssociation) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this RouteTableAssociation. +func (mg *RouteTableAssociation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this RouteTableAssociation. func (mg *RouteTableAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -462,6 +537,11 @@ func (mg *RouteTableAssociation) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this RouteTableAssociation. +func (mg *RouteTableAssociation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this RouteTableAssociation. func (mg *RouteTableAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -490,6 +570,11 @@ func (mg *SecurityGroup) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this SecurityGroup. +func (mg *SecurityGroup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this SecurityGroup. func (mg *SecurityGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -518,6 +603,11 @@ func (mg *SecurityGroup) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this SecurityGroup. +func (mg *SecurityGroup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this SecurityGroup. func (mg *SecurityGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -546,6 +636,11 @@ func (mg *SecurityGroupRule) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this SecurityGroupRule. +func (mg *SecurityGroupRule) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this SecurityGroupRule. func (mg *SecurityGroupRule) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -574,6 +669,11 @@ func (mg *SecurityGroupRule) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this SecurityGroupRule. +func (mg *SecurityGroupRule) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this SecurityGroupRule. func (mg *SecurityGroupRule) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -602,6 +702,11 @@ func (mg *Subnet) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Subnet. +func (mg *Subnet) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Subnet. func (mg *Subnet) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -630,6 +735,11 @@ func (mg *Subnet) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Subnet. +func (mg *Subnet) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Subnet. func (mg *Subnet) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -658,6 +768,11 @@ func (mg *TransitGateway) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this TransitGateway. +func (mg *TransitGateway) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this TransitGateway. func (mg *TransitGateway) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -686,6 +801,11 @@ func (mg *TransitGateway) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this TransitGateway. +func (mg *TransitGateway) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this TransitGateway. func (mg *TransitGateway) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -714,6 +834,11 @@ func (mg *TransitGatewayRoute) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this TransitGatewayRoute. +func (mg *TransitGatewayRoute) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this TransitGatewayRoute. func (mg *TransitGatewayRoute) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -742,6 +867,11 @@ func (mg *TransitGatewayRoute) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this TransitGatewayRoute. +func (mg *TransitGatewayRoute) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this TransitGatewayRoute. func (mg *TransitGatewayRoute) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -770,6 +900,11 @@ func (mg *TransitGatewayRouteTable) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this TransitGatewayRouteTable. +func (mg *TransitGatewayRouteTable) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this TransitGatewayRouteTable. func (mg *TransitGatewayRouteTable) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -798,6 +933,11 @@ func (mg *TransitGatewayRouteTable) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this TransitGatewayRouteTable. +func (mg *TransitGatewayRouteTable) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this TransitGatewayRouteTable. func (mg *TransitGatewayRouteTable) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -826,6 +966,11 @@ func (mg *TransitGatewayRouteTableAssociation) GetProviderReference() *xpv1.Refe return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this TransitGatewayRouteTableAssociation. +func (mg *TransitGatewayRouteTableAssociation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this TransitGatewayRouteTableAssociation. func (mg *TransitGatewayRouteTableAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -854,6 +999,11 @@ func (mg *TransitGatewayRouteTableAssociation) SetProviderReference(r *xpv1.Refe mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this TransitGatewayRouteTableAssociation. +func (mg *TransitGatewayRouteTableAssociation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this TransitGatewayRouteTableAssociation. func (mg *TransitGatewayRouteTableAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -882,6 +1032,11 @@ func (mg *TransitGatewayRouteTablePropagation) GetProviderReference() *xpv1.Refe return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this TransitGatewayRouteTablePropagation. +func (mg *TransitGatewayRouteTablePropagation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this TransitGatewayRouteTablePropagation. func (mg *TransitGatewayRouteTablePropagation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -910,6 +1065,11 @@ func (mg *TransitGatewayRouteTablePropagation) SetProviderReference(r *xpv1.Refe mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this TransitGatewayRouteTablePropagation. +func (mg *TransitGatewayRouteTablePropagation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this TransitGatewayRouteTablePropagation. func (mg *TransitGatewayRouteTablePropagation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -938,6 +1098,11 @@ func (mg *TransitGatewayVPCAttachment) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this TransitGatewayVPCAttachment. +func (mg *TransitGatewayVPCAttachment) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this TransitGatewayVPCAttachment. func (mg *TransitGatewayVPCAttachment) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -966,6 +1131,11 @@ func (mg *TransitGatewayVPCAttachment) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this TransitGatewayVPCAttachment. +func (mg *TransitGatewayVPCAttachment) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this TransitGatewayVPCAttachment. func (mg *TransitGatewayVPCAttachment) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -994,6 +1164,11 @@ func (mg *TransitGatewayVPCAttachmentAccepter) GetProviderReference() *xpv1.Refe return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this TransitGatewayVPCAttachmentAccepter. +func (mg *TransitGatewayVPCAttachmentAccepter) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this TransitGatewayVPCAttachmentAccepter. func (mg *TransitGatewayVPCAttachmentAccepter) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -1022,6 +1197,11 @@ func (mg *TransitGatewayVPCAttachmentAccepter) SetProviderReference(r *xpv1.Refe mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this TransitGatewayVPCAttachmentAccepter. +func (mg *TransitGatewayVPCAttachmentAccepter) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this TransitGatewayVPCAttachmentAccepter. func (mg *TransitGatewayVPCAttachmentAccepter) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -1050,6 +1230,11 @@ func (mg *VPC) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this VPC. +func (mg *VPC) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this VPC. func (mg *VPC) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -1078,6 +1263,11 @@ func (mg *VPC) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this VPC. +func (mg *VPC) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this VPC. func (mg *VPC) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -1106,6 +1296,11 @@ func (mg *VPCEndpoint) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this VPCEndpoint. +func (mg *VPCEndpoint) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this VPCEndpoint. func (mg *VPCEndpoint) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -1134,6 +1329,11 @@ func (mg *VPCEndpoint) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this VPCEndpoint. +func (mg *VPCEndpoint) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this VPCEndpoint. func (mg *VPCEndpoint) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -1162,6 +1362,11 @@ func (mg *VPCIPv4CidrBlockAssociation) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this VPCIPv4CidrBlockAssociation. +func (mg *VPCIPv4CidrBlockAssociation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this VPCIPv4CidrBlockAssociation. func (mg *VPCIPv4CidrBlockAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -1190,6 +1395,11 @@ func (mg *VPCIPv4CidrBlockAssociation) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this VPCIPv4CidrBlockAssociation. +func (mg *VPCIPv4CidrBlockAssociation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this VPCIPv4CidrBlockAssociation. func (mg *VPCIPv4CidrBlockAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -1218,6 +1428,11 @@ func (mg *VPCPeeringConnection) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this VPCPeeringConnection. +func (mg *VPCPeeringConnection) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this VPCPeeringConnection. func (mg *VPCPeeringConnection) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -1246,6 +1461,11 @@ func (mg *VPCPeeringConnection) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this VPCPeeringConnection. +func (mg *VPCPeeringConnection) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this VPCPeeringConnection. func (mg *VPCPeeringConnection) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r diff --git a/apis/ec2/v1alpha2/zz_generated_terraformed.go b/apis/ec2/v1alpha2/zz_generated_terraformed.go new file mode 100755 index 000000000..58cbcaade --- /dev/null +++ b/apis/ec2/v1alpha2/zz_generated_terraformed.go @@ -0,0 +1,1660 @@ +/* +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 v1alpha2 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this EBSVolume +func (mg *EBSVolume) GetTerraformResourceType() string { + return "aws_ebs_volume" +} + +// GetConnectionDetailsMapping for this EBSVolume +func (tr *EBSVolume) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this EBSVolume +func (tr *EBSVolume) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this EBSVolume +func (tr *EBSVolume) 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 EBSVolume using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *EBSVolume) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this TransitGateway +func (mg *TransitGateway) GetTerraformResourceType() string { + return "aws_ec2_transit_gateway" +} + +// GetConnectionDetailsMapping for this TransitGateway +func (tr *TransitGateway) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this TransitGateway +func (tr *TransitGateway) 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 TransitGateway +func (tr *TransitGateway) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this TransitGateway +func (tr *TransitGateway) 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 TransitGateway using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *TransitGateway) LateInitialize(attrs []byte) (bool, error) { + params := &TransitGatewayParameters{} + 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 *TransitGateway) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this TransitGatewayRoute +func (mg *TransitGatewayRoute) GetTerraformResourceType() string { + return "aws_ec2_transit_gateway_route" +} + +// GetConnectionDetailsMapping for this TransitGatewayRoute +func (tr *TransitGatewayRoute) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this TransitGatewayRoute +func (tr *TransitGatewayRoute) 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 TransitGatewayRoute +func (tr *TransitGatewayRoute) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this TransitGatewayRoute +func (tr *TransitGatewayRoute) 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 TransitGatewayRoute using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *TransitGatewayRoute) LateInitialize(attrs []byte) (bool, error) { + params := &TransitGatewayRouteParameters{} + 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 *TransitGatewayRoute) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this TransitGatewayRouteTable +func (mg *TransitGatewayRouteTable) GetTerraformResourceType() string { + return "aws_ec2_transit_gateway_route_table" +} + +// GetConnectionDetailsMapping for this TransitGatewayRouteTable +func (tr *TransitGatewayRouteTable) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this TransitGatewayRouteTable +func (tr *TransitGatewayRouteTable) 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 TransitGatewayRouteTable +func (tr *TransitGatewayRouteTable) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this TransitGatewayRouteTable +func (tr *TransitGatewayRouteTable) 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 TransitGatewayRouteTable using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *TransitGatewayRouteTable) LateInitialize(attrs []byte) (bool, error) { + params := &TransitGatewayRouteTableParameters{} + 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 *TransitGatewayRouteTable) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this TransitGatewayRouteTableAssociation +func (mg *TransitGatewayRouteTableAssociation) GetTerraformResourceType() string { + return "aws_ec2_transit_gateway_route_table_association" +} + +// GetConnectionDetailsMapping for this TransitGatewayRouteTableAssociation +func (tr *TransitGatewayRouteTableAssociation) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this TransitGatewayRouteTableAssociation +func (tr *TransitGatewayRouteTableAssociation) 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 TransitGatewayRouteTableAssociation +func (tr *TransitGatewayRouteTableAssociation) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this TransitGatewayRouteTableAssociation +func (tr *TransitGatewayRouteTableAssociation) 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 TransitGatewayRouteTableAssociation using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *TransitGatewayRouteTableAssociation) LateInitialize(attrs []byte) (bool, error) { + params := &TransitGatewayRouteTableAssociationParameters{} + 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 *TransitGatewayRouteTableAssociation) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this TransitGatewayRouteTablePropagation +func (mg *TransitGatewayRouteTablePropagation) GetTerraformResourceType() string { + return "aws_ec2_transit_gateway_route_table_propagation" +} + +// GetConnectionDetailsMapping for this TransitGatewayRouteTablePropagation +func (tr *TransitGatewayRouteTablePropagation) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this TransitGatewayRouteTablePropagation +func (tr *TransitGatewayRouteTablePropagation) 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 TransitGatewayRouteTablePropagation +func (tr *TransitGatewayRouteTablePropagation) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this TransitGatewayRouteTablePropagation +func (tr *TransitGatewayRouteTablePropagation) 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 TransitGatewayRouteTablePropagation using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *TransitGatewayRouteTablePropagation) LateInitialize(attrs []byte) (bool, error) { + params := &TransitGatewayRouteTablePropagationParameters{} + 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 *TransitGatewayRouteTablePropagation) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this TransitGatewayVPCAttachment +func (mg *TransitGatewayVPCAttachment) GetTerraformResourceType() string { + return "aws_ec2_transit_gateway_vpc_attachment" +} + +// GetConnectionDetailsMapping for this TransitGatewayVPCAttachment +func (tr *TransitGatewayVPCAttachment) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this TransitGatewayVPCAttachment +func (tr *TransitGatewayVPCAttachment) 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 TransitGatewayVPCAttachment +func (tr *TransitGatewayVPCAttachment) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this TransitGatewayVPCAttachment +func (tr *TransitGatewayVPCAttachment) 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 TransitGatewayVPCAttachment using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *TransitGatewayVPCAttachment) LateInitialize(attrs []byte) (bool, error) { + params := &TransitGatewayVPCAttachmentParameters{} + 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 *TransitGatewayVPCAttachment) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this TransitGatewayVPCAttachmentAccepter +func (mg *TransitGatewayVPCAttachmentAccepter) GetTerraformResourceType() string { + return "aws_ec2_transit_gateway_vpc_attachment_accepter" +} + +// GetConnectionDetailsMapping for this TransitGatewayVPCAttachmentAccepter +func (tr *TransitGatewayVPCAttachmentAccepter) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this TransitGatewayVPCAttachmentAccepter +func (tr *TransitGatewayVPCAttachmentAccepter) 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 TransitGatewayVPCAttachmentAccepter +func (tr *TransitGatewayVPCAttachmentAccepter) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this TransitGatewayVPCAttachmentAccepter +func (tr *TransitGatewayVPCAttachmentAccepter) 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 TransitGatewayVPCAttachmentAccepter using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *TransitGatewayVPCAttachmentAccepter) LateInitialize(attrs []byte) (bool, error) { + params := &TransitGatewayVPCAttachmentAccepterParameters{} + 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 *TransitGatewayVPCAttachmentAccepter) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this EIP +func (mg *EIP) GetTerraformResourceType() string { + return "aws_eip" +} + +// GetConnectionDetailsMapping for this EIP +func (tr *EIP) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this EIP +func (tr *EIP) GetObservation() (map[string]interface{}, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this EIP +func (tr *EIP) SetObservation(obs map[string]interface{}) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this EIP +func (tr *EIP) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this EIP +func (tr *EIP) GetParameters() (map[string]interface{}, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this EIP +func (tr *EIP) SetParameters(params map[string]interface{}) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this EIP using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *EIP) LateInitialize(attrs []byte) (bool, error) { + params := &EIPParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *EIP) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this Instance +func (mg *Instance) GetTerraformResourceType() string { + return "aws_instance" +} + +// GetConnectionDetailsMapping for this Instance +func (tr *Instance) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this Instance +func (tr *Instance) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Instance +func (tr *Instance) 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 Instance using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + opts = append(opts, resource.WithNameFilter("NetworkInterface")) + opts = append(opts, resource.WithNameFilter("PrivateIP")) + opts = append(opts, resource.WithNameFilter("SourceDestCheck")) + opts = append(opts, resource.WithNameFilter("SubnetID")) + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *Instance) GetTerraformSchemaVersion() int { + return 1 +} + +// GetTerraformResourceType returns Terraform resource type for this LaunchTemplate +func (mg *LaunchTemplate) GetTerraformResourceType() string { + return "aws_launch_template" +} + +// GetConnectionDetailsMapping for this LaunchTemplate +func (tr *LaunchTemplate) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this LaunchTemplate +func (tr *LaunchTemplate) 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 LaunchTemplate +func (tr *LaunchTemplate) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this LaunchTemplate +func (tr *LaunchTemplate) 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 LaunchTemplate using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *LaunchTemplate) LateInitialize(attrs []byte) (bool, error) { + params := &LaunchTemplateParameters_2{} + 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 *LaunchTemplate) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this NetworkInterface +func (mg *NetworkInterface) GetTerraformResourceType() string { + return "aws_network_interface" +} + +// GetConnectionDetailsMapping for this NetworkInterface +func (tr *NetworkInterface) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this NetworkInterface +func (tr *NetworkInterface) 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 NetworkInterface +func (tr *NetworkInterface) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this NetworkInterface +func (tr *NetworkInterface) 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 NetworkInterface using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *NetworkInterface) LateInitialize(attrs []byte) (bool, error) { + params := &NetworkInterfaceParameters_2{} + 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)} + opts = append(opts, resource.WithNameFilter("InterfaceType")) + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *NetworkInterface) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this Route +func (mg *Route) GetTerraformResourceType() string { + return "aws_route" +} + +// GetConnectionDetailsMapping for this Route +func (tr *Route) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this Route +func (tr *Route) 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 Route +func (tr *Route) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Route +func (tr *Route) 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 Route using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *Route) LateInitialize(attrs []byte) (bool, error) { + params := &RouteParameters{} + 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 *Route) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this RouteTable +func (mg *RouteTable) GetTerraformResourceType() string { + return "aws_route_table" +} + +// GetConnectionDetailsMapping for this RouteTable +func (tr *RouteTable) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this RouteTable +func (tr *RouteTable) 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 RouteTable +func (tr *RouteTable) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this RouteTable +func (tr *RouteTable) 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 RouteTable using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *RouteTable) LateInitialize(attrs []byte) (bool, error) { + params := &RouteTableParameters{} + 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 *RouteTable) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this RouteTableAssociation +func (mg *RouteTableAssociation) GetTerraformResourceType() string { + return "aws_route_table_association" +} + +// GetConnectionDetailsMapping for this RouteTableAssociation +func (tr *RouteTableAssociation) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this RouteTableAssociation +func (tr *RouteTableAssociation) 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 RouteTableAssociation +func (tr *RouteTableAssociation) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this RouteTableAssociation +func (tr *RouteTableAssociation) 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 RouteTableAssociation using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *RouteTableAssociation) LateInitialize(attrs []byte) (bool, error) { + params := &RouteTableAssociationParameters{} + 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 *RouteTableAssociation) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this SecurityGroup +func (mg *SecurityGroup) GetTerraformResourceType() string { + return "aws_security_group" +} + +// GetConnectionDetailsMapping for this SecurityGroup +func (tr *SecurityGroup) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this SecurityGroup +func (tr *SecurityGroup) 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 SecurityGroup +func (tr *SecurityGroup) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this SecurityGroup +func (tr *SecurityGroup) 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 SecurityGroup using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *SecurityGroup) LateInitialize(attrs []byte) (bool, error) { + params := &SecurityGroupParameters{} + 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 *SecurityGroup) GetTerraformSchemaVersion() int { + return 1 +} + +// GetTerraformResourceType returns Terraform resource type for this SecurityGroupRule +func (mg *SecurityGroupRule) GetTerraformResourceType() string { + return "aws_security_group_rule" +} + +// GetConnectionDetailsMapping for this SecurityGroupRule +func (tr *SecurityGroupRule) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this SecurityGroupRule +func (tr *SecurityGroupRule) 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 SecurityGroupRule +func (tr *SecurityGroupRule) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this SecurityGroupRule +func (tr *SecurityGroupRule) 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 SecurityGroupRule using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *SecurityGroupRule) LateInitialize(attrs []byte) (bool, error) { + params := &SecurityGroupRuleParameters{} + 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 *SecurityGroupRule) GetTerraformSchemaVersion() int { + return 2 +} + +// GetTerraformResourceType returns Terraform resource type for this Subnet +func (mg *Subnet) GetTerraformResourceType() string { + return "aws_subnet" +} + +// GetConnectionDetailsMapping for this Subnet +func (tr *Subnet) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this Subnet +func (tr *Subnet) 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 Subnet +func (tr *Subnet) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Subnet +func (tr *Subnet) 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 Subnet using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *Subnet) LateInitialize(attrs []byte) (bool, error) { + params := &SubnetParameters{} + 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)} + opts = append(opts, resource.WithNameFilter("AvailabilityZoneID")) + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *Subnet) GetTerraformSchemaVersion() int { + return 1 +} + +// GetTerraformResourceType returns Terraform resource type for this VPC +func (mg *VPC) GetTerraformResourceType() string { + return "aws_vpc" +} + +// GetConnectionDetailsMapping for this VPC +func (tr *VPC) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this VPC +func (tr *VPC) 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 VPC +func (tr *VPC) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this VPC +func (tr *VPC) 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 VPC using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *VPC) LateInitialize(attrs []byte) (bool, error) { + params := &VPCParameters{} + 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 *VPC) GetTerraformSchemaVersion() int { + return 1 +} + +// GetTerraformResourceType returns Terraform resource type for this VPCEndpoint +func (mg *VPCEndpoint) GetTerraformResourceType() string { + return "aws_vpc_endpoint" +} + +// GetConnectionDetailsMapping for this VPCEndpoint +func (tr *VPCEndpoint) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this VPCEndpoint +func (tr *VPCEndpoint) 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 VPCEndpoint +func (tr *VPCEndpoint) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this VPCEndpoint +func (tr *VPCEndpoint) 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 VPCEndpoint using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *VPCEndpoint) LateInitialize(attrs []byte) (bool, error) { + params := &VPCEndpointParameters{} + 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 *VPCEndpoint) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this VPCIPv4CidrBlockAssociation +func (mg *VPCIPv4CidrBlockAssociation) GetTerraformResourceType() string { + return "aws_vpc_ipv4_cidr_block_association" +} + +// GetConnectionDetailsMapping for this VPCIPv4CidrBlockAssociation +func (tr *VPCIPv4CidrBlockAssociation) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this VPCIPv4CidrBlockAssociation +func (tr *VPCIPv4CidrBlockAssociation) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this VPCIPv4CidrBlockAssociation +func (tr *VPCIPv4CidrBlockAssociation) 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 VPCIPv4CidrBlockAssociation using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *VPCIPv4CidrBlockAssociation) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this VPCPeeringConnection +func (mg *VPCPeeringConnection) GetTerraformResourceType() string { + return "aws_vpc_peering_connection" +} + +// GetConnectionDetailsMapping for this VPCPeeringConnection +func (tr *VPCPeeringConnection) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this VPCPeeringConnection +func (tr *VPCPeeringConnection) 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 VPCPeeringConnection +func (tr *VPCPeeringConnection) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this VPCPeeringConnection +func (tr *VPCPeeringConnection) 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 VPCPeeringConnection using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *VPCPeeringConnection) LateInitialize(attrs []byte) (bool, error) { + params := &VPCPeeringConnectionParameters{} + 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 *VPCPeeringConnection) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/ec2/v1alpha2/zz_instance_terraformed.go b/apis/ec2/v1alpha2/zz_instance_terraformed.go deleted file mode 100755 index d4a442ad6..000000000 --- a/apis/ec2/v1alpha2/zz_instance_terraformed.go +++ /dev/null @@ -1,104 +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 v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Instance -func (mg *Instance) GetTerraformResourceType() string { - return "aws_instance" -} - -// GetConnectionDetailsMapping for this Instance -func (tr *Instance) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this Instance -func (tr *Instance) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Instance -func (tr *Instance) 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 Instance using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - opts = append(opts, resource.WithNameFilter("NetworkInterface")) - opts = append(opts, resource.WithNameFilter("PrivateIP")) - opts = append(opts, resource.WithNameFilter("SourceDestCheck")) - opts = append(opts, resource.WithNameFilter("SubnetID")) - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *Instance) GetTerraformSchemaVersion() int { - return 1 -} diff --git a/apis/ec2/v1alpha2/zz_launchtemplate_terraformed.go b/apis/ec2/v1alpha2/zz_launchtemplate_terraformed.go deleted file mode 100755 index afb284002..000000000 --- a/apis/ec2/v1alpha2/zz_launchtemplate_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this LaunchTemplate -func (mg *LaunchTemplate) GetTerraformResourceType() string { - return "aws_launch_template" -} - -// GetConnectionDetailsMapping for this LaunchTemplate -func (tr *LaunchTemplate) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this LaunchTemplate -func (tr *LaunchTemplate) 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 LaunchTemplate -func (tr *LaunchTemplate) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this LaunchTemplate -func (tr *LaunchTemplate) 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 LaunchTemplate using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *LaunchTemplate) LateInitialize(attrs []byte) (bool, error) { - params := &LaunchTemplateParameters_2{} - 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 *LaunchTemplate) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ec2/v1alpha2/zz_networkinterface_terraformed.go b/apis/ec2/v1alpha2/zz_networkinterface_terraformed.go deleted file mode 100755 index 9aa07cf3f..000000000 --- a/apis/ec2/v1alpha2/zz_networkinterface_terraformed.go +++ /dev/null @@ -1,101 +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 v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this NetworkInterface -func (mg *NetworkInterface) GetTerraformResourceType() string { - return "aws_network_interface" -} - -// GetConnectionDetailsMapping for this NetworkInterface -func (tr *NetworkInterface) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this NetworkInterface -func (tr *NetworkInterface) 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 NetworkInterface -func (tr *NetworkInterface) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this NetworkInterface -func (tr *NetworkInterface) 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 NetworkInterface using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *NetworkInterface) LateInitialize(attrs []byte) (bool, error) { - params := &NetworkInterfaceParameters_2{} - 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)} - opts = append(opts, resource.WithNameFilter("InterfaceType")) - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *NetworkInterface) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ec2/v1alpha2/zz_route_terraformed.go b/apis/ec2/v1alpha2/zz_route_terraformed.go deleted file mode 100755 index 07e494090..000000000 --- a/apis/ec2/v1alpha2/zz_route_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Route -func (mg *Route) GetTerraformResourceType() string { - return "aws_route" -} - -// GetConnectionDetailsMapping for this Route -func (tr *Route) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this Route -func (tr *Route) 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 Route -func (tr *Route) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Route -func (tr *Route) 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 Route using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *Route) LateInitialize(attrs []byte) (bool, error) { - params := &RouteParameters{} - 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 *Route) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ec2/v1alpha2/zz_routetable_terraformed.go b/apis/ec2/v1alpha2/zz_routetable_terraformed.go deleted file mode 100755 index 101399e8f..000000000 --- a/apis/ec2/v1alpha2/zz_routetable_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this RouteTable -func (mg *RouteTable) GetTerraformResourceType() string { - return "aws_route_table" -} - -// GetConnectionDetailsMapping for this RouteTable -func (tr *RouteTable) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this RouteTable -func (tr *RouteTable) 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 RouteTable -func (tr *RouteTable) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this RouteTable -func (tr *RouteTable) 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 RouteTable using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *RouteTable) LateInitialize(attrs []byte) (bool, error) { - params := &RouteTableParameters{} - 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 *RouteTable) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ec2/v1alpha2/zz_routetableassociation_terraformed.go b/apis/ec2/v1alpha2/zz_routetableassociation_terraformed.go deleted file mode 100755 index 5e3030e3d..000000000 --- a/apis/ec2/v1alpha2/zz_routetableassociation_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this RouteTableAssociation -func (mg *RouteTableAssociation) GetTerraformResourceType() string { - return "aws_route_table_association" -} - -// GetConnectionDetailsMapping for this RouteTableAssociation -func (tr *RouteTableAssociation) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this RouteTableAssociation -func (tr *RouteTableAssociation) 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 RouteTableAssociation -func (tr *RouteTableAssociation) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this RouteTableAssociation -func (tr *RouteTableAssociation) 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 RouteTableAssociation using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *RouteTableAssociation) LateInitialize(attrs []byte) (bool, error) { - params := &RouteTableAssociationParameters{} - 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 *RouteTableAssociation) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ec2/v1alpha2/zz_securitygroup_terraformed.go b/apis/ec2/v1alpha2/zz_securitygroup_terraformed.go deleted file mode 100755 index c293b42b2..000000000 --- a/apis/ec2/v1alpha2/zz_securitygroup_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this SecurityGroup -func (mg *SecurityGroup) GetTerraformResourceType() string { - return "aws_security_group" -} - -// GetConnectionDetailsMapping for this SecurityGroup -func (tr *SecurityGroup) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this SecurityGroup -func (tr *SecurityGroup) 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 SecurityGroup -func (tr *SecurityGroup) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this SecurityGroup -func (tr *SecurityGroup) 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 SecurityGroup using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *SecurityGroup) LateInitialize(attrs []byte) (bool, error) { - params := &SecurityGroupParameters{} - 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 *SecurityGroup) GetTerraformSchemaVersion() int { - return 1 -} diff --git a/apis/ec2/v1alpha2/zz_securitygrouprule_terraformed.go b/apis/ec2/v1alpha2/zz_securitygrouprule_terraformed.go deleted file mode 100755 index ef64d8a5b..000000000 --- a/apis/ec2/v1alpha2/zz_securitygrouprule_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this SecurityGroupRule -func (mg *SecurityGroupRule) GetTerraformResourceType() string { - return "aws_security_group_rule" -} - -// GetConnectionDetailsMapping for this SecurityGroupRule -func (tr *SecurityGroupRule) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this SecurityGroupRule -func (tr *SecurityGroupRule) 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 SecurityGroupRule -func (tr *SecurityGroupRule) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this SecurityGroupRule -func (tr *SecurityGroupRule) 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 SecurityGroupRule using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *SecurityGroupRule) LateInitialize(attrs []byte) (bool, error) { - params := &SecurityGroupRuleParameters{} - 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 *SecurityGroupRule) GetTerraformSchemaVersion() int { - return 2 -} diff --git a/apis/ec2/v1alpha2/zz_subnet_terraformed.go b/apis/ec2/v1alpha2/zz_subnet_terraformed.go deleted file mode 100755 index d996c8429..000000000 --- a/apis/ec2/v1alpha2/zz_subnet_terraformed.go +++ /dev/null @@ -1,101 +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 v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Subnet -func (mg *Subnet) GetTerraformResourceType() string { - return "aws_subnet" -} - -// GetConnectionDetailsMapping for this Subnet -func (tr *Subnet) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this Subnet -func (tr *Subnet) 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 Subnet -func (tr *Subnet) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Subnet -func (tr *Subnet) 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 Subnet using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *Subnet) LateInitialize(attrs []byte) (bool, error) { - params := &SubnetParameters{} - 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)} - opts = append(opts, resource.WithNameFilter("AvailabilityZoneID")) - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *Subnet) GetTerraformSchemaVersion() int { - return 1 -} diff --git a/apis/ec2/v1alpha2/zz_transitgateway_terraformed.go b/apis/ec2/v1alpha2/zz_transitgateway_terraformed.go deleted file mode 100755 index b1f73f144..000000000 --- a/apis/ec2/v1alpha2/zz_transitgateway_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this TransitGateway -func (mg *TransitGateway) GetTerraformResourceType() string { - return "aws_ec2_transit_gateway" -} - -// GetConnectionDetailsMapping for this TransitGateway -func (tr *TransitGateway) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this TransitGateway -func (tr *TransitGateway) 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 TransitGateway -func (tr *TransitGateway) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this TransitGateway -func (tr *TransitGateway) 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 TransitGateway using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *TransitGateway) LateInitialize(attrs []byte) (bool, error) { - params := &TransitGatewayParameters{} - 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 *TransitGateway) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ec2/v1alpha2/zz_transitgatewayroute_terraformed.go b/apis/ec2/v1alpha2/zz_transitgatewayroute_terraformed.go deleted file mode 100755 index f90ed0c63..000000000 --- a/apis/ec2/v1alpha2/zz_transitgatewayroute_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this TransitGatewayRoute -func (mg *TransitGatewayRoute) GetTerraformResourceType() string { - return "aws_ec2_transit_gateway_route" -} - -// GetConnectionDetailsMapping for this TransitGatewayRoute -func (tr *TransitGatewayRoute) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this TransitGatewayRoute -func (tr *TransitGatewayRoute) 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 TransitGatewayRoute -func (tr *TransitGatewayRoute) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this TransitGatewayRoute -func (tr *TransitGatewayRoute) 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 TransitGatewayRoute using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *TransitGatewayRoute) LateInitialize(attrs []byte) (bool, error) { - params := &TransitGatewayRouteParameters{} - 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 *TransitGatewayRoute) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ec2/v1alpha2/zz_transitgatewayroutetable_terraformed.go b/apis/ec2/v1alpha2/zz_transitgatewayroutetable_terraformed.go deleted file mode 100755 index cde2c92c7..000000000 --- a/apis/ec2/v1alpha2/zz_transitgatewayroutetable_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this TransitGatewayRouteTable -func (mg *TransitGatewayRouteTable) GetTerraformResourceType() string { - return "aws_ec2_transit_gateway_route_table" -} - -// GetConnectionDetailsMapping for this TransitGatewayRouteTable -func (tr *TransitGatewayRouteTable) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this TransitGatewayRouteTable -func (tr *TransitGatewayRouteTable) 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 TransitGatewayRouteTable -func (tr *TransitGatewayRouteTable) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this TransitGatewayRouteTable -func (tr *TransitGatewayRouteTable) 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 TransitGatewayRouteTable using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *TransitGatewayRouteTable) LateInitialize(attrs []byte) (bool, error) { - params := &TransitGatewayRouteTableParameters{} - 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 *TransitGatewayRouteTable) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ec2/v1alpha2/zz_transitgatewayroutetableassociation_terraformed.go b/apis/ec2/v1alpha2/zz_transitgatewayroutetableassociation_terraformed.go deleted file mode 100755 index 18dd24d7f..000000000 --- a/apis/ec2/v1alpha2/zz_transitgatewayroutetableassociation_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this TransitGatewayRouteTableAssociation -func (mg *TransitGatewayRouteTableAssociation) GetTerraformResourceType() string { - return "aws_ec2_transit_gateway_route_table_association" -} - -// GetConnectionDetailsMapping for this TransitGatewayRouteTableAssociation -func (tr *TransitGatewayRouteTableAssociation) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this TransitGatewayRouteTableAssociation -func (tr *TransitGatewayRouteTableAssociation) 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 TransitGatewayRouteTableAssociation -func (tr *TransitGatewayRouteTableAssociation) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this TransitGatewayRouteTableAssociation -func (tr *TransitGatewayRouteTableAssociation) 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 TransitGatewayRouteTableAssociation using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *TransitGatewayRouteTableAssociation) LateInitialize(attrs []byte) (bool, error) { - params := &TransitGatewayRouteTableAssociationParameters{} - 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 *TransitGatewayRouteTableAssociation) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ec2/v1alpha2/zz_transitgatewayroutetablepropagation_terraformed.go b/apis/ec2/v1alpha2/zz_transitgatewayroutetablepropagation_terraformed.go deleted file mode 100755 index c815f1660..000000000 --- a/apis/ec2/v1alpha2/zz_transitgatewayroutetablepropagation_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this TransitGatewayRouteTablePropagation -func (mg *TransitGatewayRouteTablePropagation) GetTerraformResourceType() string { - return "aws_ec2_transit_gateway_route_table_propagation" -} - -// GetConnectionDetailsMapping for this TransitGatewayRouteTablePropagation -func (tr *TransitGatewayRouteTablePropagation) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this TransitGatewayRouteTablePropagation -func (tr *TransitGatewayRouteTablePropagation) 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 TransitGatewayRouteTablePropagation -func (tr *TransitGatewayRouteTablePropagation) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this TransitGatewayRouteTablePropagation -func (tr *TransitGatewayRouteTablePropagation) 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 TransitGatewayRouteTablePropagation using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *TransitGatewayRouteTablePropagation) LateInitialize(attrs []byte) (bool, error) { - params := &TransitGatewayRouteTablePropagationParameters{} - 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 *TransitGatewayRouteTablePropagation) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ec2/v1alpha2/zz_transitgatewayvpcattachment_terraformed.go b/apis/ec2/v1alpha2/zz_transitgatewayvpcattachment_terraformed.go deleted file mode 100755 index c3b3b3600..000000000 --- a/apis/ec2/v1alpha2/zz_transitgatewayvpcattachment_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this TransitGatewayVPCAttachment -func (mg *TransitGatewayVPCAttachment) GetTerraformResourceType() string { - return "aws_ec2_transit_gateway_vpc_attachment" -} - -// GetConnectionDetailsMapping for this TransitGatewayVPCAttachment -func (tr *TransitGatewayVPCAttachment) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this TransitGatewayVPCAttachment -func (tr *TransitGatewayVPCAttachment) 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 TransitGatewayVPCAttachment -func (tr *TransitGatewayVPCAttachment) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this TransitGatewayVPCAttachment -func (tr *TransitGatewayVPCAttachment) 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 TransitGatewayVPCAttachment using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *TransitGatewayVPCAttachment) LateInitialize(attrs []byte) (bool, error) { - params := &TransitGatewayVPCAttachmentParameters{} - 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 *TransitGatewayVPCAttachment) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ec2/v1alpha2/zz_transitgatewayvpcattachmentaccepter_terraformed.go b/apis/ec2/v1alpha2/zz_transitgatewayvpcattachmentaccepter_terraformed.go deleted file mode 100755 index 4728819a6..000000000 --- a/apis/ec2/v1alpha2/zz_transitgatewayvpcattachmentaccepter_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this TransitGatewayVPCAttachmentAccepter -func (mg *TransitGatewayVPCAttachmentAccepter) GetTerraformResourceType() string { - return "aws_ec2_transit_gateway_vpc_attachment_accepter" -} - -// GetConnectionDetailsMapping for this TransitGatewayVPCAttachmentAccepter -func (tr *TransitGatewayVPCAttachmentAccepter) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this TransitGatewayVPCAttachmentAccepter -func (tr *TransitGatewayVPCAttachmentAccepter) 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 TransitGatewayVPCAttachmentAccepter -func (tr *TransitGatewayVPCAttachmentAccepter) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this TransitGatewayVPCAttachmentAccepter -func (tr *TransitGatewayVPCAttachmentAccepter) 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 TransitGatewayVPCAttachmentAccepter using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *TransitGatewayVPCAttachmentAccepter) LateInitialize(attrs []byte) (bool, error) { - params := &TransitGatewayVPCAttachmentAccepterParameters{} - 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 *TransitGatewayVPCAttachmentAccepter) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ec2/v1alpha2/zz_vpc_terraformed.go b/apis/ec2/v1alpha2/zz_vpc_terraformed.go deleted file mode 100755 index 2654c753d..000000000 --- a/apis/ec2/v1alpha2/zz_vpc_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this VPC -func (mg *VPC) GetTerraformResourceType() string { - return "aws_vpc" -} - -// GetConnectionDetailsMapping for this VPC -func (tr *VPC) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this VPC -func (tr *VPC) 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 VPC -func (tr *VPC) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this VPC -func (tr *VPC) 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 VPC using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *VPC) LateInitialize(attrs []byte) (bool, error) { - params := &VPCParameters{} - 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 *VPC) GetTerraformSchemaVersion() int { - return 1 -} diff --git a/apis/ec2/v1alpha2/zz_vpcendpoint_terraformed.go b/apis/ec2/v1alpha2/zz_vpcendpoint_terraformed.go deleted file mode 100755 index fd239ffb7..000000000 --- a/apis/ec2/v1alpha2/zz_vpcendpoint_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this VPCEndpoint -func (mg *VPCEndpoint) GetTerraformResourceType() string { - return "aws_vpc_endpoint" -} - -// GetConnectionDetailsMapping for this VPCEndpoint -func (tr *VPCEndpoint) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this VPCEndpoint -func (tr *VPCEndpoint) 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 VPCEndpoint -func (tr *VPCEndpoint) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this VPCEndpoint -func (tr *VPCEndpoint) 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 VPCEndpoint using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *VPCEndpoint) LateInitialize(attrs []byte) (bool, error) { - params := &VPCEndpointParameters{} - 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 *VPCEndpoint) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ec2/v1alpha2/zz_vpcipv4cidrblockassociation_terraformed.go b/apis/ec2/v1alpha2/zz_vpcipv4cidrblockassociation_terraformed.go deleted file mode 100755 index 89b844fb9..000000000 --- a/apis/ec2/v1alpha2/zz_vpcipv4cidrblockassociation_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this VPCIPv4CidrBlockAssociation -func (mg *VPCIPv4CidrBlockAssociation) GetTerraformResourceType() string { - return "aws_vpc_ipv4_cidr_block_association" -} - -// GetConnectionDetailsMapping for this VPCIPv4CidrBlockAssociation -func (tr *VPCIPv4CidrBlockAssociation) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this VPCIPv4CidrBlockAssociation -func (tr *VPCIPv4CidrBlockAssociation) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this VPCIPv4CidrBlockAssociation -func (tr *VPCIPv4CidrBlockAssociation) 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 VPCIPv4CidrBlockAssociation using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *VPCIPv4CidrBlockAssociation) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ec2/v1alpha2/zz_vpcpeeringconnection_terraformed.go b/apis/ec2/v1alpha2/zz_vpcpeeringconnection_terraformed.go deleted file mode 100755 index 0910be46d..000000000 --- a/apis/ec2/v1alpha2/zz_vpcpeeringconnection_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this VPCPeeringConnection -func (mg *VPCPeeringConnection) GetTerraformResourceType() string { - return "aws_vpc_peering_connection" -} - -// GetConnectionDetailsMapping for this VPCPeeringConnection -func (tr *VPCPeeringConnection) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this VPCPeeringConnection -func (tr *VPCPeeringConnection) 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 VPCPeeringConnection -func (tr *VPCPeeringConnection) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this VPCPeeringConnection -func (tr *VPCPeeringConnection) 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 VPCPeeringConnection using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *VPCPeeringConnection) LateInitialize(attrs []byte) (bool, error) { - params := &VPCPeeringConnectionParameters{} - 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 *VPCPeeringConnection) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ecr/v1alpha2/zz_generated.managed.go b/apis/ecr/v1alpha2/zz_generated.managed.go index 7ca4b4926..4fc0970bd 100644 --- a/apis/ecr/v1alpha2/zz_generated.managed.go +++ b/apis/ecr/v1alpha2/zz_generated.managed.go @@ -42,6 +42,11 @@ func (mg *Repository) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Repository. +func (mg *Repository) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Repository. func (mg *Repository) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -70,6 +75,11 @@ func (mg *Repository) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Repository. +func (mg *Repository) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Repository. func (mg *Repository) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r diff --git a/apis/ecr/v1alpha2/zz_repository_terraformed.go b/apis/ecr/v1alpha2/zz_generated_terraformed.go similarity index 100% rename from apis/ecr/v1alpha2/zz_repository_terraformed.go rename to apis/ecr/v1alpha2/zz_generated_terraformed.go diff --git a/apis/ecrpublic/v1alpha2/zz_generated.managed.go b/apis/ecrpublic/v1alpha2/zz_generated.managed.go index 7ca4b4926..4fc0970bd 100644 --- a/apis/ecrpublic/v1alpha2/zz_generated.managed.go +++ b/apis/ecrpublic/v1alpha2/zz_generated.managed.go @@ -42,6 +42,11 @@ func (mg *Repository) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Repository. +func (mg *Repository) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Repository. func (mg *Repository) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -70,6 +75,11 @@ func (mg *Repository) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Repository. +func (mg *Repository) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Repository. func (mg *Repository) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r diff --git a/apis/ecrpublic/v1alpha2/zz_repository_terraformed.go b/apis/ecrpublic/v1alpha2/zz_generated_terraformed.go similarity index 100% rename from apis/ecrpublic/v1alpha2/zz_repository_terraformed.go rename to apis/ecrpublic/v1alpha2/zz_generated_terraformed.go diff --git a/apis/ecs/v1alpha2/zz_capacityprovider_terraformed.go b/apis/ecs/v1alpha2/zz_capacityprovider_terraformed.go deleted file mode 100755 index 3770de458..000000000 --- a/apis/ecs/v1alpha2/zz_capacityprovider_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this CapacityProvider -func (mg *CapacityProvider) GetTerraformResourceType() string { - return "aws_ecs_capacity_provider" -} - -// GetConnectionDetailsMapping for this CapacityProvider -func (tr *CapacityProvider) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this CapacityProvider -func (tr *CapacityProvider) 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 CapacityProvider -func (tr *CapacityProvider) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this CapacityProvider -func (tr *CapacityProvider) 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 CapacityProvider using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *CapacityProvider) LateInitialize(attrs []byte) (bool, error) { - params := &CapacityProviderParameters{} - 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 *CapacityProvider) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ecs/v1alpha2/zz_cluster_terraformed.go b/apis/ecs/v1alpha2/zz_cluster_terraformed.go deleted file mode 100755 index 8142f181b..000000000 --- a/apis/ecs/v1alpha2/zz_cluster_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Cluster -func (mg *Cluster) GetTerraformResourceType() string { - return "aws_ecs_cluster" -} - -// GetConnectionDetailsMapping for this Cluster -func (tr *Cluster) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this Cluster -func (tr *Cluster) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Cluster -func (tr *Cluster) 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 Cluster using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *Cluster) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ecs/v1alpha2/zz_generated.managed.go b/apis/ecs/v1alpha2/zz_generated.managed.go index 0356f4970..d26f32b11 100644 --- a/apis/ecs/v1alpha2/zz_generated.managed.go +++ b/apis/ecs/v1alpha2/zz_generated.managed.go @@ -42,6 +42,11 @@ func (mg *CapacityProvider) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this CapacityProvider. +func (mg *CapacityProvider) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this CapacityProvider. func (mg *CapacityProvider) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -70,6 +75,11 @@ func (mg *CapacityProvider) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this CapacityProvider. +func (mg *CapacityProvider) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this CapacityProvider. func (mg *CapacityProvider) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -98,6 +108,11 @@ func (mg *Cluster) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Cluster. +func (mg *Cluster) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Cluster. func (mg *Cluster) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -126,6 +141,11 @@ func (mg *Cluster) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Cluster. +func (mg *Cluster) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Cluster. func (mg *Cluster) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -154,6 +174,11 @@ func (mg *Service) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Service. +func (mg *Service) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Service. func (mg *Service) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -182,6 +207,11 @@ func (mg *Service) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Service. +func (mg *Service) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Service. func (mg *Service) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -210,6 +240,11 @@ func (mg *TaskDefinition) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this TaskDefinition. +func (mg *TaskDefinition) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this TaskDefinition. func (mg *TaskDefinition) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -238,6 +273,11 @@ func (mg *TaskDefinition) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this TaskDefinition. +func (mg *TaskDefinition) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this TaskDefinition. func (mg *TaskDefinition) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r diff --git a/apis/ecs/v1alpha2/zz_generated_terraformed.go b/apis/ecs/v1alpha2/zz_generated_terraformed.go new file mode 100755 index 000000000..4aa14e194 --- /dev/null +++ b/apis/ecs/v1alpha2/zz_generated_terraformed.go @@ -0,0 +1,322 @@ +/* +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 v1alpha2 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this CapacityProvider +func (mg *CapacityProvider) GetTerraformResourceType() string { + return "aws_ecs_capacity_provider" +} + +// GetConnectionDetailsMapping for this CapacityProvider +func (tr *CapacityProvider) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this CapacityProvider +func (tr *CapacityProvider) 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 CapacityProvider +func (tr *CapacityProvider) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this CapacityProvider +func (tr *CapacityProvider) 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 CapacityProvider using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *CapacityProvider) LateInitialize(attrs []byte) (bool, error) { + params := &CapacityProviderParameters{} + 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 *CapacityProvider) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this Cluster +func (mg *Cluster) GetTerraformResourceType() string { + return "aws_ecs_cluster" +} + +// GetConnectionDetailsMapping for this Cluster +func (tr *Cluster) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this Cluster +func (tr *Cluster) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Cluster +func (tr *Cluster) 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 Cluster using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *Cluster) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this Service +func (mg *Service) GetTerraformResourceType() string { + return "aws_ecs_service" +} + +// GetConnectionDetailsMapping for this Service +func (tr *Service) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this Service +func (tr *Service) 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 Service +func (tr *Service) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Service +func (tr *Service) 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 Service using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *Service) LateInitialize(attrs []byte) (bool, error) { + params := &ServiceParameters{} + 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 *Service) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this TaskDefinition +func (mg *TaskDefinition) GetTerraformResourceType() string { + return "aws_ecs_task_definition" +} + +// GetConnectionDetailsMapping for this TaskDefinition +func (tr *TaskDefinition) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this TaskDefinition +func (tr *TaskDefinition) 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 TaskDefinition +func (tr *TaskDefinition) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this TaskDefinition +func (tr *TaskDefinition) 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 TaskDefinition using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *TaskDefinition) LateInitialize(attrs []byte) (bool, error) { + params := &TaskDefinitionParameters{} + 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 *TaskDefinition) GetTerraformSchemaVersion() int { + return 1 +} diff --git a/apis/ecs/v1alpha2/zz_service_terraformed.go b/apis/ecs/v1alpha2/zz_service_terraformed.go deleted file mode 100755 index b101e7dce..000000000 --- a/apis/ecs/v1alpha2/zz_service_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Service -func (mg *Service) GetTerraformResourceType() string { - return "aws_ecs_service" -} - -// GetConnectionDetailsMapping for this Service -func (tr *Service) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this Service -func (tr *Service) 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 Service -func (tr *Service) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Service -func (tr *Service) 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 Service using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *Service) LateInitialize(attrs []byte) (bool, error) { - params := &ServiceParameters{} - 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 *Service) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/ecs/v1alpha2/zz_taskdefinition_terraformed.go b/apis/ecs/v1alpha2/zz_taskdefinition_terraformed.go deleted file mode 100755 index 8797b3c16..000000000 --- a/apis/ecs/v1alpha2/zz_taskdefinition_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this TaskDefinition -func (mg *TaskDefinition) GetTerraformResourceType() string { - return "aws_ecs_task_definition" -} - -// GetConnectionDetailsMapping for this TaskDefinition -func (tr *TaskDefinition) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this TaskDefinition -func (tr *TaskDefinition) 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 TaskDefinition -func (tr *TaskDefinition) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this TaskDefinition -func (tr *TaskDefinition) 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 TaskDefinition using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *TaskDefinition) LateInitialize(attrs []byte) (bool, error) { - params := &TaskDefinitionParameters{} - 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 *TaskDefinition) GetTerraformSchemaVersion() int { - return 1 -} diff --git a/apis/eks/v1alpha2/zz_addon_terraformed.go b/apis/eks/v1alpha2/zz_addon_terraformed.go deleted file mode 100755 index 1e95c9d42..000000000 --- a/apis/eks/v1alpha2/zz_addon_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Addon -func (mg *Addon) GetTerraformResourceType() string { - return "aws_eks_addon" -} - -// GetConnectionDetailsMapping for this Addon -func (tr *Addon) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this Addon -func (tr *Addon) 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 Addon -func (tr *Addon) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Addon -func (tr *Addon) 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 Addon using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *Addon) LateInitialize(attrs []byte) (bool, error) { - params := &AddonParameters{} - 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 *Addon) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/eks/v1alpha2/zz_cluster_terraformed.go b/apis/eks/v1alpha2/zz_cluster_terraformed.go deleted file mode 100755 index 9c6befd5c..000000000 --- a/apis/eks/v1alpha2/zz_cluster_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Cluster -func (mg *Cluster) GetTerraformResourceType() string { - return "aws_eks_cluster" -} - -// GetConnectionDetailsMapping for this Cluster -func (tr *Cluster) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this Cluster -func (tr *Cluster) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Cluster -func (tr *Cluster) 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 Cluster using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *Cluster) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/eks/v1alpha2/zz_fargateprofile_terraformed.go b/apis/eks/v1alpha2/zz_fargateprofile_terraformed.go deleted file mode 100755 index 4457b3c9f..000000000 --- a/apis/eks/v1alpha2/zz_fargateprofile_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this FargateProfile -func (mg *FargateProfile) GetTerraformResourceType() string { - return "aws_eks_fargate_profile" -} - -// GetConnectionDetailsMapping for this FargateProfile -func (tr *FargateProfile) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this FargateProfile -func (tr *FargateProfile) 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 FargateProfile -func (tr *FargateProfile) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this FargateProfile -func (tr *FargateProfile) 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 FargateProfile using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *FargateProfile) LateInitialize(attrs []byte) (bool, error) { - params := &FargateProfileParameters{} - 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 *FargateProfile) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/eks/v1alpha2/zz_generated.managed.go b/apis/eks/v1alpha2/zz_generated.managed.go index 5b2a9ac46..9115af2c4 100644 --- a/apis/eks/v1alpha2/zz_generated.managed.go +++ b/apis/eks/v1alpha2/zz_generated.managed.go @@ -42,6 +42,11 @@ func (mg *Addon) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Addon. +func (mg *Addon) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Addon. func (mg *Addon) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -70,6 +75,11 @@ func (mg *Addon) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Addon. +func (mg *Addon) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Addon. func (mg *Addon) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -98,6 +108,11 @@ func (mg *Cluster) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Cluster. +func (mg *Cluster) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Cluster. func (mg *Cluster) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -126,6 +141,11 @@ func (mg *Cluster) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Cluster. +func (mg *Cluster) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Cluster. func (mg *Cluster) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -154,6 +174,11 @@ func (mg *FargateProfile) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this FargateProfile. +func (mg *FargateProfile) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this FargateProfile. func (mg *FargateProfile) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -182,6 +207,11 @@ func (mg *FargateProfile) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this FargateProfile. +func (mg *FargateProfile) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this FargateProfile. func (mg *FargateProfile) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -210,6 +240,11 @@ func (mg *IdentityProviderConfig) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this IdentityProviderConfig. +func (mg *IdentityProviderConfig) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this IdentityProviderConfig. func (mg *IdentityProviderConfig) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -238,6 +273,11 @@ func (mg *IdentityProviderConfig) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this IdentityProviderConfig. +func (mg *IdentityProviderConfig) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this IdentityProviderConfig. func (mg *IdentityProviderConfig) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -266,6 +306,11 @@ func (mg *NodeGroup) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this NodeGroup. +func (mg *NodeGroup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this NodeGroup. func (mg *NodeGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -294,6 +339,11 @@ func (mg *NodeGroup) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this NodeGroup. +func (mg *NodeGroup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this NodeGroup. func (mg *NodeGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r diff --git a/apis/eks/v1alpha2/zz_generated_terraformed.go b/apis/eks/v1alpha2/zz_generated_terraformed.go new file mode 100755 index 000000000..754c081ad --- /dev/null +++ b/apis/eks/v1alpha2/zz_generated_terraformed.go @@ -0,0 +1,396 @@ +/* +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 v1alpha2 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this Addon +func (mg *Addon) GetTerraformResourceType() string { + return "aws_eks_addon" +} + +// GetConnectionDetailsMapping for this Addon +func (tr *Addon) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this Addon +func (tr *Addon) 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 Addon +func (tr *Addon) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Addon +func (tr *Addon) 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 Addon using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *Addon) LateInitialize(attrs []byte) (bool, error) { + params := &AddonParameters{} + 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 *Addon) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this Cluster +func (mg *Cluster) GetTerraformResourceType() string { + return "aws_eks_cluster" +} + +// GetConnectionDetailsMapping for this Cluster +func (tr *Cluster) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this Cluster +func (tr *Cluster) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Cluster +func (tr *Cluster) 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 Cluster using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *Cluster) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this FargateProfile +func (mg *FargateProfile) GetTerraformResourceType() string { + return "aws_eks_fargate_profile" +} + +// GetConnectionDetailsMapping for this FargateProfile +func (tr *FargateProfile) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this FargateProfile +func (tr *FargateProfile) 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 FargateProfile +func (tr *FargateProfile) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this FargateProfile +func (tr *FargateProfile) 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 FargateProfile using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *FargateProfile) LateInitialize(attrs []byte) (bool, error) { + params := &FargateProfileParameters{} + 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 *FargateProfile) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this IdentityProviderConfig +func (mg *IdentityProviderConfig) GetTerraformResourceType() string { + return "aws_eks_identity_provider_config" +} + +// GetConnectionDetailsMapping for this IdentityProviderConfig +func (tr *IdentityProviderConfig) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this IdentityProviderConfig +func (tr *IdentityProviderConfig) 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 IdentityProviderConfig +func (tr *IdentityProviderConfig) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this IdentityProviderConfig +func (tr *IdentityProviderConfig) 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 IdentityProviderConfig using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *IdentityProviderConfig) LateInitialize(attrs []byte) (bool, error) { + params := &IdentityProviderConfigParameters{} + 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 *IdentityProviderConfig) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this NodeGroup +func (mg *NodeGroup) GetTerraformResourceType() string { + return "aws_eks_node_group" +} + +// GetConnectionDetailsMapping for this NodeGroup +func (tr *NodeGroup) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this NodeGroup +func (tr *NodeGroup) 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 NodeGroup +func (tr *NodeGroup) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this NodeGroup +func (tr *NodeGroup) 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 NodeGroup using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *NodeGroup) LateInitialize(attrs []byte) (bool, error) { + params := &NodeGroupParameters{} + 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 *NodeGroup) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/eks/v1alpha2/zz_identityproviderconfig_terraformed.go b/apis/eks/v1alpha2/zz_identityproviderconfig_terraformed.go deleted file mode 100755 index 7c8e68c01..000000000 --- a/apis/eks/v1alpha2/zz_identityproviderconfig_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this IdentityProviderConfig -func (mg *IdentityProviderConfig) GetTerraformResourceType() string { - return "aws_eks_identity_provider_config" -} - -// GetConnectionDetailsMapping for this IdentityProviderConfig -func (tr *IdentityProviderConfig) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this IdentityProviderConfig -func (tr *IdentityProviderConfig) 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 IdentityProviderConfig -func (tr *IdentityProviderConfig) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this IdentityProviderConfig -func (tr *IdentityProviderConfig) 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 IdentityProviderConfig using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *IdentityProviderConfig) LateInitialize(attrs []byte) (bool, error) { - params := &IdentityProviderConfigParameters{} - 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 *IdentityProviderConfig) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/eks/v1alpha2/zz_nodegroup_terraformed.go b/apis/eks/v1alpha2/zz_nodegroup_terraformed.go deleted file mode 100755 index 482c90b43..000000000 --- a/apis/eks/v1alpha2/zz_nodegroup_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this NodeGroup -func (mg *NodeGroup) GetTerraformResourceType() string { - return "aws_eks_node_group" -} - -// GetConnectionDetailsMapping for this NodeGroup -func (tr *NodeGroup) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this NodeGroup -func (tr *NodeGroup) 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 NodeGroup -func (tr *NodeGroup) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this NodeGroup -func (tr *NodeGroup) 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 NodeGroup using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *NodeGroup) LateInitialize(attrs []byte) (bool, error) { - params := &NodeGroupParameters{} - 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 *NodeGroup) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/elasticache/v1alpha2/zz_cluster_terraformed.go b/apis/elasticache/v1alpha2/zz_cluster_terraformed.go deleted file mode 100755 index 7e40935ec..000000000 --- a/apis/elasticache/v1alpha2/zz_cluster_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Cluster -func (mg *Cluster) GetTerraformResourceType() string { - return "aws_elasticache_cluster" -} - -// GetConnectionDetailsMapping for this Cluster -func (tr *Cluster) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this Cluster -func (tr *Cluster) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Cluster -func (tr *Cluster) 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 Cluster using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *Cluster) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/elasticache/v1alpha2/zz_generated.managed.go b/apis/elasticache/v1alpha2/zz_generated.managed.go index 622b48d8f..669e9af6e 100644 --- a/apis/elasticache/v1alpha2/zz_generated.managed.go +++ b/apis/elasticache/v1alpha2/zz_generated.managed.go @@ -42,6 +42,11 @@ func (mg *Cluster) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Cluster. +func (mg *Cluster) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Cluster. func (mg *Cluster) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -70,6 +75,11 @@ func (mg *Cluster) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Cluster. +func (mg *Cluster) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Cluster. func (mg *Cluster) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -98,6 +108,11 @@ func (mg *ParameterGroup) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this ParameterGroup. +func (mg *ParameterGroup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this ParameterGroup. func (mg *ParameterGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -126,6 +141,11 @@ func (mg *ParameterGroup) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this ParameterGroup. +func (mg *ParameterGroup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this ParameterGroup. func (mg *ParameterGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -154,6 +174,11 @@ func (mg *ReplicationGroup) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this ReplicationGroup. +func (mg *ReplicationGroup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this ReplicationGroup. func (mg *ReplicationGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -182,6 +207,11 @@ func (mg *ReplicationGroup) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this ReplicationGroup. +func (mg *ReplicationGroup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this ReplicationGroup. func (mg *ReplicationGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -210,6 +240,11 @@ func (mg *User) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this User. +func (mg *User) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this User. func (mg *User) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -238,6 +273,11 @@ func (mg *User) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this User. +func (mg *User) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this User. func (mg *User) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -266,6 +306,11 @@ func (mg *UserGroup) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this UserGroup. +func (mg *UserGroup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this UserGroup. func (mg *UserGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -294,6 +339,11 @@ func (mg *UserGroup) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this UserGroup. +func (mg *UserGroup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this UserGroup. func (mg *UserGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r diff --git a/apis/elasticache/v1alpha2/zz_generated_terraformed.go b/apis/elasticache/v1alpha2/zz_generated_terraformed.go new file mode 100755 index 000000000..ca0fd02ab --- /dev/null +++ b/apis/elasticache/v1alpha2/zz_generated_terraformed.go @@ -0,0 +1,396 @@ +/* +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 v1alpha2 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this Cluster +func (mg *Cluster) GetTerraformResourceType() string { + return "aws_elasticache_cluster" +} + +// GetConnectionDetailsMapping for this Cluster +func (tr *Cluster) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this Cluster +func (tr *Cluster) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Cluster +func (tr *Cluster) 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 Cluster using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *Cluster) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this ParameterGroup +func (mg *ParameterGroup) GetTerraformResourceType() string { + return "aws_elasticache_parameter_group" +} + +// GetConnectionDetailsMapping for this ParameterGroup +func (tr *ParameterGroup) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this ParameterGroup +func (tr *ParameterGroup) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this ParameterGroup +func (tr *ParameterGroup) 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 ParameterGroup using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *ParameterGroup) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this ReplicationGroup +func (mg *ReplicationGroup) GetTerraformResourceType() string { + return "aws_elasticache_replication_group" +} + +// GetConnectionDetailsMapping for this ReplicationGroup +func (tr *ReplicationGroup) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"auth_token": "spec.forProvider.authTokenSecretRef"} +} + +// GetObservation of this ReplicationGroup +func (tr *ReplicationGroup) 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 ReplicationGroup +func (tr *ReplicationGroup) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this ReplicationGroup +func (tr *ReplicationGroup) 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 ReplicationGroup using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *ReplicationGroup) LateInitialize(attrs []byte) (bool, error) { + params := &ReplicationGroupParameters{} + 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 *ReplicationGroup) GetTerraformSchemaVersion() int { + return 1 +} + +// GetTerraformResourceType returns Terraform resource type for this User +func (mg *User) GetTerraformResourceType() string { + return "aws_elasticache_user" +} + +// GetConnectionDetailsMapping for this User +func (tr *User) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"passwords": "spec.forProvider.passwordsSecretRef"} +} + +// GetObservation of this User +func (tr *User) 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 User +func (tr *User) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this User +func (tr *User) 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 User using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *User) LateInitialize(attrs []byte) (bool, error) { + params := &UserParameters{} + 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 *User) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this UserGroup +func (mg *UserGroup) GetTerraformResourceType() string { + return "aws_elasticache_user_group" +} + +// GetConnectionDetailsMapping for this UserGroup +func (tr *UserGroup) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this UserGroup +func (tr *UserGroup) 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 UserGroup +func (tr *UserGroup) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this UserGroup +func (tr *UserGroup) 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 UserGroup using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *UserGroup) LateInitialize(attrs []byte) (bool, error) { + params := &UserGroupParameters{} + 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 *UserGroup) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/elasticache/v1alpha2/zz_parametergroup_terraformed.go b/apis/elasticache/v1alpha2/zz_parametergroup_terraformed.go deleted file mode 100755 index e04eebb24..000000000 --- a/apis/elasticache/v1alpha2/zz_parametergroup_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this ParameterGroup -func (mg *ParameterGroup) GetTerraformResourceType() string { - return "aws_elasticache_parameter_group" -} - -// GetConnectionDetailsMapping for this ParameterGroup -func (tr *ParameterGroup) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this ParameterGroup -func (tr *ParameterGroup) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this ParameterGroup -func (tr *ParameterGroup) 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 ParameterGroup using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *ParameterGroup) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/elasticache/v1alpha2/zz_replicationgroup_terraformed.go b/apis/elasticache/v1alpha2/zz_replicationgroup_terraformed.go deleted file mode 100755 index a60a8d33c..000000000 --- a/apis/elasticache/v1alpha2/zz_replicationgroup_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this ReplicationGroup -func (mg *ReplicationGroup) GetTerraformResourceType() string { - return "aws_elasticache_replication_group" -} - -// GetConnectionDetailsMapping for this ReplicationGroup -func (tr *ReplicationGroup) GetConnectionDetailsMapping() map[string]string { - return map[string]string{"auth_token": "spec.forProvider.authTokenSecretRef"} -} - -// GetObservation of this ReplicationGroup -func (tr *ReplicationGroup) 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 ReplicationGroup -func (tr *ReplicationGroup) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this ReplicationGroup -func (tr *ReplicationGroup) 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 ReplicationGroup using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *ReplicationGroup) LateInitialize(attrs []byte) (bool, error) { - params := &ReplicationGroupParameters{} - 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 *ReplicationGroup) GetTerraformSchemaVersion() int { - return 1 -} diff --git a/apis/elasticache/v1alpha2/zz_user_terraformed.go b/apis/elasticache/v1alpha2/zz_user_terraformed.go deleted file mode 100755 index 4dc6c02d1..000000000 --- a/apis/elasticache/v1alpha2/zz_user_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this User -func (mg *User) GetTerraformResourceType() string { - return "aws_elasticache_user" -} - -// GetConnectionDetailsMapping for this User -func (tr *User) GetConnectionDetailsMapping() map[string]string { - return map[string]string{"passwords": "spec.forProvider.passwordsSecretRef"} -} - -// GetObservation of this User -func (tr *User) 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 User -func (tr *User) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this User -func (tr *User) 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 User using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *User) LateInitialize(attrs []byte) (bool, error) { - params := &UserParameters{} - 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 *User) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/elasticache/v1alpha2/zz_usergroup_terraformed.go b/apis/elasticache/v1alpha2/zz_usergroup_terraformed.go deleted file mode 100755 index 495a866a6..000000000 --- a/apis/elasticache/v1alpha2/zz_usergroup_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this UserGroup -func (mg *UserGroup) GetTerraformResourceType() string { - return "aws_elasticache_user_group" -} - -// GetConnectionDetailsMapping for this UserGroup -func (tr *UserGroup) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this UserGroup -func (tr *UserGroup) 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 UserGroup -func (tr *UserGroup) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this UserGroup -func (tr *UserGroup) 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 UserGroup using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *UserGroup) LateInitialize(attrs []byte) (bool, error) { - params := &UserGroupParameters{} - 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 *UserGroup) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/elbv2/v1alpha2/zz_generated.managed.go b/apis/elbv2/v1alpha2/zz_generated.managed.go index fc0faa4ee..7e2648ebf 100644 --- a/apis/elbv2/v1alpha2/zz_generated.managed.go +++ b/apis/elbv2/v1alpha2/zz_generated.managed.go @@ -42,6 +42,11 @@ func (mg *LB) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this LB. +func (mg *LB) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this LB. func (mg *LB) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -70,6 +75,11 @@ func (mg *LB) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this LB. +func (mg *LB) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this LB. func (mg *LB) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -98,6 +108,11 @@ func (mg *LBListener) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this LBListener. +func (mg *LBListener) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this LBListener. func (mg *LBListener) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -126,6 +141,11 @@ func (mg *LBListener) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this LBListener. +func (mg *LBListener) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this LBListener. func (mg *LBListener) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -154,6 +174,11 @@ func (mg *LBTargetGroup) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this LBTargetGroup. +func (mg *LBTargetGroup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this LBTargetGroup. func (mg *LBTargetGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -182,6 +207,11 @@ func (mg *LBTargetGroup) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this LBTargetGroup. +func (mg *LBTargetGroup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this LBTargetGroup. func (mg *LBTargetGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -210,6 +240,11 @@ func (mg *LBTargetGroupAttachment) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this LBTargetGroupAttachment. +func (mg *LBTargetGroupAttachment) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this LBTargetGroupAttachment. func (mg *LBTargetGroupAttachment) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -238,6 +273,11 @@ func (mg *LBTargetGroupAttachment) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this LBTargetGroupAttachment. +func (mg *LBTargetGroupAttachment) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this LBTargetGroupAttachment. func (mg *LBTargetGroupAttachment) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r diff --git a/apis/elbv2/v1alpha2/zz_generated_terraformed.go b/apis/elbv2/v1alpha2/zz_generated_terraformed.go new file mode 100755 index 000000000..f602f91f4 --- /dev/null +++ b/apis/elbv2/v1alpha2/zz_generated_terraformed.go @@ -0,0 +1,322 @@ +/* +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 v1alpha2 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this LB +func (mg *LB) GetTerraformResourceType() string { + return "aws_lb" +} + +// GetConnectionDetailsMapping for this LB +func (tr *LB) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this LB +func (tr *LB) GetObservation() (map[string]interface{}, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this LB +func (tr *LB) SetObservation(obs map[string]interface{}) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this LB +func (tr *LB) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this LB +func (tr *LB) GetParameters() (map[string]interface{}, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this LB +func (tr *LB) SetParameters(params map[string]interface{}) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this LB using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *LB) LateInitialize(attrs []byte) (bool, error) { + params := &LBParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *LB) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this LBListener +func (mg *LBListener) GetTerraformResourceType() string { + return "aws_lb_listener" +} + +// 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 LBListener +func (tr *LBListener) 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 LBListener +func (tr *LBListener) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this LBListener +func (tr *LBListener) 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 LBListener using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *LBListener) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this LBTargetGroup +func (mg *LBTargetGroup) GetTerraformResourceType() string { + return "aws_lb_target_group" +} + +// GetConnectionDetailsMapping for this LBTargetGroup +func (tr *LBTargetGroup) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this LBTargetGroup +func (tr *LBTargetGroup) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this LBTargetGroup +func (tr *LBTargetGroup) 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 LBTargetGroup using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *LBTargetGroup) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this LBTargetGroupAttachment +func (mg *LBTargetGroupAttachment) GetTerraformResourceType() string { + return "aws_lb_target_group_attachment" +} + +// GetConnectionDetailsMapping for this LBTargetGroupAttachment +func (tr *LBTargetGroupAttachment) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this LBTargetGroupAttachment +func (tr *LBTargetGroupAttachment) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this LBTargetGroupAttachment +func (tr *LBTargetGroupAttachment) 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 LBTargetGroupAttachment using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *LBTargetGroupAttachment) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/elbv2/v1alpha2/zz_lb_terraformed.go b/apis/elbv2/v1alpha2/zz_lb_terraformed.go deleted file mode 100755 index 7d66fa57b..000000000 --- a/apis/elbv2/v1alpha2/zz_lb_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this LB -func (mg *LB) GetTerraformResourceType() string { - return "aws_lb" -} - -// GetConnectionDetailsMapping for this LB -func (tr *LB) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this LB -func (tr *LB) GetObservation() (map[string]interface{}, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this LB -func (tr *LB) SetObservation(obs map[string]interface{}) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this LB -func (tr *LB) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this LB -func (tr *LB) GetParameters() (map[string]interface{}, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this LB -func (tr *LB) SetParameters(params map[string]interface{}) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this LB using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *LB) LateInitialize(attrs []byte) (bool, error) { - params := &LBParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *LB) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/elbv2/v1alpha2/zz_lblistener_terraformed.go b/apis/elbv2/v1alpha2/zz_lblistener_terraformed.go deleted file mode 100755 index 8c15187ff..000000000 --- a/apis/elbv2/v1alpha2/zz_lblistener_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this LBListener -func (mg *LBListener) GetTerraformResourceType() string { - return "aws_lb_listener" -} - -// 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 LBListener -func (tr *LBListener) 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 LBListener -func (tr *LBListener) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this LBListener -func (tr *LBListener) 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 LBListener using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *LBListener) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/elbv2/v1alpha2/zz_lbtargetgroup_terraformed.go b/apis/elbv2/v1alpha2/zz_lbtargetgroup_terraformed.go deleted file mode 100755 index 415f4acdc..000000000 --- a/apis/elbv2/v1alpha2/zz_lbtargetgroup_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this LBTargetGroup -func (mg *LBTargetGroup) GetTerraformResourceType() string { - return "aws_lb_target_group" -} - -// GetConnectionDetailsMapping for this LBTargetGroup -func (tr *LBTargetGroup) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this LBTargetGroup -func (tr *LBTargetGroup) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this LBTargetGroup -func (tr *LBTargetGroup) 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 LBTargetGroup using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *LBTargetGroup) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/elbv2/v1alpha2/zz_lbtargetgroupattachment_terraformed.go b/apis/elbv2/v1alpha2/zz_lbtargetgroupattachment_terraformed.go deleted file mode 100755 index 181e370c8..000000000 --- a/apis/elbv2/v1alpha2/zz_lbtargetgroupattachment_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this LBTargetGroupAttachment -func (mg *LBTargetGroupAttachment) GetTerraformResourceType() string { - return "aws_lb_target_group_attachment" -} - -// GetConnectionDetailsMapping for this LBTargetGroupAttachment -func (tr *LBTargetGroupAttachment) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this LBTargetGroupAttachment -func (tr *LBTargetGroupAttachment) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this LBTargetGroupAttachment -func (tr *LBTargetGroupAttachment) 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 LBTargetGroupAttachment using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *LBTargetGroupAttachment) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/iam/v1alpha2/zz_accesskey_terraformed.go b/apis/iam/v1alpha2/zz_accesskey_terraformed.go deleted file mode 100755 index e169db404..000000000 --- a/apis/iam/v1alpha2/zz_accesskey_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this AccessKey -func (mg *AccessKey) GetTerraformResourceType() string { - return "aws_iam_access_key" -} - -// GetConnectionDetailsMapping for this AccessKey -func (tr *AccessKey) GetConnectionDetailsMapping() map[string]string { - return map[string]string{"secret": "status.atProvider.secret", "ses_smtp_password_v4": "status.atProvider.sesSmtpPasswordV4"} -} - -// GetObservation of this AccessKey -func (tr *AccessKey) 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 AccessKey -func (tr *AccessKey) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this AccessKey -func (tr *AccessKey) 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 AccessKey using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *AccessKey) LateInitialize(attrs []byte) (bool, error) { - params := &AccessKeyParameters{} - 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 *AccessKey) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/iam/v1alpha2/zz_generated.managed.go b/apis/iam/v1alpha2/zz_generated.managed.go index 2e5b8cc2f..17e95ea4c 100644 --- a/apis/iam/v1alpha2/zz_generated.managed.go +++ b/apis/iam/v1alpha2/zz_generated.managed.go @@ -42,6 +42,11 @@ func (mg *AccessKey) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this AccessKey. +func (mg *AccessKey) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this AccessKey. func (mg *AccessKey) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -70,6 +75,11 @@ func (mg *AccessKey) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this AccessKey. +func (mg *AccessKey) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this AccessKey. func (mg *AccessKey) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -98,6 +108,11 @@ func (mg *Group) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Group. +func (mg *Group) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Group. func (mg *Group) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -126,6 +141,11 @@ func (mg *Group) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Group. +func (mg *Group) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Group. func (mg *Group) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -154,6 +174,11 @@ func (mg *GroupPolicyAttachment) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this GroupPolicyAttachment. +func (mg *GroupPolicyAttachment) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this GroupPolicyAttachment. func (mg *GroupPolicyAttachment) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -182,6 +207,11 @@ func (mg *GroupPolicyAttachment) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this GroupPolicyAttachment. +func (mg *GroupPolicyAttachment) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this GroupPolicyAttachment. func (mg *GroupPolicyAttachment) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -210,6 +240,11 @@ func (mg *InstanceProfile) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this InstanceProfile. +func (mg *InstanceProfile) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this InstanceProfile. func (mg *InstanceProfile) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -238,6 +273,11 @@ func (mg *InstanceProfile) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this InstanceProfile. +func (mg *InstanceProfile) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this InstanceProfile. func (mg *InstanceProfile) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -266,6 +306,11 @@ func (mg *Policy) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Policy. +func (mg *Policy) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Policy. func (mg *Policy) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -294,6 +339,11 @@ func (mg *Policy) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Policy. +func (mg *Policy) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Policy. func (mg *Policy) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -322,6 +372,11 @@ func (mg *Role) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Role. +func (mg *Role) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Role. func (mg *Role) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -350,6 +405,11 @@ func (mg *Role) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Role. +func (mg *Role) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Role. func (mg *Role) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -378,6 +438,11 @@ func (mg *RolePolicyAttachment) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this RolePolicyAttachment. +func (mg *RolePolicyAttachment) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this RolePolicyAttachment. func (mg *RolePolicyAttachment) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -406,6 +471,11 @@ func (mg *RolePolicyAttachment) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this RolePolicyAttachment. +func (mg *RolePolicyAttachment) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this RolePolicyAttachment. func (mg *RolePolicyAttachment) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -434,6 +504,11 @@ func (mg *User) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this User. +func (mg *User) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this User. func (mg *User) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -462,6 +537,11 @@ func (mg *User) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this User. +func (mg *User) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this User. func (mg *User) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -490,6 +570,11 @@ func (mg *UserGroupMembership) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this UserGroupMembership. +func (mg *UserGroupMembership) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this UserGroupMembership. func (mg *UserGroupMembership) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -518,6 +603,11 @@ func (mg *UserGroupMembership) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this UserGroupMembership. +func (mg *UserGroupMembership) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this UserGroupMembership. func (mg *UserGroupMembership) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -546,6 +636,11 @@ func (mg *UserPolicyAttachment) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this UserPolicyAttachment. +func (mg *UserPolicyAttachment) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this UserPolicyAttachment. func (mg *UserPolicyAttachment) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -574,6 +669,11 @@ func (mg *UserPolicyAttachment) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this UserPolicyAttachment. +func (mg *UserPolicyAttachment) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this UserPolicyAttachment. func (mg *UserPolicyAttachment) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r diff --git a/apis/iam/v1alpha2/zz_generated_terraformed.go b/apis/iam/v1alpha2/zz_generated_terraformed.go new file mode 100755 index 000000000..231e27a8b --- /dev/null +++ b/apis/iam/v1alpha2/zz_generated_terraformed.go @@ -0,0 +1,766 @@ +/* +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 v1alpha2 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this AccessKey +func (mg *AccessKey) GetTerraformResourceType() string { + return "aws_iam_access_key" +} + +// GetConnectionDetailsMapping for this AccessKey +func (tr *AccessKey) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"secret": "status.atProvider.secret", "ses_smtp_password_v4": "status.atProvider.sesSmtpPasswordV4"} +} + +// GetObservation of this AccessKey +func (tr *AccessKey) 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 AccessKey +func (tr *AccessKey) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this AccessKey +func (tr *AccessKey) 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 AccessKey using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *AccessKey) LateInitialize(attrs []byte) (bool, error) { + params := &AccessKeyParameters{} + 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 *AccessKey) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this Group +func (mg *Group) GetTerraformResourceType() string { + return "aws_iam_group" +} + +// GetConnectionDetailsMapping for this Group +func (tr *Group) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this Group +func (tr *Group) 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 Group +func (tr *Group) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Group +func (tr *Group) 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 Group using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *Group) LateInitialize(attrs []byte) (bool, error) { + params := &GroupParameters{} + 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 *Group) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this GroupPolicyAttachment +func (mg *GroupPolicyAttachment) GetTerraformResourceType() string { + return "aws_iam_group_policy_attachment" +} + +// GetConnectionDetailsMapping for this GroupPolicyAttachment +func (tr *GroupPolicyAttachment) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this GroupPolicyAttachment +func (tr *GroupPolicyAttachment) 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 GroupPolicyAttachment +func (tr *GroupPolicyAttachment) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this GroupPolicyAttachment +func (tr *GroupPolicyAttachment) 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 GroupPolicyAttachment using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *GroupPolicyAttachment) LateInitialize(attrs []byte) (bool, error) { + params := &GroupPolicyAttachmentParameters{} + 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 *GroupPolicyAttachment) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this InstanceProfile +func (mg *InstanceProfile) GetTerraformResourceType() string { + return "aws_iam_instance_profile" +} + +// GetConnectionDetailsMapping for this InstanceProfile +func (tr *InstanceProfile) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this InstanceProfile +func (tr *InstanceProfile) 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 InstanceProfile +func (tr *InstanceProfile) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this InstanceProfile +func (tr *InstanceProfile) 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 InstanceProfile using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *InstanceProfile) LateInitialize(attrs []byte) (bool, error) { + params := &InstanceProfileParameters{} + 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 *InstanceProfile) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this Policy +func (mg *Policy) GetTerraformResourceType() string { + return "aws_iam_policy" +} + +// GetConnectionDetailsMapping for this Policy +func (tr *Policy) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this Policy +func (tr *Policy) 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 Policy +func (tr *Policy) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Policy +func (tr *Policy) 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 Policy using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *Policy) LateInitialize(attrs []byte) (bool, error) { + params := &PolicyParameters{} + 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 *Policy) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this Role +func (mg *Role) GetTerraformResourceType() string { + return "aws_iam_role" +} + +// GetConnectionDetailsMapping for this Role +func (tr *Role) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this Role +func (tr *Role) 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 Role +func (tr *Role) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Role +func (tr *Role) 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 Role using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *Role) LateInitialize(attrs []byte) (bool, error) { + params := &RoleParameters{} + 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 *Role) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this RolePolicyAttachment +func (mg *RolePolicyAttachment) GetTerraformResourceType() string { + return "aws_iam_role_policy_attachment" +} + +// GetConnectionDetailsMapping for this RolePolicyAttachment +func (tr *RolePolicyAttachment) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this RolePolicyAttachment +func (tr *RolePolicyAttachment) 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 RolePolicyAttachment +func (tr *RolePolicyAttachment) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this RolePolicyAttachment +func (tr *RolePolicyAttachment) 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 RolePolicyAttachment using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *RolePolicyAttachment) LateInitialize(attrs []byte) (bool, error) { + params := &RolePolicyAttachmentParameters{} + 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 *RolePolicyAttachment) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this User +func (mg *User) GetTerraformResourceType() string { + return "aws_iam_user" +} + +// GetConnectionDetailsMapping for this User +func (tr *User) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this User +func (tr *User) 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 User +func (tr *User) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this User +func (tr *User) 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 User using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *User) LateInitialize(attrs []byte) (bool, error) { + params := &UserParameters{} + 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 *User) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this UserGroupMembership +func (mg *UserGroupMembership) GetTerraformResourceType() string { + return "aws_iam_user_group_membership" +} + +// GetConnectionDetailsMapping for this UserGroupMembership +func (tr *UserGroupMembership) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this UserGroupMembership +func (tr *UserGroupMembership) 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 UserGroupMembership +func (tr *UserGroupMembership) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this UserGroupMembership +func (tr *UserGroupMembership) 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 UserGroupMembership using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *UserGroupMembership) LateInitialize(attrs []byte) (bool, error) { + params := &UserGroupMembershipParameters{} + 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 *UserGroupMembership) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this UserPolicyAttachment +func (mg *UserPolicyAttachment) GetTerraformResourceType() string { + return "aws_iam_user_policy_attachment" +} + +// GetConnectionDetailsMapping for this UserPolicyAttachment +func (tr *UserPolicyAttachment) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this UserPolicyAttachment +func (tr *UserPolicyAttachment) 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 UserPolicyAttachment +func (tr *UserPolicyAttachment) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this UserPolicyAttachment +func (tr *UserPolicyAttachment) 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 UserPolicyAttachment using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *UserPolicyAttachment) LateInitialize(attrs []byte) (bool, error) { + params := &UserPolicyAttachmentParameters{} + 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 *UserPolicyAttachment) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/iam/v1alpha2/zz_group_terraformed.go b/apis/iam/v1alpha2/zz_group_terraformed.go deleted file mode 100755 index d006a7680..000000000 --- a/apis/iam/v1alpha2/zz_group_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Group -func (mg *Group) GetTerraformResourceType() string { - return "aws_iam_group" -} - -// GetConnectionDetailsMapping for this Group -func (tr *Group) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this Group -func (tr *Group) 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 Group -func (tr *Group) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Group -func (tr *Group) 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 Group using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *Group) LateInitialize(attrs []byte) (bool, error) { - params := &GroupParameters{} - 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 *Group) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/iam/v1alpha2/zz_grouppolicyattachment_terraformed.go b/apis/iam/v1alpha2/zz_grouppolicyattachment_terraformed.go deleted file mode 100755 index 5eb329751..000000000 --- a/apis/iam/v1alpha2/zz_grouppolicyattachment_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this GroupPolicyAttachment -func (mg *GroupPolicyAttachment) GetTerraformResourceType() string { - return "aws_iam_group_policy_attachment" -} - -// GetConnectionDetailsMapping for this GroupPolicyAttachment -func (tr *GroupPolicyAttachment) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this GroupPolicyAttachment -func (tr *GroupPolicyAttachment) 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 GroupPolicyAttachment -func (tr *GroupPolicyAttachment) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this GroupPolicyAttachment -func (tr *GroupPolicyAttachment) 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 GroupPolicyAttachment using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *GroupPolicyAttachment) LateInitialize(attrs []byte) (bool, error) { - params := &GroupPolicyAttachmentParameters{} - 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 *GroupPolicyAttachment) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/iam/v1alpha2/zz_instanceprofile_terraformed.go b/apis/iam/v1alpha2/zz_instanceprofile_terraformed.go deleted file mode 100755 index b14190e5f..000000000 --- a/apis/iam/v1alpha2/zz_instanceprofile_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this InstanceProfile -func (mg *InstanceProfile) GetTerraformResourceType() string { - return "aws_iam_instance_profile" -} - -// GetConnectionDetailsMapping for this InstanceProfile -func (tr *InstanceProfile) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this InstanceProfile -func (tr *InstanceProfile) 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 InstanceProfile -func (tr *InstanceProfile) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this InstanceProfile -func (tr *InstanceProfile) 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 InstanceProfile using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *InstanceProfile) LateInitialize(attrs []byte) (bool, error) { - params := &InstanceProfileParameters{} - 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 *InstanceProfile) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/iam/v1alpha2/zz_policy_terraformed.go b/apis/iam/v1alpha2/zz_policy_terraformed.go deleted file mode 100755 index c89973ca03..000000000 --- a/apis/iam/v1alpha2/zz_policy_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Policy -func (mg *Policy) GetTerraformResourceType() string { - return "aws_iam_policy" -} - -// GetConnectionDetailsMapping for this Policy -func (tr *Policy) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this Policy -func (tr *Policy) 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 Policy -func (tr *Policy) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Policy -func (tr *Policy) 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 Policy using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *Policy) LateInitialize(attrs []byte) (bool, error) { - params := &PolicyParameters{} - 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 *Policy) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/iam/v1alpha2/zz_role_terraformed.go b/apis/iam/v1alpha2/zz_role_terraformed.go deleted file mode 100755 index 0ce5f0633..000000000 --- a/apis/iam/v1alpha2/zz_role_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Role -func (mg *Role) GetTerraformResourceType() string { - return "aws_iam_role" -} - -// GetConnectionDetailsMapping for this Role -func (tr *Role) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this Role -func (tr *Role) 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 Role -func (tr *Role) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Role -func (tr *Role) 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 Role using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *Role) LateInitialize(attrs []byte) (bool, error) { - params := &RoleParameters{} - 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 *Role) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/iam/v1alpha2/zz_rolepolicyattachment_terraformed.go b/apis/iam/v1alpha2/zz_rolepolicyattachment_terraformed.go deleted file mode 100755 index 342229e1e..000000000 --- a/apis/iam/v1alpha2/zz_rolepolicyattachment_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this RolePolicyAttachment -func (mg *RolePolicyAttachment) GetTerraformResourceType() string { - return "aws_iam_role_policy_attachment" -} - -// GetConnectionDetailsMapping for this RolePolicyAttachment -func (tr *RolePolicyAttachment) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this RolePolicyAttachment -func (tr *RolePolicyAttachment) 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 RolePolicyAttachment -func (tr *RolePolicyAttachment) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this RolePolicyAttachment -func (tr *RolePolicyAttachment) 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 RolePolicyAttachment using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *RolePolicyAttachment) LateInitialize(attrs []byte) (bool, error) { - params := &RolePolicyAttachmentParameters{} - 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 *RolePolicyAttachment) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/iam/v1alpha2/zz_user_terraformed.go b/apis/iam/v1alpha2/zz_user_terraformed.go deleted file mode 100755 index f20875575..000000000 --- a/apis/iam/v1alpha2/zz_user_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this User -func (mg *User) GetTerraformResourceType() string { - return "aws_iam_user" -} - -// GetConnectionDetailsMapping for this User -func (tr *User) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this User -func (tr *User) 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 User -func (tr *User) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this User -func (tr *User) 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 User using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *User) LateInitialize(attrs []byte) (bool, error) { - params := &UserParameters{} - 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 *User) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/iam/v1alpha2/zz_usergroupmembership_terraformed.go b/apis/iam/v1alpha2/zz_usergroupmembership_terraformed.go deleted file mode 100755 index 2e42cc9f8..000000000 --- a/apis/iam/v1alpha2/zz_usergroupmembership_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this UserGroupMembership -func (mg *UserGroupMembership) GetTerraformResourceType() string { - return "aws_iam_user_group_membership" -} - -// GetConnectionDetailsMapping for this UserGroupMembership -func (tr *UserGroupMembership) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this UserGroupMembership -func (tr *UserGroupMembership) 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 UserGroupMembership -func (tr *UserGroupMembership) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this UserGroupMembership -func (tr *UserGroupMembership) 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 UserGroupMembership using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *UserGroupMembership) LateInitialize(attrs []byte) (bool, error) { - params := &UserGroupMembershipParameters{} - 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 *UserGroupMembership) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/iam/v1alpha2/zz_userpolicyattachment_terraformed.go b/apis/iam/v1alpha2/zz_userpolicyattachment_terraformed.go deleted file mode 100755 index ad2e8a204..000000000 --- a/apis/iam/v1alpha2/zz_userpolicyattachment_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this UserPolicyAttachment -func (mg *UserPolicyAttachment) GetTerraformResourceType() string { - return "aws_iam_user_policy_attachment" -} - -// GetConnectionDetailsMapping for this UserPolicyAttachment -func (tr *UserPolicyAttachment) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this UserPolicyAttachment -func (tr *UserPolicyAttachment) 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 UserPolicyAttachment -func (tr *UserPolicyAttachment) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this UserPolicyAttachment -func (tr *UserPolicyAttachment) 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 UserPolicyAttachment using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *UserPolicyAttachment) LateInitialize(attrs []byte) (bool, error) { - params := &UserPolicyAttachmentParameters{} - 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 *UserPolicyAttachment) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/kms/v1alpha2/zz_generated.managed.go b/apis/kms/v1alpha2/zz_generated.managed.go index ea3554df5..562222cf3 100644 --- a/apis/kms/v1alpha2/zz_generated.managed.go +++ b/apis/kms/v1alpha2/zz_generated.managed.go @@ -42,6 +42,11 @@ func (mg *Key) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Key. +func (mg *Key) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Key. func (mg *Key) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -70,6 +75,11 @@ func (mg *Key) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Key. +func (mg *Key) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Key. func (mg *Key) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r diff --git a/apis/kms/v1alpha2/zz_key_terraformed.go b/apis/kms/v1alpha2/zz_generated_terraformed.go similarity index 100% rename from apis/kms/v1alpha2/zz_key_terraformed.go rename to apis/kms/v1alpha2/zz_generated_terraformed.go diff --git a/apis/neptune/v1alpha2/zz_cluster_terraformed.go b/apis/neptune/v1alpha2/zz_cluster_terraformed.go deleted file mode 100755 index bfc985a01..000000000 --- a/apis/neptune/v1alpha2/zz_cluster_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Cluster -func (mg *Cluster) GetTerraformResourceType() string { - return "aws_neptune_cluster" -} - -// GetConnectionDetailsMapping for this Cluster -func (tr *Cluster) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this Cluster -func (tr *Cluster) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Cluster -func (tr *Cluster) 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 Cluster using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *Cluster) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/neptune/v1alpha2/zz_clusterendpoint_terraformed.go b/apis/neptune/v1alpha2/zz_clusterendpoint_terraformed.go deleted file mode 100755 index d39b5893c..000000000 --- a/apis/neptune/v1alpha2/zz_clusterendpoint_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this ClusterEndpoint -func (mg *ClusterEndpoint) GetTerraformResourceType() string { - return "aws_neptune_cluster_endpoint" -} - -// GetConnectionDetailsMapping for this ClusterEndpoint -func (tr *ClusterEndpoint) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this ClusterEndpoint -func (tr *ClusterEndpoint) 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 ClusterEndpoint -func (tr *ClusterEndpoint) 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 ClusterEndpoint -func (tr *ClusterEndpoint) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this ClusterEndpoint -func (tr *ClusterEndpoint) 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 ClusterEndpoint -func (tr *ClusterEndpoint) 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 ClusterEndpoint using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *ClusterEndpoint) LateInitialize(attrs []byte) (bool, error) { - params := &ClusterEndpointParameters{} - 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 *ClusterEndpoint) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/neptune/v1alpha2/zz_clusterinstance_terraformed.go b/apis/neptune/v1alpha2/zz_clusterinstance_terraformed.go deleted file mode 100755 index 21d8c30bf..000000000 --- a/apis/neptune/v1alpha2/zz_clusterinstance_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this ClusterInstance -func (mg *ClusterInstance) GetTerraformResourceType() string { - return "aws_neptune_cluster_instance" -} - -// GetConnectionDetailsMapping for this ClusterInstance -func (tr *ClusterInstance) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this ClusterInstance -func (tr *ClusterInstance) 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 ClusterInstance -func (tr *ClusterInstance) 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 ClusterInstance -func (tr *ClusterInstance) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this ClusterInstance -func (tr *ClusterInstance) 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 ClusterInstance -func (tr *ClusterInstance) 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 ClusterInstance using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *ClusterInstance) LateInitialize(attrs []byte) (bool, error) { - params := &ClusterInstanceParameters{} - 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 *ClusterInstance) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/neptune/v1alpha2/zz_clusterparametergroup_terraformed.go b/apis/neptune/v1alpha2/zz_clusterparametergroup_terraformed.go deleted file mode 100755 index 6e2c2967c..000000000 --- a/apis/neptune/v1alpha2/zz_clusterparametergroup_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this ClusterParameterGroup -func (mg *ClusterParameterGroup) GetTerraformResourceType() string { - return "aws_neptune_cluster_parameter_group" -} - -// GetConnectionDetailsMapping for this ClusterParameterGroup -func (tr *ClusterParameterGroup) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this ClusterParameterGroup -func (tr *ClusterParameterGroup) 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 ClusterParameterGroup -func (tr *ClusterParameterGroup) 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 ClusterParameterGroup -func (tr *ClusterParameterGroup) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this ClusterParameterGroup -func (tr *ClusterParameterGroup) 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 ClusterParameterGroup -func (tr *ClusterParameterGroup) 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 ClusterParameterGroup using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *ClusterParameterGroup) LateInitialize(attrs []byte) (bool, error) { - params := &ClusterParameterGroupParameters{} - 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 *ClusterParameterGroup) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/neptune/v1alpha2/zz_clustersnapshot_terraformed.go b/apis/neptune/v1alpha2/zz_clustersnapshot_terraformed.go deleted file mode 100755 index 777b4aec6..000000000 --- a/apis/neptune/v1alpha2/zz_clustersnapshot_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this ClusterSnapshot -func (mg *ClusterSnapshot) GetTerraformResourceType() string { - return "aws_neptune_cluster_snapshot" -} - -// GetConnectionDetailsMapping for this ClusterSnapshot -func (tr *ClusterSnapshot) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this ClusterSnapshot -func (tr *ClusterSnapshot) 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 ClusterSnapshot -func (tr *ClusterSnapshot) 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 ClusterSnapshot -func (tr *ClusterSnapshot) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this ClusterSnapshot -func (tr *ClusterSnapshot) 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 ClusterSnapshot -func (tr *ClusterSnapshot) 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 ClusterSnapshot using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *ClusterSnapshot) LateInitialize(attrs []byte) (bool, error) { - params := &ClusterSnapshotParameters{} - 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 *ClusterSnapshot) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/neptune/v1alpha2/zz_eventsubscription_terraformed.go b/apis/neptune/v1alpha2/zz_eventsubscription_terraformed.go deleted file mode 100755 index 2c053b43c..000000000 --- a/apis/neptune/v1alpha2/zz_eventsubscription_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this EventSubscription -func (mg *EventSubscription) GetTerraformResourceType() string { - return "aws_neptune_event_subscription" -} - -// GetConnectionDetailsMapping for this EventSubscription -func (tr *EventSubscription) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this EventSubscription -func (tr *EventSubscription) 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 EventSubscription -func (tr *EventSubscription) 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 EventSubscription -func (tr *EventSubscription) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this EventSubscription -func (tr *EventSubscription) 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 EventSubscription -func (tr *EventSubscription) 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 EventSubscription using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *EventSubscription) LateInitialize(attrs []byte) (bool, error) { - params := &EventSubscriptionParameters{} - 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 *EventSubscription) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/neptune/v1alpha2/zz_generated.managed.go b/apis/neptune/v1alpha2/zz_generated.managed.go index ec58aca28..27f536062 100644 --- a/apis/neptune/v1alpha2/zz_generated.managed.go +++ b/apis/neptune/v1alpha2/zz_generated.managed.go @@ -42,6 +42,11 @@ func (mg *Cluster) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Cluster. +func (mg *Cluster) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Cluster. func (mg *Cluster) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -70,6 +75,11 @@ func (mg *Cluster) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Cluster. +func (mg *Cluster) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Cluster. func (mg *Cluster) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -98,6 +108,11 @@ func (mg *ClusterEndpoint) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this ClusterEndpoint. +func (mg *ClusterEndpoint) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this ClusterEndpoint. func (mg *ClusterEndpoint) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -126,6 +141,11 @@ func (mg *ClusterEndpoint) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this ClusterEndpoint. +func (mg *ClusterEndpoint) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this ClusterEndpoint. func (mg *ClusterEndpoint) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -154,6 +174,11 @@ func (mg *ClusterInstance) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this ClusterInstance. +func (mg *ClusterInstance) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this ClusterInstance. func (mg *ClusterInstance) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -182,6 +207,11 @@ func (mg *ClusterInstance) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this ClusterInstance. +func (mg *ClusterInstance) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this ClusterInstance. func (mg *ClusterInstance) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -210,6 +240,11 @@ func (mg *ClusterParameterGroup) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this ClusterParameterGroup. +func (mg *ClusterParameterGroup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this ClusterParameterGroup. func (mg *ClusterParameterGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -238,6 +273,11 @@ func (mg *ClusterParameterGroup) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this ClusterParameterGroup. +func (mg *ClusterParameterGroup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this ClusterParameterGroup. func (mg *ClusterParameterGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -266,6 +306,11 @@ func (mg *ClusterSnapshot) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this ClusterSnapshot. +func (mg *ClusterSnapshot) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this ClusterSnapshot. func (mg *ClusterSnapshot) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -294,6 +339,11 @@ func (mg *ClusterSnapshot) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this ClusterSnapshot. +func (mg *ClusterSnapshot) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this ClusterSnapshot. func (mg *ClusterSnapshot) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -322,6 +372,11 @@ func (mg *EventSubscription) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this EventSubscription. +func (mg *EventSubscription) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this EventSubscription. func (mg *EventSubscription) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -350,6 +405,11 @@ func (mg *EventSubscription) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this EventSubscription. +func (mg *EventSubscription) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this EventSubscription. func (mg *EventSubscription) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -378,6 +438,11 @@ func (mg *ParameterGroup) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this ParameterGroup. +func (mg *ParameterGroup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this ParameterGroup. func (mg *ParameterGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -406,6 +471,11 @@ func (mg *ParameterGroup) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this ParameterGroup. +func (mg *ParameterGroup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this ParameterGroup. func (mg *ParameterGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -434,6 +504,11 @@ func (mg *SubnetGroup) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this SubnetGroup. +func (mg *SubnetGroup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this SubnetGroup. func (mg *SubnetGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -462,6 +537,11 @@ func (mg *SubnetGroup) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this SubnetGroup. +func (mg *SubnetGroup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this SubnetGroup. func (mg *SubnetGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r diff --git a/apis/neptune/v1alpha2/zz_generated_terraformed.go b/apis/neptune/v1alpha2/zz_generated_terraformed.go new file mode 100755 index 000000000..2d295afcc --- /dev/null +++ b/apis/neptune/v1alpha2/zz_generated_terraformed.go @@ -0,0 +1,618 @@ +/* +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 v1alpha2 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this Cluster +func (mg *Cluster) GetTerraformResourceType() string { + return "aws_neptune_cluster" +} + +// GetConnectionDetailsMapping for this Cluster +func (tr *Cluster) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this Cluster +func (tr *Cluster) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Cluster +func (tr *Cluster) 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 Cluster using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *Cluster) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this ClusterEndpoint +func (mg *ClusterEndpoint) GetTerraformResourceType() string { + return "aws_neptune_cluster_endpoint" +} + +// GetConnectionDetailsMapping for this ClusterEndpoint +func (tr *ClusterEndpoint) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this ClusterEndpoint +func (tr *ClusterEndpoint) 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 ClusterEndpoint +func (tr *ClusterEndpoint) 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 ClusterEndpoint +func (tr *ClusterEndpoint) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this ClusterEndpoint +func (tr *ClusterEndpoint) 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 ClusterEndpoint +func (tr *ClusterEndpoint) 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 ClusterEndpoint using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *ClusterEndpoint) LateInitialize(attrs []byte) (bool, error) { + params := &ClusterEndpointParameters{} + 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 *ClusterEndpoint) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this ClusterInstance +func (mg *ClusterInstance) GetTerraformResourceType() string { + return "aws_neptune_cluster_instance" +} + +// GetConnectionDetailsMapping for this ClusterInstance +func (tr *ClusterInstance) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this ClusterInstance +func (tr *ClusterInstance) 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 ClusterInstance +func (tr *ClusterInstance) 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 ClusterInstance +func (tr *ClusterInstance) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this ClusterInstance +func (tr *ClusterInstance) 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 ClusterInstance +func (tr *ClusterInstance) 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 ClusterInstance using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *ClusterInstance) LateInitialize(attrs []byte) (bool, error) { + params := &ClusterInstanceParameters{} + 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 *ClusterInstance) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this ClusterParameterGroup +func (mg *ClusterParameterGroup) GetTerraformResourceType() string { + return "aws_neptune_cluster_parameter_group" +} + +// GetConnectionDetailsMapping for this ClusterParameterGroup +func (tr *ClusterParameterGroup) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this ClusterParameterGroup +func (tr *ClusterParameterGroup) 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 ClusterParameterGroup +func (tr *ClusterParameterGroup) 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 ClusterParameterGroup +func (tr *ClusterParameterGroup) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this ClusterParameterGroup +func (tr *ClusterParameterGroup) 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 ClusterParameterGroup +func (tr *ClusterParameterGroup) 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 ClusterParameterGroup using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *ClusterParameterGroup) LateInitialize(attrs []byte) (bool, error) { + params := &ClusterParameterGroupParameters{} + 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 *ClusterParameterGroup) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this ClusterSnapshot +func (mg *ClusterSnapshot) GetTerraformResourceType() string { + return "aws_neptune_cluster_snapshot" +} + +// GetConnectionDetailsMapping for this ClusterSnapshot +func (tr *ClusterSnapshot) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this ClusterSnapshot +func (tr *ClusterSnapshot) 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 ClusterSnapshot +func (tr *ClusterSnapshot) 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 ClusterSnapshot +func (tr *ClusterSnapshot) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this ClusterSnapshot +func (tr *ClusterSnapshot) 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 ClusterSnapshot +func (tr *ClusterSnapshot) 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 ClusterSnapshot using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *ClusterSnapshot) LateInitialize(attrs []byte) (bool, error) { + params := &ClusterSnapshotParameters{} + 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 *ClusterSnapshot) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this EventSubscription +func (mg *EventSubscription) GetTerraformResourceType() string { + return "aws_neptune_event_subscription" +} + +// GetConnectionDetailsMapping for this EventSubscription +func (tr *EventSubscription) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this EventSubscription +func (tr *EventSubscription) 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 EventSubscription +func (tr *EventSubscription) 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 EventSubscription +func (tr *EventSubscription) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this EventSubscription +func (tr *EventSubscription) 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 EventSubscription +func (tr *EventSubscription) 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 EventSubscription using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *EventSubscription) LateInitialize(attrs []byte) (bool, error) { + params := &EventSubscriptionParameters{} + 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 *EventSubscription) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this ParameterGroup +func (mg *ParameterGroup) GetTerraformResourceType() string { + return "aws_neptune_parameter_group" +} + +// GetConnectionDetailsMapping for this ParameterGroup +func (tr *ParameterGroup) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this ParameterGroup +func (tr *ParameterGroup) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this ParameterGroup +func (tr *ParameterGroup) 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 ParameterGroup using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *ParameterGroup) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this SubnetGroup +func (mg *SubnetGroup) GetTerraformResourceType() string { + return "aws_neptune_subnet_group" +} + +// GetConnectionDetailsMapping for this SubnetGroup +func (tr *SubnetGroup) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this SubnetGroup +func (tr *SubnetGroup) 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 SubnetGroup +func (tr *SubnetGroup) 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 SubnetGroup +func (tr *SubnetGroup) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this SubnetGroup +func (tr *SubnetGroup) 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 SubnetGroup +func (tr *SubnetGroup) 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 SubnetGroup using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *SubnetGroup) LateInitialize(attrs []byte) (bool, error) { + params := &SubnetGroupParameters{} + 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 *SubnetGroup) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/neptune/v1alpha2/zz_parametergroup_terraformed.go b/apis/neptune/v1alpha2/zz_parametergroup_terraformed.go deleted file mode 100755 index 185c5f53f..000000000 --- a/apis/neptune/v1alpha2/zz_parametergroup_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this ParameterGroup -func (mg *ParameterGroup) GetTerraformResourceType() string { - return "aws_neptune_parameter_group" -} - -// GetConnectionDetailsMapping for this ParameterGroup -func (tr *ParameterGroup) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this ParameterGroup -func (tr *ParameterGroup) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this ParameterGroup -func (tr *ParameterGroup) 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 ParameterGroup using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *ParameterGroup) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/neptune/v1alpha2/zz_subnetgroup_terraformed.go b/apis/neptune/v1alpha2/zz_subnetgroup_terraformed.go deleted file mode 100755 index c7c940925..000000000 --- a/apis/neptune/v1alpha2/zz_subnetgroup_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this SubnetGroup -func (mg *SubnetGroup) GetTerraformResourceType() string { - return "aws_neptune_subnet_group" -} - -// GetConnectionDetailsMapping for this SubnetGroup -func (tr *SubnetGroup) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this SubnetGroup -func (tr *SubnetGroup) 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 SubnetGroup -func (tr *SubnetGroup) 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 SubnetGroup -func (tr *SubnetGroup) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this SubnetGroup -func (tr *SubnetGroup) 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 SubnetGroup -func (tr *SubnetGroup) 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 SubnetGroup using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *SubnetGroup) LateInitialize(attrs []byte) (bool, error) { - params := &SubnetGroupParameters{} - 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 *SubnetGroup) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/rds/v1alpha2/zz_cluster_terraformed.go b/apis/rds/v1alpha2/zz_cluster_terraformed.go deleted file mode 100755 index efe776ee5..000000000 --- a/apis/rds/v1alpha2/zz_cluster_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Cluster -func (mg *Cluster) GetTerraformResourceType() string { - return "aws_rds_cluster" -} - -// GetConnectionDetailsMapping for this Cluster -func (tr *Cluster) GetConnectionDetailsMapping() map[string]string { - return map[string]string{"master_password": "spec.forProvider.masterPasswordSecretRef"} -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this Cluster -func (tr *Cluster) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Cluster -func (tr *Cluster) 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 Cluster using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *Cluster) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/rds/v1alpha2/zz_generated.managed.go b/apis/rds/v1alpha2/zz_generated.managed.go index f1625a7ba..8f8b251f3 100644 --- a/apis/rds/v1alpha2/zz_generated.managed.go +++ b/apis/rds/v1alpha2/zz_generated.managed.go @@ -42,6 +42,11 @@ func (mg *Cluster) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Cluster. +func (mg *Cluster) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Cluster. func (mg *Cluster) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -70,6 +75,11 @@ func (mg *Cluster) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Cluster. +func (mg *Cluster) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Cluster. func (mg *Cluster) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -98,6 +108,11 @@ func (mg *Instance) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Instance. +func (mg *Instance) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Instance. func (mg *Instance) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -126,6 +141,11 @@ func (mg *Instance) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Instance. +func (mg *Instance) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Instance. func (mg *Instance) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -154,6 +174,11 @@ func (mg *ParameterGroup) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this ParameterGroup. +func (mg *ParameterGroup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this ParameterGroup. func (mg *ParameterGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -182,6 +207,11 @@ func (mg *ParameterGroup) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this ParameterGroup. +func (mg *ParameterGroup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this ParameterGroup. func (mg *ParameterGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r diff --git a/apis/rds/v1alpha2/zz_generated_terraformed.go b/apis/rds/v1alpha2/zz_generated_terraformed.go new file mode 100755 index 000000000..7492bb5c0 --- /dev/null +++ b/apis/rds/v1alpha2/zz_generated_terraformed.go @@ -0,0 +1,248 @@ +/* +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 v1alpha2 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this Instance +func (mg *Instance) GetTerraformResourceType() string { + return "aws_db_instance" +} + +// GetConnectionDetailsMapping for this Instance +func (tr *Instance) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"password": "spec.forProvider.passwordSecretRef"} +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this Instance +func (tr *Instance) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Instance +func (tr *Instance) 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 Instance using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *Instance) GetTerraformSchemaVersion() int { + return 1 +} + +// GetTerraformResourceType returns Terraform resource type for this ParameterGroup +func (mg *ParameterGroup) GetTerraformResourceType() string { + return "aws_db_parameter_group" +} + +// GetConnectionDetailsMapping for this ParameterGroup +func (tr *ParameterGroup) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this ParameterGroup +func (tr *ParameterGroup) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this ParameterGroup +func (tr *ParameterGroup) 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 ParameterGroup using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *ParameterGroup) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this Cluster +func (mg *Cluster) GetTerraformResourceType() string { + return "aws_rds_cluster" +} + +// GetConnectionDetailsMapping for this Cluster +func (tr *Cluster) GetConnectionDetailsMapping() map[string]string { + return map[string]string{"master_password": "spec.forProvider.masterPasswordSecretRef"} +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this Cluster +func (tr *Cluster) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Cluster +func (tr *Cluster) 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 Cluster using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *Cluster) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/rds/v1alpha2/zz_instance_terraformed.go b/apis/rds/v1alpha2/zz_instance_terraformed.go deleted file mode 100755 index 957cf80e9..000000000 --- a/apis/rds/v1alpha2/zz_instance_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Instance -func (mg *Instance) GetTerraformResourceType() string { - return "aws_db_instance" -} - -// GetConnectionDetailsMapping for this Instance -func (tr *Instance) GetConnectionDetailsMapping() map[string]string { - return map[string]string{"password": "spec.forProvider.passwordSecretRef"} -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this Instance -func (tr *Instance) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Instance -func (tr *Instance) 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 Instance using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *Instance) GetTerraformSchemaVersion() int { - return 1 -} diff --git a/apis/rds/v1alpha2/zz_parametergroup_terraformed.go b/apis/rds/v1alpha2/zz_parametergroup_terraformed.go deleted file mode 100755 index f67d2e25c..000000000 --- a/apis/rds/v1alpha2/zz_parametergroup_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this ParameterGroup -func (mg *ParameterGroup) GetTerraformResourceType() string { - return "aws_db_parameter_group" -} - -// GetConnectionDetailsMapping for this ParameterGroup -func (tr *ParameterGroup) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this ParameterGroup -func (tr *ParameterGroup) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this ParameterGroup -func (tr *ParameterGroup) 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 ParameterGroup using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *ParameterGroup) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53/v1alpha2/zz_delegationset_terraformed.go b/apis/route53/v1alpha2/zz_delegationset_terraformed.go deleted file mode 100755 index b3fbb5f42..000000000 --- a/apis/route53/v1alpha2/zz_delegationset_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this DelegationSet -func (mg *DelegationSet) GetTerraformResourceType() string { - return "aws_route53_delegation_set" -} - -// GetConnectionDetailsMapping for this DelegationSet -func (tr *DelegationSet) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this DelegationSet -func (tr *DelegationSet) 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 DelegationSet -func (tr *DelegationSet) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this DelegationSet -func (tr *DelegationSet) 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 DelegationSet using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *DelegationSet) LateInitialize(attrs []byte) (bool, error) { - params := &DelegationSetParameters{} - 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 *DelegationSet) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53/v1alpha2/zz_generated.managed.go b/apis/route53/v1alpha2/zz_generated.managed.go index c7e778ee2..04aca057a 100644 --- a/apis/route53/v1alpha2/zz_generated.managed.go +++ b/apis/route53/v1alpha2/zz_generated.managed.go @@ -42,6 +42,11 @@ func (mg *DelegationSet) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this DelegationSet. +func (mg *DelegationSet) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this DelegationSet. func (mg *DelegationSet) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -70,6 +75,11 @@ func (mg *DelegationSet) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this DelegationSet. +func (mg *DelegationSet) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this DelegationSet. func (mg *DelegationSet) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -98,6 +108,11 @@ func (mg *HealthCheck) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this HealthCheck. +func (mg *HealthCheck) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this HealthCheck. func (mg *HealthCheck) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -126,6 +141,11 @@ func (mg *HealthCheck) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this HealthCheck. +func (mg *HealthCheck) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this HealthCheck. func (mg *HealthCheck) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -154,6 +174,11 @@ func (mg *HostedZoneDNSSEC) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this HostedZoneDNSSEC. +func (mg *HostedZoneDNSSEC) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this HostedZoneDNSSEC. func (mg *HostedZoneDNSSEC) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -182,6 +207,11 @@ func (mg *HostedZoneDNSSEC) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this HostedZoneDNSSEC. +func (mg *HostedZoneDNSSEC) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this HostedZoneDNSSEC. func (mg *HostedZoneDNSSEC) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -210,6 +240,11 @@ func (mg *KeySigningKey) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this KeySigningKey. +func (mg *KeySigningKey) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this KeySigningKey. func (mg *KeySigningKey) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -238,6 +273,11 @@ func (mg *KeySigningKey) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this KeySigningKey. +func (mg *KeySigningKey) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this KeySigningKey. func (mg *KeySigningKey) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -266,6 +306,11 @@ func (mg *QueryLog) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this QueryLog. +func (mg *QueryLog) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this QueryLog. func (mg *QueryLog) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -294,6 +339,11 @@ func (mg *QueryLog) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this QueryLog. +func (mg *QueryLog) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this QueryLog. func (mg *QueryLog) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -322,6 +372,11 @@ func (mg *Record) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Record. +func (mg *Record) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Record. func (mg *Record) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -350,6 +405,11 @@ func (mg *Record) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Record. +func (mg *Record) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Record. func (mg *Record) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -378,6 +438,11 @@ func (mg *VPCAssociationAuthorization) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this VPCAssociationAuthorization. +func (mg *VPCAssociationAuthorization) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this VPCAssociationAuthorization. func (mg *VPCAssociationAuthorization) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -406,6 +471,11 @@ func (mg *VPCAssociationAuthorization) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this VPCAssociationAuthorization. +func (mg *VPCAssociationAuthorization) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this VPCAssociationAuthorization. func (mg *VPCAssociationAuthorization) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -434,6 +504,11 @@ func (mg *Zone) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Zone. +func (mg *Zone) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Zone. func (mg *Zone) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -462,6 +537,11 @@ func (mg *Zone) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Zone. +func (mg *Zone) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Zone. func (mg *Zone) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -490,6 +570,11 @@ func (mg *ZoneAssociation) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this ZoneAssociation. +func (mg *ZoneAssociation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this ZoneAssociation. func (mg *ZoneAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -518,6 +603,11 @@ func (mg *ZoneAssociation) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this ZoneAssociation. +func (mg *ZoneAssociation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this ZoneAssociation. func (mg *ZoneAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r diff --git a/apis/route53/v1alpha2/zz_generated_terraformed.go b/apis/route53/v1alpha2/zz_generated_terraformed.go new file mode 100755 index 000000000..4339bf684 --- /dev/null +++ b/apis/route53/v1alpha2/zz_generated_terraformed.go @@ -0,0 +1,692 @@ +/* +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 v1alpha2 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this DelegationSet +func (mg *DelegationSet) GetTerraformResourceType() string { + return "aws_route53_delegation_set" +} + +// GetConnectionDetailsMapping for this DelegationSet +func (tr *DelegationSet) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this DelegationSet +func (tr *DelegationSet) 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 DelegationSet +func (tr *DelegationSet) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this DelegationSet +func (tr *DelegationSet) 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 DelegationSet using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *DelegationSet) LateInitialize(attrs []byte) (bool, error) { + params := &DelegationSetParameters{} + 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 *DelegationSet) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this HealthCheck +func (mg *HealthCheck) GetTerraformResourceType() string { + return "aws_route53_health_check" +} + +// GetConnectionDetailsMapping for this HealthCheck +func (tr *HealthCheck) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this HealthCheck +func (tr *HealthCheck) 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 HealthCheck +func (tr *HealthCheck) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this HealthCheck +func (tr *HealthCheck) 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 HealthCheck using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *HealthCheck) LateInitialize(attrs []byte) (bool, error) { + params := &HealthCheckParameters{} + 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 *HealthCheck) GetTerraformSchemaVersion() int { + return 0 +} + +// 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 { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this HostedZoneDNSSEC +func (tr *HostedZoneDNSSEC) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this HostedZoneDNSSEC +func (tr *HostedZoneDNSSEC) 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 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{} + 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 *HostedZoneDNSSEC) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this KeySigningKey +func (mg *KeySigningKey) GetTerraformResourceType() string { + return "aws_route53_key_signing_key" +} + +// GetConnectionDetailsMapping for this KeySigningKey +func (tr *KeySigningKey) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this KeySigningKey +func (tr *KeySigningKey) 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 KeySigningKey +func (tr *KeySigningKey) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this KeySigningKey +func (tr *KeySigningKey) 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 KeySigningKey using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *KeySigningKey) LateInitialize(attrs []byte) (bool, error) { + params := &KeySigningKeyParameters{} + 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 *KeySigningKey) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this QueryLog +func (mg *QueryLog) GetTerraformResourceType() string { + return "aws_route53_query_log" +} + +// GetConnectionDetailsMapping for this QueryLog +func (tr *QueryLog) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this QueryLog +func (tr *QueryLog) 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 QueryLog +func (tr *QueryLog) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this QueryLog +func (tr *QueryLog) 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 QueryLog using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *QueryLog) LateInitialize(attrs []byte) (bool, error) { + params := &QueryLogParameters{} + 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 *QueryLog) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this Record +func (mg *Record) GetTerraformResourceType() string { + return "aws_route53_record" +} + +// GetConnectionDetailsMapping for this Record +func (tr *Record) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this Record +func (tr *Record) 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 Record +func (tr *Record) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Record +func (tr *Record) 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 Record using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *Record) LateInitialize(attrs []byte) (bool, error) { + params := &RecordParameters{} + 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 *Record) GetTerraformSchemaVersion() int { + return 2 +} + +// 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 { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this VPCAssociationAuthorization +func (tr *VPCAssociationAuthorization) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this VPCAssociationAuthorization +func (tr *VPCAssociationAuthorization) 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 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{} + 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 *VPCAssociationAuthorization) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this Zone +func (mg *Zone) GetTerraformResourceType() string { + return "aws_route53_zone" +} + +// GetConnectionDetailsMapping for this Zone +func (tr *Zone) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this Zone +func (tr *Zone) 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 Zone +func (tr *Zone) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Zone +func (tr *Zone) 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 Zone using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *Zone) LateInitialize(attrs []byte) (bool, error) { + params := &ZoneParameters{} + 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 *Zone) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this ZoneAssociation +func (mg *ZoneAssociation) GetTerraformResourceType() string { + return "aws_route53_zone_association" +} + +// GetConnectionDetailsMapping for this ZoneAssociation +func (tr *ZoneAssociation) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this ZoneAssociation +func (tr *ZoneAssociation) 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 ZoneAssociation +func (tr *ZoneAssociation) 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 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) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this ZoneAssociation +func (tr *ZoneAssociation) 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 ZoneAssociation using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *ZoneAssociation) LateInitialize(attrs []byte) (bool, error) { + params := &ZoneAssociationParameters{} + 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 *ZoneAssociation) GetTerraformSchemaVersion() int { + return 0 +} diff --git a/apis/route53/v1alpha2/zz_healthcheck_terraformed.go b/apis/route53/v1alpha2/zz_healthcheck_terraformed.go deleted file mode 100755 index e16dba0da..000000000 --- a/apis/route53/v1alpha2/zz_healthcheck_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this HealthCheck -func (mg *HealthCheck) GetTerraformResourceType() string { - return "aws_route53_health_check" -} - -// GetConnectionDetailsMapping for this HealthCheck -func (tr *HealthCheck) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this HealthCheck -func (tr *HealthCheck) 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 HealthCheck -func (tr *HealthCheck) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this HealthCheck -func (tr *HealthCheck) 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 HealthCheck using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *HealthCheck) LateInitialize(attrs []byte) (bool, error) { - params := &HealthCheckParameters{} - 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 *HealthCheck) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53/v1alpha2/zz_hostedzonednssec_terraformed.go b/apis/route53/v1alpha2/zz_hostedzonednssec_terraformed.go deleted file mode 100755 index c0f14c99e..000000000 --- a/apis/route53/v1alpha2/zz_hostedzonednssec_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this HostedZoneDNSSEC -func (mg *HostedZoneDNSSEC) GetTerraformResourceType() string { - return "aws_route53_hosted_zone_dnssec" -} - -// 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) { - 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 HostedZoneDNSSEC -func (tr *HostedZoneDNSSEC) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this HostedZoneDNSSEC -func (tr *HostedZoneDNSSEC) 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 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{} - 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 *HostedZoneDNSSEC) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53/v1alpha2/zz_keysigningkey_terraformed.go b/apis/route53/v1alpha2/zz_keysigningkey_terraformed.go deleted file mode 100755 index de1b1d185..000000000 --- a/apis/route53/v1alpha2/zz_keysigningkey_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this KeySigningKey -func (mg *KeySigningKey) GetTerraformResourceType() string { - return "aws_route53_key_signing_key" -} - -// GetConnectionDetailsMapping for this KeySigningKey -func (tr *KeySigningKey) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this KeySigningKey -func (tr *KeySigningKey) 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 KeySigningKey -func (tr *KeySigningKey) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this KeySigningKey -func (tr *KeySigningKey) 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 KeySigningKey using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *KeySigningKey) LateInitialize(attrs []byte) (bool, error) { - params := &KeySigningKeyParameters{} - 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 *KeySigningKey) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53/v1alpha2/zz_querylog_terraformed.go b/apis/route53/v1alpha2/zz_querylog_terraformed.go deleted file mode 100755 index 17255d4ed..000000000 --- a/apis/route53/v1alpha2/zz_querylog_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this QueryLog -func (mg *QueryLog) GetTerraformResourceType() string { - return "aws_route53_query_log" -} - -// GetConnectionDetailsMapping for this QueryLog -func (tr *QueryLog) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this QueryLog -func (tr *QueryLog) 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 QueryLog -func (tr *QueryLog) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this QueryLog -func (tr *QueryLog) 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 QueryLog using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *QueryLog) LateInitialize(attrs []byte) (bool, error) { - params := &QueryLogParameters{} - 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 *QueryLog) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53/v1alpha2/zz_record_terraformed.go b/apis/route53/v1alpha2/zz_record_terraformed.go deleted file mode 100755 index 21d5273a5..000000000 --- a/apis/route53/v1alpha2/zz_record_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Record -func (mg *Record) GetTerraformResourceType() string { - return "aws_route53_record" -} - -// GetConnectionDetailsMapping for this Record -func (tr *Record) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this Record -func (tr *Record) 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 Record -func (tr *Record) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Record -func (tr *Record) 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 Record using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *Record) LateInitialize(attrs []byte) (bool, error) { - params := &RecordParameters{} - 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 *Record) GetTerraformSchemaVersion() int { - return 2 -} diff --git a/apis/route53/v1alpha2/zz_vpcassociationauthorization_terraformed.go b/apis/route53/v1alpha2/zz_vpcassociationauthorization_terraformed.go deleted file mode 100755 index b08a98893..000000000 --- a/apis/route53/v1alpha2/zz_vpcassociationauthorization_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this VPCAssociationAuthorization -func (mg *VPCAssociationAuthorization) GetTerraformResourceType() string { - return "aws_route53_vpc_association_authorization" -} - -// 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) { - 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 VPCAssociationAuthorization -func (tr *VPCAssociationAuthorization) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this VPCAssociationAuthorization -func (tr *VPCAssociationAuthorization) 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 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{} - 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 *VPCAssociationAuthorization) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53/v1alpha2/zz_zone_terraformed.go b/apis/route53/v1alpha2/zz_zone_terraformed.go deleted file mode 100755 index 9160203df..000000000 --- a/apis/route53/v1alpha2/zz_zone_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Zone -func (mg *Zone) GetTerraformResourceType() string { - return "aws_route53_zone" -} - -// GetConnectionDetailsMapping for this Zone -func (tr *Zone) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this Zone -func (tr *Zone) 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 Zone -func (tr *Zone) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Zone -func (tr *Zone) 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 Zone using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *Zone) LateInitialize(attrs []byte) (bool, error) { - params := &ZoneParameters{} - 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 *Zone) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53/v1alpha2/zz_zoneassociation_terraformed.go b/apis/route53/v1alpha2/zz_zoneassociation_terraformed.go deleted file mode 100755 index 5e920dad9..000000000 --- a/apis/route53/v1alpha2/zz_zoneassociation_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha2 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this ZoneAssociation -func (mg *ZoneAssociation) GetTerraformResourceType() string { - return "aws_route53_zone_association" -} - -// GetConnectionDetailsMapping for this ZoneAssociation -func (tr *ZoneAssociation) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this ZoneAssociation -func (tr *ZoneAssociation) 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 ZoneAssociation -func (tr *ZoneAssociation) 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 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) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this ZoneAssociation -func (tr *ZoneAssociation) 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 ZoneAssociation using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *ZoneAssociation) LateInitialize(attrs []byte) (bool, error) { - params := &ZoneAssociationParameters{} - 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 *ZoneAssociation) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53resolver/v1alpha1/zz_dnssecconfig_terraformed.go b/apis/route53resolver/v1alpha1/zz_dnssecconfig_terraformed.go deleted file mode 100755 index 43d6dff74..000000000 --- a/apis/route53resolver/v1alpha1/zz_dnssecconfig_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this DNSSECConfig -func (mg *DNSSECConfig) GetTerraformResourceType() string { - return "aws_route53_resolver_dnssec_config" -} - -// GetConnectionDetailsMapping for this DNSSECConfig -func (tr *DNSSECConfig) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this DNSSECConfig -func (tr *DNSSECConfig) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this DNSSECConfig -func (tr *DNSSECConfig) 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 DNSSECConfig using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *DNSSECConfig) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53resolver/v1alpha1/zz_endpoint_terraformed.go b/apis/route53resolver/v1alpha1/zz_endpoint_terraformed.go deleted file mode 100755 index d36b00ad2..000000000 --- a/apis/route53resolver/v1alpha1/zz_endpoint_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Endpoint -func (mg *Endpoint) GetTerraformResourceType() string { - return "aws_route53_resolver_endpoint" -} - -// GetConnectionDetailsMapping for this Endpoint -func (tr *Endpoint) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this Endpoint -func (tr *Endpoint) GetObservation() (map[string]interface{}, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this Endpoint -func (tr *Endpoint) SetObservation(obs map[string]interface{}) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this Endpoint -func (tr *Endpoint) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this Endpoint -func (tr *Endpoint) GetParameters() (map[string]interface{}, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Endpoint -func (tr *Endpoint) SetParameters(params map[string]interface{}) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this Endpoint using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *Endpoint) LateInitialize(attrs []byte) (bool, error) { - params := &EndpointParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *Endpoint) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53resolver/v1alpha1/zz_firewallconfig_terraformed.go b/apis/route53resolver/v1alpha1/zz_firewallconfig_terraformed.go deleted file mode 100755 index de4054154..000000000 --- a/apis/route53resolver/v1alpha1/zz_firewallconfig_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this FirewallConfig -func (mg *FirewallConfig) GetTerraformResourceType() string { - return "aws_route53_resolver_firewall_config" -} - -// GetConnectionDetailsMapping for this FirewallConfig -func (tr *FirewallConfig) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this FirewallConfig -func (tr *FirewallConfig) GetObservation() (map[string]interface{}, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this FirewallConfig -func (tr *FirewallConfig) SetObservation(obs map[string]interface{}) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this FirewallConfig -func (tr *FirewallConfig) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this FirewallConfig -func (tr *FirewallConfig) GetParameters() (map[string]interface{}, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this FirewallConfig -func (tr *FirewallConfig) SetParameters(params map[string]interface{}) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this FirewallConfig using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *FirewallConfig) LateInitialize(attrs []byte) (bool, error) { - params := &FirewallConfigParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *FirewallConfig) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53resolver/v1alpha1/zz_firewalldomainlist_terraformed.go b/apis/route53resolver/v1alpha1/zz_firewalldomainlist_terraformed.go deleted file mode 100755 index 1617af51d..000000000 --- a/apis/route53resolver/v1alpha1/zz_firewalldomainlist_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this FirewallDomainList -func (mg *FirewallDomainList) GetTerraformResourceType() string { - return "aws_route53_resolver_firewall_domain_list" -} - -// GetConnectionDetailsMapping for this FirewallDomainList -func (tr *FirewallDomainList) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this FirewallDomainList -func (tr *FirewallDomainList) GetObservation() (map[string]interface{}, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this FirewallDomainList -func (tr *FirewallDomainList) SetObservation(obs map[string]interface{}) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this FirewallDomainList -func (tr *FirewallDomainList) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this FirewallDomainList -func (tr *FirewallDomainList) GetParameters() (map[string]interface{}, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this FirewallDomainList -func (tr *FirewallDomainList) SetParameters(params map[string]interface{}) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this FirewallDomainList using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *FirewallDomainList) LateInitialize(attrs []byte) (bool, error) { - params := &FirewallDomainListParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *FirewallDomainList) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53resolver/v1alpha1/zz_firewallrule_terraformed.go b/apis/route53resolver/v1alpha1/zz_firewallrule_terraformed.go deleted file mode 100755 index 1546e51b1..000000000 --- a/apis/route53resolver/v1alpha1/zz_firewallrule_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this FirewallRule -func (mg *FirewallRule) GetTerraformResourceType() string { - return "aws_route53_resolver_firewall_rule" -} - -// GetConnectionDetailsMapping for this FirewallRule -func (tr *FirewallRule) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this FirewallRule -func (tr *FirewallRule) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this FirewallRule -func (tr *FirewallRule) 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 FirewallRule using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *FirewallRule) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53resolver/v1alpha1/zz_firewallrulegroup_terraformed.go b/apis/route53resolver/v1alpha1/zz_firewallrulegroup_terraformed.go deleted file mode 100755 index c4eea1d17..000000000 --- a/apis/route53resolver/v1alpha1/zz_firewallrulegroup_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this 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/route53resolver/v1alpha1/zz_firewallrulegroupassociation_terraformed.go b/apis/route53resolver/v1alpha1/zz_firewallrulegroupassociation_terraformed.go deleted file mode 100755 index 70a679c77..000000000 --- a/apis/route53resolver/v1alpha1/zz_firewallrulegroupassociation_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this FirewallRuleGroupAssociation -func (mg *FirewallRuleGroupAssociation) GetTerraformResourceType() string { - return "aws_route53_resolver_firewall_rule_group_association" -} - -// GetConnectionDetailsMapping for this FirewallRuleGroupAssociation -func (tr *FirewallRuleGroupAssociation) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this FirewallRuleGroupAssociation -func (tr *FirewallRuleGroupAssociation) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this FirewallRuleGroupAssociation -func (tr *FirewallRuleGroupAssociation) 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 FirewallRuleGroupAssociation using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *FirewallRuleGroupAssociation) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53resolver/v1alpha1/zz_generated.managed.go b/apis/route53resolver/v1alpha1/zz_generated.managed.go index 968ebfc76..d0eac0e25 100644 --- a/apis/route53resolver/v1alpha1/zz_generated.managed.go +++ b/apis/route53resolver/v1alpha1/zz_generated.managed.go @@ -42,6 +42,11 @@ func (mg *DNSSECConfig) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this DNSSECConfig. +func (mg *DNSSECConfig) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this DNSSECConfig. func (mg *DNSSECConfig) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -70,6 +75,11 @@ func (mg *DNSSECConfig) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this DNSSECConfig. +func (mg *DNSSECConfig) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this DNSSECConfig. func (mg *DNSSECConfig) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -98,6 +108,11 @@ func (mg *Endpoint) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Endpoint. +func (mg *Endpoint) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Endpoint. func (mg *Endpoint) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -126,6 +141,11 @@ func (mg *Endpoint) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Endpoint. +func (mg *Endpoint) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Endpoint. func (mg *Endpoint) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -154,6 +174,11 @@ func (mg *FirewallConfig) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this FirewallConfig. +func (mg *FirewallConfig) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this FirewallConfig. func (mg *FirewallConfig) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -182,6 +207,11 @@ func (mg *FirewallConfig) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this FirewallConfig. +func (mg *FirewallConfig) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this FirewallConfig. func (mg *FirewallConfig) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -210,6 +240,11 @@ func (mg *FirewallDomainList) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this FirewallDomainList. +func (mg *FirewallDomainList) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this FirewallDomainList. func (mg *FirewallDomainList) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -238,6 +273,11 @@ func (mg *FirewallDomainList) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this FirewallDomainList. +func (mg *FirewallDomainList) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this FirewallDomainList. func (mg *FirewallDomainList) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -266,6 +306,11 @@ func (mg *FirewallRule) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this FirewallRule. +func (mg *FirewallRule) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this FirewallRule. func (mg *FirewallRule) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -294,6 +339,11 @@ func (mg *FirewallRule) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this FirewallRule. +func (mg *FirewallRule) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this FirewallRule. func (mg *FirewallRule) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -322,6 +372,11 @@ func (mg *FirewallRuleGroup) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this FirewallRuleGroup. +func (mg *FirewallRuleGroup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this FirewallRuleGroup. func (mg *FirewallRuleGroup) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -350,6 +405,11 @@ func (mg *FirewallRuleGroup) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this FirewallRuleGroup. +func (mg *FirewallRuleGroup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this FirewallRuleGroup. func (mg *FirewallRuleGroup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -378,6 +438,11 @@ func (mg *FirewallRuleGroupAssociation) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this FirewallRuleGroupAssociation. +func (mg *FirewallRuleGroupAssociation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this FirewallRuleGroupAssociation. func (mg *FirewallRuleGroupAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -406,6 +471,11 @@ func (mg *FirewallRuleGroupAssociation) SetProviderReference(r *xpv1.Reference) mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this FirewallRuleGroupAssociation. +func (mg *FirewallRuleGroupAssociation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this FirewallRuleGroupAssociation. func (mg *FirewallRuleGroupAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -434,6 +504,11 @@ func (mg *QueryLogConfig) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this QueryLogConfig. +func (mg *QueryLogConfig) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this QueryLogConfig. func (mg *QueryLogConfig) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -462,6 +537,11 @@ func (mg *QueryLogConfig) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this QueryLogConfig. +func (mg *QueryLogConfig) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this QueryLogConfig. func (mg *QueryLogConfig) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -490,6 +570,11 @@ func (mg *QueryLogConfigAssociation) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this QueryLogConfigAssociation. +func (mg *QueryLogConfigAssociation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this QueryLogConfigAssociation. func (mg *QueryLogConfigAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -518,6 +603,11 @@ func (mg *QueryLogConfigAssociation) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this QueryLogConfigAssociation. +func (mg *QueryLogConfigAssociation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this QueryLogConfigAssociation. func (mg *QueryLogConfigAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -546,6 +636,11 @@ func (mg *Rule) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Rule. +func (mg *Rule) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Rule. func (mg *Rule) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -574,6 +669,11 @@ func (mg *Rule) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Rule. +func (mg *Rule) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Rule. func (mg *Rule) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r @@ -602,6 +702,11 @@ func (mg *RuleAssociation) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this RuleAssociation. +func (mg *RuleAssociation) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this RuleAssociation. func (mg *RuleAssociation) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -630,6 +735,11 @@ func (mg *RuleAssociation) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this RuleAssociation. +func (mg *RuleAssociation) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this RuleAssociation. func (mg *RuleAssociation) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r diff --git a/apis/route53resolver/v1alpha1/zz_generated_terraformed.go b/apis/route53resolver/v1alpha1/zz_generated_terraformed.go new file mode 100755 index 000000000..26c307086 --- /dev/null +++ b/apis/route53resolver/v1alpha1/zz_generated_terraformed.go @@ -0,0 +1,840 @@ +/* +Copyright 2021 The Crossplane Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by terrajet. DO NOT EDIT. + +package v1alpha1 + +import ( + "github.com/pkg/errors" + + "github.com/crossplane/terrajet/pkg/resource" + "github.com/crossplane/terrajet/pkg/resource/json" +) + +// GetTerraformResourceType returns Terraform resource type for this DNSSECConfig +func (mg *DNSSECConfig) GetTerraformResourceType() string { + return "aws_route53_resolver_dnssec_config" +} + +// GetConnectionDetailsMapping for this DNSSECConfig +func (tr *DNSSECConfig) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this DNSSECConfig +func (tr *DNSSECConfig) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this DNSSECConfig +func (tr *DNSSECConfig) 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 DNSSECConfig using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *DNSSECConfig) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this Endpoint +func (mg *Endpoint) GetTerraformResourceType() string { + return "aws_route53_resolver_endpoint" +} + +// GetConnectionDetailsMapping for this Endpoint +func (tr *Endpoint) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this Endpoint +func (tr *Endpoint) GetObservation() (map[string]interface{}, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this Endpoint +func (tr *Endpoint) SetObservation(obs map[string]interface{}) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this Endpoint +func (tr *Endpoint) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this Endpoint +func (tr *Endpoint) GetParameters() (map[string]interface{}, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Endpoint +func (tr *Endpoint) SetParameters(params map[string]interface{}) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this Endpoint using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *Endpoint) LateInitialize(attrs []byte) (bool, error) { + params := &EndpointParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *Endpoint) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this FirewallConfig +func (mg *FirewallConfig) GetTerraformResourceType() string { + return "aws_route53_resolver_firewall_config" +} + +// GetConnectionDetailsMapping for this FirewallConfig +func (tr *FirewallConfig) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this FirewallConfig +func (tr *FirewallConfig) GetObservation() (map[string]interface{}, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this FirewallConfig +func (tr *FirewallConfig) SetObservation(obs map[string]interface{}) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this FirewallConfig +func (tr *FirewallConfig) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this FirewallConfig +func (tr *FirewallConfig) GetParameters() (map[string]interface{}, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this FirewallConfig +func (tr *FirewallConfig) SetParameters(params map[string]interface{}) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this FirewallConfig using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *FirewallConfig) LateInitialize(attrs []byte) (bool, error) { + params := &FirewallConfigParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *FirewallConfig) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this FirewallDomainList +func (mg *FirewallDomainList) GetTerraformResourceType() string { + return "aws_route53_resolver_firewall_domain_list" +} + +// GetConnectionDetailsMapping for this FirewallDomainList +func (tr *FirewallDomainList) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this FirewallDomainList +func (tr *FirewallDomainList) GetObservation() (map[string]interface{}, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this FirewallDomainList +func (tr *FirewallDomainList) SetObservation(obs map[string]interface{}) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this FirewallDomainList +func (tr *FirewallDomainList) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this FirewallDomainList +func (tr *FirewallDomainList) GetParameters() (map[string]interface{}, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this FirewallDomainList +func (tr *FirewallDomainList) SetParameters(params map[string]interface{}) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this FirewallDomainList using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *FirewallDomainList) LateInitialize(attrs []byte) (bool, error) { + params := &FirewallDomainListParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *FirewallDomainList) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this FirewallRule +func (mg *FirewallRule) GetTerraformResourceType() string { + return "aws_route53_resolver_firewall_rule" +} + +// GetConnectionDetailsMapping for this FirewallRule +func (tr *FirewallRule) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this FirewallRule +func (tr *FirewallRule) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this FirewallRule +func (tr *FirewallRule) 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 FirewallRule using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *FirewallRule) GetTerraformSchemaVersion() int { + return 0 +} + +// 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 +} + +// GetTerraformResourceType returns Terraform resource type for this FirewallRuleGroupAssociation +func (mg *FirewallRuleGroupAssociation) GetTerraformResourceType() string { + return "aws_route53_resolver_firewall_rule_group_association" +} + +// GetConnectionDetailsMapping for this FirewallRuleGroupAssociation +func (tr *FirewallRuleGroupAssociation) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this FirewallRuleGroupAssociation +func (tr *FirewallRuleGroupAssociation) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this FirewallRuleGroupAssociation +func (tr *FirewallRuleGroupAssociation) 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 FirewallRuleGroupAssociation using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *FirewallRuleGroupAssociation) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this QueryLogConfig +func (mg *QueryLogConfig) GetTerraformResourceType() string { + return "aws_route53_resolver_query_log_config" +} + +// GetConnectionDetailsMapping for this QueryLogConfig +func (tr *QueryLogConfig) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// GetObservation of this QueryLogConfig +func (tr *QueryLogConfig) GetObservation() (map[string]interface{}, error) { + o, err := json.TFParser.Marshal(tr.Status.AtProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this QueryLogConfig +func (tr *QueryLogConfig) SetObservation(obs map[string]interface{}) error { + p, err := json.TFParser.Marshal(obs) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) +} + +// GetID returns ID of underlying Terraform resource of this QueryLogConfig +func (tr *QueryLogConfig) GetID() string { + if tr.Status.AtProvider.ID == nil { + return "" + } + return *tr.Status.AtProvider.ID +} + +// GetParameters of this QueryLogConfig +func (tr *QueryLogConfig) GetParameters() (map[string]interface{}, error) { + p, err := json.TFParser.Marshal(tr.Spec.ForProvider) + if err != nil { + return nil, err + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this QueryLogConfig +func (tr *QueryLogConfig) SetParameters(params map[string]interface{}) error { + p, err := json.TFParser.Marshal(params) + if err != nil { + return err + } + return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) +} + +// LateInitialize this QueryLogConfig using its observed tfState. +// returns True if there are any spec changes for the resource. +func (tr *QueryLogConfig) LateInitialize(attrs []byte) (bool, error) { + params := &QueryLogConfigParameters{} + if err := json.TFParser.Unmarshal(attrs, params); err != nil { + return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") + } + opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + + li := resource.NewGenericLateInitializer(opts...) + return li.LateInitialize(&tr.Spec.ForProvider, params) +} + +// GetTerraformSchemaVersion returns the associated Terraform schema version +func (tr *QueryLogConfig) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this QueryLogConfigAssociation +func (mg *QueryLogConfigAssociation) GetTerraformResourceType() string { + return "aws_route53_resolver_query_log_config_association" +} + +// GetConnectionDetailsMapping for this QueryLogConfigAssociation +func (tr *QueryLogConfigAssociation) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this QueryLogConfigAssociation +func (tr *QueryLogConfigAssociation) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this QueryLogConfigAssociation +func (tr *QueryLogConfigAssociation) 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 QueryLogConfigAssociation using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *QueryLogConfigAssociation) GetTerraformSchemaVersion() int { + return 0 +} + +// GetTerraformResourceType returns Terraform resource type for this Rule +func (mg *Rule) GetTerraformResourceType() string { + return "aws_route53_resolver_rule" +} + +// GetConnectionDetailsMapping for this Rule +func (tr *Rule) GetConnectionDetailsMapping() map[string]string { + return nil +} + +// 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(o, &base) +} + +// SetObservation for this Rule +func (tr *Rule) 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 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 + } + base := map[string]interface{}{} + return base, json.TFParser.Unmarshal(p, &base) +} + +// SetParameters for this Rule +func (tr *Rule) 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 Rule using its observed tfState. +// returns True if there are any spec changes for the resource. +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") + } + 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 *Rule) GetTerraformSchemaVersion() int { + return 0 +} + +// 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/route53resolver/v1alpha1/zz_querylogconfig_terraformed.go b/apis/route53resolver/v1alpha1/zz_querylogconfig_terraformed.go deleted file mode 100755 index cab954f77..000000000 --- a/apis/route53resolver/v1alpha1/zz_querylogconfig_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this QueryLogConfig -func (mg *QueryLogConfig) GetTerraformResourceType() string { - return "aws_route53_resolver_query_log_config" -} - -// GetConnectionDetailsMapping for this QueryLogConfig -func (tr *QueryLogConfig) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// GetObservation of this QueryLogConfig -func (tr *QueryLogConfig) GetObservation() (map[string]interface{}, error) { - o, err := json.TFParser.Marshal(tr.Status.AtProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this QueryLogConfig -func (tr *QueryLogConfig) SetObservation(obs map[string]interface{}) error { - p, err := json.TFParser.Marshal(obs) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Status.AtProvider) -} - -// GetID returns ID of underlying Terraform resource of this QueryLogConfig -func (tr *QueryLogConfig) GetID() string { - if tr.Status.AtProvider.ID == nil { - return "" - } - return *tr.Status.AtProvider.ID -} - -// GetParameters of this QueryLogConfig -func (tr *QueryLogConfig) GetParameters() (map[string]interface{}, error) { - p, err := json.TFParser.Marshal(tr.Spec.ForProvider) - if err != nil { - return nil, err - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this QueryLogConfig -func (tr *QueryLogConfig) SetParameters(params map[string]interface{}) error { - p, err := json.TFParser.Marshal(params) - if err != nil { - return err - } - return json.TFParser.Unmarshal(p, &tr.Spec.ForProvider) -} - -// LateInitialize this QueryLogConfig using its observed tfState. -// returns True if there are any spec changes for the resource. -func (tr *QueryLogConfig) LateInitialize(attrs []byte) (bool, error) { - params := &QueryLogConfigParameters{} - if err := json.TFParser.Unmarshal(attrs, params); err != nil { - return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") - } - opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} - - li := resource.NewGenericLateInitializer(opts...) - return li.LateInitialize(&tr.Spec.ForProvider, params) -} - -// GetTerraformSchemaVersion returns the associated Terraform schema version -func (tr *QueryLogConfig) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53resolver/v1alpha1/zz_querylogconfigassociation_terraformed.go b/apis/route53resolver/v1alpha1/zz_querylogconfigassociation_terraformed.go deleted file mode 100755 index 2dbd5f866..000000000 --- a/apis/route53resolver/v1alpha1/zz_querylogconfigassociation_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this QueryLogConfigAssociation -func (mg *QueryLogConfigAssociation) GetTerraformResourceType() string { - return "aws_route53_resolver_query_log_config_association" -} - -// GetConnectionDetailsMapping for this QueryLogConfigAssociation -func (tr *QueryLogConfigAssociation) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this QueryLogConfigAssociation -func (tr *QueryLogConfigAssociation) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this QueryLogConfigAssociation -func (tr *QueryLogConfigAssociation) 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 QueryLogConfigAssociation using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *QueryLogConfigAssociation) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53resolver/v1alpha1/zz_rule_terraformed.go b/apis/route53resolver/v1alpha1/zz_rule_terraformed.go deleted file mode 100755 index f1f50e7cd..000000000 --- a/apis/route53resolver/v1alpha1/zz_rule_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this Rule -func (mg *Rule) GetTerraformResourceType() string { - return "aws_route53_resolver_rule" -} - -// GetConnectionDetailsMapping for this Rule -func (tr *Rule) GetConnectionDetailsMapping() map[string]string { - return nil -} - -// 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(o, &base) -} - -// SetObservation for this Rule -func (tr *Rule) 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 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 - } - base := map[string]interface{}{} - return base, json.TFParser.Unmarshal(p, &base) -} - -// SetParameters for this Rule -func (tr *Rule) 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 Rule using its observed tfState. -// returns True if there are any spec changes for the resource. -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") - } - 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 *Rule) GetTerraformSchemaVersion() int { - return 0 -} diff --git a/apis/route53resolver/v1alpha1/zz_ruleassociation_terraformed.go b/apis/route53resolver/v1alpha1/zz_ruleassociation_terraformed.go deleted file mode 100755 index 129896cf3..000000000 --- a/apis/route53resolver/v1alpha1/zz_ruleassociation_terraformed.go +++ /dev/null @@ -1,100 +0,0 @@ -/* -Copyright 2021 The Crossplane Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Code generated by terrajet. DO NOT EDIT. - -package v1alpha1 - -import ( - "github.com/pkg/errors" - - "github.com/crossplane/terrajet/pkg/resource" - "github.com/crossplane/terrajet/pkg/resource/json" -) - -// GetTerraformResourceType returns Terraform resource type for this 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/s3/v1alpha2/zz_generated.managed.go b/apis/s3/v1alpha2/zz_generated.managed.go index 18c67bb7e..8571da58a 100644 --- a/apis/s3/v1alpha2/zz_generated.managed.go +++ b/apis/s3/v1alpha2/zz_generated.managed.go @@ -42,6 +42,11 @@ func (mg *Bucket) GetProviderReference() *xpv1.Reference { return mg.Spec.ProviderReference } +// GetPublishConnectionDetailsTo of this Bucket. +func (mg *Bucket) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo { + return mg.Spec.PublishConnectionDetailsTo +} + // GetWriteConnectionSecretToReference of this Bucket. func (mg *Bucket) GetWriteConnectionSecretToReference() *xpv1.SecretReference { return mg.Spec.WriteConnectionSecretToReference @@ -70,6 +75,11 @@ func (mg *Bucket) SetProviderReference(r *xpv1.Reference) { mg.Spec.ProviderReference = r } +// SetPublishConnectionDetailsTo of this Bucket. +func (mg *Bucket) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo) { + mg.Spec.PublishConnectionDetailsTo = r +} + // SetWriteConnectionSecretToReference of this Bucket. func (mg *Bucket) SetWriteConnectionSecretToReference(r *xpv1.SecretReference) { mg.Spec.WriteConnectionSecretToReference = r diff --git a/apis/s3/v1alpha2/zz_bucket_terraformed.go b/apis/s3/v1alpha2/zz_generated_terraformed.go similarity index 100% rename from apis/s3/v1alpha2/zz_bucket_terraformed.go rename to apis/s3/v1alpha2/zz_generated_terraformed.go diff --git a/apis/v1alpha1/register.go b/apis/v1alpha1/register.go index ef957a949..ddc5535e9 100644 --- a/apis/v1alpha1/register.go +++ b/apis/v1alpha1/register.go @@ -56,9 +56,15 @@ var ( ProviderConfigUsageListGroupKind = schema.GroupKind{Group: Group, Kind: ProviderConfigUsageListKind}.String() ProviderConfigUsageListKindAPIVersion = ProviderConfigUsageListKind + "." + SchemeGroupVersion.String() ProviderConfigUsageListGroupVersionKind = SchemeGroupVersion.WithKind(ProviderConfigUsageListKind) + + StoreConfigKind = reflect.TypeOf(StoreConfig{}).Name() + StoreConfigGroupKind = schema.GroupKind{Group: Group, Kind: StoreConfigKind}.String() + StoreConfigKindAPIVersion = StoreConfigKind + "." + SchemeGroupVersion.String() + StoreConfigGroupVersionKind = SchemeGroupVersion.WithKind(StoreConfigKind) ) func init() { SchemeBuilder.Register(&ProviderConfig{}, &ProviderConfigList{}) SchemeBuilder.Register(&ProviderConfigUsage{}, &ProviderConfigUsageList{}) + SchemeBuilder.Register(&StoreConfig{}, &StoreConfigList{}) } diff --git a/apis/v1alpha1/types.go b/apis/v1alpha1/types.go index a3cfd26e0..7344c6411 100644 --- a/apis/v1alpha1/types.go +++ b/apis/v1alpha1/types.go @@ -94,3 +94,55 @@ type ProviderConfigUsageList struct { metav1.ListMeta `json:"metadata,omitempty"` Items []ProviderConfigUsage `json:"items"` } + +// A StoreConfigSpec defines the desired state of a ProviderConfig. +type StoreConfigSpec struct { + xpv1.SecretStoreConfig `json:",inline"` +} + +// A StoreConfigStatus represents the status of a StoreConfig. +type StoreConfigStatus struct { + xpv1.ConditionedStatus `json:",inline"` +} + +// +kubebuilder:object:root=true + +// A StoreConfig configures how GCP controller should store connection details. +// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +// +kubebuilder:printcolumn:name="TYPE",type="string",JSONPath=".spec.type" +// +kubebuilder:printcolumn:name="DEFAULT-SCOPE",type="string",JSONPath=".spec.defaultScope" +// +kubebuilder:resource:scope=Cluster,categories={crossplane,store,gcp} +// +kubebuilder:subresource:status +type StoreConfig struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec StoreConfigSpec `json:"spec"` + Status StoreConfigStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// StoreConfigList contains a list of StoreConfig +type StoreConfigList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []StoreConfig `json:"items"` +} + +// Note(turkenh): To be generated with AngryJet + +// GetStoreConfig returns SecretStoreConfig +func (in *StoreConfig) GetStoreConfig() xpv1.SecretStoreConfig { + return in.Spec.SecretStoreConfig +} + +// GetCondition of this StoreConfig. +func (in *StoreConfig) GetCondition(ct xpv1.ConditionType) xpv1.Condition { + return in.Status.GetCondition(ct) +} + +// SetConditions of this StoreConfig. +func (in *StoreConfig) SetConditions(c ...xpv1.Condition) { + in.Status.SetConditions(c...) +} diff --git a/apis/v1alpha1/zz_generated.deepcopy.go b/apis/v1alpha1/zz_generated.deepcopy.go index 1fed6475b..a4a0611e7 100644 --- a/apis/v1alpha1/zz_generated.deepcopy.go +++ b/apis/v1alpha1/zz_generated.deepcopy.go @@ -194,3 +194,94 @@ func (in *ProviderCredentials) DeepCopy() *ProviderCredentials { in.DeepCopyInto(out) return out } + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StoreConfig) DeepCopyInto(out *StoreConfig) { + *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 StoreConfig. +func (in *StoreConfig) DeepCopy() *StoreConfig { + if in == nil { + return nil + } + out := new(StoreConfig) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *StoreConfig) 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 *StoreConfigList) DeepCopyInto(out *StoreConfigList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]StoreConfig, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoreConfigList. +func (in *StoreConfigList) DeepCopy() *StoreConfigList { + if in == nil { + return nil + } + out := new(StoreConfigList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *StoreConfigList) 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 *StoreConfigSpec) DeepCopyInto(out *StoreConfigSpec) { + *out = *in + in.SecretStoreConfig.DeepCopyInto(&out.SecretStoreConfig) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoreConfigSpec. +func (in *StoreConfigSpec) DeepCopy() *StoreConfigSpec { + if in == nil { + return nil + } + out := new(StoreConfigSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StoreConfigStatus) DeepCopyInto(out *StoreConfigStatus) { + *out = *in + in.ConditionedStatus.DeepCopyInto(&out.ConditionedStatus) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StoreConfigStatus. +func (in *StoreConfigStatus) DeepCopy() *StoreConfigStatus { + if in == nil { + return nil + } + out := new(StoreConfigStatus) + in.DeepCopyInto(out) + return out +} diff --git a/cmd/provider/main.go b/cmd/provider/main.go index 4a968b0e0..c3a9f2985 100644 --- a/cmd/provider/main.go +++ b/cmd/provider/main.go @@ -17,25 +17,32 @@ limitations under the License. package main import ( + "context" "os" "path/filepath" "time" + xpv1 "github.com/crossplane/crossplane-runtime/apis/common/v1" xpcontroller "github.com/crossplane/crossplane-runtime/pkg/controller" "github.com/crossplane/crossplane-runtime/pkg/feature" "github.com/crossplane/crossplane-runtime/pkg/logging" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" + "github.com/crossplane/crossplane-runtime/pkg/resource" tjcontroller "github.com/crossplane/terrajet/pkg/controller" "github.com/crossplane/terrajet/pkg/terraform" "gopkg.in/alecthomas/kingpin.v2" + kerrors "k8s.io/apimachinery/pkg/api/errors" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/tools/leaderelection/resourcelock" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/log/zap" "github.com/crossplane-contrib/provider-jet-aws/apis" + "github.com/crossplane-contrib/provider-jet-aws/apis/v1alpha1" "github.com/crossplane-contrib/provider-jet-aws/config" "github.com/crossplane-contrib/provider-jet-aws/internal/clients" "github.com/crossplane-contrib/provider-jet-aws/internal/controller" + "github.com/crossplane-contrib/provider-jet-aws/internal/features" ) func main() { @@ -48,6 +55,9 @@ func main() { providerSource = app.Flag("terraform-provider-source", "Terraform provider source.").Required().Envar("TERRAFORM_PROVIDER_SOURCE").String() providerVersion = app.Flag("terraform-provider-version", "Terraform provider version.").Required().Envar("TERRAFORM_PROVIDER_VERSION").String() maxReconcileRate = app.Flag("max-reconcile-rate", "The global maximum rate per second at which resources may checked for drift from the desired state.").Default("10").Int() + + namespace = app.Flag("namespace", "Namespace used to set as default scope in default secret store config.").Default("crossplane-system").Envar("POD_NAMESPACE").String() + enableExternalSecretStores = app.Flag("enable-external-secret-stores", "Enable support for ExternalSecretStores.").Default("false").Envar("ENABLE_EXTERNAL_SECRET_STORES").Bool() ) kingpin.MustParse(app.Parse(os.Args[1:])) @@ -74,6 +84,8 @@ func main() { RenewDeadline: func() *time.Duration { d := 50 * time.Second; return &d }(), }) kingpin.FatalIfError(err, "Cannot create controller manager") + kingpin.FatalIfError(apis.AddToScheme(mgr.GetScheme()), "Cannot add AWS APIs to scheme") + o := tjcontroller.Options{ Options: xpcontroller.Options{ Logger: log, @@ -86,7 +98,28 @@ func main() { WorkspaceStore: terraform.NewWorkspaceStore(log), SetupFn: clients.TerraformSetupBuilder(*terraformVersion, *providerSource, *providerVersion), } - kingpin.FatalIfError(apis.AddToScheme(mgr.GetScheme()), "Cannot add AWS APIs to scheme") + + if *enableExternalSecretStores { + o.SecretStoreConfigGVK = &v1alpha1.StoreConfigGroupVersionKind + log.Info("Alpha feature enabled", "flag", features.EnableAlphaExternalSecretStores) + + // Ensure default store config exists. + kingpin.FatalIfError(resource.Ignore(kerrors.IsAlreadyExists, mgr.GetClient().Create(context.Background(), &v1alpha1.StoreConfig{ + TypeMeta: metav1.TypeMeta{}, + ObjectMeta: metav1.ObjectMeta{ + Name: "default", + }, + Spec: v1alpha1.StoreConfigSpec{ + // NOTE(turkenh): We only set required spec and expect optional + // ones to properly be initialized with CRD level default values. + SecretStoreConfig: xpv1.SecretStoreConfig{ + DefaultScope: *namespace, + }, + }, + Status: v1alpha1.StoreConfigStatus{}, + })), "cannot create default store config") + } + kingpin.FatalIfError(controller.Setup(mgr, o), "Cannot setup AWS controllers") kingpin.FatalIfError(mgr.Start(ctrl.SetupSignalHandler()), "Cannot start controller manager") } diff --git a/examples/storeconfig/vault.yaml b/examples/storeconfig/vault.yaml new file mode 100644 index 000000000..019d86433 --- /dev/null +++ b/examples/storeconfig/vault.yaml @@ -0,0 +1,19 @@ +apiVersion: aws.jet.crossplane.io/v1alpha1 +kind: StoreConfig +metadata: + name: vault +spec: + type: Vault + defaultScope: crossplane-system + vault: + server: http://vault.vault-system:8200 + mountPath: secret/ + version: v2 + auth: + method: Token + token: + source: Secret + secretRef: + namespace: crossplane-system + name: vault-token + key: token diff --git a/go.mod b/go.mod index cfe11b6f3..83719465c 100644 --- a/go.mod +++ b/go.mod @@ -4,10 +4,10 @@ go 1.17 require ( github.com/aws/aws-sdk-go-v2 v1.11.0 - github.com/crossplane/crossplane-runtime v0.15.1-0.20220106140106-428b7c390375 - github.com/crossplane/crossplane-tools v0.0.0-20210916125540-071de511ae8e + github.com/crossplane/crossplane-runtime v0.15.1-0.20220315141414-988c9ba9c255 + github.com/crossplane/crossplane-tools v0.0.0-20220310165030-1f43fc12793e github.com/crossplane/provider-aws v0.23.0 - github.com/crossplane/terrajet v0.4.2 + github.com/crossplane/terrajet v0.4.0-rc.0.0.20220325143246-6142eefbcf5b github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.0 github.com/pkg/errors v0.9.1 gopkg.in/alecthomas/kingpin.v2 v2.2.6 @@ -24,6 +24,8 @@ require ( github.com/alecthomas/units v0.0.0-20210912230133-d1bdfacee922 // indirect github.com/apparentlymart/go-textseg/v12 v12.0.0 // indirect github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect + github.com/armon/go-metrics v0.3.9 // indirect + github.com/armon/go-radix v1.0.0 // indirect github.com/aws/aws-sdk-go v1.40.19 // indirect github.com/aws/aws-sdk-go-v2/config v1.10.0 // indirect github.com/aws/aws-sdk-go-v2/credentials v1.6.0 // indirect @@ -37,6 +39,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/sts v1.9.0 // indirect github.com/aws/smithy-go v1.9.0 // indirect github.com/beorn7/perks v1.0.1 // indirect + github.com/cenkalti/backoff/v3 v3.0.0 // indirect github.com/cespare/xxhash/v2 v2.1.1 // indirect github.com/dave/jennifer v1.4.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect @@ -51,18 +54,34 @@ require ( github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.2 // indirect + github.com/golang/snappy v0.0.4 // indirect github.com/google/go-cmp v0.5.6 // indirect github.com/google/gofuzz v1.1.0 // indirect github.com/google/uuid v1.1.2 // indirect github.com/googleapis/gnostic v0.5.5 // indirect - github.com/hashicorp/errwrap v1.0.0 // indirect + github.com/hashicorp/errwrap v1.1.0 // indirect + github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect + github.com/hashicorp/go-hclog v0.16.2 // indirect + github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-uuid v1.0.1 // indirect + github.com/hashicorp/go-plugin v1.4.3 // indirect + github.com/hashicorp/go-retryablehttp v0.6.6 // indirect + github.com/hashicorp/go-rootcerts v1.0.2 // indirect + github.com/hashicorp/go-secure-stdlib/mlock v0.1.1 // indirect + github.com/hashicorp/go-secure-stdlib/parseutil v0.1.1 // indirect + github.com/hashicorp/go-secure-stdlib/strutil v0.1.1 // indirect + github.com/hashicorp/go-sockaddr v1.0.2 // indirect + github.com/hashicorp/go-uuid v1.0.2 // indirect github.com/hashicorp/go-version v1.3.0 // indirect + github.com/hashicorp/golang-lru v0.5.4 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect github.com/hashicorp/hcl/v2 v2.8.2 // indirect github.com/hashicorp/terraform-json v0.13.0 // indirect github.com/hashicorp/terraform-plugin-go v0.3.0 // indirect + github.com/hashicorp/vault/api v1.3.1 // indirect + github.com/hashicorp/vault/sdk v0.3.0 // indirect + github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect github.com/iancoleman/strcase v0.2.0 // indirect github.com/imdario/mergo v0.3.12 // indirect github.com/inconshreveable/mousetrap v1.0.0 // indirect @@ -72,25 +91,30 @@ require ( github.com/mattn/go-isatty v0.0.12 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect + github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/mitchellh/go-wordwrap v1.0.0 // indirect - github.com/mitchellh/mapstructure v1.4.1 // indirect + github.com/mitchellh/mapstructure v1.4.2 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/muvaf/typewriter v0.0.0-20210910160850-80e49fe1eb32 // indirect + github.com/oklog/run v1.0.0 // indirect + github.com/pierrec/lz4 v2.5.2+incompatible // indirect github.com/prometheus/client_golang v1.11.0 // indirect github.com/prometheus/client_model v0.2.0 // indirect github.com/prometheus/common v0.28.0 // indirect github.com/prometheus/procfs v0.6.0 // indirect + github.com/ryanuber/go-glob v1.0.0 // indirect github.com/spf13/afero v1.8.0 // indirect github.com/spf13/cobra v1.2.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/zclconf/go-cty v1.9.1 // indirect - go.uber.org/atomic v1.7.0 // indirect + go.uber.org/atomic v1.9.0 // indirect go.uber.org/multierr v1.6.0 // indirect go.uber.org/zap v1.19.1 // indirect + golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa // indirect golang.org/x/mod v0.4.2 // indirect golang.org/x/net v0.0.0-20210825183410-e898025ed96a // indirect golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect @@ -102,8 +126,11 @@ require ( golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect google.golang.org/appengine v1.6.7 // indirect + google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2 // indirect + google.golang.org/grpc v1.41.0 // indirect google.golang.org/protobuf v1.27.1 // indirect gopkg.in/inf.v0 v0.9.1 // indirect + gopkg.in/square/go-jose.v2 v2.5.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect k8s.io/api v0.23.0 // indirect @@ -115,3 +142,5 @@ require ( sigs.k8s.io/structured-merge-diff/v4 v4.2.0 // indirect sigs.k8s.io/yaml v1.3.0 // indirect ) + +replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/gdavison/terraform-plugin-sdk/v2 v2.0.2-0.20210714181518-b5a3dc95a675 diff --git a/go.sum b/go.sum index 71ba4d804..7de465c3d 100644 --- a/go.sum +++ b/go.sum @@ -56,6 +56,7 @@ github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZ github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= @@ -99,7 +100,10 @@ github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6 github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-metrics v0.3.9 h1:O2sNqxBdvq8Eq5xmzljcYzAORli6RWCvEym4cJf9m18= +github.com/armon/go-metrics v0.3.9/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= @@ -161,6 +165,8 @@ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kB github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= +github.com/cenkalti/backoff/v3 v3.0.0 h1:ske+9nBpD9qZsTBoF41nW5L+AIuFBKMeze18XQ3eG1c= +github.com/cenkalti/backoff/v3 v3.0.0/go.mod h1:cIeZDE3IrqwwJl6VUwCN6trj1oXrTS4rc0ij+ULvLYs= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/certifi/gocertifi v0.0.0-20191021191039-0944d244cd40/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA= github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA= @@ -172,11 +178,14 @@ github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXH github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= +github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= github.com/cockroachdb/datadriven v0.0.0-20200714090401-bf6692d28da5/go.mod h1:h6jFvWxBdQXxjopDMZyH2UVceIRfR84bdzbkoKrsWNo= github.com/cockroachdb/errors v1.2.4/go.mod h1:rQD95gz6FARkaKkQXUksEje/d9a6wBJoCr5oaCLELYA= @@ -196,14 +205,15 @@ github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7Do github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/crossplane/crossplane-runtime v0.15.1-0.20210930095326-d5661210733b/go.mod h1:gKix9Gq5kRzVe/4XOpwlFgG7OurzrYayviJxWZakhw0= -github.com/crossplane/crossplane-runtime v0.15.1-0.20220106140106-428b7c390375 h1:wc0PmOXiNYFgV4k7zVy2NWCqXIpca2tnKA2wureoQNA= -github.com/crossplane/crossplane-runtime v0.15.1-0.20220106140106-428b7c390375/go.mod h1:CH05KIlxoEHEE4aLpUhPuvF+9qXsN6/H6YIDnUEjlDs= -github.com/crossplane/crossplane-tools v0.0.0-20210916125540-071de511ae8e h1:7UM4E9gNEzJ22JgRZqY2KBlkdMCAiHmKS96rcLANdME= +github.com/crossplane/crossplane-runtime v0.15.1-0.20220315141414-988c9ba9c255 h1:l9eAErqfcEzGpq5dMfO/4GTCG2qXgiQgH5J+xhBHqYc= +github.com/crossplane/crossplane-runtime v0.15.1-0.20220315141414-988c9ba9c255/go.mod h1:IPT3HTsovwmbw3i+SdsOyaC3r3b7TW+otBMmZsHLnSU= github.com/crossplane/crossplane-tools v0.0.0-20210916125540-071de511ae8e/go.mod h1:3GzY5sP0PVePArghBh5K4fGzS/3kM0R/NAZn5s7LXqw= +github.com/crossplane/crossplane-tools v0.0.0-20220310165030-1f43fc12793e h1:HqLaMji3FRPwEBA5P6twPz0HbE6no0XOnByLU5O1noM= +github.com/crossplane/crossplane-tools v0.0.0-20220310165030-1f43fc12793e/go.mod h1:xFf30hwHd5n0/a0D4ZomId8nxQTTjE0Hc1j4/rWxefc= github.com/crossplane/provider-aws v0.23.0 h1:PK5SfgEYY4mu/BrP+AkH5jRG/B/XYF06E+k55NdX6f4= github.com/crossplane/provider-aws v0.23.0/go.mod h1:+seFgtg4gbUEhtdYPD7xqlNKkLncGcUFwU/nU2uOM8Y= -github.com/crossplane/terrajet v0.4.2 h1:tWgjjPDwzwlurRYgaujsXL7NHhehBy1C8PZloTUQ65U= -github.com/crossplane/terrajet v0.4.2/go.mod h1:oynNx4au8y/tiSb1OanWSMmUf55Cz/O4f1HxH+liI2A= +github.com/crossplane/terrajet v0.4.0-rc.0.0.20220325143246-6142eefbcf5b h1:/tYXJht21yzbR0vLEYMGYv01KIPGMYE6kk4c+17ByTY= +github.com/crossplane/terrajet v0.4.0-rc.0.0.20220325143246-6142eefbcf5b/go.mod h1:PY1geRNxxNXs2RFhGC36N7dDu3wZPhUZmAk6c4gQxAI= github.com/dave/jennifer v1.4.1 h1:XyqG6cn5RQsTj3qlWQTKlRGAyrTcsk1kUmWdZBzRjDw= github.com/dave/jennifer v1.4.1/go.mod h1:7jEdnm+qBcxl8PC0zyp7vxcpSRnzXSt9r39tpTVGlwA= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -225,29 +235,39 @@ github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5y github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= +github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/evanphx/json-patch v0.5.2/go.mod h1:ZWS5hhDbVDyob71nXKNL0+PWn6ToqBHMikGIFbs31qQ= github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch v4.11.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch v4.12.0+incompatible h1:4onqiflcdA9EOZ4RxV643DvftH5pOlLGNtQ5lPWQu84= github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= +github.com/evanphx/json-patch/v5 v5.5.0/go.mod h1:G79N1coSVB93tBe7j6PhzjmR3/2VvlbKOFpnXhI9Bw4= github.com/fatih/camelcase v1.0.0 h1:hxNvNX/xYBp0ovncs8WyWZrOrpBNub/JfaMvbURyft8= github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwoZc+/fpc= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.12.0 h1:mRhaKNwANqRgUBGKmnI5ZxEk7QXmjQeCcuYFMX2bfcc= github.com/fatih/color v1.12.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= +github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo= +github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= +github.com/frankban/quicktest v1.10.0/go.mod h1:ui7WezCLWMWxVWr1GETZY3smRy0G4KWq9vcPtJmFl7Y= +github.com/frankban/quicktest v1.13.0 h1:yNZif1OkDfNoDfb9zZa9aXIpejNR4F23Wely0c+Qdqk= +github.com/frankban/quicktest v1.13.0/go.mod h1:qLE0fzW0VuyUAJgPU19zByoIr0HtCHN/r/VLSOOIySU= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.5.1 h1:mZcQUHVQUQWoPXXtuf9yuEXKudkV2sx1E06UadKWpgI= github.com/fsnotify/fsnotify v1.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= +github.com/gdavison/terraform-plugin-sdk/v2 v2.0.2-0.20210714181518-b5a3dc95a675 h1:2QEdOgyP5bC4Cjkf4DZ7rBcCXfLaf+ceTY95U3axacI= +github.com/gdavison/terraform-plugin-sdk/v2 v2.0.2-0.20210714181518-b5a3dc95a675/go.mod h1:grseeRo9g3yNkYW09iFlV8LG78jTa1ssBgouogQg/RU= github.com/getkin/kin-openapi v0.76.0/go.mod h1:660oXbgy5JFMKreazJaQTw7o+X00qeSyhcnluiMv+Xg= github.com/getsentry/raven-go v0.2.0/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= +github.com/go-asn1-ber/asn1-ber v1.3.1/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0= github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= github.com/go-git/go-billy/v5 v5.0.0/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= github.com/go-git/go-billy/v5 v5.1.0/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= @@ -265,6 +285,7 @@ github.com/go-ini/ini v1.46.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3I github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-ldap/ldap/v3 v3.1.10/go.mod h1:5Zun81jBTabRaI8lzN7E1JjyEl1g6zI6u9pd8luAK4Q= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= @@ -289,6 +310,7 @@ github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh github.com/go-openapi/swag v0.19.14/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= +github.com/go-test/deep v1.0.2/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68= github.com/go-test/deep v1.0.3/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= github.com/gobuffalo/flect v0.2.3 h1:f/ZukRnSNA/DUpSNDadko7Qc0PhGvsew35p/2tu+CRY= @@ -338,6 +360,8 @@ github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= +github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/addlicense v0.0.0-20210428195630-6d92264d7170/go.mod h1:EMjYTRimagHs1FwlIqKyX3wAM0u3rA+McvlIIWmSamA= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= @@ -402,11 +426,13 @@ github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= +github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUKaCaGKZ/dR2roBXv0vKbSCnssIldfQdI= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs= @@ -416,20 +442,44 @@ github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9 github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= github.com/hashicorp/go-hclog v0.14.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v0.15.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-hclog v0.16.2 h1:K4ev2ib4LdQETX5cSZBG0DVLk1jwGqSPXBjdah3veNs= +github.com/hashicorp/go-hclog v0.16.2/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= +github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-kms-wrapping/entropy v0.1.0/go.mod h1:d1g9WGtAunDNpek8jUIEJnBlbgKS1N2Q61QkHiZyR1g= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-plugin v1.3.0/go.mod h1:F9eH4LrE/ZsRdbwhfjs9k9HoDUwAHnYtXdgmf1AVNs0= github.com/hashicorp/go-plugin v1.4.1/go.mod h1:5fGEH17QVwTTcR0zV7yhDPLLmFX9YSZ38b18Udy6vYQ= +github.com/hashicorp/go-plugin v1.4.3 h1:DXmvivbWD5qdiBts9TpBC7BYL1Aia5sxbRgQB+v6UZM= +github.com/hashicorp/go-plugin v1.4.3/go.mod h1:5fGEH17QVwTTcR0zV7yhDPLLmFX9YSZ38b18Udy6vYQ= +github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= +github.com/hashicorp/go-retryablehttp v0.6.6 h1:HJunrbHTDDbBb/ay4kxa1n+dLmttUlnP3V9oNE4hmsM= +github.com/hashicorp/go-retryablehttp v0.6.6/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY= github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= +github.com/hashicorp/go-rootcerts v1.0.2 h1:jzhAVGtqPKbwpyCPELlgNWhE1znq+qwJtW5Oi2viEzc= +github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoDHxNAB65b+Rj1I= +github.com/hashicorp/go-secure-stdlib/base62 v0.1.1/go.mod h1:EdWO6czbmthiwZ3/PUsDV+UD1D5IRU4ActiaWGwt0Yw= +github.com/hashicorp/go-secure-stdlib/mlock v0.1.1 h1:cCRo8gK7oq6A2L6LICkUZ+/a5rLiRXFMf1Qd4xSwxTc= +github.com/hashicorp/go-secure-stdlib/mlock v0.1.1/go.mod h1:zq93CJChV6L9QTfGKtfBxKqD7BqqXx5O04A/ns2p5+I= +github.com/hashicorp/go-secure-stdlib/parseutil v0.1.1 h1:78ki3QBevHwYrVxnyVeaEz+7WtifHhauYF23es/0KlI= +github.com/hashicorp/go-secure-stdlib/parseutil v0.1.1/go.mod h1:QmrqtbKuxxSWTN3ETMPuB+VtEiBJ/A9XhoYGv8E1uD8= +github.com/hashicorp/go-secure-stdlib/password v0.1.1/go.mod h1:9hH302QllNwu1o2TGYtSk8I8kTAN0ca1EHpwhm5Mmzo= +github.com/hashicorp/go-secure-stdlib/strutil v0.1.1 h1:nd0HIW15E6FG1MsnArYaHfuw9C2zgzM8LxkG5Ty/788= +github.com/hashicorp/go-secure-stdlib/strutil v0.1.1/go.mod h1:gKOamz3EwoIoJq7mlMIRBpVTAUn8qPCrEclOKKWhD3U= +github.com/hashicorp/go-secure-stdlib/tlsutil v0.1.1/go.mod h1:l8slYwnJA26yBz+ErHpp2IRCLr0vuOMGBORIz4rRiAs= github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= +github.com/hashicorp/go-sockaddr v1.0.2 h1:ztczhD1jLxIRjVejw8gFomI1BQZOe2WoVOu0SyteCQc= +github.com/hashicorp/go-sockaddr v1.0.2/go.mod h1:rB4wwRAUzs07qva3c5SdrY/NEtAUjGlgmH/UkBUC97A= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= +github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.3.0 h1:McDWVJIU/y+u1BRV06dPaLfLCaT7fUTJLp5r04x7iNw= @@ -437,6 +487,7 @@ github.com/hashicorp/go-version v1.3.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09 github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc= github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= @@ -460,11 +511,14 @@ github.com/hashicorp/terraform-plugin-go v0.3.0 h1:AJqYzP52JFYl9NABRI7smXI1pNjgR github.com/hashicorp/terraform-plugin-go v0.3.0/go.mod h1:dFHsQMaTLpON2gWhVWT96fvtlc/MF1vSy3OdMhWBzdM= github.com/hashicorp/terraform-plugin-sdk v1.17.2 h1:V7DUR3yBWFrVB9z3ddpY7kiYVSsq4NYR67NiTs93NQo= github.com/hashicorp/terraform-plugin-sdk v1.17.2/go.mod h1:wkvldbraEMkz23NxkkAsFS88A1R9eUiooiaUZyS6TLw= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.0 h1:SuI59MqNjYDrL7EfqHX9V6P/24isgqYx/FdglwVs9bg= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.0/go.mod h1:grseeRo9g3yNkYW09iFlV8LG78jTa1ssBgouogQg/RU= github.com/hashicorp/terraform-plugin-test/v2 v2.2.1/go.mod h1:eZ9JL3O69Cb71Skn6OhHyj17sLmHRb+H6VrDcJjKrYU= github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg= +github.com/hashicorp/vault/api v1.3.1 h1:pkDkcgTh47PRjY1NEFeofqR4W/HkNUi9qIakESO2aRM= +github.com/hashicorp/vault/api v1.3.1/go.mod h1:QeJoWxMFt+MsuWcYhmwRLwKEXrjwAFFywzhptMsTIUw= +github.com/hashicorp/vault/sdk v0.3.0 h1:kR3dpxNkhh/wr6ycaJYqp6AFT/i2xaftbfnwZduTKEY= +github.com/hashicorp/vault/sdk v0.3.0/go.mod h1:aZ3fNuL5VNydQk8GcLJ2TV8YCRVvyaakYkhZRoVuhj0= github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= +github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d h1:kJCB4vdITiW1eC1vq2e6IsrXKrZit1bv/TDYFGMp4BQ= github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= @@ -481,6 +535,7 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= +github.com/jhump/protoreflect v1.6.0 h1:h5jfMVslIg6l29nsMs0D8Wj17RDVdNYti0vDN/PZZoE= github.com/jhump/protoreflect v1.6.0/go.mod h1:eaTn3RZAmMBcV0fifFvlm6VHNz3wSkYyXYWUh7ymB74= github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= @@ -494,6 +549,7 @@ github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFF github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= @@ -537,6 +593,7 @@ github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlW github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8= github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= @@ -559,6 +616,7 @@ github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFW github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= @@ -572,8 +630,9 @@ github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS4 github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.4.1 h1:CpVNEelQCZBooIPDn+AR3NpivK/TIKU8bDxdASFVQag= github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/mapstructure v1.4.2 h1:6h7AQ0yhTcIsmFmnAwQls75jp2Gzs4iB8W7pjMO+rqo= +github.com/mitchellh/mapstructure v1.4.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mitchellh/reflectwalk v1.0.1/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= @@ -601,6 +660,7 @@ github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce/go.mod h1:uFMI8w+ref4 github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= +github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= @@ -621,10 +681,14 @@ github.com/onsi/gomega v1.17.0 h1:9Luw4uT5HTjHTN8+aNcSThgH1vdXnmdJ8xIfZ4wyTRE= github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= +github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4 v2.5.2+incompatible h1:WCjObylUIOlKy/+7Abdn34TLIkXiA4UWUMhxq9m9ZXI= +github.com/pierrec/lz4 v2.5.2+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= @@ -639,6 +703,7 @@ github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prY github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= github.com/prometheus/client_golang v1.11.0 h1:HNkLOAEQMIDv/K+04rukrLx6ch7msSRwf3/SASFAGtQ= github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= @@ -650,6 +715,7 @@ github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6T github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= github.com/prometheus/common v0.28.0 h1:vGVfV9KrDTvWt5boZO0I19g2E3CsWfpPPKZM9dt3mEw= @@ -657,6 +723,7 @@ github.com/prometheus/common v0.28.0/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+ github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.2.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.6.0 h1:mxy4L2jP6qMonqmq+aTtOx1ifVWUgG/TAmntgbh3xv4= @@ -667,6 +734,9 @@ github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6L github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/ryanuber/go-glob v1.0.0 h1:iQh3xXAumdQ+4Ufa5b25cRpC5TYKlno6hsv6Cb3pkBk= +github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/sebdah/goldie v1.0.0/go.mod h1:jXP4hmWywNEwZzhMuv2ccnqTSFpuq8iyQhtQdkkZBH4= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= @@ -711,6 +781,7 @@ github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.2.0 h1:Hbg2NidpLE8veEBkEZTL3CvlkUIVzuU9jDplZO54c48= github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= @@ -723,6 +794,7 @@ github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69 github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/ulikunitz/xz v0.5.5/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= @@ -782,8 +854,9 @@ go.opentelemetry.io/otel/trace v0.20.0/go.mod h1:6GjCW8zgDjwGHGa6GkyeB8+/5vjT16g go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= +go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/goleak v1.1.12 h1:gZAh5/EyT/HQwlpkCy6wTpqfH9H8Lz8zbm3dZh+OyzA= @@ -813,7 +886,9 @@ golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa h1:idItI2DDfCokpg0N51B2VtiLdJ4vAuXC9fnCb2gACo4= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -1031,6 +1106,7 @@ golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxb golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac h1:7zkz7BUtwNFFqcowJ+RIgu2MaV/MapERkDIy+mwPyjs= golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1186,6 +1262,7 @@ google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2 h1:NHN4wOCScVzKhPenJ2dt+BTs3X/XkBVI/Rh4iDt55T8= google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= @@ -1211,6 +1288,8 @@ google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAG google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.41.0 h1:f+PlOh7QV4iIJkPrx5NQ7qaNGFQ3OTse67yaDHfju4E= +google.golang.org/grpc v1.41.0/go.mod h1:U3l9uK9J0sini8mHphKoXyaqDA/8VyGnDee1zzIUK6k= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -1245,6 +1324,8 @@ gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/square/go-jose.v2 v2.2.2/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/square/go-jose.v2 v2.5.1 h1:7odma5RETjNHWJnR32wx8t+Io4djHE1PqxCFx3iiZ2w= +gopkg.in/square/go-jose.v2 v2.5.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= diff --git a/internal/controller/autoscaling/attachment/zz_controller.go b/internal/controller/autoscaling/attachment/zz_controller.go index 6223dd1fd..3740e5956 100755 --- a/internal/controller/autoscaling/attachment/zz_controller.go +++ b/internal/controller/autoscaling/attachment/zz_controller.go @@ -21,6 +21,7 @@ package attachment import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.Attachment_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Attachment_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_autoscaling_attachment"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/autoscaling/autoscalinggroup/zz_controller.go b/internal/controller/autoscaling/autoscalinggroup/zz_controller.go index 912e3fc6c..81d89774a 100755 --- a/internal/controller/autoscaling/autoscalinggroup/zz_controller.go +++ b/internal/controller/autoscaling/autoscalinggroup/zz_controller.go @@ -21,6 +21,7 @@ package autoscalinggroup import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -37,6 +38,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.AutoscalingGroup_GroupVersionKind.String()) var initializers managed.InitializerChain initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.AutoscalingGroup_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_autoscaling_group"], @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/ebsvolume/zz_controller.go b/internal/controller/ec2/ebsvolume/zz_controller.go index ec8b9842b..410870b82 100755 --- a/internal/controller/ec2/ebsvolume/zz_controller.go +++ b/internal/controller/ec2/ebsvolume/zz_controller.go @@ -21,6 +21,7 @@ package ebsvolume import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_ebs_volume"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.EBSVolume_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_ebs_volume"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/eip/zz_controller.go b/internal/controller/ec2/eip/zz_controller.go index cbbea3a00..9e9be635b 100755 --- a/internal/controller/ec2/eip/zz_controller.go +++ b/internal/controller/ec2/eip/zz_controller.go @@ -21,6 +21,7 @@ package eip import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_eip"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.EIP_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_eip"], @@ -49,6 +54,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/instance/zz_controller.go b/internal/controller/ec2/instance/zz_controller.go index 4ed339d75..4808823b2 100755 --- a/internal/controller/ec2/instance/zz_controller.go +++ b/internal/controller/ec2/instance/zz_controller.go @@ -21,6 +21,7 @@ package instance import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_instance"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Instance_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_instance"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/launchtemplate/zz_controller.go b/internal/controller/ec2/launchtemplate/zz_controller.go index e3c8460eb..b3f6d59e4 100755 --- a/internal/controller/ec2/launchtemplate/zz_controller.go +++ b/internal/controller/ec2/launchtemplate/zz_controller.go @@ -21,6 +21,7 @@ package launchtemplate import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_launch_template"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.LaunchTemplate_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_launch_template"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/networkinterface/zz_controller.go b/internal/controller/ec2/networkinterface/zz_controller.go index 730c857bc..a2ab6ceeb 100755 --- a/internal/controller/ec2/networkinterface/zz_controller.go +++ b/internal/controller/ec2/networkinterface/zz_controller.go @@ -21,6 +21,7 @@ package networkinterface import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_network_interface"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.NetworkInterface_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_network_interface"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/route/zz_controller.go b/internal/controller/ec2/route/zz_controller.go index 395cb1616..b3120f8e1 100755 --- a/internal/controller/ec2/route/zz_controller.go +++ b/internal/controller/ec2/route/zz_controller.go @@ -21,6 +21,7 @@ package route import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.Route_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Route_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route"], @@ -46,6 +51,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/routetable/zz_controller.go b/internal/controller/ec2/routetable/zz_controller.go index 9502c7de6..77c337c9a 100755 --- a/internal/controller/ec2/routetable/zz_controller.go +++ b/internal/controller/ec2/routetable/zz_controller.go @@ -21,6 +21,7 @@ package routetable import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_route_table"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.RouteTable_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route_table"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/routetableassociation/zz_controller.go b/internal/controller/ec2/routetableassociation/zz_controller.go index 789f24d13..654e773fc 100755 --- a/internal/controller/ec2/routetableassociation/zz_controller.go +++ b/internal/controller/ec2/routetableassociation/zz_controller.go @@ -21,6 +21,7 @@ package routetableassociation import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.RouteTableAssociation_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.RouteTableAssociation_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route_table_association"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/securitygroup/zz_controller.go b/internal/controller/ec2/securitygroup/zz_controller.go index 81f9305ee..27aae982b 100755 --- a/internal/controller/ec2/securitygroup/zz_controller.go +++ b/internal/controller/ec2/securitygroup/zz_controller.go @@ -21,6 +21,7 @@ package securitygroup import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_security_group"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.SecurityGroup_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_security_group"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/securitygrouprule/zz_controller.go b/internal/controller/ec2/securitygrouprule/zz_controller.go index a53feeefd..826ec54d3 100755 --- a/internal/controller/ec2/securitygrouprule/zz_controller.go +++ b/internal/controller/ec2/securitygrouprule/zz_controller.go @@ -21,6 +21,7 @@ package securitygrouprule import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.SecurityGroupRule_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.SecurityGroupRule_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_security_group_rule"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/subnet/zz_controller.go b/internal/controller/ec2/subnet/zz_controller.go index 7937fc22d..74cf6b975 100755 --- a/internal/controller/ec2/subnet/zz_controller.go +++ b/internal/controller/ec2/subnet/zz_controller.go @@ -21,6 +21,7 @@ package subnet import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_subnet"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Subnet_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_subnet"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/transitgateway/zz_controller.go b/internal/controller/ec2/transitgateway/zz_controller.go index 6c0146c46..93d43dc0b 100755 --- a/internal/controller/ec2/transitgateway/zz_controller.go +++ b/internal/controller/ec2/transitgateway/zz_controller.go @@ -21,6 +21,7 @@ package transitgateway import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_ec2_transit_gateway"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.TransitGateway_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_ec2_transit_gateway"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/transitgatewayroute/zz_controller.go b/internal/controller/ec2/transitgatewayroute/zz_controller.go index 61d464fd8..3047c6a96 100755 --- a/internal/controller/ec2/transitgatewayroute/zz_controller.go +++ b/internal/controller/ec2/transitgatewayroute/zz_controller.go @@ -21,6 +21,7 @@ package transitgatewayroute import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.TransitGatewayRoute_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.TransitGatewayRoute_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_ec2_transit_gateway_route"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/transitgatewayroutetable/zz_controller.go b/internal/controller/ec2/transitgatewayroutetable/zz_controller.go index 9514b174c..e5202f5ae 100755 --- a/internal/controller/ec2/transitgatewayroutetable/zz_controller.go +++ b/internal/controller/ec2/transitgatewayroutetable/zz_controller.go @@ -21,6 +21,7 @@ package transitgatewayroutetable import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_ec2_transit_gateway_route_table"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.TransitGatewayRouteTable_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_ec2_transit_gateway_route_table"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/transitgatewayroutetableassociation/zz_controller.go b/internal/controller/ec2/transitgatewayroutetableassociation/zz_controller.go index cb76c69fe..4a2afde31 100755 --- a/internal/controller/ec2/transitgatewayroutetableassociation/zz_controller.go +++ b/internal/controller/ec2/transitgatewayroutetableassociation/zz_controller.go @@ -21,6 +21,7 @@ package transitgatewayroutetableassociation import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.TransitGatewayRouteTableAssociation_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.TransitGatewayRouteTableAssociation_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_ec2_transit_gateway_route_table_association"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/transitgatewayroutetablepropagation/zz_controller.go b/internal/controller/ec2/transitgatewayroutetablepropagation/zz_controller.go index 4179ccfdd..93e0b338d 100755 --- a/internal/controller/ec2/transitgatewayroutetablepropagation/zz_controller.go +++ b/internal/controller/ec2/transitgatewayroutetablepropagation/zz_controller.go @@ -21,6 +21,7 @@ package transitgatewayroutetablepropagation import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.TransitGatewayRouteTablePropagation_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.TransitGatewayRouteTablePropagation_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_ec2_transit_gateway_route_table_propagation"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/transitgatewayvpcattachment/zz_controller.go b/internal/controller/ec2/transitgatewayvpcattachment/zz_controller.go index 696d2956b..8ff1afca7 100755 --- a/internal/controller/ec2/transitgatewayvpcattachment/zz_controller.go +++ b/internal/controller/ec2/transitgatewayvpcattachment/zz_controller.go @@ -21,6 +21,7 @@ package transitgatewayvpcattachment import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_ec2_transit_gateway_vpc_attachment"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.TransitGatewayVPCAttachment_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_ec2_transit_gateway_vpc_attachment"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/transitgatewayvpcattachmentaccepter/zz_controller.go b/internal/controller/ec2/transitgatewayvpcattachmentaccepter/zz_controller.go index 77c931a54..c8023b133 100755 --- a/internal/controller/ec2/transitgatewayvpcattachmentaccepter/zz_controller.go +++ b/internal/controller/ec2/transitgatewayvpcattachmentaccepter/zz_controller.go @@ -21,6 +21,7 @@ package transitgatewayvpcattachmentaccepter import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_ec2_transit_gateway_vpc_attachment_accepter"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.TransitGatewayVPCAttachmentAccepter_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_ec2_transit_gateway_vpc_attachment_accepter"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/vpc/zz_controller.go b/internal/controller/ec2/vpc/zz_controller.go index ece8296b2..a0219d768 100755 --- a/internal/controller/ec2/vpc/zz_controller.go +++ b/internal/controller/ec2/vpc/zz_controller.go @@ -21,6 +21,7 @@ package vpc import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_vpc"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.VPC_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_vpc"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/vpcendpoint/zz_controller.go b/internal/controller/ec2/vpcendpoint/zz_controller.go index 8f9270838..ed970ed85 100755 --- a/internal/controller/ec2/vpcendpoint/zz_controller.go +++ b/internal/controller/ec2/vpcendpoint/zz_controller.go @@ -21,6 +21,7 @@ package vpcendpoint import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_vpc_endpoint"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.VPCEndpoint_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_vpc_endpoint"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/vpcipv4cidrblockassociation/zz_controller.go b/internal/controller/ec2/vpcipv4cidrblockassociation/zz_controller.go index c9318d533..dd37b5cb1 100755 --- a/internal/controller/ec2/vpcipv4cidrblockassociation/zz_controller.go +++ b/internal/controller/ec2/vpcipv4cidrblockassociation/zz_controller.go @@ -21,6 +21,7 @@ package vpcipv4cidrblockassociation import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.VPCIPv4CidrBlockAssociation_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.VPCIPv4CidrBlockAssociation_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_vpc_ipv4_cidr_block_association"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ec2/vpcpeeringconnection/zz_controller.go b/internal/controller/ec2/vpcpeeringconnection/zz_controller.go index 1da0d096d..c37c53166 100755 --- a/internal/controller/ec2/vpcpeeringconnection/zz_controller.go +++ b/internal/controller/ec2/vpcpeeringconnection/zz_controller.go @@ -21,6 +21,7 @@ package vpcpeeringconnection import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_vpc_peering_connection"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.VPCPeeringConnection_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_vpc_peering_connection"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ecr/repository/zz_controller.go b/internal/controller/ecr/repository/zz_controller.go index 801055a64..b636097bc 100755 --- a/internal/controller/ecr/repository/zz_controller.go +++ b/internal/controller/ecr/repository/zz_controller.go @@ -21,6 +21,7 @@ package repository import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Repository_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_ecr_repository"], @@ -50,6 +55,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ecrpublic/repository/zz_controller.go b/internal/controller/ecrpublic/repository/zz_controller.go index 26951c3d5..291e51bd9 100755 --- a/internal/controller/ecrpublic/repository/zz_controller.go +++ b/internal/controller/ecrpublic/repository/zz_controller.go @@ -21,6 +21,7 @@ package repository import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -37,6 +38,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.Repository_GroupVersionKind.String()) var initializers managed.InitializerChain initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Repository_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_ecrpublic_repository"], @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ecs/capacityprovider/zz_controller.go b/internal/controller/ecs/capacityprovider/zz_controller.go index 91e01de6a..2b9d7b174 100755 --- a/internal/controller/ecs/capacityprovider/zz_controller.go +++ b/internal/controller/ecs/capacityprovider/zz_controller.go @@ -21,6 +21,7 @@ package capacityprovider import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.CapacityProvider_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_ecs_capacity_provider"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ecs/cluster/zz_controller.go b/internal/controller/ecs/cluster/zz_controller.go index f5d10735d..bb1bd788b 100755 --- a/internal/controller/ecs/cluster/zz_controller.go +++ b/internal/controller/ecs/cluster/zz_controller.go @@ -21,6 +21,7 @@ package cluster import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Cluster_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_ecs_cluster"], @@ -50,6 +55,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ecs/service/zz_controller.go b/internal/controller/ecs/service/zz_controller.go index 705dc7715..62b7795e1 100755 --- a/internal/controller/ecs/service/zz_controller.go +++ b/internal/controller/ecs/service/zz_controller.go @@ -21,6 +21,7 @@ package service import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Service_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_ecs_service"], @@ -50,6 +55,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/ecs/taskdefinition/zz_controller.go b/internal/controller/ecs/taskdefinition/zz_controller.go index c2844c131..00e0debb2 100755 --- a/internal/controller/ecs/taskdefinition/zz_controller.go +++ b/internal/controller/ecs/taskdefinition/zz_controller.go @@ -21,6 +21,7 @@ package taskdefinition import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_ecs_task_definition"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.TaskDefinition_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_ecs_task_definition"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/eks/addon/zz_controller.go b/internal/controller/eks/addon/zz_controller.go index 24eac8f6b..6ac228fa4 100755 --- a/internal/controller/eks/addon/zz_controller.go +++ b/internal/controller/eks/addon/zz_controller.go @@ -21,6 +21,7 @@ package addon import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Addon_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_eks_addon"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/eks/cluster/zz_controller.go b/internal/controller/eks/cluster/zz_controller.go index 81663e842..a3644f5f3 100755 --- a/internal/controller/eks/cluster/zz_controller.go +++ b/internal/controller/eks/cluster/zz_controller.go @@ -21,6 +21,7 @@ package cluster import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Cluster_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_eks_cluster"], @@ -50,6 +55,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/eks/fargateprofile/zz_controller.go b/internal/controller/eks/fargateprofile/zz_controller.go index bbd2fad11..a0037b7f1 100755 --- a/internal/controller/eks/fargateprofile/zz_controller.go +++ b/internal/controller/eks/fargateprofile/zz_controller.go @@ -21,6 +21,7 @@ package fargateprofile import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.FargateProfile_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_eks_fargate_profile"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/eks/identityproviderconfig/zz_controller.go b/internal/controller/eks/identityproviderconfig/zz_controller.go index 4f4791186..76994e831 100755 --- a/internal/controller/eks/identityproviderconfig/zz_controller.go +++ b/internal/controller/eks/identityproviderconfig/zz_controller.go @@ -21,6 +21,7 @@ package identityproviderconfig import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_eks_identity_provider_config"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.IdentityProviderConfig_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_eks_identity_provider_config"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/eks/nodegroup/zz_controller.go b/internal/controller/eks/nodegroup/zz_controller.go index e4f0a1631..781cce7de 100755 --- a/internal/controller/eks/nodegroup/zz_controller.go +++ b/internal/controller/eks/nodegroup/zz_controller.go @@ -21,6 +21,7 @@ package nodegroup import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.NodeGroup_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_eks_node_group"], @@ -50,6 +55,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/elasticache/cluster/zz_controller.go b/internal/controller/elasticache/cluster/zz_controller.go index b27c21eb9..2b4cb2be3 100755 --- a/internal/controller/elasticache/cluster/zz_controller.go +++ b/internal/controller/elasticache/cluster/zz_controller.go @@ -21,6 +21,7 @@ package cluster import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Cluster_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_elasticache_cluster"], @@ -50,6 +55,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/elasticache/parametergroup/zz_controller.go b/internal/controller/elasticache/parametergroup/zz_controller.go index 69ae46843..74b0e25ce 100755 --- a/internal/controller/elasticache/parametergroup/zz_controller.go +++ b/internal/controller/elasticache/parametergroup/zz_controller.go @@ -21,6 +21,7 @@ package parametergroup import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.ParameterGroup_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_elasticache_parameter_group"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/elasticache/replicationgroup/zz_controller.go b/internal/controller/elasticache/replicationgroup/zz_controller.go index 86f0b6efa..a18373486 100755 --- a/internal/controller/elasticache/replicationgroup/zz_controller.go +++ b/internal/controller/elasticache/replicationgroup/zz_controller.go @@ -21,6 +21,7 @@ package replicationgroup import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.ReplicationGroup_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_elasticache_replication_group"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/elasticache/user/zz_controller.go b/internal/controller/elasticache/user/zz_controller.go index 4651d78ae..64e3f5511 100755 --- a/internal/controller/elasticache/user/zz_controller.go +++ b/internal/controller/elasticache/user/zz_controller.go @@ -21,6 +21,7 @@ package user import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.User_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_elasticache_user"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/elasticache/usergroup/zz_controller.go b/internal/controller/elasticache/usergroup/zz_controller.go index 7fd7a6a8b..9e84c7cb9 100755 --- a/internal/controller/elasticache/usergroup/zz_controller.go +++ b/internal/controller/elasticache/usergroup/zz_controller.go @@ -21,6 +21,7 @@ package usergroup import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.UserGroup_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_elasticache_user_group"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/elbv2/lb/zz_controller.go b/internal/controller/elbv2/lb/zz_controller.go index fdbfb0575..f1387ffa2 100755 --- a/internal/controller/elbv2/lb/zz_controller.go +++ b/internal/controller/elbv2/lb/zz_controller.go @@ -21,6 +21,7 @@ package lb import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_lb"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.LB_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_lb"], @@ -49,6 +54,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/elbv2/lblistener/zz_controller.go b/internal/controller/elbv2/lblistener/zz_controller.go index ebea26ebd..bd3dac38c 100755 --- a/internal/controller/elbv2/lblistener/zz_controller.go +++ b/internal/controller/elbv2/lblistener/zz_controller.go @@ -21,6 +21,7 @@ package lblistener import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_lb_listener"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.LBListener_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_lb_listener"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/elbv2/lbtargetgroup/zz_controller.go b/internal/controller/elbv2/lbtargetgroup/zz_controller.go index e1796bbaa..052a5b7ca 100755 --- a/internal/controller/elbv2/lbtargetgroup/zz_controller.go +++ b/internal/controller/elbv2/lbtargetgroup/zz_controller.go @@ -21,6 +21,7 @@ package lbtargetgroup import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_lb_target_group"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.LBTargetGroup_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_lb_target_group"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/elbv2/lbtargetgroupattachment/zz_controller.go b/internal/controller/elbv2/lbtargetgroupattachment/zz_controller.go index 0e46a77b4..583ab4ede 100755 --- a/internal/controller/elbv2/lbtargetgroupattachment/zz_controller.go +++ b/internal/controller/elbv2/lbtargetgroupattachment/zz_controller.go @@ -21,6 +21,7 @@ package lbtargetgroupattachment import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.LBTargetGroupAttachment_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.LBTargetGroupAttachment_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_lb_target_group_attachment"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/iam/accesskey/zz_controller.go b/internal/controller/iam/accesskey/zz_controller.go index 6b36147ac..f8898a02e 100755 --- a/internal/controller/iam/accesskey/zz_controller.go +++ b/internal/controller/iam/accesskey/zz_controller.go @@ -21,6 +21,7 @@ package accesskey import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.AccessKey_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.AccessKey_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_iam_access_key"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/iam/group/zz_controller.go b/internal/controller/iam/group/zz_controller.go index 5b12f6182..cc335ace7 100755 --- a/internal/controller/iam/group/zz_controller.go +++ b/internal/controller/iam/group/zz_controller.go @@ -21,6 +21,7 @@ package group import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -37,6 +38,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.Group_GroupVersionKind.String()) var initializers managed.InitializerChain initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Group_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_iam_group"])), @@ -45,6 +50,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/iam/grouppolicyattachment/zz_controller.go b/internal/controller/iam/grouppolicyattachment/zz_controller.go index 2160842da..a94ec0137 100755 --- a/internal/controller/iam/grouppolicyattachment/zz_controller.go +++ b/internal/controller/iam/grouppolicyattachment/zz_controller.go @@ -21,6 +21,7 @@ package grouppolicyattachment import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.GroupPolicyAttachment_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.GroupPolicyAttachment_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_iam_group_policy_attachment"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/iam/instanceprofile/zz_controller.go b/internal/controller/iam/instanceprofile/zz_controller.go index 4ed1b5ab9..6cfedb3d7 100755 --- a/internal/controller/iam/instanceprofile/zz_controller.go +++ b/internal/controller/iam/instanceprofile/zz_controller.go @@ -21,6 +21,7 @@ package instanceprofile import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.InstanceProfile_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_iam_instance_profile"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/iam/policy/zz_controller.go b/internal/controller/iam/policy/zz_controller.go index ecb9aa83f..61188e733 100755 --- a/internal/controller/iam/policy/zz_controller.go +++ b/internal/controller/iam/policy/zz_controller.go @@ -21,6 +21,7 @@ package policy import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_iam_policy"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Policy_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_iam_policy"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/iam/role/zz_controller.go b/internal/controller/iam/role/zz_controller.go index a9812e9e2..5bff72a27 100755 --- a/internal/controller/iam/role/zz_controller.go +++ b/internal/controller/iam/role/zz_controller.go @@ -21,6 +21,7 @@ package role import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Role_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_iam_role"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/iam/rolepolicyattachment/zz_controller.go b/internal/controller/iam/rolepolicyattachment/zz_controller.go index d3306db21..231de9ddd 100755 --- a/internal/controller/iam/rolepolicyattachment/zz_controller.go +++ b/internal/controller/iam/rolepolicyattachment/zz_controller.go @@ -21,6 +21,7 @@ package rolepolicyattachment import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.RolePolicyAttachment_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.RolePolicyAttachment_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_iam_role_policy_attachment"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/iam/user/zz_controller.go b/internal/controller/iam/user/zz_controller.go index fb877c217..d0de047f3 100755 --- a/internal/controller/iam/user/zz_controller.go +++ b/internal/controller/iam/user/zz_controller.go @@ -21,6 +21,7 @@ package user import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.User_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_iam_user"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/iam/usergroupmembership/zz_controller.go b/internal/controller/iam/usergroupmembership/zz_controller.go index 9795e0208..c00be6779 100755 --- a/internal/controller/iam/usergroupmembership/zz_controller.go +++ b/internal/controller/iam/usergroupmembership/zz_controller.go @@ -21,6 +21,7 @@ package usergroupmembership import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.UserGroupMembership_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.UserGroupMembership_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_iam_user_group_membership"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/iam/userpolicyattachment/zz_controller.go b/internal/controller/iam/userpolicyattachment/zz_controller.go index ccd26ac12..519b63a17 100755 --- a/internal/controller/iam/userpolicyattachment/zz_controller.go +++ b/internal/controller/iam/userpolicyattachment/zz_controller.go @@ -21,6 +21,7 @@ package userpolicyattachment import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.UserPolicyAttachment_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.UserPolicyAttachment_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_iam_user_policy_attachment"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/kms/key/zz_controller.go b/internal/controller/kms/key/zz_controller.go index 9261cac2f..ee087efe0 100755 --- a/internal/controller/kms/key/zz_controller.go +++ b/internal/controller/kms/key/zz_controller.go @@ -21,6 +21,7 @@ package key import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_kms_key"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Key_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_kms_key"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/neptune/cluster/zz_controller.go b/internal/controller/neptune/cluster/zz_controller.go index 47900b64e..8576503fb 100755 --- a/internal/controller/neptune/cluster/zz_controller.go +++ b/internal/controller/neptune/cluster/zz_controller.go @@ -21,6 +21,7 @@ package cluster import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Cluster_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_neptune_cluster"], @@ -50,6 +55,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/neptune/clusterendpoint/zz_controller.go b/internal/controller/neptune/clusterendpoint/zz_controller.go index 79f9f4c2f..24af4bb16 100755 --- a/internal/controller/neptune/clusterendpoint/zz_controller.go +++ b/internal/controller/neptune/clusterendpoint/zz_controller.go @@ -21,6 +21,7 @@ package clusterendpoint import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.ClusterEndpoint_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_neptune_cluster_endpoint"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/neptune/clusterinstance/zz_controller.go b/internal/controller/neptune/clusterinstance/zz_controller.go index 0cef67568..123c902eb 100755 --- a/internal/controller/neptune/clusterinstance/zz_controller.go +++ b/internal/controller/neptune/clusterinstance/zz_controller.go @@ -21,6 +21,7 @@ package clusterinstance import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.ClusterInstance_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_neptune_cluster_instance"], @@ -50,6 +55,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/neptune/clusterparametergroup/zz_controller.go b/internal/controller/neptune/clusterparametergroup/zz_controller.go index 824bbaa0c..e4d817d33 100755 --- a/internal/controller/neptune/clusterparametergroup/zz_controller.go +++ b/internal/controller/neptune/clusterparametergroup/zz_controller.go @@ -21,6 +21,7 @@ package clusterparametergroup import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.ClusterParameterGroup_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_neptune_cluster_parameter_group"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/neptune/clustersnapshot/zz_controller.go b/internal/controller/neptune/clustersnapshot/zz_controller.go index e50412199..9368c80ac 100755 --- a/internal/controller/neptune/clustersnapshot/zz_controller.go +++ b/internal/controller/neptune/clustersnapshot/zz_controller.go @@ -21,6 +21,7 @@ package clustersnapshot import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -37,6 +38,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.ClusterSnapshot_GroupVersionKind.String()) var initializers managed.InitializerChain initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.ClusterSnapshot_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_neptune_cluster_snapshot"], @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/neptune/eventsubscription/zz_controller.go b/internal/controller/neptune/eventsubscription/zz_controller.go index b0639fe0a..b9953155b 100755 --- a/internal/controller/neptune/eventsubscription/zz_controller.go +++ b/internal/controller/neptune/eventsubscription/zz_controller.go @@ -21,6 +21,7 @@ package eventsubscription import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.EventSubscription_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_neptune_event_subscription"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/neptune/parametergroup/zz_controller.go b/internal/controller/neptune/parametergroup/zz_controller.go index c59871e0c..9cb816f72 100755 --- a/internal/controller/neptune/parametergroup/zz_controller.go +++ b/internal/controller/neptune/parametergroup/zz_controller.go @@ -21,6 +21,7 @@ package parametergroup import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.ParameterGroup_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_neptune_parameter_group"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/neptune/subnetgroup/zz_controller.go b/internal/controller/neptune/subnetgroup/zz_controller.go index 1381f21e8..2019c3697 100755 --- a/internal/controller/neptune/subnetgroup/zz_controller.go +++ b/internal/controller/neptune/subnetgroup/zz_controller.go @@ -21,6 +21,7 @@ package subnetgroup import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.SubnetGroup_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_neptune_subnet_group"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/rds/cluster/zz_controller.go b/internal/controller/rds/cluster/zz_controller.go index 3a301c395..b1166fb92 100755 --- a/internal/controller/rds/cluster/zz_controller.go +++ b/internal/controller/rds/cluster/zz_controller.go @@ -21,6 +21,7 @@ package cluster import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Cluster_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_rds_cluster"], @@ -50,6 +55,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/rds/instance/zz_controller.go b/internal/controller/rds/instance/zz_controller.go index a2c40860f..bd86987e1 100755 --- a/internal/controller/rds/instance/zz_controller.go +++ b/internal/controller/rds/instance/zz_controller.go @@ -21,6 +21,7 @@ package instance import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Instance_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_db_instance"], @@ -50,6 +55,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/rds/parametergroup/zz_controller.go b/internal/controller/rds/parametergroup/zz_controller.go index 623500d46..97ac0639b 100755 --- a/internal/controller/rds/parametergroup/zz_controller.go +++ b/internal/controller/rds/parametergroup/zz_controller.go @@ -21,6 +21,7 @@ package parametergroup import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.ParameterGroup_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_db_parameter_group"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53/delegationset/zz_controller.go b/internal/controller/route53/delegationset/zz_controller.go index 59bb7b29b..67ca2811f 100755 --- a/internal/controller/route53/delegationset/zz_controller.go +++ b/internal/controller/route53/delegationset/zz_controller.go @@ -21,6 +21,7 @@ package delegationset import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.DelegationSet_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.DelegationSet_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_delegation_set"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53/healthcheck/zz_controller.go b/internal/controller/route53/healthcheck/zz_controller.go index c64f08278..b0165de4d 100755 --- a/internal/controller/route53/healthcheck/zz_controller.go +++ b/internal/controller/route53/healthcheck/zz_controller.go @@ -21,6 +21,7 @@ package healthcheck import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_route53_health_check"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.HealthCheck_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_health_check"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53/hostedzonednssec/zz_controller.go b/internal/controller/route53/hostedzonednssec/zz_controller.go index d7ce5aaea..3fe3959f6 100755 --- a/internal/controller/route53/hostedzonednssec/zz_controller.go +++ b/internal/controller/route53/hostedzonednssec/zz_controller.go @@ -21,6 +21,7 @@ package hostedzonednssec import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.HostedZoneDNSSEC_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.HostedZoneDNSSEC_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_hosted_zone_dnssec"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53/keysigningkey/zz_controller.go b/internal/controller/route53/keysigningkey/zz_controller.go index 73f37d38c..c1a193b76 100755 --- a/internal/controller/route53/keysigningkey/zz_controller.go +++ b/internal/controller/route53/keysigningkey/zz_controller.go @@ -21,6 +21,7 @@ package keysigningkey import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.KeySigningKey_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.KeySigningKey_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_key_signing_key"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53/querylog/zz_controller.go b/internal/controller/route53/querylog/zz_controller.go index f1aa6eda0..7146e5886 100755 --- a/internal/controller/route53/querylog/zz_controller.go +++ b/internal/controller/route53/querylog/zz_controller.go @@ -21,6 +21,7 @@ package querylog import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.QueryLog_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.QueryLog_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_query_log"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53/record/zz_controller.go b/internal/controller/route53/record/zz_controller.go index ed1622199..252485a69 100755 --- a/internal/controller/route53/record/zz_controller.go +++ b/internal/controller/route53/record/zz_controller.go @@ -21,6 +21,7 @@ package record import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.Record_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Record_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_record"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53/vpcassociationauthorization/zz_controller.go b/internal/controller/route53/vpcassociationauthorization/zz_controller.go index 26479f1f4..c1cf77ef3 100755 --- a/internal/controller/route53/vpcassociationauthorization/zz_controller.go +++ b/internal/controller/route53/vpcassociationauthorization/zz_controller.go @@ -21,6 +21,7 @@ package vpcassociationauthorization import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.VPCAssociationAuthorization_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.VPCAssociationAuthorization_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_vpc_association_authorization"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53/zone/zz_controller.go b/internal/controller/route53/zone/zz_controller.go index 7cdeeb260..7e4afc53f 100755 --- a/internal/controller/route53/zone/zz_controller.go +++ b/internal/controller/route53/zone/zz_controller.go @@ -21,6 +21,7 @@ package zone import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_route53_zone"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Zone_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_zone"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53/zoneassociation/zz_controller.go b/internal/controller/route53/zoneassociation/zz_controller.go index 83aaed0da..486f8c294 100755 --- a/internal/controller/route53/zoneassociation/zz_controller.go +++ b/internal/controller/route53/zoneassociation/zz_controller.go @@ -21,6 +21,7 @@ package zoneassociation import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha2.ZoneAssociation_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.ZoneAssociation_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_zone_association"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53resolver/dnssecconfig/zz_controller.go b/internal/controller/route53resolver/dnssecconfig/zz_controller.go index 4151528dd..d5c8540b9 100755 --- a/internal/controller/route53resolver/dnssecconfig/zz_controller.go +++ b/internal/controller/route53resolver/dnssecconfig/zz_controller.go @@ -21,6 +21,7 @@ package dnssecconfig import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha1.DNSSECConfig_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.DNSSECConfig_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_resolver_dnssec_config"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53resolver/endpoint/zz_controller.go b/internal/controller/route53resolver/endpoint/zz_controller.go index 68ca2de61..26379d5e1 100755 --- a/internal/controller/route53resolver/endpoint/zz_controller.go +++ b/internal/controller/route53resolver/endpoint/zz_controller.go @@ -21,6 +21,7 @@ package endpoint import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_route53_resolver_endpoint"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.Endpoint_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_resolver_endpoint"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53resolver/firewallconfig/zz_controller.go b/internal/controller/route53resolver/firewallconfig/zz_controller.go index 4f2f002c5..4dcc06c4e 100755 --- a/internal/controller/route53resolver/firewallconfig/zz_controller.go +++ b/internal/controller/route53resolver/firewallconfig/zz_controller.go @@ -21,6 +21,7 @@ package firewallconfig import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha1.FirewallConfig_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.FirewallConfig_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_resolver_firewall_config"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53resolver/firewalldomainlist/zz_controller.go b/internal/controller/route53resolver/firewalldomainlist/zz_controller.go index ce16f4c03..1ceb3a0af 100755 --- a/internal/controller/route53resolver/firewalldomainlist/zz_controller.go +++ b/internal/controller/route53resolver/firewalldomainlist/zz_controller.go @@ -21,6 +21,7 @@ package firewalldomainlist import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_route53_resolver_firewall_domain_list"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.FirewallDomainList_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_resolver_firewall_domain_list"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53resolver/firewallrule/zz_controller.go b/internal/controller/route53resolver/firewallrule/zz_controller.go index 8aa777417..405be4a70 100755 --- a/internal/controller/route53resolver/firewallrule/zz_controller.go +++ b/internal/controller/route53resolver/firewallrule/zz_controller.go @@ -21,6 +21,7 @@ package firewallrule import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha1.FirewallRule_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.FirewallRule_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_resolver_firewall_rule"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53resolver/firewallrulegroup/zz_controller.go b/internal/controller/route53resolver/firewallrulegroup/zz_controller.go index b3ad39e86..7e1543cad 100755 --- a/internal/controller/route53resolver/firewallrulegroup/zz_controller.go +++ b/internal/controller/route53resolver/firewallrulegroup/zz_controller.go @@ -21,6 +21,7 @@ package firewallrulegroup import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_route53_resolver_firewall_rule_group"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.FirewallRuleGroup_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_resolver_firewall_rule_group"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53resolver/firewallrulegroupassociation/zz_controller.go b/internal/controller/route53resolver/firewallrulegroupassociation/zz_controller.go index c77a8fbce..9763a5749 100755 --- a/internal/controller/route53resolver/firewallrulegroupassociation/zz_controller.go +++ b/internal/controller/route53resolver/firewallrulegroupassociation/zz_controller.go @@ -21,6 +21,7 @@ package firewallrulegroupassociation import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_route53_resolver_firewall_rule_group_association"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.FirewallRuleGroupAssociation_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_resolver_firewall_rule_group_association"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53resolver/querylogconfig/zz_controller.go b/internal/controller/route53resolver/querylogconfig/zz_controller.go index 817d3c43f..0fb496847 100755 --- a/internal/controller/route53resolver/querylogconfig/zz_controller.go +++ b/internal/controller/route53resolver/querylogconfig/zz_controller.go @@ -21,6 +21,7 @@ package querylogconfig import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_route53_resolver_query_log_config"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.QueryLogConfig_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_resolver_query_log_config"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53resolver/querylogconfigassociation/zz_controller.go b/internal/controller/route53resolver/querylogconfigassociation/zz_controller.go index a1d9e5a6b..35ade1c0f 100755 --- a/internal/controller/route53resolver/querylogconfigassociation/zz_controller.go +++ b/internal/controller/route53resolver/querylogconfigassociation/zz_controller.go @@ -21,6 +21,7 @@ package querylogconfigassociation import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha1.QueryLogConfigAssociation_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.QueryLogConfigAssociation_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_resolver_query_log_config_association"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53resolver/rule/zz_controller.go b/internal/controller/route53resolver/rule/zz_controller.go index 592abbbbe..5e3698c6e 100755 --- a/internal/controller/route53resolver/rule/zz_controller.go +++ b/internal/controller/route53resolver/rule/zz_controller.go @@ -21,6 +21,7 @@ package rule import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -39,6 +40,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { for _, i := range o.Provider.Resources["aws_route53_resolver_rule"].InitializerFns { initializers = append(initializers, i(mgr.GetClient())) } + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.Rule_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_resolver_rule"])), @@ -47,6 +52,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/route53resolver/ruleassociation/zz_controller.go b/internal/controller/route53resolver/ruleassociation/zz_controller.go index 4519bff8f..bc7542548 100755 --- a/internal/controller/route53resolver/ruleassociation/zz_controller.go +++ b/internal/controller/route53resolver/ruleassociation/zz_controller.go @@ -21,6 +21,7 @@ package ruleassociation import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -36,6 +37,10 @@ import ( func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { name := managed.ControllerName(v1alpha1.RuleAssociation_GroupVersionKind.String()) var initializers managed.InitializerChain + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha1.RuleAssociation_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_route53_resolver_rule_association"])), @@ -44,6 +49,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/controller/s3/bucket/zz_controller.go b/internal/controller/s3/bucket/zz_controller.go index ab5548d34..83e250e01 100755 --- a/internal/controller/s3/bucket/zz_controller.go +++ b/internal/controller/s3/bucket/zz_controller.go @@ -21,6 +21,7 @@ package bucket import ( "time" + "github.com/crossplane/crossplane-runtime/pkg/connection" "github.com/crossplane/crossplane-runtime/pkg/event" "github.com/crossplane/crossplane-runtime/pkg/ratelimiter" "github.com/crossplane/crossplane-runtime/pkg/reconciler/managed" @@ -40,6 +41,10 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { initializers = append(initializers, i(mgr.GetClient())) } initializers = append(initializers, managed.NewNameAsExternalName(mgr.GetClient())) + cps := []managed.ConnectionPublisher{managed.NewAPISecretPublisher(mgr.GetClient(), mgr.GetScheme())} + if o.SecretStoreConfigGVK != nil { + cps = append(cps, connection.NewDetailsManager(mgr.GetClient(), *o.SecretStoreConfigGVK)) + } r := managed.NewReconciler(mgr, xpresource.ManagedKind(v1alpha2.Bucket_GroupVersionKind), managed.WithExternalConnecter(tjcontroller.NewConnector(mgr.GetClient(), o.WorkspaceStore, o.SetupFn, o.Provider.Resources["aws_s3_bucket"])), @@ -48,6 +53,7 @@ func Setup(mgr ctrl.Manager, o tjcontroller.Options) error { managed.WithFinalizer(terraform.NewWorkspaceFinalizer(o.WorkspaceStore, xpresource.NewAPIFinalizer(mgr.GetClient(), managed.FinalizerName))), managed.WithTimeout(3*time.Minute), managed.WithInitializers(initializers), + managed.WithConnectionPublishers(cps...), ) return ctrl.NewControllerManagedBy(mgr). diff --git a/internal/features/features.go b/internal/features/features.go new file mode 100644 index 000000000..dd2d609ff --- /dev/null +++ b/internal/features/features.go @@ -0,0 +1,24 @@ +/* + Copyright 2022 The Crossplane Authors. + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +package features + +import "github.com/crossplane/crossplane-runtime/pkg/feature" + +// Feature flags. +const ( + // EnableAlphaExternalSecretStores enables alpha support for + // External Secret Stores. See the below design for more details. + // https://github.com/crossplane/crossplane/blob/390ddd/design/design-doc-external-secret-stores.md + EnableAlphaExternalSecretStores feature.Flag = "EnableAlphaExternalSecretStores" +) diff --git a/package/crds/autoscaling.aws.jet.crossplane.io_attachments.yaml b/package/crds/autoscaling.aws.jet.crossplane.io_attachments.yaml index 39244388b..80268258a 100644 --- a/package/crds/autoscaling.aws.jet.crossplane.io_attachments.yaml +++ b/package/crds/autoscaling.aws.jet.crossplane.io_attachments.yaml @@ -146,12 +146,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/autoscaling.aws.jet.crossplane.io_autoscalinggroups.yaml b/package/crds/autoscaling.aws.jet.crossplane.io_autoscalinggroups.yaml index 4688d0ffd..d93bcc3ac 100644 --- a/package/crds/autoscaling.aws.jet.crossplane.io_autoscalinggroups.yaml +++ b/package/crds/autoscaling.aws.jet.crossplane.io_autoscalinggroups.yaml @@ -349,12 +349,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/aws.jet.crossplane.io_storeconfigs.yaml b/package/crds/aws.jet.crossplane.io_storeconfigs.yaml new file mode 100644 index 000000000..893da8249 --- /dev/null +++ b/package/crds/aws.jet.crossplane.io_storeconfigs.yaml @@ -0,0 +1,318 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.8.0 + creationTimestamp: null + name: storeconfigs.aws.jet.crossplane.io +spec: + group: aws.jet.crossplane.io + names: + categories: + - crossplane + - store + - gcp + kind: StoreConfig + listKind: StoreConfigList + plural: storeconfigs + singular: storeconfig + scope: Cluster + versions: + - additionalPrinterColumns: + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + - jsonPath: .spec.type + name: TYPE + type: string + - jsonPath: .spec.defaultScope + name: DEFAULT-SCOPE + type: string + name: v1alpha1 + schema: + openAPIV3Schema: + description: A StoreConfig configures how GCP controller should store connection + details. + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: A StoreConfigSpec defines the desired state of a ProviderConfig. + properties: + defaultScope: + description: DefaultScope used for scoping secrets for "cluster-scoped" + resources. If store type is "Kubernetes", this would mean the default + namespace to store connection secrets for cluster scoped resources. + In case of "Vault", this would be used as the default parent path. + Typically, should be set as Crossplane installation namespace. + type: string + kubernetes: + description: Kubernetes configures a Kubernetes secret store. If the + "type" is "Kubernetes" but no config provided, in cluster config + will be used. + properties: + auth: + description: Credentials used to connect to the Kubernetes API. + properties: + env: + description: Env is a reference to an environment variable + that contains credentials that must be used to connect to + the provider. + properties: + name: + description: Name is the name of an environment variable. + type: string + required: + - name + type: object + fs: + description: Fs is a reference to a filesystem location that + contains credentials that must be used to connect to the + provider. + properties: + path: + description: Path is a filesystem path. + type: string + required: + - path + type: object + secretRef: + description: A SecretRef is a reference to a secret key that + contains the credentials that must be used to connect to + the provider. + properties: + key: + description: The key to select. + type: string + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - key + - name + - namespace + type: object + source: + description: Source of the credentials. + enum: + - None + - Secret + - Environment + - Filesystem + type: string + required: + - source + type: object + required: + - auth + type: object + type: + default: Kubernetes + description: Type configures which secret store to be used. Only the + configuration block for this store will be used and others will + be ignored if provided. Default is Kubernetes. + type: string + vault: + description: Vault configures a Vault secret store. + properties: + auth: + description: Auth configures an authentication method for Vault. + properties: + method: + description: Method configures which auth method will be used. + type: string + token: + description: Token configures Token Auth for Vault. + properties: + env: + description: Env is a reference to an environment variable + that contains credentials that must be used to connect + to the provider. + properties: + name: + description: Name is the name of an environment variable. + type: string + required: + - name + type: object + fs: + description: Fs is a reference to a filesystem location + that contains credentials that must be used to connect + to the provider. + properties: + path: + description: Path is a filesystem path. + type: string + required: + - path + type: object + secretRef: + description: A SecretRef is a reference to a secret key + that contains the credentials that must be used to connect + to the provider. + properties: + key: + description: The key to select. + type: string + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - key + - name + - namespace + type: object + source: + description: Source of the credentials. + enum: + - None + - Secret + - Environment + - Filesystem + type: string + required: + - source + type: object + required: + - method + type: object + caBundle: + description: CABundle configures CA bundle for Vault Server. + properties: + env: + description: Env is a reference to an environment variable + that contains credentials that must be used to connect to + the provider. + properties: + name: + description: Name is the name of an environment variable. + type: string + required: + - name + type: object + fs: + description: Fs is a reference to a filesystem location that + contains credentials that must be used to connect to the + provider. + properties: + path: + description: Path is a filesystem path. + type: string + required: + - path + type: object + secretRef: + description: A SecretRef is a reference to a secret key that + contains the credentials that must be used to connect to + the provider. + properties: + key: + description: The key to select. + type: string + name: + description: Name of the secret. + type: string + namespace: + description: Namespace of the secret. + type: string + required: + - key + - name + - namespace + type: object + source: + description: Source of the credentials. + enum: + - None + - Secret + - Environment + - Filesystem + type: string + required: + - source + type: object + mountPath: + description: MountPath is the mount path of the KV secrets engine. + type: string + server: + description: Server is the url of the Vault server, e.g. "https://vault.acme.org" + type: string + version: + default: v2 + description: Version of the KV Secrets engine of Vault. https://www.vaultproject.io/docs/secrets/kv + type: string + required: + - auth + - mountPath + - server + type: object + required: + - defaultScope + type: object + status: + description: A StoreConfigStatus represents the status of a StoreConfig. + properties: + conditions: + description: Conditions of the resource. + items: + description: A Condition that may apply to a resource. + properties: + lastTransitionTime: + description: LastTransitionTime is the last time this condition + transitioned from one status to another. + format: date-time + type: string + message: + description: A Message containing details about this condition's + last transition from one status to another, if any. + type: string + reason: + description: A Reason for this condition's last transition from + one status to another. + type: string + status: + description: Status of this condition; is it currently True, + False, or Unknown? + type: string + type: + description: Type of this condition. At most one of each condition + type may apply to a resource at any point in time. + type: string + required: + - lastTransitionTime + - reason + - status + - type + type: object + type: array + type: object + required: + - spec + type: object + served: true + storage: true + subresources: + status: {} +status: + acceptedNames: + kind: "" + plural: "" + conditions: [] + storedVersions: [] diff --git a/package/crds/ec2.aws.jet.crossplane.io_ebsvolumes.yaml b/package/crds/ec2.aws.jet.crossplane.io_ebsvolumes.yaml index 86ec700de..604fb4380 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_ebsvolumes.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_ebsvolumes.yaml @@ -142,12 +142,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_eips.yaml b/package/crds/ec2.aws.jet.crossplane.io_eips.yaml index e1fb64438..d2086575e 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_eips.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_eips.yaml @@ -160,12 +160,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_instances.yaml b/package/crds/ec2.aws.jet.crossplane.io_instances.yaml index 65e5afbb6..aa8af4315 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_instances.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_instances.yaml @@ -437,12 +437,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_launchtemplates.yaml b/package/crds/ec2.aws.jet.crossplane.io_launchtemplates.yaml index d8b51e4fb..5a3aa719e 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_launchtemplates.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_launchtemplates.yaml @@ -555,12 +555,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_networkinterfaces.yaml b/package/crds/ec2.aws.jet.crossplane.io_networkinterfaces.yaml index e7a7f2e1f..a8efc720d 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_networkinterfaces.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_networkinterfaces.yaml @@ -207,12 +207,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_routes.yaml b/package/crds/ec2.aws.jet.crossplane.io_routes.yaml index 5203981d0..3a4c0b893 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_routes.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_routes.yaml @@ -260,12 +260,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_routetableassociations.yaml b/package/crds/ec2.aws.jet.crossplane.io_routetableassociations.yaml index 7b837b57b..610bcd353 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_routetableassociations.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_routetableassociations.yaml @@ -147,12 +147,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_routetables.yaml b/package/crds/ec2.aws.jet.crossplane.io_routetables.yaml index cea250020..b27a76657 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_routetables.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_routetables.yaml @@ -254,12 +254,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_securitygrouprules.yaml b/package/crds/ec2.aws.jet.crossplane.io_securitygrouprules.yaml index 78c50dfb2..0871e723c 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_securitygrouprules.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_securitygrouprules.yaml @@ -150,12 +150,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_securitygroups.yaml b/package/crds/ec2.aws.jet.crossplane.io_securitygroups.yaml index 113430837..98c7904e9 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_securitygroups.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_securitygroups.yaml @@ -245,12 +245,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_subnets.yaml b/package/crds/ec2.aws.jet.crossplane.io_subnets.yaml index 87a8cf659..02a46cc11 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_subnets.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_subnets.yaml @@ -142,12 +142,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutes.yaml b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutes.yaml index f00f1b75f..de74646fd 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutes.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutes.yaml @@ -150,12 +150,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetableassociations.yaml b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetableassociations.yaml index 469107534..22f63066d 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetableassociations.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetableassociations.yaml @@ -146,12 +146,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetablepropagations.yaml b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetablepropagations.yaml index 75614fd74..acbac3e0f 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetablepropagations.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetablepropagations.yaml @@ -146,12 +146,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetables.yaml b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetables.yaml index 9f1fa9c6e..b041d851f 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetables.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayroutetables.yaml @@ -125,12 +125,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_transitgateways.yaml b/package/crds/ec2.aws.jet.crossplane.io_transitgateways.yaml index 2c30f7dcd..b579f1113 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_transitgateways.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_transitgateways.yaml @@ -112,12 +112,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayvpcattachmentaccepters.yaml b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayvpcattachmentaccepters.yaml index 3fe0d85ef..1d86cb172 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayvpcattachmentaccepters.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayvpcattachmentaccepters.yaml @@ -129,12 +129,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayvpcattachments.yaml b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayvpcattachments.yaml index c9edd7d52..9f00646d9 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_transitgatewayvpcattachments.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_transitgatewayvpcattachments.yaml @@ -189,12 +189,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_vpcendpoints.yaml b/package/crds/ec2.aws.jet.crossplane.io_vpcendpoints.yaml index 78cb63c49..e4d97d8b6 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_vpcendpoints.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_vpcendpoints.yaml @@ -221,12 +221,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_vpcipv4cidrblockassociations.yaml b/package/crds/ec2.aws.jet.crossplane.io_vpcipv4cidrblockassociations.yaml index 0bc36219c..d6e5f00ad 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_vpcipv4cidrblockassociations.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_vpcipv4cidrblockassociations.yaml @@ -124,12 +124,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_vpcpeeringconnections.yaml b/package/crds/ec2.aws.jet.crossplane.io_vpcpeeringconnections.yaml index 5a572081e..0a7899711 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_vpcpeeringconnections.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_vpcpeeringconnections.yaml @@ -177,12 +177,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ec2.aws.jet.crossplane.io_vpcs.yaml b/package/crds/ec2.aws.jet.crossplane.io_vpcs.yaml index f36e81de8..ff18d4743 100644 --- a/package/crds/ec2.aws.jet.crossplane.io_vpcs.yaml +++ b/package/crds/ec2.aws.jet.crossplane.io_vpcs.yaml @@ -113,12 +113,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ecr.aws.jet.crossplane.io_repositories.yaml b/package/crds/ecr.aws.jet.crossplane.io_repositories.yaml index ba65e6a44..f9f16cf54 100644 --- a/package/crds/ecr.aws.jet.crossplane.io_repositories.yaml +++ b/package/crds/ecr.aws.jet.crossplane.io_repositories.yaml @@ -142,12 +142,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ecrpublic.aws.jet.crossplane.io_repositories.yaml b/package/crds/ecrpublic.aws.jet.crossplane.io_repositories.yaml index 724a58ef2..3e99211ff 100644 --- a/package/crds/ecrpublic.aws.jet.crossplane.io_repositories.yaml +++ b/package/crds/ecrpublic.aws.jet.crossplane.io_repositories.yaml @@ -117,12 +117,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ecs.aws.jet.crossplane.io_capacityproviders.yaml b/package/crds/ecs.aws.jet.crossplane.io_capacityproviders.yaml index e4b98cc95..d06feefca 100644 --- a/package/crds/ecs.aws.jet.crossplane.io_capacityproviders.yaml +++ b/package/crds/ecs.aws.jet.crossplane.io_capacityproviders.yaml @@ -147,12 +147,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ecs.aws.jet.crossplane.io_clusters.yaml b/package/crds/ecs.aws.jet.crossplane.io_clusters.yaml index e6d18833d..7cfb4695e 100644 --- a/package/crds/ecs.aws.jet.crossplane.io_clusters.yaml +++ b/package/crds/ecs.aws.jet.crossplane.io_clusters.yaml @@ -181,12 +181,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ecs.aws.jet.crossplane.io_services.yaml b/package/crds/ecs.aws.jet.crossplane.io_services.yaml index 1aa90c910..47f2aeb5d 100644 --- a/package/crds/ecs.aws.jet.crossplane.io_services.yaml +++ b/package/crds/ecs.aws.jet.crossplane.io_services.yaml @@ -326,12 +326,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/ecs.aws.jet.crossplane.io_taskdefinitions.yaml b/package/crds/ecs.aws.jet.crossplane.io_taskdefinitions.yaml index 45efe0932..241e6490a 100644 --- a/package/crds/ecs.aws.jet.crossplane.io_taskdefinitions.yaml +++ b/package/crds/ecs.aws.jet.crossplane.io_taskdefinitions.yaml @@ -271,12 +271,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/eks.aws.jet.crossplane.io_addons.yaml b/package/crds/eks.aws.jet.crossplane.io_addons.yaml index d9d637dbe..ee0d73077 100644 --- a/package/crds/eks.aws.jet.crossplane.io_addons.yaml +++ b/package/crds/eks.aws.jet.crossplane.io_addons.yaml @@ -152,12 +152,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/eks.aws.jet.crossplane.io_clusters.yaml b/package/crds/eks.aws.jet.crossplane.io_clusters.yaml index 265c96b84..0e4dfac6b 100644 --- a/package/crds/eks.aws.jet.crossplane.io_clusters.yaml +++ b/package/crds/eks.aws.jet.crossplane.io_clusters.yaml @@ -231,12 +231,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/eks.aws.jet.crossplane.io_fargateprofiles.yaml b/package/crds/eks.aws.jet.crossplane.io_fargateprofiles.yaml index e1f205395..ed1a157f5 100644 --- a/package/crds/eks.aws.jet.crossplane.io_fargateprofiles.yaml +++ b/package/crds/eks.aws.jet.crossplane.io_fargateprofiles.yaml @@ -191,12 +191,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/eks.aws.jet.crossplane.io_identityproviderconfigs.yaml b/package/crds/eks.aws.jet.crossplane.io_identityproviderconfigs.yaml index 447967542..9a070ba64 100644 --- a/package/crds/eks.aws.jet.crossplane.io_identityproviderconfigs.yaml +++ b/package/crds/eks.aws.jet.crossplane.io_identityproviderconfigs.yaml @@ -152,12 +152,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/eks.aws.jet.crossplane.io_nodegroups.yaml b/package/crds/eks.aws.jet.crossplane.io_nodegroups.yaml index 92f771797..375c58e20 100644 --- a/package/crds/eks.aws.jet.crossplane.io_nodegroups.yaml +++ b/package/crds/eks.aws.jet.crossplane.io_nodegroups.yaml @@ -286,12 +286,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/elasticache.aws.jet.crossplane.io_clusters.yaml b/package/crds/elasticache.aws.jet.crossplane.io_clusters.yaml index 22f6edcc7..1159ab3cd 100644 --- a/package/crds/elasticache.aws.jet.crossplane.io_clusters.yaml +++ b/package/crds/elasticache.aws.jet.crossplane.io_clusters.yaml @@ -171,12 +171,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/elasticache.aws.jet.crossplane.io_parametergroups.yaml b/package/crds/elasticache.aws.jet.crossplane.io_parametergroups.yaml index 5bb29d41d..fa267b025 100644 --- a/package/crds/elasticache.aws.jet.crossplane.io_parametergroups.yaml +++ b/package/crds/elasticache.aws.jet.crossplane.io_parametergroups.yaml @@ -115,12 +115,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/elasticache.aws.jet.crossplane.io_replicationgroups.yaml b/package/crds/elasticache.aws.jet.crossplane.io_replicationgroups.yaml index d5e857e63..12929ae1f 100644 --- a/package/crds/elasticache.aws.jet.crossplane.io_replicationgroups.yaml +++ b/package/crds/elasticache.aws.jet.crossplane.io_replicationgroups.yaml @@ -236,12 +236,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/elasticache.aws.jet.crossplane.io_usergroups.yaml b/package/crds/elasticache.aws.jet.crossplane.io_usergroups.yaml index a8192d224..2f92fc066 100644 --- a/package/crds/elasticache.aws.jet.crossplane.io_usergroups.yaml +++ b/package/crds/elasticache.aws.jet.crossplane.io_usergroups.yaml @@ -132,12 +132,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/elasticache.aws.jet.crossplane.io_users.yaml b/package/crds/elasticache.aws.jet.crossplane.io_users.yaml index 2d4f3a357..45f7c3faf 100644 --- a/package/crds/elasticache.aws.jet.crossplane.io_users.yaml +++ b/package/crds/elasticache.aws.jet.crossplane.io_users.yaml @@ -131,12 +131,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/elbv2.aws.jet.crossplane.io_lblisteners.yaml b/package/crds/elbv2.aws.jet.crossplane.io_lblisteners.yaml index 0213cacb3..67f6d9206 100644 --- a/package/crds/elbv2.aws.jet.crossplane.io_lblisteners.yaml +++ b/package/crds/elbv2.aws.jet.crossplane.io_lblisteners.yaml @@ -333,12 +333,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/elbv2.aws.jet.crossplane.io_lbs.yaml b/package/crds/elbv2.aws.jet.crossplane.io_lbs.yaml index e36497f1f..179b52b84 100644 --- a/package/crds/elbv2.aws.jet.crossplane.io_lbs.yaml +++ b/package/crds/elbv2.aws.jet.crossplane.io_lbs.yaml @@ -248,12 +248,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroupattachments.yaml b/package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroupattachments.yaml index 11819c47a..2a1650431 100644 --- a/package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroupattachments.yaml +++ b/package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroupattachments.yaml @@ -128,12 +128,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroups.yaml b/package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroups.yaml index 4ee877f9a..ba02435f6 100644 --- a/package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroups.yaml +++ b/package/crds/elbv2.aws.jet.crossplane.io_lbtargetgroups.yaml @@ -184,12 +184,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/iam.aws.jet.crossplane.io_accesskeys.yaml b/package/crds/iam.aws.jet.crossplane.io_accesskeys.yaml index 9e23cee48..33a1691bd 100644 --- a/package/crds/iam.aws.jet.crossplane.io_accesskeys.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_accesskeys.yaml @@ -117,12 +117,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/iam.aws.jet.crossplane.io_grouppolicyattachments.yaml b/package/crds/iam.aws.jet.crossplane.io_grouppolicyattachments.yaml index 6b819496c..53a6532a0 100644 --- a/package/crds/iam.aws.jet.crossplane.io_grouppolicyattachments.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_grouppolicyattachments.yaml @@ -139,12 +139,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/iam.aws.jet.crossplane.io_groups.yaml b/package/crds/iam.aws.jet.crossplane.io_groups.yaml index 899702723..0ea2ce3c8 100644 --- a/package/crds/iam.aws.jet.crossplane.io_groups.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_groups.yaml @@ -90,12 +90,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/iam.aws.jet.crossplane.io_instanceprofiles.yaml b/package/crds/iam.aws.jet.crossplane.io_instanceprofiles.yaml index 5caa97a5e..5ccac842d 100644 --- a/package/crds/iam.aws.jet.crossplane.io_instanceprofiles.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_instanceprofiles.yaml @@ -119,12 +119,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/iam.aws.jet.crossplane.io_policies.yaml b/package/crds/iam.aws.jet.crossplane.io_policies.yaml index a1cb81905..7b3907ee0 100644 --- a/package/crds/iam.aws.jet.crossplane.io_policies.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_policies.yaml @@ -104,12 +104,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/iam.aws.jet.crossplane.io_rolepolicyattachments.yaml b/package/crds/iam.aws.jet.crossplane.io_rolepolicyattachments.yaml index 6b9fc459d..65eb15c46 100644 --- a/package/crds/iam.aws.jet.crossplane.io_rolepolicyattachments.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_rolepolicyattachments.yaml @@ -139,12 +139,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/iam.aws.jet.crossplane.io_roles.yaml b/package/crds/iam.aws.jet.crossplane.io_roles.yaml index f33c36b4d..5016a4ef2 100644 --- a/package/crds/iam.aws.jet.crossplane.io_roles.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_roles.yaml @@ -119,12 +119,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/iam.aws.jet.crossplane.io_usergroupmemberships.yaml b/package/crds/iam.aws.jet.crossplane.io_usergroupmemberships.yaml index 9a68ba1ad..55a768c53 100644 --- a/package/crds/iam.aws.jet.crossplane.io_usergroupmemberships.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_usergroupmemberships.yaml @@ -143,12 +143,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/iam.aws.jet.crossplane.io_userpolicyattachments.yaml b/package/crds/iam.aws.jet.crossplane.io_userpolicyattachments.yaml index 009a1c849..18a9b3b00 100644 --- a/package/crds/iam.aws.jet.crossplane.io_userpolicyattachments.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_userpolicyattachments.yaml @@ -139,12 +139,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/iam.aws.jet.crossplane.io_users.yaml b/package/crds/iam.aws.jet.crossplane.io_users.yaml index e10806c85..5994089b1 100644 --- a/package/crds/iam.aws.jet.crossplane.io_users.yaml +++ b/package/crds/iam.aws.jet.crossplane.io_users.yaml @@ -100,12 +100,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/kms.aws.jet.crossplane.io_keys.yaml b/package/crds/kms.aws.jet.crossplane.io_keys.yaml index 6c34632a4..79204112e 100644 --- a/package/crds/kms.aws.jet.crossplane.io_keys.yaml +++ b/package/crds/kms.aws.jet.crossplane.io_keys.yaml @@ -114,12 +114,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/neptune.aws.jet.crossplane.io_clusterendpoints.yaml b/package/crds/neptune.aws.jet.crossplane.io_clusterendpoints.yaml index 67890fa51..37e00576c 100644 --- a/package/crds/neptune.aws.jet.crossplane.io_clusterendpoints.yaml +++ b/package/crds/neptune.aws.jet.crossplane.io_clusterendpoints.yaml @@ -134,12 +134,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/neptune.aws.jet.crossplane.io_clusterinstances.yaml b/package/crds/neptune.aws.jet.crossplane.io_clusterinstances.yaml index cc5b22870..3686a8b78 100644 --- a/package/crds/neptune.aws.jet.crossplane.io_clusterinstances.yaml +++ b/package/crds/neptune.aws.jet.crossplane.io_clusterinstances.yaml @@ -196,12 +196,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/neptune.aws.jet.crossplane.io_clusterparametergroups.yaml b/package/crds/neptune.aws.jet.crossplane.io_clusterparametergroups.yaml index 141415aa7..c47a3bb10 100644 --- a/package/crds/neptune.aws.jet.crossplane.io_clusterparametergroups.yaml +++ b/package/crds/neptune.aws.jet.crossplane.io_clusterparametergroups.yaml @@ -118,12 +118,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/neptune.aws.jet.crossplane.io_clusters.yaml b/package/crds/neptune.aws.jet.crossplane.io_clusters.yaml index e6f744369..8befc67f1 100644 --- a/package/crds/neptune.aws.jet.crossplane.io_clusters.yaml +++ b/package/crds/neptune.aws.jet.crossplane.io_clusters.yaml @@ -315,12 +315,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/neptune.aws.jet.crossplane.io_clustersnapshots.yaml b/package/crds/neptune.aws.jet.crossplane.io_clustersnapshots.yaml index 203f46743..a4470c89d 100644 --- a/package/crds/neptune.aws.jet.crossplane.io_clustersnapshots.yaml +++ b/package/crds/neptune.aws.jet.crossplane.io_clustersnapshots.yaml @@ -119,12 +119,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/neptune.aws.jet.crossplane.io_eventsubscriptions.yaml b/package/crds/neptune.aws.jet.crossplane.io_eventsubscriptions.yaml index 469219d63..ce10a55e2 100644 --- a/package/crds/neptune.aws.jet.crossplane.io_eventsubscriptions.yaml +++ b/package/crds/neptune.aws.jet.crossplane.io_eventsubscriptions.yaml @@ -113,12 +113,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/neptune.aws.jet.crossplane.io_parametergroups.yaml b/package/crds/neptune.aws.jet.crossplane.io_parametergroups.yaml index d5a225538..bd837e029 100644 --- a/package/crds/neptune.aws.jet.crossplane.io_parametergroups.yaml +++ b/package/crds/neptune.aws.jet.crossplane.io_parametergroups.yaml @@ -117,12 +117,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/neptune.aws.jet.crossplane.io_subnetgroups.yaml b/package/crds/neptune.aws.jet.crossplane.io_subnetgroups.yaml index 74e5d1992..480e431b6 100644 --- a/package/crds/neptune.aws.jet.crossplane.io_subnetgroups.yaml +++ b/package/crds/neptune.aws.jet.crossplane.io_subnetgroups.yaml @@ -129,12 +129,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/rds.aws.jet.crossplane.io_clusters.yaml b/package/crds/rds.aws.jet.crossplane.io_clusters.yaml index 84d6f8ed1..f005948ff 100644 --- a/package/crds/rds.aws.jet.crossplane.io_clusters.yaml +++ b/package/crds/rds.aws.jet.crossplane.io_clusters.yaml @@ -308,12 +308,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/rds.aws.jet.crossplane.io_instances.yaml b/package/crds/rds.aws.jet.crossplane.io_instances.yaml index 942d62bd2..a10dd2d9b 100644 --- a/package/crds/rds.aws.jet.crossplane.io_instances.yaml +++ b/package/crds/rds.aws.jet.crossplane.io_instances.yaml @@ -418,12 +418,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/rds.aws.jet.crossplane.io_parametergroups.yaml b/package/crds/rds.aws.jet.crossplane.io_parametergroups.yaml index 2db73875f..c617c14e5 100644 --- a/package/crds/rds.aws.jet.crossplane.io_parametergroups.yaml +++ b/package/crds/rds.aws.jet.crossplane.io_parametergroups.yaml @@ -117,12 +117,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53.aws.jet.crossplane.io_delegationsets.yaml b/package/crds/route53.aws.jet.crossplane.io_delegationsets.yaml index ced2d4c06..c2267d4ca 100644 --- a/package/crds/route53.aws.jet.crossplane.io_delegationsets.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_delegationsets.yaml @@ -96,12 +96,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53.aws.jet.crossplane.io_healthchecks.yaml b/package/crds/route53.aws.jet.crossplane.io_healthchecks.yaml index a163d345f..21303ab24 100644 --- a/package/crds/route53.aws.jet.crossplane.io_healthchecks.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_healthchecks.yaml @@ -141,12 +141,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53.aws.jet.crossplane.io_hostedzonednssecs.yaml b/package/crds/route53.aws.jet.crossplane.io_hostedzonednssecs.yaml index 42d36cde7..c17aa8959 100644 --- a/package/crds/route53.aws.jet.crossplane.io_hostedzonednssecs.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_hostedzonednssecs.yaml @@ -121,12 +121,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53.aws.jet.crossplane.io_keysigningkeys.yaml b/package/crds/route53.aws.jet.crossplane.io_keysigningkeys.yaml index 8e00bef61..dd0d8a3c5 100644 --- a/package/crds/route53.aws.jet.crossplane.io_keysigningkeys.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_keysigningkeys.yaml @@ -149,12 +149,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53.aws.jet.crossplane.io_querylogs.yaml b/package/crds/route53.aws.jet.crossplane.io_querylogs.yaml index 6bd67fe57..66133e786 100644 --- a/package/crds/route53.aws.jet.crossplane.io_querylogs.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_querylogs.yaml @@ -100,12 +100,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53.aws.jet.crossplane.io_records.yaml b/package/crds/route53.aws.jet.crossplane.io_records.yaml index 23af775c4..3b55b87f0 100644 --- a/package/crds/route53.aws.jet.crossplane.io_records.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_records.yaml @@ -215,12 +215,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53.aws.jet.crossplane.io_vpcassociationauthorizations.yaml b/package/crds/route53.aws.jet.crossplane.io_vpcassociationauthorizations.yaml index 681858b64..f6017a963 100644 --- a/package/crds/route53.aws.jet.crossplane.io_vpcassociationauthorizations.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_vpcassociationauthorizations.yaml @@ -148,12 +148,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53.aws.jet.crossplane.io_zoneassociations.yaml b/package/crds/route53.aws.jet.crossplane.io_zoneassociations.yaml index 3e63c237c..8ce998489 100644 --- a/package/crds/route53.aws.jet.crossplane.io_zoneassociations.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_zoneassociations.yaml @@ -146,12 +146,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53.aws.jet.crossplane.io_zones.yaml b/package/crds/route53.aws.jet.crossplane.io_zones.yaml index a1d988708..c3cfbc460 100644 --- a/package/crds/route53.aws.jet.crossplane.io_zones.yaml +++ b/package/crds/route53.aws.jet.crossplane.io_zones.yaml @@ -163,12 +163,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53resolver.aws.jet.crossplane.io_dnssecconfigs.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_dnssecconfigs.yaml index 3d41b6f84..cb65face9 100644 --- a/package/crds/route53resolver.aws.jet.crossplane.io_dnssecconfigs.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_dnssecconfigs.yaml @@ -97,12 +97,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53resolver.aws.jet.crossplane.io_endpoints.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_endpoints.yaml index 9c068aa27..df124f356 100644 --- a/package/crds/route53resolver.aws.jet.crossplane.io_endpoints.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_endpoints.yaml @@ -144,12 +144,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53resolver.aws.jet.crossplane.io_firewallconfigs.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_firewallconfigs.yaml index 83cf04902..78771a81a 100644 --- a/package/crds/route53resolver.aws.jet.crossplane.io_firewallconfigs.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_firewallconfigs.yaml @@ -99,12 +99,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53resolver.aws.jet.crossplane.io_firewalldomainlists.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_firewalldomainlists.yaml index f6e37e354..61f0d25b0 100644 --- a/package/crds/route53resolver.aws.jet.crossplane.io_firewalldomainlists.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_firewalldomainlists.yaml @@ -106,12 +106,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53resolver.aws.jet.crossplane.io_firewallrulegroupassociations.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_firewallrulegroupassociations.yaml index 4781650af..0daca9b3f 100644 --- a/package/crds/route53resolver.aws.jet.crossplane.io_firewallrulegroupassociations.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_firewallrulegroupassociations.yaml @@ -136,12 +136,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53resolver.aws.jet.crossplane.io_firewallrulegroups.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_firewallrulegroups.yaml index 7ad2cc0e8..e18490d48 100644 --- a/package/crds/route53resolver.aws.jet.crossplane.io_firewallrulegroups.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_firewallrulegroups.yaml @@ -101,12 +101,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53resolver.aws.jet.crossplane.io_firewallrules.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_firewallrules.yaml index 30a8f194b..f62a67c9d 100644 --- a/package/crds/route53resolver.aws.jet.crossplane.io_firewallrules.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_firewallrules.yaml @@ -117,12 +117,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigassociations.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigassociations.yaml index 912d3ce09..3a5fbc69d 100644 --- a/package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigassociations.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigassociations.yaml @@ -102,12 +102,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigs.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigs.yaml index 159ed19f1..a261c8f1e 100644 --- a/package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigs.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_querylogconfigs.yaml @@ -104,12 +104,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53resolver.aws.jet.crossplane.io_ruleassociations.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_ruleassociations.yaml index 8651e6b9c..f5ac38dcc 100644 --- a/package/crds/route53resolver.aws.jet.crossplane.io_ruleassociations.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_ruleassociations.yaml @@ -124,12 +124,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/route53resolver.aws.jet.crossplane.io_rules.yaml b/package/crds/route53resolver.aws.jet.crossplane.io_rules.yaml index 14aac666c..cb6fec5b0 100644 --- a/package/crds/route53resolver.aws.jet.crossplane.io_rules.yaml +++ b/package/crds/route53resolver.aws.jet.crossplane.io_rules.yaml @@ -119,12 +119,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret. diff --git a/package/crds/s3.aws.jet.crossplane.io_buckets.yaml b/package/crds/s3.aws.jet.crossplane.io_buckets.yaml index a22e84456..bdd041fa5 100644 --- a/package/crds/s3.aws.jet.crossplane.io_buckets.yaml +++ b/package/crds/s3.aws.jet.crossplane.io_buckets.yaml @@ -411,12 +411,64 @@ spec: required: - name type: object + publishConnectionDetailsTo: + description: PublishConnectionDetailsTo specifies the connection secret + config which contains a name, metadata and a reference to secret + store config to which any connection details for this managed resource + should be written. Connection details frequently include the endpoint, + username, and password required to connect to the managed resource. + properties: + configRef: + default: + name: default + description: SecretStoreConfigRef specifies which secret store + config should be used for this ConnectionSecret. + properties: + name: + description: Name of the referenced object. + type: string + required: + - name + type: object + metadata: + description: Metadata is the metadata for connection secret. + properties: + annotations: + additionalProperties: + type: string + description: Annotations are the annotations to be added to + connection secret. - For Kubernetes secrets, this will be + used as "metadata.annotations". - It is up to Secret Store + implementation for others store types. + type: object + labels: + additionalProperties: + type: string + description: Labels are the labels/tags to be added to connection + secret. - For Kubernetes secrets, this will be used as "metadata.labels". + - It is up to Secret Store implementation for others store + types. + type: object + type: + description: Type is the SecretType for the connection secret. + - Only valid for Kubernetes Secret Stores. + type: string + type: object + name: + description: Name is the name of the connection secret. + type: string + required: + - name + type: object writeConnectionSecretToRef: description: WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the - managed resource. + managed resource. This field is planned to be replaced in a future + release in favor of PublishConnectionDetailsTo. Currently, both + could be set independently and connection details would be published + to both without affecting each other. properties: name: description: Name of the secret.