traffic_policy_instances_by_hosted_zones
Creates, updates, deletes, gets or lists a traffic_policy_instances_by_hosted_zones resource.
Overview
| Name | traffic_policy_instances_by_hosted_zones |
| Type | Resource |
| Id | aws.route53.traffic_policy_instances_by_hosted_zones |
Fields
The following fields are returned by SELECT queries:
- list_traffic_policy_instances_by_hosted_zone
| Name | Datatype | Description |
|---|---|---|
hosted_zone_id | string | The ID of the hosted zone that Amazon Route 53 created resource record sets in. |
id | string | The ID that Amazon Route 53 assigned to the new traffic policy instance. |
message | string | If State is Failed, an explanation of the reason for the failure. If State is another value, Message is empty. |
name | string | The DNS name, such as www.example.com, for which Amazon Route 53 responds to queries by using the resource record sets that are associated with this traffic policy instance. |
state | string | The value of State is one of the following values: Applied Amazon Route 53 has finished creating resource record sets, and changes have propagated to all Route 53 edge locations. Creating Route 53 is creating the resource record sets. Use GetTrafficPolicyInstance to confirm that the CreateTrafficPolicyInstance request completed successfully. Failed Route 53 wasn't able to create or update the resource record sets. When the value of State is Failed, see Message for an explanation of what caused the request to fail. |
ttl | integer | The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted zone. |
traffic_policy_id | string | The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone. |
traffic_policy_type | string | The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance. |
traffic_policy_version | integer | The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_traffic_policy_instances_by_hosted_zone | select | id, region | trafficpolicyinstancename, trafficpolicyinstancetype, maxitems | Gets information about the traffic policy instances that you created in a specified hosted zone. After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 creates the resource record sets that are specified in the traffic policy definition. For more information, see the State response element. Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic policy instances, you can use the MaxItems parameter to list them in groups of up to 100. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the hosted zone that you want to list traffic policy instances for. |
region | string | AWS region (default: us-east-1) |
maxitems | string | The maximum number of traffic policy instances to be included in the response body for this request. If you have more than MaxItems traffic policy instances, the value of the IsTruncated element in the response is true, and the values of HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker represent the first traffic policy instance that Amazon Route 53 will return if you submit another request. |
trafficpolicyinstancename | string | If the value of IsTruncated in the previous response is true, you have more traffic policy instances. To get more traffic policy instances, submit another ListTrafficPolicyInstances request. For the value of trafficpolicyinstancename, specify the value of TrafficPolicyInstanceNameMarker from the previous response, which is the name of the first traffic policy instance in the next group of traffic policy instances. If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get. |
trafficpolicyinstancetype | string | If the value of IsTruncated in the previous response is true, you have more traffic policy instances. To get more traffic policy instances, submit another ListTrafficPolicyInstances request. For the value of trafficpolicyinstancetype, specify the value of TrafficPolicyInstanceTypeMarker from the previous response, which is the type of the first traffic policy instance in the next group of traffic policy instances. If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get. |
SELECT examples
- list_traffic_policy_instances_by_hosted_zone
Gets information about the traffic policy instances that you created in a specified hosted zone. After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 creates the resource record sets that are specified in the traffic policy definition. For more information, see the State response element. Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic policy instances, you can use the MaxItems parameter to list them in groups of up to 100.
SELECT
hosted_zone_id,
id,
message,
name,
state,
ttl,
traffic_policy_id,
traffic_policy_type,
traffic_policy_version
FROM aws.route53.traffic_policy_instances_by_hosted_zones
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
AND trafficpolicyinstancename = '{{ trafficpolicyinstancename }}'
AND trafficpolicyinstancetype = '{{ trafficpolicyinstancetype }}'
AND maxitems = '{{ maxitems }}'
;