...
1# Copyright 2022 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15apiVersion: core.cnrm.cloud.google.com/v1alpha1
16kind: ServiceMapping
17metadata:
18 name: dns.cnrm.cloud.google.com
19 namespace: cnrm-system
20spec:
21 name: DNS
22 version: v1beta1
23 serviceHostName: dns.googleapis.com
24 resources:
25 - name: google_dns_managed_zone
26 kind: DNSManagedZone
27 autoGenerated: true
28 iamConfig:
29 policyName: google_dns_managed_zone_iam_policy
30 policyMemberName: google_dns_managed_zone_iam_member
31 referenceField:
32 name: managed_zone
33 type: name
34 supportsConditions: false
35 idTemplate: "projects/{{project}}/managedZones/{{name}}"
36 idTemplateCanBeUsedToMatchResourceName: false
37 resourceAvailableInAssetInventory: false
38 metadataMapping:
39 name: name
40 labels: labels
41 resourceID:
42 targetField: name
43 hierarchicalReferences:
44 - type: project
45 key: projectRef
46 resourceReferences:
47 - tfField: project
48 key: projectRef
49 description: |-
50 The project that this resource belongs to.
51 gvk:
52 kind: Project
53 version: v1beta1
54 group: resourcemanager.cnrm.cloud.google.com
55 - name: google_dns_policy
56 kind: DNSPolicy
57 autoGenerated: true
58 idTemplate: "projects/{{project}}/policies/{{name}}"
59 idTemplateCanBeUsedToMatchResourceName: false
60 resourceAvailableInAssetInventory: false
61 metadataMapping:
62 name: name
63 resourceID:
64 targetField: name
65 hierarchicalReferences:
66 - type: project
67 key: projectRef
68 resourceReferences:
69 - tfField: project
70 key: projectRef
71 description: |-
72 The project that this resource belongs to.
73 gvk:
74 kind: Project
75 version: v1beta1
76 group: resourcemanager.cnrm.cloud.google.com
77 - name: google_dns_response_policy
78 kind: DNSResponsePolicy
79 autoGenerated: true
80 idTemplate: "projects/{{project}}/responsePolicies/{{response_policy_name}}"
81 idTemplateCanBeUsedToMatchResourceName: false
82 resourceAvailableInAssetInventory: false
83 metadataMapping:
84 name: response_policy_name
85 resourceID:
86 targetField: response_policy_name
87 hierarchicalReferences:
88 - type: project
89 key: projectRef
90 resourceReferences:
91 - tfField: project
92 key: projectRef
93 description: |-
94 The project that this resource belongs to.
95 gvk:
96 kind: Project
97 version: v1beta1
98 group: resourcemanager.cnrm.cloud.google.com
99 - name: google_dns_response_policy_rule
100 kind: DNSResponsePolicyRule
101 autoGenerated: true
102 idTemplate: "projects/{{project}}/responsePolicies/{{response_policy}}/rules/{{rule_name}}"
103 idTemplateCanBeUsedToMatchResourceName: false
104 resourceAvailableInAssetInventory: false
105 metadataMapping:
106 name: rule_name
107 resourceID:
108 targetField: rule_name
109 hierarchicalReferences:
110 - type: project
111 key: projectRef
112 resourceReferences:
113 - tfField: project
114 key: projectRef
115 description: |-
116 The project that this resource belongs to.
117 gvk:
118 kind: Project
119 version: v1beta1
120 group: resourcemanager.cnrm.cloud.google.com
121 - key: responsePolicyRef
122 tfField: response_policy
123 gvk:
124 kind: DNSResponsePolicy
125 version: v1beta1
126 group: dns.cnrm.cloud.google.com
127 targetField: response_policy_name
128 parent: true
View as plain text