load_balancer#

Exec module for managing managing Amazon Elastic Load Balancing

async idem_aws.exec.aws.elb.load_balancer.get(hub, ctx, resource_id: str) Dict[source]#

Pass required params to get a ElasticLoadBalancing Load Balancer resource.

Parameters:

resource_id (str) – The name of the ElasticLoadBalancing Load Balancer. Must have a maximum of 32 characters.

Returns:

{"result": True|False, "comment": A message List, "ret": None}

Examples

Using in a state:

my_unmanaged_resource:
  exec.run:
    - path: aws.elb.load_balancer.get
    - kwargs:
        resource_id: resource_id

Calling this exec function from the cli with resource_id

idem exec aws.elb.load_balancer.get resource_id="resource_id"

Calling this exec module function from within a state module in pure python

async def state_function(hub, ctx, resource_id, **kwargs):
    ret = await hub.exec.aws.elb.load_balancer.get(ctx, resource_id=resource_id)