1 # ============LICENSE_START====================================================
3 # =============================================================================
4 # Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.
5 # =============================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END======================================================
20 # Types and relationships for DMaaP data router feeds
22 tosca_definitions_version: cloudify_dsl_1_3
26 executor: 'central_deployment_agent'
28 package_version: 1.4.0
33 # Data Router feed to be created
35 derived_from: cloudify.nodes.Root
55 cloudify.interfaces.lifecycle:
58 dmaapplugin.dmaapplugin.dr_lifecycle.create_feed
61 dmaapplugin.dmaapplugin.dr_lifecycle.delete_feed
63 # Existing Data Router feed to be used as target for publishing/subscribing
64 dcaegen2.nodes.ExistingFeed:
65 derived_from: cloudify.nodes.Root
76 cloudify.interfaces.lifecycle:
79 dmaapplugin.dmaapplugin.dr_lifecycle.get_existing_feed
81 # Existing Global Data Router feed (created via Invenio) to be used as target for bridging
82 dcaegen2.nodes.ExternalTargetFeed:
83 derived_from: cloudify.nodes.Root
96 # Global Data Router feed to be used as a source for bridging
98 dcaegen2.nodes.ExternalSourceFeed:
99 derived_from: cloudify.nodes.Root
101 # Message Router topic to be created
102 dcaegen2.nodes.Topic:
103 derived_from: cloudify.nodes.Root
126 cloudify.interfaces.lifecycle:
129 dmaapplugin.dmaapplugin.mr_lifecycle.create_topic
132 dmaapplugin.dmaapplugin.mr_lifecycle.delete_topic
134 # Existing Message Router topic to be used as target for publishing/subscribing
135 dcaegen2.nodes.ExistingTopic:
136 derived_from: cloudify.nodes.Root
147 cloudify.interfaces.lifecycle:
150 dmaapplugin.dmaapplugin.mr_lifecycle.get_existing_topic
154 dcaegen2.relationships.publish_files:
155 derived_from: cloudify.relationships.connected_to
157 cloudify.interfaces.relationship_lifecycle:
158 preconfigure: dmaapplugin.dmaapplugin.dr_relationships.add_dr_publisher
159 unlink: dmaapplugin.dmaapplugin.dr_relationships.delete_dr_publisher
161 dcaegen2.relationships.subscribe_to_files:
162 derived_from: cloudify.relationships.connected_to
164 cloudify.interfaces.relationship_lifecycle:
165 preconfigure: dmaapplugin.dmaapplugin.dr_relationships.add_dr_subscriber
166 unlink: dmaapplugin.dmaapplugin.dr_relationships.delete_dr_subscriber
168 dcaegen2.relationships.publish_events:
169 derived_from: cloudify.relationships.connected_to
171 cloudify.interfaces.relationship_lifecycle:
172 preconfigure: dmaapplugin.dmaapplugin.mr_relationships.add_mr_publisher
173 unlink: dmaapplugin.dmaapplugin.mr_relationships.delete_mr_client
175 dcaegen2.relationships.subscribe_to_events:
176 derived_from: cloudify.relationships.connected_to
178 cloudify.interfaces.relationship_lifecycle:
179 preconfigure: dmaapplugin.dmaapplugin.mr_relationships.add_mr_subscriber
180 unlink: dmaapplugin.dmaapplugin.mr_relationships.delete_mr_client
182 dcaegen2.relationships.bridges_to:
183 derived_from: cloudify.relationships.connected_to
185 cloudify.interfaces.relationship_lifecycle:
186 preconfigure: dmaapplugin.dmaapplugin.dr_bridge.create_dr_bridge
187 unlink: dmaapplugin.dmaapplugin.dr_bridge.remove_dr_bridge
189 dcaegen2.relationships.bridges_to_external:
190 derived_from: cloudify.relationships.connected_to
192 cloudify.interfaces.relationship_lifecycle:
193 preconfigure: dmaapplugin.dmaapplugin.dr_bridge.create_external_dr_bridge
194 unlink: dmaapplugin.dmaapplugin.dr_bridge.remove_dr_bridge
196 dcaegen2.relationships.bridges_from_external_to_internal:
197 derived_from: cloudify.relationships.connected_to
199 cloudify.interfaces.relationship_lifecycle:
200 preconfigure: dmaapplugin.dmaapplugin.dr_bridge.create_external_source_dr_bridge
201 unlink: dmaapplugin.dmaapplugin.dr_bridge.remove_dr_bridge