target_group#
Exec module for managing Elastic Load Balancer V2 target groups
- async idem_aws.exec.aws.elbv2.target_group.get(hub, ctx, name: str, resource_id: str = None, load_balancer_arn: str = None) Dict [source]#
Pass required params to get a target group resource.
Note
Users can specify one of the following to filter the results: the ARN of the load balancer, name of the target group, or the ARN of the given target group.
Order of precedence of input params while performing search: resource_id, load_balancer_arn and finally name. If resource_id is not None, regardless whether the 2 other values are None or not, search always is done by resource_id only.
- Parameters:
Examples
Using in a state:
my_unmanaged_resource: exec.run: - path: aws.elbv2.target_group.get - kwargs: resource_id: resource_id name: name load_balancer_arn: load_balancer_arn
Calling this exec function from the cli with resource_id
idem exec aws.elbv2.target_group.get resource_id="resource_id" name="name" load_balancer_arn="load_balancer_arn"
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.elbv2.target_group.get(ctx, resource_id=resource_id, name=name load_balancer_arn=load_balancer_arn)