AWS::Route53::TrafficPolicy

Route53 TrafficPolicy

Resource Type definition for AWS::Route53::TrafficPolicy. Creates a Route 53 traffic policy, a JSON document that describes how Route 53 responds to DNS queries for a domain name.

Properties

3 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
Document
string
RequiredCreate-only
Name
string
RequiredCreate-only
Comment
string

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ArnstringThe Amazon Resource Name (ARN) of the traffic policy.
IdstringThe ID that Amazon Route 53 assigned to the traffic policy when it was created.
TypestringThe DNS type of the resource record sets that Amazon Route 53 creates when the traffic policy is used to create a traffic policy instance.
VersionintegerThe version number that Amazon Route 53 assigned to the traffic policy.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Route53::TrafficPolicy

Resources:
  MyResource:
    Type: AWS::Route53::TrafficPolicy
    Properties:
      Name: "my-name"
      Document: "value"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

route53:CreateTrafficPolicyroute53:ListTrafficPolicyVersions

read

route53:ListTrafficPolicyVersions

update

route53:UpdateTrafficPolicyCommentroute53:ListTrafficPolicyVersions

delete

route53:DeleteTrafficPolicyroute53:ListTrafficPolicyVersions

list

route53:ListTrafficPolicies

Get the Route53 Cheat Sheet

Everything you need to know about Route53 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceRoute53
Properties7
Required2
TaggingNot supported
Primary IDArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

NameDocument

External Links