|
| 1 | +# Copyright 2025 Google Inc. |
| 2 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | +# you may not use this file except in compliance with the License. |
| 4 | +# You may obtain a copy of the License at |
| 5 | +# |
| 6 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | +# |
| 8 | +# Unless required by applicable law or agreed to in writing, software |
| 9 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | +# See the License for the specific language governing permissions and |
| 12 | +# limitations under the License. |
| 13 | +--- |
| 14 | +name: 'Table' |
| 15 | +description: | |
| 16 | + Only used to generate IAM resources |
| 17 | +# This resource is only used to generate IAM resources. They do not correspond to real |
| 18 | +# GCP resources, and should not be used to generate anything other than IAM support. |
| 19 | +docs: |
| 20 | +base_url: 'projects/{{project}}/locations/{{location}}/services/{{serviceId}}/databases/{{databaseId}}/tables/{{name}}' |
| 21 | +self_link: 'projects/{{project}}/locations/{{location}}/services/{{serviceId}}/databases/{{databaseId}}/tables/{{name}}' |
| 22 | +import_format: |
| 23 | + - 'projects/{{project}}/locations/{{location}}/services/{{serviceId}}/databases/{{databaseId}}/tables/{{name}}' |
| 24 | + - '{{name}}' |
| 25 | +exclude_resource: true |
| 26 | +timeouts: |
| 27 | + insert_minutes: 2 |
| 28 | + update_minutes: 2 |
| 29 | + delete_minutes: 2 |
| 30 | +iam_policy: |
| 31 | + method_name_separator: ':' |
| 32 | + parent_resource_attribute: 'table' |
| 33 | + parent_resource_type: "google_dataproc_metastore_service" |
| 34 | + example_config_body: "templates/terraform/iam/example_config_body/dataproc_metastore_table_template.tf.tmpl" |
| 35 | + import_format: |
| 36 | + - 'projects/{{project}}/locations/{{location}}/services/{{serviceId}}/databases/{{databaseId}}/tables/{{name}}' |
| 37 | + - '{{name}}' |
| 38 | +custom_code: |
| 39 | +examples: |
| 40 | + - name: 'dataproc_metastore_service_table_iam' |
| 41 | + primary_resource_id: 'dpms_service' |
| 42 | + primary_resource_name: 'fmt.Sprintf("tf-test-metastore-srv-%s", context["random_suffix"]), "testdb", "testtbl"' |
| 43 | +parameters: |
| 44 | +properties: |
| 45 | + - name: 'name' |
| 46 | + type: String |
| 47 | + description: Dummy property. |
| 48 | + required: true |
0 commit comments