actionELBv2

enable_access_log

Enable or disable access logs of ELB

Activity as code

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

Typeaction
Modulechaosaws.elbv2.actions
Nameenable_access_log
Returnboolean

Usage

JSON

{
  "name": "enable-access-log",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.elbv2.actions",
    "func": "enable_access_log",
    "arguments": {
      "load_balancer_arn": ""
    }
  }
}

YAML

name: enable-access-log
provider:
  arguments:
    load_balancer_arn: ""
  func: enable_access_log
  module: chaosaws.elbv2.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
load_balancer_arnlistYesLoad Balancer ARN
enablebooleanfalseNoEnable
bucket_namestringnullNoBucket NameBucket to store the logs to

Signature

def enable_access_log(load_balancer_arn: str,
                      enable: bool = False,
                      bucket_name: str = None,
                      configuration: Dict[str, Dict[str, str]] = None,
                      secrets: Dict[str, Dict[str, str]] = None) -> bool:
    pass