ecs_composex.dynamodb package

Submodules

ecs_composex.dynamodb.dynamodb_autoscaling module

ecs_composex.dynamodb.dynamodb_autoscaling. add_autoscaling ( table , template ) [source]

Function to add all the autoscaling resources to a given dynamoDB table

Parameters :
  • table ( Table ) –

  • template ( Template ) –

Return type :

None

ecs_composex.dynamodb.dynamodb_autoscaling. add_autoscaling_for_indexes ( table , template , table_indexes , indexes_scaling ) [source]

Function to process all the scaling defined on indexes

Parameters :
  • table ( Table ) –

  • template ( Template ) –

  • table_indexes ( list ) –

  • indexes_scaling ( dict ) –

Return type :

None

ecs_composex.dynamodb.dynamodb_autoscaling. add_autoscaling_for_table_or_index ( table , template , scaling_definition , index = None ) [source]

Function to process WriteCapacityUnits and ReadCapacityUnits defined in scaling

Parameters :
  • table ( Table ) –

  • template ( Template ) –

  • scaling_definition ( dict ) –

  • index ( str ) –

Return type :

None

ecs_composex.dynamodb.dynamodb_autoscaling. cover_indexes_without_scaling_definition ( table , template , table_gsis , processed_indexes ) [source]
Return type :

None

ecs_composex.dynamodb.dynamodb_autoscaling. create_autoscaling_target_and_policy ( table , template , scalable_property , scale_definition , index = None ) [source]

Defines the autoscaling target and policy for the a given resource and dimension.

Parameters :
  • table ( Table ) –

  • template ( Template ) –

  • scalable_property ( str ) –

  • scale_definition ( dict ) –

  • index ( str ) –

Return type :

tuple

Returns :

The target and the associated policy

ecs_composex.dynamodb.dynamodb_autoscaling. handle_indexes ( table , template ) [source]
Return type :

None

ecs_composex.dynamodb.dynamodb_module module

ecs_composex.dynamodb.dynamodb_params module

ecs_composex.dynamodb.dynamodb_stack module

Module to create the root stack for DynamoDB tables

class ecs_composex.dynamodb.dynamodb_stack. Table ( name , definition , module , settings ) [source]

Bases: ApiXResource

Class to represent a DynamoDB Table

init_outputs ( ) [source]

Placeholder method

class ecs_composex.dynamodb.dynamodb_stack. XStack ( title , settings , module , ** kwargs ) [source]

Bases: ComposeXStack

Class for Dynamodb

ecs_composex.dynamodb.dynamodb_stack. get_dynamodb_table_config ( table , account_id , resource_id ) [source]
Parameters :
  • table ( Table ) –

  • account_id ( str ) –

  • resource_id ( str ) –

Returns :

ecs_composex.dynamodb.dynamodb_stack. resolve_lookup ( lookup_resources , settings , module ) [source]

Lookup AWS Resource

Parameters :
Return type :

None

ecs_composex.dynamodb.dynamodb_template module

Module for DynamoDB to create the root template

ecs_composex.dynamodb.dynamodb_template. create_dynamodb_template ( new_tables , template , self_stack ) [source]

Function to create the root DynamdoDB template.

Parameters :
  • new_tables ( list ) –

  • template ( troposhere.Template ) –

  • self_stack ( ComposeXStack ) –

Returns :

ecs_composex.dynamodb.dynamodb_template. define_table ( table , template ) [source]

Function to create the DynamoDB table resource

Module contents