Package com.pulumi.aws.route53.inputs
Class GetTrafficPolicyDocumentRule.Builder
- java.lang.Object
-
- com.pulumi.aws.route53.inputs.GetTrafficPolicyDocumentRule.Builder
-
- Enclosing class:
- GetTrafficPolicyDocumentRule
public static final class GetTrafficPolicyDocumentRule.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(GetTrafficPolicyDocumentRule defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(GetTrafficPolicyDocumentRule defaults)
-
-
Method Detail
-
geoProximityLocations
public GetTrafficPolicyDocumentRule.Builder geoProximityLocations(@Nullable java.util.List<GetTrafficPolicyDocumentRuleGeoProximityLocation> geoProximityLocations)
- Parameters:
geoProximityLocations
- 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 `geoproximity` type. See below- Returns:
- builder
-
geoProximityLocations
public GetTrafficPolicyDocumentRule.Builder geoProximityLocations(GetTrafficPolicyDocumentRuleGeoProximityLocation... geoProximityLocations)
- Parameters:
geoProximityLocations
- 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 `geoproximity` type. See below- Returns:
- builder
-
id
public GetTrafficPolicyDocumentRule.Builder id(java.lang.String id)
- Parameters:
id
- ID of a rule you want to assign.- Returns:
- builder
-
items
public GetTrafficPolicyDocumentRule.Builder items(@Nullable java.util.List<GetTrafficPolicyDocumentRuleItem> items)
- Parameters:
items
- 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 `multivalue` type. See below- Returns:
- builder
-
items
public GetTrafficPolicyDocumentRule.Builder items(GetTrafficPolicyDocumentRuleItem... items)
- Parameters:
items
- 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 `multivalue` type. See below- Returns:
- builder
-
locations
public GetTrafficPolicyDocumentRule.Builder locations(@Nullable java.util.List<GetTrafficPolicyDocumentRuleLocation> locations)
- Parameters:
locations
- 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 `geo` type. See below- Returns:
- builder
-
locations
public GetTrafficPolicyDocumentRule.Builder locations(GetTrafficPolicyDocumentRuleLocation... locations)
- Parameters:
locations
- 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 `geo` type. See below- Returns:
- builder
-
primary
public GetTrafficPolicyDocumentRule.Builder primary(@Nullable GetTrafficPolicyDocumentRulePrimary primary)
- Parameters:
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 `failover` type. See below- Returns:
- builder
-
regions
public GetTrafficPolicyDocumentRule.Builder regions(@Nullable java.util.List<GetTrafficPolicyDocumentRuleRegion> regions)
-
regions
public GetTrafficPolicyDocumentRule.Builder regions(GetTrafficPolicyDocumentRuleRegion... regions)
-
secondary
public GetTrafficPolicyDocumentRule.Builder secondary(@Nullable GetTrafficPolicyDocumentRuleSecondary secondary)
- Parameters:
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 `failover` type. See below- Returns:
- builder
-
type
public GetTrafficPolicyDocumentRule.Builder type(@Nullable java.lang.String type)
- Parameters:
type
- Type of the rule.- Returns:
- builder
-
build
public GetTrafficPolicyDocumentRule build()
-
-