...
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: pubsub.cnrm.cloud.google.com
19 namespace: cnrm-system
20spec:
21 name: PubSub
22 version: v1beta1
23 serviceHostName: pubsub.googleapis.com
24 resources:
25 - name: google_pubsub_schema
26 kind: PubSubSchema
27 autoGenerated: true
28 idTemplate: "projects/{{project}}/schemas/{{name}}"
29 idTemplateCanBeUsedToMatchResourceName: false
30 resourceAvailableInAssetInventory: false
31 metadataMapping:
32 name: name
33 resourceID:
34 targetField: name
35 hierarchicalReferences:
36 - type: project
37 key: projectRef
38 resourceReferences:
39 - tfField: project
40 key: projectRef
41 description: |-
42 The project that this resource belongs to.
43 gvk:
44 kind: Project
45 version: v1beta1
46 group: resourcemanager.cnrm.cloud.google.com
47 - name: google_pubsub_subscription
48 kind: PubSubSubscription
49 autoGenerated: true
50 idTemplate: "projects/{{project}}/subscriptions/{{name}}"
51 idTemplateCanBeUsedToMatchResourceName: false
52 resourceAvailableInAssetInventory: false
53 metadataMapping:
54 name: name
55 labels: labels
56 resourceID:
57 targetField: name
58 hierarchicalReferences:
59 - type: project
60 key: projectRef
61 resourceReferences:
62 - tfField: project
63 key: projectRef
64 description: |-
65 The project that this resource belongs to.
66 gvk:
67 kind: Project
68 version: v1beta1
69 group: resourcemanager.cnrm.cloud.google.com
70 - key: topicRef
71 tfField: topic
72 gvk:
73 kind: PubSubTopic
74 version: v1beta1
75 group: pubsub.cnrm.cloud.google.com
76 targetField: name
77 - name: google_pubsub_topic
78 kind: PubSubTopic
79 autoGenerated: true
80 iamConfig:
81 policyName: google_pubsub_topic_iam_policy
82 policyMemberName: google_pubsub_topic_iam_member
83 referenceField:
84 name: topic
85 type: name
86 supportsConditions: false
87 idTemplate: "projects/{{project}}/topics/{{name}}"
88 idTemplateCanBeUsedToMatchResourceName: false
89 resourceAvailableInAssetInventory: false
90 metadataMapping:
91 name: name
92 labels: labels
93 resourceID:
94 targetField: name
95 hierarchicalReferences:
96 - type: project
97 key: projectRef
98 resourceReferences:
99 - tfField: project
100 key: projectRef
101 description: |-
102 The project that this resource belongs to.
103 gvk:
104 kind: Project
105 version: v1beta1
106 group: resourcemanager.cnrm.cloud.google.com
View as plain text