Resource: awsRoute53TrafficPolicy
Manages a Route53 Traffic Policy.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.route53TrafficPolicy.Route53TrafficPolicy(this, "example", {
comment: "example comment",
document:
'{\n "AWSPolicyFormatVersion": "2015-10-01",\n "RecordType": "A",\n "Endpoints": {\n "endpoint-start-NkPh": {\n "Type": "value",\n "Value": "10.0.0.2"\n }\n },\n "StartEndpoint": "endpoint-start-NkPh"\n}\n',
name: "example",
});
Argument Reference
The following arguments are required:
name
- (Required) Name of the traffic policy.document
- (Required) 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:
comment
- (Optional) Comment for the traffic policy.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- ID of the traffic policytype
- 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
- Version number of the traffic policy. This value is automatically incremented by AWS after each update of this resource.
Import
Route53 Traffic Policy can be imported using the id
and version
, e.g.