actionLambda

toggle_event_source_mapping_state

Toggle an event source mapping to be disabled or enabled

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosaws.awslambda.actions
Nametoggle_event_source_mapping_state
Returnmapping

Usage

JSON

{
  "name": "toggle-event-source-mapping-state",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.awslambda.actions",
    "func": "toggle_event_source_mapping_state",
    "arguments": {
      "event_uuid": "",
      "enabled": true
    }
  }
}

YAML

name: toggle-event-source-mapping-state
provider:
  arguments:
    enabled: true
    event_uuid: ""
  func: toggle_event_source_mapping_state
  module: chaosaws.awslambda.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
event_uuidstringYesEvent UUID
enabledbooleanYesEnabledWhether this event source is enabled or not

Signature

def toggle_event_source_mapping_state(
        event_uuid: str,
        enabled: bool,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass