From 3b38c2c5d22445829b02a5c90bdc020bf4238221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergen=20Yal=C3=A7=C4=B1n?= Date: Wed, 16 Mar 2022 13:49:32 +0300 Subject: [PATCH] Consume the terrajet commit that is related generating a single zz_generated.terraformed.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sergen Yalçın --- .../v1alpha2/zz_attachment_terraformed.go | 100 - ...aformed.go => zz_generated_terraformed.go} | 74 + apis/ec2/v1alpha2/zz_ebsvolume_terraformed.go | 100 - apis/ec2/v1alpha2/zz_eip_terraformed.go | 100 - apis/ec2/v1alpha2/zz_generated_terraformed.go | 1660 +++++++++++++++++ apis/ec2/v1alpha2/zz_instance_terraformed.go | 104 -- .../v1alpha2/zz_launchtemplate_terraformed.go | 100 - .../zz_networkinterface_terraformed.go | 101 - apis/ec2/v1alpha2/zz_route_terraformed.go | 100 - .../ec2/v1alpha2/zz_routetable_terraformed.go | 100 - .../zz_routetableassociation_terraformed.go | 100 - .../v1alpha2/zz_securitygroup_terraformed.go | 100 - .../zz_securitygrouprule_terraformed.go | 100 - apis/ec2/v1alpha2/zz_subnet_terraformed.go | 101 - .../v1alpha2/zz_transitgateway_terraformed.go | 100 - .../zz_transitgatewayroute_terraformed.go | 100 - ...zz_transitgatewayroutetable_terraformed.go | 100 - ...atewayroutetableassociation_terraformed.go | 100 - ...atewayroutetablepropagation_terraformed.go | 100 - ...transitgatewayvpcattachment_terraformed.go | 100 - ...atewayvpcattachmentaccepter_terraformed.go | 100 - apis/ec2/v1alpha2/zz_vpc_terraformed.go | 100 - .../v1alpha2/zz_vpcendpoint_terraformed.go | 100 - ...vpcipv4cidrblockassociation_terraformed.go | 100 - .../zz_vpcpeeringconnection_terraformed.go | 100 - ...aformed.go => zz_generated_terraformed.go} | 0 ...aformed.go => zz_generated_terraformed.go} | 0 .../zz_capacityprovider_terraformed.go | 100 - apis/ecs/v1alpha2/zz_cluster_terraformed.go | 100 - apis/ecs/v1alpha2/zz_generated_terraformed.go | 322 ++++ apis/ecs/v1alpha2/zz_service_terraformed.go | 100 - .../v1alpha2/zz_taskdefinition_terraformed.go | 100 - apis/eks/v1alpha2/zz_addon_terraformed.go | 100 - apis/eks/v1alpha2/zz_cluster_terraformed.go | 100 - .../v1alpha2/zz_fargateprofile_terraformed.go | 100 - apis/eks/v1alpha2/zz_generated_terraformed.go | 396 ++++ .../zz_identityproviderconfig_terraformed.go | 100 - apis/eks/v1alpha2/zz_nodegroup_terraformed.go | 100 - .../v1alpha2/zz_cluster_terraformed.go | 100 - .../v1alpha2/zz_generated_terraformed.go | 396 ++++ .../v1alpha2/zz_parametergroup_terraformed.go | 100 - .../zz_replicationgroup_terraformed.go | 100 - .../v1alpha2/zz_user_terraformed.go | 100 - .../v1alpha2/zz_usergroup_terraformed.go | 100 - .../v1alpha2/zz_generated_terraformed.go | 322 ++++ apis/elbv2/v1alpha2/zz_lb_terraformed.go | 100 - .../v1alpha2/zz_lblistener_terraformed.go | 100 - .../v1alpha2/zz_lbtargetgroup_terraformed.go | 100 - .../zz_lbtargetgroupattachment_terraformed.go | 100 - apis/iam/v1alpha2/zz_accesskey_terraformed.go | 100 - apis/iam/v1alpha2/zz_generated_terraformed.go | 766 ++++++++ apis/iam/v1alpha2/zz_group_terraformed.go | 100 - .../zz_grouppolicyattachment_terraformed.go | 100 - .../zz_instanceprofile_terraformed.go | 100 - apis/iam/v1alpha2/zz_policy_terraformed.go | 100 - apis/iam/v1alpha2/zz_role_terraformed.go | 100 - .../zz_rolepolicyattachment_terraformed.go | 100 - apis/iam/v1alpha2/zz_user_terraformed.go | 100 - .../zz_usergroupmembership_terraformed.go | 100 - .../zz_userpolicyattachment_terraformed.go | 100 - ...aformed.go => zz_generated_terraformed.go} | 0 .../v1alpha2/zz_cluster_terraformed.go | 100 - .../zz_clusterendpoint_terraformed.go | 100 - .../zz_clusterinstance_terraformed.go | 100 - .../zz_clusterparametergroup_terraformed.go | 100 - .../zz_clustersnapshot_terraformed.go | 100 - .../zz_eventsubscription_terraformed.go | 100 - .../v1alpha2/zz_generated_terraformed.go | 618 ++++++ .../v1alpha2/zz_parametergroup_terraformed.go | 100 - .../v1alpha2/zz_subnetgroup_terraformed.go | 100 - apis/rds/v1alpha2/zz_cluster_terraformed.go | 100 - apis/rds/v1alpha2/zz_generated_terraformed.go | 248 +++ apis/rds/v1alpha2/zz_instance_terraformed.go | 100 - .../v1alpha2/zz_parametergroup_terraformed.go | 100 - .../v1alpha2/zz_delegationset_terraformed.go | 100 - .../v1alpha2/zz_generated_terraformed.go | 692 +++++++ .../v1alpha2/zz_healthcheck_terraformed.go | 100 - .../zz_hostedzonednssec_terraformed.go | 100 - .../v1alpha2/zz_keysigningkey_terraformed.go | 100 - .../v1alpha2/zz_querylog_terraformed.go | 100 - .../route53/v1alpha2/zz_record_terraformed.go | 100 - ...vpcassociationauthorization_terraformed.go | 100 - apis/route53/v1alpha2/zz_zone_terraformed.go | 100 - .../zz_zoneassociation_terraformed.go | 100 - .../v1alpha1/zz_dnssecconfig_terraformed.go | 100 - .../v1alpha1/zz_endpoint_terraformed.go | 100 - .../v1alpha1/zz_firewallconfig_terraformed.go | 100 - .../zz_firewalldomainlist_terraformed.go | 100 - .../v1alpha1/zz_firewallrule_terraformed.go | 100 - .../zz_firewallrulegroup_terraformed.go | 100 - ...irewallrulegroupassociation_terraformed.go | 100 - .../v1alpha1/zz_generated_terraformed.go | 840 +++++++++ .../v1alpha1/zz_querylogconfig_terraformed.go | 100 - ...z_querylogconfigassociation_terraformed.go | 100 - .../v1alpha1/zz_rule_terraformed.go | 100 - .../zz_ruleassociation_terraformed.go | 100 - ...aformed.go => zz_generated_terraformed.go} | 0 go.mod | 2 +- go.sum | 4 +- 99 files changed, 6337 insertions(+), 8209 deletions(-) delete mode 100755 apis/autoscaling/v1alpha2/zz_attachment_terraformed.go rename apis/autoscaling/v1alpha2/{zz_autoscalinggroup_terraformed.go => zz_generated_terraformed.go} (57%) delete mode 100755 apis/ec2/v1alpha2/zz_ebsvolume_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_eip_terraformed.go create mode 100755 apis/ec2/v1alpha2/zz_generated_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_instance_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_launchtemplate_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_networkinterface_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_route_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_routetable_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_routetableassociation_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_securitygroup_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_securitygrouprule_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_subnet_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_transitgateway_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_transitgatewayroute_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_transitgatewayroutetable_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_transitgatewayroutetableassociation_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_transitgatewayroutetablepropagation_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_transitgatewayvpcattachment_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_transitgatewayvpcattachmentaccepter_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_vpc_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_vpcendpoint_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_vpcipv4cidrblockassociation_terraformed.go delete mode 100755 apis/ec2/v1alpha2/zz_vpcpeeringconnection_terraformed.go rename apis/ecr/v1alpha2/{zz_repository_terraformed.go => zz_generated_terraformed.go} (100%) rename apis/ecrpublic/v1alpha2/{zz_repository_terraformed.go => zz_generated_terraformed.go} (100%) delete mode 100755 apis/ecs/v1alpha2/zz_capacityprovider_terraformed.go delete mode 100755 apis/ecs/v1alpha2/zz_cluster_terraformed.go create mode 100755 apis/ecs/v1alpha2/zz_generated_terraformed.go delete mode 100755 apis/ecs/v1alpha2/zz_service_terraformed.go delete mode 100755 apis/ecs/v1alpha2/zz_taskdefinition_terraformed.go delete mode 100755 apis/eks/v1alpha2/zz_addon_terraformed.go delete mode 100755 apis/eks/v1alpha2/zz_cluster_terraformed.go delete mode 100755 apis/eks/v1alpha2/zz_fargateprofile_terraformed.go create mode 100755 apis/eks/v1alpha2/zz_generated_terraformed.go delete mode 100755 apis/eks/v1alpha2/zz_identityproviderconfig_terraformed.go delete mode 100755 apis/eks/v1alpha2/zz_nodegroup_terraformed.go delete mode 100755 apis/elasticache/v1alpha2/zz_cluster_terraformed.go create mode 100755 apis/elasticache/v1alpha2/zz_generated_terraformed.go delete mode 100755 apis/elasticache/v1alpha2/zz_parametergroup_terraformed.go delete mode 100755 apis/elasticache/v1alpha2/zz_replicationgroup_terraformed.go delete mode 100755 apis/elasticache/v1alpha2/zz_user_terraformed.go delete mode 100755 apis/elasticache/v1alpha2/zz_usergroup_terraformed.go create mode 100755 apis/elbv2/v1alpha2/zz_generated_terraformed.go delete mode 100755 apis/elbv2/v1alpha2/zz_lb_terraformed.go delete mode 100755 apis/elbv2/v1alpha2/zz_lblistener_terraformed.go delete mode 100755 apis/elbv2/v1alpha2/zz_lbtargetgroup_terraformed.go delete mode 100755 apis/elbv2/v1alpha2/zz_lbtargetgroupattachment_terraformed.go delete mode 100755 apis/iam/v1alpha2/zz_accesskey_terraformed.go create mode 100755 apis/iam/v1alpha2/zz_generated_terraformed.go delete mode 100755 apis/iam/v1alpha2/zz_group_terraformed.go delete mode 100755 apis/iam/v1alpha2/zz_grouppolicyattachment_terraformed.go delete mode 100755 apis/iam/v1alpha2/zz_instanceprofile_terraformed.go delete mode 100755 apis/iam/v1alpha2/zz_policy_terraformed.go delete mode 100755 apis/iam/v1alpha2/zz_role_terraformed.go delete mode 100755 apis/iam/v1alpha2/zz_rolepolicyattachment_terraformed.go delete mode 100755 apis/iam/v1alpha2/zz_user_terraformed.go delete mode 100755 apis/iam/v1alpha2/zz_usergroupmembership_terraformed.go delete mode 100755 apis/iam/v1alpha2/zz_userpolicyattachment_terraformed.go rename apis/kms/v1alpha2/{zz_key_terraformed.go => zz_generated_terraformed.go} (100%) delete mode 100755 apis/neptune/v1alpha2/zz_cluster_terraformed.go delete mode 100755 apis/neptune/v1alpha2/zz_clusterendpoint_terraformed.go delete mode 100755 apis/neptune/v1alpha2/zz_clusterinstance_terraformed.go delete mode 100755 apis/neptune/v1alpha2/zz_clusterparametergroup_terraformed.go delete mode 100755 apis/neptune/v1alpha2/zz_clustersnapshot_terraformed.go delete mode 100755 apis/neptune/v1alpha2/zz_eventsubscription_terraformed.go create mode 100755 apis/neptune/v1alpha2/zz_generated_terraformed.go delete mode 100755 apis/neptune/v1alpha2/zz_parametergroup_terraformed.go delete mode 100755 apis/neptune/v1alpha2/zz_subnetgroup_terraformed.go delete mode 100755 apis/rds/v1alpha2/zz_cluster_terraformed.go create mode 100755 apis/rds/v1alpha2/zz_generated_terraformed.go delete mode 100755 apis/rds/v1alpha2/zz_instance_terraformed.go delete mode 100755 apis/rds/v1alpha2/zz_parametergroup_terraformed.go delete mode 100755 apis/route53/v1alpha2/zz_delegationset_terraformed.go create mode 100755 apis/route53/v1alpha2/zz_generated_terraformed.go delete mode 100755 apis/route53/v1alpha2/zz_healthcheck_terraformed.go delete mode 100755 apis/route53/v1alpha2/zz_hostedzonednssec_terraformed.go delete mode 100755 apis/route53/v1alpha2/zz_keysigningkey_terraformed.go delete mode 100755 apis/route53/v1alpha2/zz_querylog_terraformed.go delete mode 100755 apis/route53/v1alpha2/zz_record_terraformed.go delete mode 100755 apis/route53/v1alpha2/zz_vpcassociationauthorization_terraformed.go delete mode 100755 apis/route53/v1alpha2/zz_zone_terraformed.go delete mode 100755 apis/route53/v1alpha2/zz_zoneassociation_terraformed.go delete mode 100755 apis/route53resolver/v1alpha1/zz_dnssecconfig_terraformed.go delete mode 100755 apis/route53resolver/v1alpha1/zz_endpoint_terraformed.go delete mode 100755 apis/route53resolver/v1alpha1/zz_firewallconfig_terraformed.go delete mode 100755 apis/route53resolver/v1alpha1/zz_firewalldomainlist_terraformed.go delete mode 100755 apis/route53resolver/v1alpha1/zz_firewallrule_terraformed.go delete mode 100755 apis/route53resolver/v1alpha1/zz_firewallrulegroup_terraformed.go delete mode 100755 apis/route53resolver/v1alpha1/zz_firewallrulegroupassociation_terraformed.go create mode 100755 apis/route53resolver/v1alpha1/zz_generated_terraformed.go delete mode 100755 apis/route53resolver/v1alpha1/zz_querylogconfig_terraformed.go delete mode 100755 apis/route53resolver/v1alpha1/zz_querylogconfigassociation_terraformed.go delete mode 100755 apis/route53resolver/v1alpha1/zz_rule_terraformed.go delete mode 100755 apis/route53resolver/v1alpha1/zz_ruleassociation_terraformed.go rename apis/s3/v1alpha2/{zz_bucket_terraformed.go => zz_generated_terraformed.go} (100%) 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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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/go.mod b/go.mod index c21a18e84..87d5bc666 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/crossplane/crossplane-runtime v0.15.1-0.20220106140106-428b7c390375 github.com/crossplane/crossplane-tools v0.0.0-20210916125540-071de511ae8e 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.20220310220952-fd4224b01b71 github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.0 github.com/pkg/errors v0.9.1 github.com/terraform-providers/terraform-provider-aws v1.60.1-0.20210811232925-d6f99829ec3f diff --git a/go.sum b/go.sum index ae63efde4..83e724f60 100644 --- a/go.sum +++ b/go.sum @@ -215,8 +215,8 @@ github.com/crossplane/crossplane-tools v0.0.0-20210916125540-071de511ae8e h1:7UM github.com/crossplane/crossplane-tools v0.0.0-20210916125540-071de511ae8e/go.mod h1:3GzY5sP0PVePArghBh5K4fGzS/3kM0R/NAZn5s7LXqw= 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.20220310220952-fd4224b01b71 h1:f4/GauGYsdF1d6M1SQFjJ/EcSYPXuJgxPjL1l1FVvNY= +github.com/crossplane/terrajet v0.4.0-rc.0.0.20220310220952-fd4224b01b71/go.mod h1:oynNx4au8y/tiSb1OanWSMmUf55Cz/O4f1HxH+liI2A= 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=