GetTrafficPolicyDocumentRule

data class GetTrafficPolicyDocumentRule(val geoProximityLocations: List<GetTrafficPolicyDocumentRuleGeoProximityLocation>? = null, val id: String, val items: List<GetTrafficPolicyDocumentRuleItem>? = null, val locations: List<GetTrafficPolicyDocumentRuleLocation>? = null, val primary: GetTrafficPolicyDocumentRulePrimary? = null, val regions: List<GetTrafficPolicyDocumentRuleRegion>? = null, val secondary: GetTrafficPolicyDocumentRuleSecondary? = null, val type: String? = null) : ConvertibleToJava<GetTrafficPolicyDocumentRule>

Constructors

Link copied to clipboard
constructor(geoProximityLocations: List<GetTrafficPolicyDocumentRuleGeoProximityLocation>? = null, id: String, items: List<GetTrafficPolicyDocumentRuleItem>? = null, locations: List<GetTrafficPolicyDocumentRuleLocation>? = null, primary: GetTrafficPolicyDocumentRulePrimary? = null, regions: List<GetTrafficPolicyDocumentRuleRegion>? = null, secondary: GetTrafficPolicyDocumentRuleSecondary? = null, type: String? = null)

Properties

Link copied to clipboard

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

Link copied to clipboard
val id: String

ID of a rule you want to assign.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard
val type: String? = null

Type of the rule.

Functions

Link copied to clipboard
open override fun toJava(): GetTrafficPolicyDocumentRule