elb_hosted_zone_id#

Exec module to get AWS ELB route53 Hosted Zone ID based on the region specified

async idem_aws.exec.aws.elb.elb_hosted_zone_id.get(hub, ctx, name, region: str = None) Dict[str, Any][source]#

Returns the AWS ELB route53 Hosted Zone ID of the current region whose credentials are used to call the operation. Refer-: https://docs.aws.amazon.com/general/latest/gr/elb.html

Parameters:
  • name (str) – An Idem name of the resource.

  • region (str, Optional) – AWS region for which ELB route53 Hosted Zone ID is required. If not specified region specified in credentials file will be used.

Request Syntax:
[Idem-resource-state-name]:

exec.run: - path: aws.elb.elb_hosted_zone_id.get - kwargs:

region: ‘string’

Examples

my-elb-hosted_zone-id:
exec.run:
  • path: aws.elb.elb_hosted_zone_id.get

  • kwargs:

    region: us-west-2

Response Syntax:
{

‘elb_hosted_zone_id’: ‘string’, ‘name’: ‘string’

}

Response Structure:

name(str): An Idem name of the resource. elb_hosted_zone_id(str): AWS ELB route53 Hosted Zone ID of the AWS region used in credentials