1 # ================================================================================
2 # Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
3 # ================================================================================
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 # ============LICENSE_END=========================================================
17 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
19 tosca_definitions_version: cloudify_dsl_1_3
22 - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
26 executor: 'central_deployment_agent'
27 package_name: dcaepolicyplugin
28 package_version: 2.3.0
31 # the properties inside dcae.data.policy_filter are identical to /getConfig API of policy-engine except the requestID field.
32 # refer to policy-engine /getConfig wiki for explanation of these properties.
33 # policy-engine /getConfig wiki: The filter works as a combined "AND" operation.
34 # To retrieve all policies using "sample" as configName,
35 # the request needs to have policyName = ".*" and configName as = "sample"
36 # configAttributes is a key-value dictionary or a stringified json of the dictionary
37 dcae.data.policy_filter:
41 default: "DCAE.Config_.*"
55 # node that points to a single latest policy identified by policy_id
56 # policy_id is the versionless left part of policyName in policy-engine
58 derived_from: cloudify.nodes.Root
61 description: versionless key to policy in policy-engine
63 default: DCAE.Config_unknown-policy
65 description: whether to throw an exception when failed to get the policy
69 cloudify.interfaces.lifecycle:
71 implementation: dcaepolicy.dcaepolicyplugin.policy_get
73 # node that points to varying collection of policies by selection criteria = policy_filter.
75 derived_from: cloudify.nodes.Root
78 type: dcae.data.policy_filter
81 cloudify.interfaces.lifecycle:
83 implementation: dcaepolicy.dcaepolicyplugin.policy_get