actionELBv2

set_subnets

Changes the subnets for the specified application load balancer(s)

Activity as code

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

Typeaction
Modulechaosaws.elbv2.actions
Nameset_subnets
Returnlist

This action will replace the existing security groups on an application load balancer with the specified security groups.

Usage

JSON

{
  "name": "set-subnets",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.elbv2.actions",
    "func": "set_subnets",
    "arguments": {
      "load_balancer_names": [],
      "subnet_ids": []
    }
  }
}

YAML

name: set-subnets
provider:
  arguments:
    load_balancer_names: []
    subnet_ids: []
  func: set_subnets
  module: chaosaws.elbv2.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
load_balancer_nameslistYesLoad Balancer Names
subnet_idslistYesSubnet IDsList of subnet identifiers

returns

[
  {
    "LoadBalancerArn": "string",
    "AvailabilityZones": {
      "ZoneName": "string",
      "SubnetId": "string",
      "LoadBalancerAddresses": [
        {
          "IpAddress": "string",
          "AllocationId": "string"
        }
      ]
    }
  },
  ...
]

Signature

def set_subnets(
        load_balancer_names: List[str],
        subnet_ids: List[str],
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> List[Dict[str, Any]]:
    pass