class Aws::CloudFront::Types::OriginGroup
An origin group includes two origins (a primary origin and a second origin to failover to) and a failover criteria that you specify. You create an origin group to support origin failover in CloudFront
. When you create or update a distribution, you can specifiy the origin group instead of a single origin, and CloudFront
will failover from the primary origin to the second origin under the failover conditions that you've chosen.
@note When making an API call, you may pass OriginGroup
data as a hash: { id: "string", # required failover_criteria: { # required status_codes: { # required quantity: 1, # required items: [1], # required }, }, members: { # required quantity: 1, # required items: [ # required { origin_id: "string", # required }, ], }, }
@!attribute [rw] id
The origin group's ID. @return [String]
@!attribute [rw] failover_criteria
A complex type that contains information about the failover criteria for an origin group. @return [Types::OriginGroupFailoverCriteria]
@!attribute [rw] members
A complex type that contains information about the origins in an origin group. @return [Types::OriginGroupMembers]
@see docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/OriginGroup AWS API Documentation
Constants
- SENSITIVE