Skip to content

Create Traffic Policy

route53_create_traffic_policy R Documentation

Creates a traffic policy, which you use to create multiple DNS resource record sets for one domain name (such as example

Description

Creates a traffic policy, which you use to create multiple DNS resource record sets for one domain name (such as example.com) or one subdomain name (such as www.example.com).

Usage

route53_create_traffic_policy(Name, Document, Comment)

Arguments

Name

[required] The name of the traffic policy.

Document

[required] The definition of this traffic policy in JSON format. For more information, see Traffic Policy Document Format.

Comment

(Optional) Any comments that you want to include about the traffic policy.

Value

A list with the following syntax:

list(
  TrafficPolicy = list(
    Id = "string",
    Version = 123,
    Name = "string",
    Type = "SOA"|"A"|"TXT"|"NS"|"CNAME"|"MX"|"NAPTR"|"PTR"|"SRV"|"SPF"|"AAAA"|"CAA"|"DS",
    Document = "string",
    Comment = "string"
  ),
  Location = "string"
)

Request syntax

svc$create_traffic_policy(
  Name = "string",
  Document = "string",
  Comment = "string"
)