Generates an Route53 traffic policy document in JSON format for use with resources that expect policy documents such as aws.route53.TrafficPolicy.
Example Usage
Basic Example
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const current = aws.getRegion({});
const example = Promise.all([current, current]).then(([current, current1]) => aws.route53.getTrafficPolicyDocument({
recordType: "A",
startRule: "site_switch",
endpoints: [
{
id: "my_elb",
type: "elastic-load-balancer",
value: `elb-111111.${current.region}.elb.amazonaws.com`,
},
{
id: "site_down_banner",
type: "s3-website",
region: current1.region,
value: "www.example.com",
},
],
rules: [{
id: "site_switch",
type: "failover",
primary: {
endpointReference: "my_elb",
},
secondary: {
endpointReference: "site_down_banner",
},
}],
}));
const exampleTrafficPolicy = new aws.route53.TrafficPolicy("example", {
name: "example",
comment: "example comment",
document: example.then(example => example.json),
});
import pulumi
import pulumi_aws as aws
current = aws.get_region()
example = aws.route53.get_traffic_policy_document(record_type="A",
start_rule="site_switch",
endpoints=[
{
"id": "my_elb",
"type": "elastic-load-balancer",
"value": f"elb-111111.{current.region}.elb.amazonaws.com",
},
{
"id": "site_down_banner",
"type": "s3-website",
"region": current.region,
"value": "www.example.com",
},
],
rules=[{
"id": "site_switch",
"type": "failover",
"primary": {
"endpoint_reference": "my_elb",
},
"secondary": {
"endpoint_reference": "site_down_banner",
},
}])
example_traffic_policy = aws.route53.TrafficPolicy("example",
name="example",
comment="example comment",
document=example.json)
package main
import (
"fmt"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/route53"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
current, err := aws.GetRegion(ctx, &aws.GetRegionArgs{}, nil)
if err != nil {
return err
}
example, err := route53.GetTrafficPolicyDocument(ctx, &route53.GetTrafficPolicyDocumentArgs{
RecordType: pulumi.StringRef("A"),
StartRule: pulumi.StringRef("site_switch"),
Endpoints: []route53.GetTrafficPolicyDocumentEndpoint{
{
Id: "my_elb",
Type: pulumi.StringRef("elastic-load-balancer"),
Value: pulumi.StringRef(fmt.Sprintf("elb-111111.%v.elb.amazonaws.com", current.Region)),
},
{
Id: "site_down_banner",
Type: pulumi.StringRef("s3-website"),
Region: pulumi.StringRef(current.Region),
Value: pulumi.StringRef("www.example.com"),
},
},
Rules: []route53.GetTrafficPolicyDocumentRule{
{
Id: "site_switch",
Type: pulumi.StringRef("failover"),
Primary: {
EndpointReference: pulumi.StringRef("my_elb"),
},
Secondary: {
EndpointReference: pulumi.StringRef("site_down_banner"),
},
},
},
}, nil)
if err != nil {
return err
}
_, err = route53.NewTrafficPolicy(ctx, "example", &route53.TrafficPolicyArgs{
Name: pulumi.String("example"),
Comment: pulumi.String("example comment"),
Document: pulumi.String(example.Json),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var current = Aws.GetRegion.Invoke();
var example = Aws.Route53.GetTrafficPolicyDocument.Invoke(new()
{
RecordType = "A",
StartRule = "site_switch",
Endpoints = new[]
{
new Aws.Route53.Inputs.GetTrafficPolicyDocumentEndpointInputArgs
{
Id = "my_elb",
Type = "elastic-load-balancer",
Value = $"elb-111111.{current.Apply(getRegionResult => getRegionResult.Region)}.elb.amazonaws.com",
},
new Aws.Route53.Inputs.GetTrafficPolicyDocumentEndpointInputArgs
{
Id = "site_down_banner",
Type = "s3-website",
Region = current.Apply(getRegionResult => getRegionResult.Region),
Value = "www.example.com",
},
},
Rules = new[]
{
new Aws.Route53.Inputs.GetTrafficPolicyDocumentRuleInputArgs
{
Id = "site_switch",
Type = "failover",
Primary = new Aws.Route53.Inputs.GetTrafficPolicyDocumentRulePrimaryInputArgs
{
EndpointReference = "my_elb",
},
Secondary = new Aws.Route53.Inputs.GetTrafficPolicyDocumentRuleSecondaryInputArgs
{
EndpointReference = "site_down_banner",
},
},
},
});
var exampleTrafficPolicy = new Aws.Route53.TrafficPolicy("example", new()
{
Name = "example",
Comment = "example comment",
Document = example.Apply(getTrafficPolicyDocumentResult => getTrafficPolicyDocumentResult.Json),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.AwsFunctions;
import com.pulumi.aws.inputs.GetRegionArgs;
import com.pulumi.aws.route53.Route53Functions;
import com.pulumi.aws.route53.inputs.GetTrafficPolicyDocumentArgs;
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) {
final var current = AwsFunctions.getRegion(GetRegionArgs.builder()
.build());
final var example = Route53Functions.getTrafficPolicyDocument(GetTrafficPolicyDocumentArgs.builder()
.recordType("A")
.startRule("site_switch")
.endpoints(
GetTrafficPolicyDocumentEndpointArgs.builder()
.id("my_elb")
.type("elastic-load-balancer")
.value(String.format("elb-111111.%s.elb.amazonaws.com", current.region()))
.build(),
GetTrafficPolicyDocumentEndpointArgs.builder()
.id("site_down_banner")
.type("s3-website")
.region(current.region())
.value("www.example.com")
.build())
.rules(GetTrafficPolicyDocumentRuleArgs.builder()
.id("site_switch")
.type("failover")
.primary(GetTrafficPolicyDocumentRulePrimaryArgs.builder()
.endpointReference("my_elb")
.build())
.secondary(GetTrafficPolicyDocumentRuleSecondaryArgs.builder()
.endpointReference("site_down_banner")
.build())
.build())
.build());
var exampleTrafficPolicy = new TrafficPolicy("exampleTrafficPolicy", TrafficPolicyArgs.builder()
.name("example")
.comment("example comment")
.document(example.json())
.build());
}
}
resources:
exampleTrafficPolicy:
type: aws:route53:TrafficPolicy
name: example
properties:
name: example
comment: example comment
document: ${example.json}
variables:
current:
fn::invoke:
function: aws:getRegion
arguments: {}
example:
fn::invoke:
function: aws:route53:getTrafficPolicyDocument
arguments:
recordType: A
startRule: site_switch
endpoints:
- id: my_elb
type: elastic-load-balancer
value: elb-111111.${current.region}.elb.amazonaws.com
- id: site_down_banner
type: s3-website
region: ${current.region}
value: www.example.com
rules:
- id: site_switch
type: failover
primary:
endpointReference: my_elb
secondary:
endpointReference: site_down_banner
Complex Example
The following example showcases the use of nested rules within the traffic policy document and introduces the geoproximity rule type.
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.route53.getTrafficPolicyDocument({
recordType: "A",
startRule: "geoproximity_rule",
endpoints: [
{
id: "na_endpoint_a",
type: "elastic-load-balancer",
value: "elb-111111.us-west-1.elb.amazonaws.com",
},
{
id: "na_endpoint_b",
type: "elastic-load-balancer",
value: "elb-222222.us-west-1.elb.amazonaws.com",
},
{
id: "eu_endpoint",
type: "elastic-load-balancer",
value: "elb-333333.eu-west-1.elb.amazonaws.com",
},
{
id: "ap_endpoint",
type: "elastic-load-balancer",
value: "elb-444444.ap-northeast-2.elb.amazonaws.com",
},
],
rules: [
{
id: "na_rule",
type: "failover",
primary: {
endpointReference: "na_endpoint_a",
},
secondary: {
endpointReference: "na_endpoint_b",
},
},
{
id: "geoproximity_rule",
type: "geoproximity",
geoProximityLocations: [
{
region: "aws:route53:us-west-1",
bias: "10",
evaluateTargetHealth: true,
ruleReference: "na_rule",
},
{
region: "aws:route53:eu-west-1",
bias: "10",
evaluateTargetHealth: true,
endpointReference: "eu_endpoint",
},
{
region: "aws:route53:ap-northeast-2",
bias: "0",
evaluateTargetHealth: true,
endpointReference: "ap_endpoint",
},
],
},
],
});
const exampleTrafficPolicy = new aws.route53.TrafficPolicy("example", {
name: "example",
comment: "example comment",
document: example.then(example => example.json),
});
import pulumi
import pulumi_aws as aws
example = aws.route53.get_traffic_policy_document(record_type="A",
start_rule="geoproximity_rule",
endpoints=[
{
"id": "na_endpoint_a",
"type": "elastic-load-balancer",
"value": "elb-111111.us-west-1.elb.amazonaws.com",
},
{
"id": "na_endpoint_b",
"type": "elastic-load-balancer",
"value": "elb-222222.us-west-1.elb.amazonaws.com",
},
{
"id": "eu_endpoint",
"type": "elastic-load-balancer",
"value": "elb-333333.eu-west-1.elb.amazonaws.com",
},
{
"id": "ap_endpoint",
"type": "elastic-load-balancer",
"value": "elb-444444.ap-northeast-2.elb.amazonaws.com",
},
],
rules=[
{
"id": "na_rule",
"type": "failover",
"primary": {
"endpoint_reference": "na_endpoint_a",
},
"secondary": {
"endpoint_reference": "na_endpoint_b",
},
},
{
"id": "geoproximity_rule",
"type": "geoproximity",
"geo_proximity_locations": [
{
"region": "aws:route53:us-west-1",
"bias": "10",
"evaluate_target_health": True,
"rule_reference": "na_rule",
},
{
"region": "aws:route53:eu-west-1",
"bias": "10",
"evaluate_target_health": True,
"endpoint_reference": "eu_endpoint",
},
{
"region": "aws:route53:ap-northeast-2",
"bias": "0",
"evaluate_target_health": True,
"endpoint_reference": "ap_endpoint",
},
],
},
])
example_traffic_policy = aws.route53.TrafficPolicy("example",
name="example",
comment="example comment",
document=example.json)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/route53"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := route53.GetTrafficPolicyDocument(ctx, &route53.GetTrafficPolicyDocumentArgs{
RecordType: pulumi.StringRef("A"),
StartRule: pulumi.StringRef("geoproximity_rule"),
Endpoints: []route53.GetTrafficPolicyDocumentEndpoint{
{
Id: "na_endpoint_a",
Type: pulumi.StringRef("elastic-load-balancer"),
Value: pulumi.StringRef("elb-111111.us-west-1.elb.amazonaws.com"),
},
{
Id: "na_endpoint_b",
Type: pulumi.StringRef("elastic-load-balancer"),
Value: pulumi.StringRef("elb-222222.us-west-1.elb.amazonaws.com"),
},
{
Id: "eu_endpoint",
Type: pulumi.StringRef("elastic-load-balancer"),
Value: pulumi.StringRef("elb-333333.eu-west-1.elb.amazonaws.com"),
},
{
Id: "ap_endpoint",
Type: pulumi.StringRef("elastic-load-balancer"),
Value: pulumi.StringRef("elb-444444.ap-northeast-2.elb.amazonaws.com"),
},
},
Rules: []route53.GetTrafficPolicyDocumentRule{
{
Id: "na_rule",
Type: pulumi.StringRef("failover"),
Primary: {
EndpointReference: pulumi.StringRef("na_endpoint_a"),
},
Secondary: {
EndpointReference: pulumi.StringRef("na_endpoint_b"),
},
},
{
Id: "geoproximity_rule",
Type: pulumi.StringRef("geoproximity"),
GeoProximityLocations: []route53.GetTrafficPolicyDocumentRuleGeoProximityLocation{
{
Region: pulumi.StringRef("aws:route53:us-west-1"),
Bias: pulumi.StringRef("10"),
EvaluateTargetHealth: pulumi.BoolRef(true),
RuleReference: pulumi.StringRef("na_rule"),
},
{
Region: pulumi.StringRef("aws:route53:eu-west-1"),
Bias: pulumi.StringRef("10"),
EvaluateTargetHealth: pulumi.BoolRef(true),
EndpointReference: pulumi.StringRef("eu_endpoint"),
},
{
Region: pulumi.StringRef("aws:route53:ap-northeast-2"),
Bias: pulumi.StringRef("0"),
EvaluateTargetHealth: pulumi.BoolRef(true),
EndpointReference: pulumi.StringRef("ap_endpoint"),
},
},
},
},
}, nil)
if err != nil {
return err
}
_, err = route53.NewTrafficPolicy(ctx, "example", &route53.TrafficPolicyArgs{
Name: pulumi.String("example"),
Comment: pulumi.String("example comment"),
Document: pulumi.String(example.Json),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Route53.GetTrafficPolicyDocument.Invoke(new()
{
RecordType = "A",
StartRule = "geoproximity_rule",
Endpoints = new[]
{
new Aws.Route53.Inputs.GetTrafficPolicyDocumentEndpointInputArgs
{
Id = "na_endpoint_a",
Type = "elastic-load-balancer",
Value = "elb-111111.us-west-1.elb.amazonaws.com",
},
new Aws.Route53.Inputs.GetTrafficPolicyDocumentEndpointInputArgs
{
Id = "na_endpoint_b",
Type = "elastic-load-balancer",
Value = "elb-222222.us-west-1.elb.amazonaws.com",
},
new Aws.Route53.Inputs.GetTrafficPolicyDocumentEndpointInputArgs
{
Id = "eu_endpoint",
Type = "elastic-load-balancer",
Value = "elb-333333.eu-west-1.elb.amazonaws.com",
},
new Aws.Route53.Inputs.GetTrafficPolicyDocumentEndpointInputArgs
{
Id = "ap_endpoint",
Type = "elastic-load-balancer",
Value = "elb-444444.ap-northeast-2.elb.amazonaws.com",
},
},
Rules = new[]
{
new Aws.Route53.Inputs.GetTrafficPolicyDocumentRuleInputArgs
{
Id = "na_rule",
Type = "failover",
Primary = new Aws.Route53.Inputs.GetTrafficPolicyDocumentRulePrimaryInputArgs
{
EndpointReference = "na_endpoint_a",
},
Secondary = new Aws.Route53.Inputs.GetTrafficPolicyDocumentRuleSecondaryInputArgs
{
EndpointReference = "na_endpoint_b",
},
},
new Aws.Route53.Inputs.GetTrafficPolicyDocumentRuleInputArgs
{
Id = "geoproximity_rule",
Type = "geoproximity",
GeoProximityLocations = new[]
{
new Aws.Route53.Inputs.GetTrafficPolicyDocumentRuleGeoProximityLocationInputArgs
{
Region = "aws:route53:us-west-1",
Bias = "10",
EvaluateTargetHealth = true,
RuleReference = "na_rule",
},
new Aws.Route53.Inputs.GetTrafficPolicyDocumentRuleGeoProximityLocationInputArgs
{
Region = "aws:route53:eu-west-1",
Bias = "10",
EvaluateTargetHealth = true,
EndpointReference = "eu_endpoint",
},
new Aws.Route53.Inputs.GetTrafficPolicyDocumentRuleGeoProximityLocationInputArgs
{
Region = "aws:route53:ap-northeast-2",
Bias = "0",
EvaluateTargetHealth = true,
EndpointReference = "ap_endpoint",
},
},
},
},
});
var exampleTrafficPolicy = new Aws.Route53.TrafficPolicy("example", new()
{
Name = "example",
Comment = "example comment",
Document = example.Apply(getTrafficPolicyDocumentResult => getTrafficPolicyDocumentResult.Json),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.route53.Route53Functions;
import com.pulumi.aws.route53.inputs.GetTrafficPolicyDocumentArgs;
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) {
final var example = Route53Functions.getTrafficPolicyDocument(GetTrafficPolicyDocumentArgs.builder()
.recordType("A")
.startRule("geoproximity_rule")
.endpoints(
GetTrafficPolicyDocumentEndpointArgs.builder()
.id("na_endpoint_a")
.type("elastic-load-balancer")
.value("elb-111111.us-west-1.elb.amazonaws.com")
.build(),
GetTrafficPolicyDocumentEndpointArgs.builder()
.id("na_endpoint_b")
.type("elastic-load-balancer")
.value("elb-222222.us-west-1.elb.amazonaws.com")
.build(),
GetTrafficPolicyDocumentEndpointArgs.builder()
.id("eu_endpoint")
.type("elastic-load-balancer")
.value("elb-333333.eu-west-1.elb.amazonaws.com")
.build(),
GetTrafficPolicyDocumentEndpointArgs.builder()
.id("ap_endpoint")
.type("elastic-load-balancer")
.value("elb-444444.ap-northeast-2.elb.amazonaws.com")
.build())
.rules(
GetTrafficPolicyDocumentRuleArgs.builder()
.id("na_rule")
.type("failover")
.primary(GetTrafficPolicyDocumentRulePrimaryArgs.builder()
.endpointReference("na_endpoint_a")
.build())
.secondary(GetTrafficPolicyDocumentRuleSecondaryArgs.builder()
.endpointReference("na_endpoint_b")
.build())
.build(),
GetTrafficPolicyDocumentRuleArgs.builder()
.id("geoproximity_rule")
.type("geoproximity")
.geoProximityLocations(
GetTrafficPolicyDocumentRuleGeoProximityLocationArgs.builder()
.region("aws:route53:us-west-1")
.bias("10")
.evaluateTargetHealth(true)
.ruleReference("na_rule")
.build(),
GetTrafficPolicyDocumentRuleGeoProximityLocationArgs.builder()
.region("aws:route53:eu-west-1")
.bias("10")
.evaluateTargetHealth(true)
.endpointReference("eu_endpoint")
.build(),
GetTrafficPolicyDocumentRuleGeoProximityLocationArgs.builder()
.region("aws:route53:ap-northeast-2")
.bias("0")
.evaluateTargetHealth(true)
.endpointReference("ap_endpoint")
.build())
.build())
.build());
var exampleTrafficPolicy = new TrafficPolicy("exampleTrafficPolicy", TrafficPolicyArgs.builder()
.name("example")
.comment("example comment")
.document(example.json())
.build());
}
}
resources:
exampleTrafficPolicy:
type: aws:route53:TrafficPolicy
name: example
properties:
name: example
comment: example comment
document: ${example.json}
variables:
example:
fn::invoke:
function: aws:route53:getTrafficPolicyDocument
arguments:
recordType: A
startRule: geoproximity_rule
endpoints:
- id: na_endpoint_a
type: elastic-load-balancer
value: elb-111111.us-west-1.elb.amazonaws.com
- id: na_endpoint_b
type: elastic-load-balancer
value: elb-222222.us-west-1.elb.amazonaws.com
- id: eu_endpoint
type: elastic-load-balancer
value: elb-333333.eu-west-1.elb.amazonaws.com
- id: ap_endpoint
type: elastic-load-balancer
value: elb-444444.ap-northeast-2.elb.amazonaws.com
rules:
- id: na_rule
type: failover
primary:
endpointReference: na_endpoint_a
secondary:
endpointReference: na_endpoint_b
- id: geoproximity_rule
type: geoproximity
geoProximityLocations:
- region: aws:route53:us-west-1
bias: 10
evaluateTargetHealth: true
ruleReference: na_rule
- region: aws:route53:eu-west-1
bias: 10
evaluateTargetHealth: true
endpointReference: eu_endpoint
- region: aws:route53:ap-northeast-2
bias: 0
evaluateTargetHealth: true
endpointReference: ap_endpoint
Using getTrafficPolicyDocument
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTrafficPolicyDocument(args: GetTrafficPolicyDocumentArgs, opts?: InvokeOptions): Promise<GetTrafficPolicyDocumentResult>
function getTrafficPolicyDocumentOutput(args: GetTrafficPolicyDocumentOutputArgs, opts?: InvokeOptions): Output<GetTrafficPolicyDocumentResult>def get_traffic_policy_document(endpoints: Optional[Sequence[GetTrafficPolicyDocumentEndpoint]] = None,
record_type: Optional[str] = None,
rules: Optional[Sequence[GetTrafficPolicyDocumentRule]] = None,
start_endpoint: Optional[str] = None,
start_rule: Optional[str] = None,
version: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTrafficPolicyDocumentResult
def get_traffic_policy_document_output(endpoints: Optional[pulumi.Input[Sequence[pulumi.Input[GetTrafficPolicyDocumentEndpointArgs]]]] = None,
record_type: Optional[pulumi.Input[str]] = None,
rules: Optional[pulumi.Input[Sequence[pulumi.Input[GetTrafficPolicyDocumentRuleArgs]]]] = None,
start_endpoint: Optional[pulumi.Input[str]] = None,
start_rule: Optional[pulumi.Input[str]] = None,
version: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTrafficPolicyDocumentResult]func GetTrafficPolicyDocument(ctx *Context, args *GetTrafficPolicyDocumentArgs, opts ...InvokeOption) (*GetTrafficPolicyDocumentResult, error)
func GetTrafficPolicyDocumentOutput(ctx *Context, args *GetTrafficPolicyDocumentOutputArgs, opts ...InvokeOption) GetTrafficPolicyDocumentResultOutput> Note: This function is named GetTrafficPolicyDocument in the Go SDK.
public static class GetTrafficPolicyDocument
{
public static Task<GetTrafficPolicyDocumentResult> InvokeAsync(GetTrafficPolicyDocumentArgs args, InvokeOptions? opts = null)
public static Output<GetTrafficPolicyDocumentResult> Invoke(GetTrafficPolicyDocumentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTrafficPolicyDocumentResult> getTrafficPolicyDocument(GetTrafficPolicyDocumentArgs args, InvokeOptions options)
public static Output<GetTrafficPolicyDocumentResult> getTrafficPolicyDocument(GetTrafficPolicyDocumentArgs args, InvokeOptions options)
fn::invoke:
function: aws:route53/getTrafficPolicyDocument:getTrafficPolicyDocument
arguments:
# arguments dictionaryThe following arguments are supported:
- Endpoints
List<Get
Traffic Policy Document Endpoint> - Configuration block for the definitions of the endpoints that you want to use in this traffic policy. See below
- Record
Type string - DNS type of all of the resource record sets that Amazon Route 53 will create based on this traffic policy.
- Rules
List<Get
Traffic Policy Document Rule> - Configuration block for definitions of the rules that you want to use in this traffic policy. See below
- Start
Endpoint string - An endpoint to be as the starting point for the traffic policy.
- Start
Rule string - A rule to be as the starting point for the traffic policy.
- Version string
- Version of the traffic policy format.
- Endpoints
[]Get
Traffic Policy Document Endpoint - Configuration block for the definitions of the endpoints that you want to use in this traffic policy. See below
- Record
Type string - DNS type of all of the resource record sets that Amazon Route 53 will create based on this traffic policy.
- Rules
[]Get
Traffic Policy Document Rule - Configuration block for definitions of the rules that you want to use in this traffic policy. See below
- Start
Endpoint string - An endpoint to be as the starting point for the traffic policy.
- Start
Rule string - A rule to be as the starting point for the traffic policy.
- Version string
- Version of the traffic policy format.
- endpoints
List<Get
Traffic Policy Document Endpoint> - Configuration block for the definitions of the endpoints that you want to use in this traffic policy. See below
- record
Type String - DNS type of all of the resource record sets that Amazon Route 53 will create based on this traffic policy.
- rules
List<Get
Traffic Policy Document Rule> - Configuration block for definitions of the rules that you want to use in this traffic policy. See below
- start
Endpoint String - An endpoint to be as the starting point for the traffic policy.
- start
Rule String - A rule to be as the starting point for the traffic policy.
- version String
- Version of the traffic policy format.
- endpoints
Get
Traffic Policy Document Endpoint[] - Configuration block for the definitions of the endpoints that you want to use in this traffic policy. See below
- record
Type string - DNS type of all of the resource record sets that Amazon Route 53 will create based on this traffic policy.
- rules
Get
Traffic Policy Document Rule[] - Configuration block for definitions of the rules that you want to use in this traffic policy. See below
- start
Endpoint string - An endpoint to be as the starting point for the traffic policy.
- start
Rule string - A rule to be as the starting point for the traffic policy.
- version string
- Version of the traffic policy format.
- endpoints
Sequence[Get
Traffic Policy Document Endpoint] - Configuration block for the definitions of the endpoints that you want to use in this traffic policy. See below
- record_
type str - DNS type of all of the resource record sets that Amazon Route 53 will create based on this traffic policy.
- rules
Sequence[Get
Traffic Policy Document Rule] - Configuration block for definitions of the rules that you want to use in this traffic policy. See below
- start_
endpoint str - An endpoint to be as the starting point for the traffic policy.
- start_
rule str - A rule to be as the starting point for the traffic policy.
- version str
- Version of the traffic policy format.
- endpoints List<Property Map>
- Configuration block for the definitions of the endpoints that you want to use in this traffic policy. See below
- record
Type String - DNS type of all of the resource record sets that Amazon Route 53 will create based on this traffic policy.
- rules List<Property Map>
- Configuration block for definitions of the rules that you want to use in this traffic policy. See below
- start
Endpoint String - An endpoint to be as the starting point for the traffic policy.
- start
Rule String - A rule to be as the starting point for the traffic policy.
- version String
- Version of the traffic policy format.
getTrafficPolicyDocument Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Json string
- Standard JSON policy document rendered based on the arguments above.
- Endpoints
List<Get
Traffic Policy Document Endpoint> - Record
Type string - Rules
List<Get
Traffic Policy Document Rule> - Start
Endpoint string - Start
Rule string - Version string
- Id string
- The provider-assigned unique ID for this managed resource.
- Json string
- Standard JSON policy document rendered based on the arguments above.
- Endpoints
[]Get
Traffic Policy Document Endpoint - Record
Type string - Rules
[]Get
Traffic Policy Document Rule - Start
Endpoint string - Start
Rule string - Version string
- id String
- The provider-assigned unique ID for this managed resource.
- json String
- Standard JSON policy document rendered based on the arguments above.
- endpoints
List<Get
Traffic Policy Document Endpoint> - record
Type String - rules
List<Get
Traffic Policy Document Rule> - start
Endpoint String - start
Rule String - version String
- id string
- The provider-assigned unique ID for this managed resource.
- json string
- Standard JSON policy document rendered based on the arguments above.
- endpoints
Get
Traffic Policy Document Endpoint[] - record
Type string - rules
Get
Traffic Policy Document Rule[] - start
Endpoint string - start
Rule string - version string
- id str
- The provider-assigned unique ID for this managed resource.
- json str
- Standard JSON policy document rendered based on the arguments above.
- endpoints
Sequence[Get
Traffic Policy Document Endpoint] - record_
type str - rules
Sequence[Get
Traffic Policy Document Rule] - start_
endpoint str - start_
rule str - version str
- id String
- The provider-assigned unique ID for this managed resource.
- json String
- Standard JSON policy document rendered based on the arguments above.
- endpoints List<Property Map>
- record
Type String - rules List<Property Map>
- start
Endpoint String - start
Rule String - version String
Supporting Types
GetTrafficPolicyDocumentEndpoint
- Id string
- ID of an endpoint you want to assign.
- Region string
- To route traffic to an Amazon S3 bucket that is configured as a website endpoint, specify the region in which you created the bucket for
region. - Type string
- Type of the endpoint. Valid values are
value,cloudfront,elastic-load-balancer,s3-website,application-load-balancer,network-load-balancerandelastic-beanstalk - Value string
- Value of the
type.
- Id string
- ID of an endpoint you want to assign.
- Region string
- To route traffic to an Amazon S3 bucket that is configured as a website endpoint, specify the region in which you created the bucket for
region. - Type string
- Type of the endpoint. Valid values are
value,cloudfront,elastic-load-balancer,s3-website,application-load-balancer,network-load-balancerandelastic-beanstalk - Value string
- Value of the
type.
- id String
- ID of an endpoint you want to assign.
- region String
- To route traffic to an Amazon S3 bucket that is configured as a website endpoint, specify the region in which you created the bucket for
region. - type String
- Type of the endpoint. Valid values are
value,cloudfront,elastic-load-balancer,s3-website,application-load-balancer,network-load-balancerandelastic-beanstalk - value String
- Value of the
type.
- id string
- ID of an endpoint you want to assign.
- region string
- To route traffic to an Amazon S3 bucket that is configured as a website endpoint, specify the region in which you created the bucket for
region. - type string
- Type of the endpoint. Valid values are
value,cloudfront,elastic-load-balancer,s3-website,application-load-balancer,network-load-balancerandelastic-beanstalk - value string
- Value of the
type.
- id str
- ID of an endpoint you want to assign.
- region str
- To route traffic to an Amazon S3 bucket that is configured as a website endpoint, specify the region in which you created the bucket for
region. - type str
- Type of the endpoint. Valid values are
value,cloudfront,elastic-load-balancer,s3-website,application-load-balancer,network-load-balancerandelastic-beanstalk - value str
- Value of the
type.
- id String
- ID of an endpoint you want to assign.
- region String
- To route traffic to an Amazon S3 bucket that is configured as a website endpoint, specify the region in which you created the bucket for
region. - type String
- Type of the endpoint. Valid values are
value,cloudfront,elastic-load-balancer,s3-website,application-load-balancer,network-load-balancerandelastic-beanstalk - value String
- Value of the
type.
GetTrafficPolicyDocumentRule
- Id string
- ID of a rule you want to assign.
- Geo
Proximity List<GetLocations Traffic Policy Document Rule Geo Proximity Location> - Configuration block for when you add a geoproximity rule, you configure Amazon Route 53 to route traffic to your resources based on the geographic location of your resources. Only valid for
geoproximitytype. See below - Items
List<Get
Traffic Policy Document Rule Item> - Configuration block for when you add a multivalue answer rule, you configure your traffic policy to route traffic approximately randomly to your healthy resources. Only valid for
multivaluetype. See below - Locations
List<Get
Traffic Policy Document Rule Location> - Configuration block for when you add a geolocation rule, you configure your traffic policy to route your traffic based on the geographic location of your users. Only valid for
geotype. See below - Primary
Get
Traffic Policy Document Rule Primary - Configuration block for the settings for the rule or endpoint that you want to route traffic to whenever the corresponding resources are available. Only valid for
failovertype. See below - Regions
List<Get
Traffic Policy Document Rule Region> - Secondary
Get
Traffic Policy Document Rule Secondary - Configuration block for the rule or endpoint that you want to route traffic to whenever the primary resources are not available. Only valid for
failovertype. See below - Type string
- Type of the rule.
- Id string
- ID of a rule you want to assign.
- Geo
Proximity []GetLocations Traffic Policy Document Rule Geo Proximity Location - Configuration block for when you add a geoproximity rule, you configure Amazon Route 53 to route traffic to your resources based on the geographic location of your resources. Only valid for
geoproximitytype. See below - Items
[]Get
Traffic Policy Document Rule Item - Configuration block for when you add a multivalue answer rule, you configure your traffic policy to route traffic approximately randomly to your healthy resources. Only valid for
multivaluetype. See below - Locations
[]Get
Traffic Policy Document Rule Location - Configuration block for when you add a geolocation rule, you configure your traffic policy to route your traffic based on the geographic location of your users. Only valid for
geotype. See below - Primary
Get
Traffic Policy Document Rule Primary - Configuration block for the settings for the rule or endpoint that you want to route traffic to whenever the corresponding resources are available. Only valid for
failovertype. See below - Regions
[]Get
Traffic Policy Document Rule Region - Secondary
Get
Traffic Policy Document Rule Secondary - Configuration block for the rule or endpoint that you want to route traffic to whenever the primary resources are not available. Only valid for
failovertype. See below - Type string
- Type of the rule.
- id String
- ID of a rule you want to assign.
- geo
Proximity List<GetLocations Traffic Policy Document Rule Geo Proximity Location> - Configuration block for when you add a geoproximity rule, you configure Amazon Route 53 to route traffic to your resources based on the geographic location of your resources. Only valid for
geoproximitytype. See below - items
List<Get
Traffic Policy Document Rule Item> - Configuration block for when you add a multivalue answer rule, you configure your traffic policy to route traffic approximately randomly to your healthy resources. Only valid for
multivaluetype. See below - locations
List<Get
Traffic Policy Document Rule Location> - Configuration block for when you add a geolocation rule, you configure your traffic policy to route your traffic based on the geographic location of your users. Only valid for
geotype. See below - primary
Get
Traffic Policy Document Rule Primary - Configuration block for the settings for the rule or endpoint that you want to route traffic to whenever the corresponding resources are available. Only valid for
failovertype. See below - regions
List<Get
Traffic Policy Document Rule Region> - secondary
Get
Traffic Policy Document Rule Secondary - Configuration block for the rule or endpoint that you want to route traffic to whenever the primary resources are not available. Only valid for
failovertype. See below - type String
- Type of the rule.
- id string
- ID of a rule you want to assign.
- geo
Proximity GetLocations Traffic Policy Document Rule Geo Proximity Location[] - Configuration block for when you add a geoproximity rule, you configure Amazon Route 53 to route traffic to your resources based on the geographic location of your resources. Only valid for
geoproximitytype. See below - items
Get
Traffic Policy Document Rule Item[] - Configuration block for when you add a multivalue answer rule, you configure your traffic policy to route traffic approximately randomly to your healthy resources. Only valid for
multivaluetype. See below - locations
Get
Traffic Policy Document Rule Location[] - Configuration block for when you add a geolocation rule, you configure your traffic policy to route your traffic based on the geographic location of your users. Only valid for
geotype. See below - primary
Get
Traffic Policy Document Rule Primary - Configuration block for the settings for the rule or endpoint that you want to route traffic to whenever the corresponding resources are available. Only valid for
failovertype. See below - regions
Get
Traffic Policy Document Rule Region[] - secondary
Get
Traffic Policy Document Rule Secondary - Configuration block for the rule or endpoint that you want to route traffic to whenever the primary resources are not available. Only valid for
failovertype. See below - type string
- Type of the rule.
- id str
- ID of a rule you want to assign.
- geo_
proximity_ Sequence[Getlocations Traffic Policy Document Rule Geo Proximity Location] - Configuration block for when you add a geoproximity rule, you configure Amazon Route 53 to route traffic to your resources based on the geographic location of your resources. Only valid for
geoproximitytype. See below - items
Sequence[Get
Traffic Policy Document Rule Item] - Configuration block for when you add a multivalue answer rule, you configure your traffic policy to route traffic approximately randomly to your healthy resources. Only valid for
multivaluetype. See below - locations
Sequence[Get
Traffic Policy Document Rule Location] - Configuration block for when you add a geolocation rule, you configure your traffic policy to route your traffic based on the geographic location of your users. Only valid for
geotype. See below - primary
Get
Traffic Policy Document Rule Primary - Configuration block for the settings for the rule or endpoint that you want to route traffic to whenever the corresponding resources are available. Only valid for
failovertype. See below - regions
Sequence[Get
Traffic Policy Document Rule Region] - secondary
Get
Traffic Policy Document Rule Secondary - Configuration block for the rule or endpoint that you want to route traffic to whenever the primary resources are not available. Only valid for
failovertype. See below - type str
- Type of the rule.
- id String
- ID of a rule you want to assign.
- geo
Proximity List<Property Map>Locations - Configuration block for when you add a geoproximity rule, you configure Amazon Route 53 to route traffic to your resources based on the geographic location of your resources. Only valid for
geoproximitytype. See below - items List<Property Map>
- Configuration block for when you add a multivalue answer rule, you configure your traffic policy to route traffic approximately randomly to your healthy resources. Only valid for
multivaluetype. See below - locations List<Property Map>
- Configuration block for when you add a geolocation rule, you configure your traffic policy to route your traffic based on the geographic location of your users. Only valid for
geotype. See below - primary Property Map
- Configuration block for the settings for the rule or endpoint that you want to route traffic to whenever the corresponding resources are available. Only valid for
failovertype. See below - regions List<Property Map>
- secondary Property Map
- Configuration block for the rule or endpoint that you want to route traffic to whenever the primary resources are not available. Only valid for
failovertype. See below - type String
- Type of the rule.
GetTrafficPolicyDocumentRuleGeoProximityLocation
- Bias string
- Specify a value for
biasif you want to route more traffic to an endpoint from nearby endpoints (positive values) or route less traffic to an endpoint (negative values). - Endpoint
Reference string - References to an endpoint.
- Evaluate
Target boolHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- Health
Check string - If you want to associate a health check with the endpoint or rule.
- Latitude string
- Represents the location south (negative) or north (positive) of the equator. Valid values are -90 degrees to 90 degrees.
- Longitude string
- Represents the location west (negative) or east (positive) of the prime meridian. Valid values are -180 degrees to 180 degrees.
- Region string
- If your endpoint is an AWS resource, specify the AWS Region that you created the resource in.
- Rule
Reference string - References to a rule.
- Bias string
- Specify a value for
biasif you want to route more traffic to an endpoint from nearby endpoints (positive values) or route less traffic to an endpoint (negative values). - Endpoint
Reference string - References to an endpoint.
- Evaluate
Target boolHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- Health
Check string - If you want to associate a health check with the endpoint or rule.
- Latitude string
- Represents the location south (negative) or north (positive) of the equator. Valid values are -90 degrees to 90 degrees.
- Longitude string
- Represents the location west (negative) or east (positive) of the prime meridian. Valid values are -180 degrees to 180 degrees.
- Region string
- If your endpoint is an AWS resource, specify the AWS Region that you created the resource in.
- Rule
Reference string - References to a rule.
- bias String
- Specify a value for
biasif you want to route more traffic to an endpoint from nearby endpoints (positive values) or route less traffic to an endpoint (negative values). - endpoint
Reference String - References to an endpoint.
- evaluate
Target BooleanHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- health
Check String - If you want to associate a health check with the endpoint or rule.
- latitude String
- Represents the location south (negative) or north (positive) of the equator. Valid values are -90 degrees to 90 degrees.
- longitude String
- Represents the location west (negative) or east (positive) of the prime meridian. Valid values are -180 degrees to 180 degrees.
- region String
- If your endpoint is an AWS resource, specify the AWS Region that you created the resource in.
- rule
Reference String - References to a rule.
- bias string
- Specify a value for
biasif you want to route more traffic to an endpoint from nearby endpoints (positive values) or route less traffic to an endpoint (negative values). - endpoint
Reference string - References to an endpoint.
- evaluate
Target booleanHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- health
Check string - If you want to associate a health check with the endpoint or rule.
- latitude string
- Represents the location south (negative) or north (positive) of the equator. Valid values are -90 degrees to 90 degrees.
- longitude string
- Represents the location west (negative) or east (positive) of the prime meridian. Valid values are -180 degrees to 180 degrees.
- region string
- If your endpoint is an AWS resource, specify the AWS Region that you created the resource in.
- rule
Reference string - References to a rule.
- bias str
- Specify a value for
biasif you want to route more traffic to an endpoint from nearby endpoints (positive values) or route less traffic to an endpoint (negative values). - endpoint_
reference str - References to an endpoint.
- evaluate_
target_ boolhealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- health_
check str - If you want to associate a health check with the endpoint or rule.
- latitude str
- Represents the location south (negative) or north (positive) of the equator. Valid values are -90 degrees to 90 degrees.
- longitude str
- Represents the location west (negative) or east (positive) of the prime meridian. Valid values are -180 degrees to 180 degrees.
- region str
- If your endpoint is an AWS resource, specify the AWS Region that you created the resource in.
- rule_
reference str - References to a rule.
- bias String
- Specify a value for
biasif you want to route more traffic to an endpoint from nearby endpoints (positive values) or route less traffic to an endpoint (negative values). - endpoint
Reference String - References to an endpoint.
- evaluate
Target BooleanHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- health
Check String - If you want to associate a health check with the endpoint or rule.
- latitude String
- Represents the location south (negative) or north (positive) of the equator. Valid values are -90 degrees to 90 degrees.
- longitude String
- Represents the location west (negative) or east (positive) of the prime meridian. Valid values are -180 degrees to 180 degrees.
- region String
- If your endpoint is an AWS resource, specify the AWS Region that you created the resource in.
- rule
Reference String - References to a rule.
GetTrafficPolicyDocumentRuleItem
- Endpoint
Reference string - Health
Check string
- Endpoint
Reference string - Health
Check string
- endpoint
Reference String - health
Check String
- endpoint
Reference string - health
Check string
- endpoint_
reference str - health_
check str
- endpoint
Reference String - health
Check String
GetTrafficPolicyDocumentRuleLocation
- Continent string
- Value of a continent.
- Country string
- Value of a country.
- Endpoint
Reference string - References to an endpoint.
- Evaluate
Target boolHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- Health
Check string - If you want to associate a health check with the endpoint or rule.
- Is
Default bool - Indicates whether this set of values represents the default location.
- Rule
Reference string - References to a rule.
- Subdivision string
- Value of a subdivision.
- Continent string
- Value of a continent.
- Country string
- Value of a country.
- Endpoint
Reference string - References to an endpoint.
- Evaluate
Target boolHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- Health
Check string - If you want to associate a health check with the endpoint or rule.
- Is
Default bool - Indicates whether this set of values represents the default location.
- Rule
Reference string - References to a rule.
- Subdivision string
- Value of a subdivision.
- continent String
- Value of a continent.
- country String
- Value of a country.
- endpoint
Reference String - References to an endpoint.
- evaluate
Target BooleanHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- health
Check String - If you want to associate a health check with the endpoint or rule.
- is
Default Boolean - Indicates whether this set of values represents the default location.
- rule
Reference String - References to a rule.
- subdivision String
- Value of a subdivision.
- continent string
- Value of a continent.
- country string
- Value of a country.
- endpoint
Reference string - References to an endpoint.
- evaluate
Target booleanHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- health
Check string - If you want to associate a health check with the endpoint or rule.
- is
Default boolean - Indicates whether this set of values represents the default location.
- rule
Reference string - References to a rule.
- subdivision string
- Value of a subdivision.
- continent str
- Value of a continent.
- country str
- Value of a country.
- endpoint_
reference str - References to an endpoint.
- evaluate_
target_ boolhealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- health_
check str - If you want to associate a health check with the endpoint or rule.
- is_
default bool - Indicates whether this set of values represents the default location.
- rule_
reference str - References to a rule.
- subdivision str
- Value of a subdivision.
- continent String
- Value of a continent.
- country String
- Value of a country.
- endpoint
Reference String - References to an endpoint.
- evaluate
Target BooleanHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- health
Check String - If you want to associate a health check with the endpoint or rule.
- is
Default Boolean - Indicates whether this set of values represents the default location.
- rule
Reference String - References to a rule.
- subdivision String
- Value of a subdivision.
GetTrafficPolicyDocumentRulePrimary
- Endpoint
Reference string - References to an endpoint.
- Evaluate
Target boolHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- Health
Check string - If you want to associate a health check with the endpoint or rule.
- Rule
Reference string - References to a rule.
- Endpoint
Reference string - References to an endpoint.
- Evaluate
Target boolHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- Health
Check string - If you want to associate a health check with the endpoint or rule.
- Rule
Reference string - References to a rule.
- endpoint
Reference String - References to an endpoint.
- evaluate
Target BooleanHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- health
Check String - If you want to associate a health check with the endpoint or rule.
- rule
Reference String - References to a rule.
- endpoint
Reference string - References to an endpoint.
- evaluate
Target booleanHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- health
Check string - If you want to associate a health check with the endpoint or rule.
- rule
Reference string - References to a rule.
- endpoint_
reference str - References to an endpoint.
- evaluate_
target_ boolhealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- health_
check str - If you want to associate a health check with the endpoint or rule.
- rule_
reference str - References to a rule.
- endpoint
Reference String - References to an endpoint.
- evaluate
Target BooleanHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- health
Check String - If you want to associate a health check with the endpoint or rule.
- rule
Reference String - References to a rule.
GetTrafficPolicyDocumentRuleRegion
- Endpoint
Reference string - References to an endpoint.
- Evaluate
Target boolHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- Health
Check string - If you want to associate a health check with the endpoint or rule.
- Region string
- Region code for the AWS Region that you created the resource in.
- Rule
Reference string - References to a rule.
- Endpoint
Reference string - References to an endpoint.
- Evaluate
Target boolHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- Health
Check string - If you want to associate a health check with the endpoint or rule.
- Region string
- Region code for the AWS Region that you created the resource in.
- Rule
Reference string - References to a rule.
- endpoint
Reference String - References to an endpoint.
- evaluate
Target BooleanHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- health
Check String - If you want to associate a health check with the endpoint or rule.
- region String
- Region code for the AWS Region that you created the resource in.
- rule
Reference String - References to a rule.
- endpoint
Reference string - References to an endpoint.
- evaluate
Target booleanHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- health
Check string - If you want to associate a health check with the endpoint or rule.
- region string
- Region code for the AWS Region that you created the resource in.
- rule
Reference string - References to a rule.
- endpoint_
reference str - References to an endpoint.
- evaluate_
target_ boolhealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- health_
check str - If you want to associate a health check with the endpoint or rule.
- region str
- Region code for the AWS Region that you created the resource in.
- rule_
reference str - References to a rule.
- endpoint
Reference String - References to an endpoint.
- evaluate
Target BooleanHealth - Indicates whether you want Amazon Route 53 to evaluate the health of the endpoint and route traffic only to healthy endpoints.
- health
Check String - If you want to associate a health check with the endpoint or rule.
- region String
- Region code for the AWS Region that you created the resource in.
- rule
Reference String - References to a rule.
GetTrafficPolicyDocumentRuleSecondary
- Endpoint
Reference string - Evaluate
Target boolHealth - Health
Check string - Rule
Reference string
- Endpoint
Reference string - Evaluate
Target boolHealth - Health
Check string - Rule
Reference string
- endpoint
Reference String - evaluate
Target BooleanHealth - health
Check String - rule
Reference String
- endpoint
Reference string - evaluate
Target booleanHealth - health
Check string - rule
Reference string
- endpoint_
reference str - evaluate_
target_ boolhealth - health_
check str - rule_
reference str
- endpoint
Reference String - evaluate
Target BooleanHealth - health
Check String - rule
Reference String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
