tosca_definitions_version: tosca_simple_yaml_1_0 description: Definition of the custom types of Micro TOSCA model group_types: micro.groups.Root: derived_from: tosca.groups.Root # group type for partitioning the nodes of an applications over Team(s) micro.groups.Team: derived_from: micro.groups.Root members: [ micro.nodes.Root ] # group type for defining the Edge of an architecture micro.groups.Edge: derived_from: micro.groups.Root members: [ micro.nodes.Service, micro.nodes.CommunicationPattern ] # databases cannot be in edge relationship_types: micro.relationships.Root: derived_from: tosca.relationships.Root # relationship type for modelling interactions micro.relationships.InteractsWith: derived_from: micro.relationships.Root valid_target_types: [ micro.nodes.Root ] properties: circuit_breaker: # is a circuit breaker used? type: boolean default: false dynamic_discovery: # is the endpoint dynamically discovered (e.g., with a service discovery) type: boolean default: false timeout: # is a timeout set? type: boolean default: false node_types: micro.nodes.Root: derived_from: tosca.nodes.Root capabilities: feature: type: tosca.capabilities.Node valid_source_types: [ micro.nodes.Root ] occurrences: [ 0, UNBOUNDED ] # node type for representing services micro.nodes.Service: derived_from: micro.nodes.Root requirements: - interaction: capability: tosca.capabilities.Node occurrences: [ 0, UNBOUNDED ] node: micro.nodes.Root relationship: micro.relationships.InteractsWith # node type for representing communication patterns micro.nodes.CommunicationPattern: derived_from: micro.nodes.Root # node type for representing databases micro.nodes.Database: derived_from: micro.nodes.Root capabilities: feature: type: tosca.capabilities.Node valid_source_types: [ micro.nodes.Service ] # communication patterns cannot interact with databases occurrences: [ 0, UNBOUNDED ] # Type of CommunicationPatterns micro.nodes.MessageBroker: derived_from: micro.nodes.CommunicationPattern micro.nodes.MessageRouter: derived_from: micro.nodes.CommunicationPattern requirements: - interaction: capability: tosca.capabilities.Node occurrences: [ 1, UNBOUNDED ] # at least one (outgoing) interaction node: micro.nodes.Root relationship: micro.relationships.InteractsWith