You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::CloudFront::Types::OriginGroup
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudFront::Types::OriginGroup
- Defined in:
- (unknown)
Overview
When passing OriginGroup as input to an Aws::Client method, you can use a vanilla 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
},
],
},
}
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.
Instance Attribute Summary collapse
-
#failover_criteria ⇒ Types::OriginGroupFailoverCriteria
A complex type that contains information about the failover criteria for an origin group.
-
#id ⇒ String
The origin group\'s ID.
-
#members ⇒ Types::OriginGroupMembers
A complex type that contains information about the origins in an origin group.
Instance Attribute Details
#failover_criteria ⇒ Types::OriginGroupFailoverCriteria
A complex type that contains information about the failover criteria for an origin group.
#id ⇒ String
The origin group\'s ID.
#members ⇒ Types::OriginGroupMembers
A complex type that contains information about the origins in an origin group.