ecs_composex.events package

Submodules

ecs_composex.events.events_ecs module

ecs_composex.events.events_ecs. define_service_targets ( settings , stack , rule , cluster_arn ) [source]

Function to define the targets for service.

Parameters
Returns

ecs_composex.events.events_ecs. delete_service_from_template ( service ) [source]

Function to delete the ECS Service definition and scaling related resources from the template

Parameters

service ( tuple ) –

ecs_composex.events.events_ecs. events_to_ecs ( resources , services_stack , res_root_stack , settings ) [source]

Function to map services to event rules :param resources: :param services_stack: :param res_root_stack: :param ecs_composex.common.settings.ComposeXSettings settings: :return:

ecs_composex.events.events_params module

ecs_composex.events.events_stack module

Module to define the entry point for AWS Event Rules

class ecs_composex.events.events_stack. Rule ( name , definition , module_name , settings ) [source]

Bases: ecs_composex.common.compose_resources.XResource

Class to define an Event Rule

handle_families_targets_expansion ( service , settings ) [source]

Method to list all families and services that are targets of the resource. Allows to implement family and service level association to resource

Parameters
set_services_targets ( settings ) [source]

Override method to map services and families targets of the services defined specifically for events TargetStructure: (family, family_wide, services[], access)

Parameters

settings ( ecs_composex.common.settings.ComposeXSettings ) –

Returns

class ecs_composex.events.events_stack. XStack ( title , settings , ** kwargs ) [source]

Bases: ecs_composex.common.stacks.ComposeXStack

Class to handle events stack

ecs_composex.events.events_stack. validate_service_definition ( service ) [source]

ecs_composex.events.events_template module

ecs_composex.events.events_template. create_events_template ( stack , settings , new_resources ) [source]

Function to create the CFN root template for Events Rules

Parameters
ecs_composex.events.events_template. define_event_rule ( stack , rule ) [source]

Function to define the EventRule properties

Parameters

Module contents