diff --git a/config/externalname.go b/config/externalname.go index d9c374c4a..fe9953bf8 100644 --- a/config/externalname.go +++ b/config/externalname.go @@ -429,9 +429,9 @@ var terraformPluginSDKExternalNameConfigs = map[string]config.ExternalName{ // Imported by using the following format: projects/{{project}}/locations/{{location}}/lakes/{{lake}} roles/viewer "google_dataplex_lake_iam_binding": config.IdentifierFromProvider, // Imported by using the following format: projects/{{project}}/locations/{{location}}/lakes/{{lake}} roles/viewer user:jane@example.com - "google_dataplex_lake_iam_member": config.IdentifierFromProvider, - // Imported by using the following format: projects/{{project}}/locations/{{location}}/lakes/{{lake}} - "google_dataplex_lake_iam_policy": config.TemplatedStringAsIdentifier("", "projects/{{ .setup.configuration.project }}/locations/{{ .parameters.location }}/lakes/{{ .external_name }}"), + "google_dataplex_lake_iam_member": config.IdentifierFromProvider, + // Imported by using the following format: projects/{{project}}/locations/{{location}}/lakes/{{lake}} + "google_dataplex_lake_iam_policy": config.TemplatedStringAsIdentifier("", "projects/{{ .setup.configuration.project }}/locations/{{ .parameters.location }}/lakes/{{ .external_name }}"), // Imported by using the following projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{dataplex_zone}}/assets/{{name}} "google_dataplex_asset": config.TemplatedStringAsIdentifier("name", "projects/{{ .setup.configuration.project }}/locations/{{ .parameters.location }}/lakes/{{ .parameters.lake }}/zones/{{ .parameters.dataplex_zone }}/assets/{{ .external_name }}"), // Imported by using the following projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{name}} diff --git a/examples-generated/dataplex/v1beta1/lakeiampolicy.yaml b/examples-generated/dataplex/v1beta1/lakeiampolicy.yaml index 2d8574566..acce7e39c 100644 --- a/examples-generated/dataplex/v1beta1/lakeiampolicy.yaml +++ b/examples-generated/dataplex/v1beta1/lakeiampolicy.yaml @@ -1,21 +1,4 @@ apiVersion: dataplex.gcp.upbound.io/v1beta1 -kind: Lake -metadata: - annotations: - meta.upbound.io/example-id: dataplex/v1beta1/lake - labels: - testing.upbound.io/example-name: primary - name: primary -spec: - forProvider: - description: Lake for DCL - displayName: Lake for DCL - labels: - my-lake: exists - location: us-west1 - project: my-project-name ---- -apiVersion: dataplex.gcp.upbound.io/v1beta1 kind: LakeIAMPolicy metadata: annotations: @@ -25,10 +8,13 @@ metadata: name: policy spec: forProvider: - lake: primary + lakeSelector: + matchLabels: + testing.upbound.io/example-name: example locationSelector: matchLabels: - testing.upbound.io/example-name: primary + testing.upbound.io/example-name: example policyData: ${data.google_iam_policy.admin.policy_data} - project: my-project-name - location: us-west1 \ No newline at end of file + projectSelector: + matchLabels: + testing.upbound.io/example-name: example