TrafficPolicy

class TrafficPolicy : KotlinCustomResource

Manages a Route53 Traffic Policy.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.route53.TrafficPolicy;
import com.pulumi.aws.route53.TrafficPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new TrafficPolicy("example", TrafficPolicyArgs.builder()
.comment("example comment")
.document("""
{
"AWSPolicyFormatVersion": "2015-10-01",
"RecordType": "A",
"Endpoints": {
"endpoint-start-NkPh": {
"Type": "value",
"Value": "10.0.0.2"
}
},
"StartEndpoint": "endpoint-start-NkPh"
}
""")
.build());
}
}

Import

Route53 Traffic Policy can be imported using the id and version, e.g.

$ pulumi import aws:route53/trafficPolicy:TrafficPolicy example 01a52019-d16f-422a-ae72-c306d2b6df7e/1

Properties

Link copied to clipboard
val comment: Output<String>?

Comment for the traffic policy.

Link copied to clipboard
val document: Output<String>

Policy document. This is a JSON formatted string. For more information about building Route53 traffic policy documents, see the AWS Route53 Traffic Policy document format The following arguments are optional:

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Name of the traffic policy.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Output<String>

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

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<Int>

Version number of the traffic policy. This value is automatically incremented by AWS after each update of this resource.