Skip to content

TrafficPolicy

Source code in docs_src/capo_route_53/types/traffic_policy.py
class TrafficPolicy(TypedDict, closed=True):
    id: "capo_route_53.types.traffic_policy_id.TrafficPolicyId"
    """<p>The ID that Amazon Route 53 assigned to a traffic policy when you created it.</p>"""
    version: "capo_route_53.types.traffic_policy_version.TrafficPolicyVersion"
    """<p>The version number that Amazon Route 53 assigns to a traffic policy. For a new traffic policy, the value of <code>Version</code> is always 1.</p>"""
    name: "capo_route_53.types.traffic_policy_name.TrafficPolicyName"
    """<p>The name that you specified when you created the traffic policy.</p>"""
    type: "capo_route_53.types.rr_type.RRType"
    """<p>The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.</p>"""
    document: "capo_route_53.types.traffic_policy_document.TrafficPolicyDocument"
    """<p>The definition of a traffic policy in JSON format. You specify the JSON document to use for a new traffic policy in the <code>CreateTrafficPolicy</code> request. For more information about the JSON format, see <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html">Traffic Policy Document Format</a>.</p>"""
    comment: NotRequired[
        "capo_route_53.types.traffic_policy_comment.TrafficPolicyComment"
    ]
    """<p>The comment that you specify in the <code>CreateTrafficPolicy</code> request, if any.</p>"""

comment instance-attribute

comment: NotRequired[TrafficPolicyComment]

The comment that you specify in the CreateTrafficPolicy request, if any.

document instance-attribute

The definition of a traffic policy in JSON format. You specify the JSON document to use for a new traffic policy in the CreateTrafficPolicy request. For more information about the JSON format, see Traffic Policy Document Format.

id instance-attribute

The ID that Amazon Route 53 assigned to a traffic policy when you created it.

name instance-attribute

The name that you specified when you created the traffic policy.

type instance-attribute

type: RRType

The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.

version instance-attribute

The version number that Amazon Route 53 assigns to a traffic policy. For a new traffic policy, the value of Version is always 1.