Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

1.1.1.

...

A Policy Type defines a type of requirement that affects or governs an application or service’s topology at some stage of its lifecycle, but is not explicitly part of the topology itself (i.e., it does not prevent the application or service from being deployed or run if it did not exist).

1.1.1.1.1     Keynames

The Policy Type is a TOSCA Entity and has the common keynames listed in section Error! Reference source not found. TOSCA Entity Schema.

In addition, the Policy Type has the following recognized keynames:

...

Keyname

...

Required

...

Type

...

Description

...

properties

...

no

...

list of

property definitions

...

An optional list of property definitions for the Policy Type.

targets

...

no

...

string[]

An optional list of valid Node Types or Group Types the Policy Type can be applied to.

Note: This can be viewed by TOSCA Orchestrators as an implied relationship to the target nodes, but one that does not have operational lifecycle considerations.  For example, if we were to name this as an explicit Relationship Type we might call this “AppliesTo” (node or group).

...

triggers

...

no

...

list of trigger

...

An optional list of policy triggers for the Policy Type.

1.1.1.1.2     Grammar

Policy Types have the following grammar:

<policy_type_name>:

  derived_from: <parent_policy_type_name>

  version: <version_number>

  metadata:

    <map of string>

  description: <policy_description>

  properties:

    <property_definitions>

  targets: [ <list_of_valid_target_types> ]

  triggers:

    <list_of_trigger_definitions>

1.1.1.2       SDC Policy Type Metadata

...