AWS::Route53::TrafficPolicyInstance

Route53 TrafficPolicyInstance

Resource Type definition for AWS::Route53::TrafficPolicyInstance. Applies a version of a Route 53 traffic policy to a DNS name in a public hosted zone, and Route 53 creates and owns the resource record sets that answer queries for that name.

Properties

5 configurable properties. 5 required. Click a row to see details.

Filter:
PropertyTypeFlags
HostedZoneId
string
RequiredCreate-only
Name
string
RequiredCreate-only
TrafficPolicyId
string
Required
TrafficPolicyVersion
integer
Required
TTL
integer
Required

Return Values

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

AttributeTypeDescription
ArnstringThe Amazon Resource Name (ARN) of the traffic policy instance.
IdstringThe ID that Amazon Route 53 assigned to the traffic policy instance when it was created.
StatestringThe current state of the traffic policy instance. A steady-state instance is Applied.
TrafficPolicyTypestringThe DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance. Route 53 derives it from the referenced 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::TrafficPolicyInstance

Resources:
  MyResource:
    Type: AWS::Route53::TrafficPolicyInstance
    Properties:
      HostedZoneId: "my-hostedzoneid"
      Name: "my-name"
      TTL: 1
      TrafficPolicyId: "my-trafficpolicyid"
      TrafficPolicyVersion: 1

Required IAM Permissions

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

create

route53:CreateTrafficPolicyInstanceroute53:GetTrafficPolicyInstance

read

route53:GetTrafficPolicyInstance

update

route53:UpdateTrafficPolicyInstanceroute53:GetTrafficPolicyInstance

delete

route53:DeleteTrafficPolicyInstanceroute53:GetTrafficPolicyInstance

list

route53:ListTrafficPolicyInstances

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
Properties9
Required5
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.

HostedZoneIdName

External Links