Class: Aws::CloudFront::Types::OriginGroup

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb

Overview

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
      },
    ],
  },
}

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#failover_criteriaTypes::OriginGroupFailoverCriteria

A complex type that contains information about the failover criteria for an origin group.



8318
8319
8320
8321
8322
8323
8324
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 8318

class OriginGroup < Struct.new(
  :id,
  :failover_criteria,
  :members)
  SENSITIVE = []
  include Aws::Structure
end

#idString

The origin group's ID.

Returns:

  • (String)


8318
8319
8320
8321
8322
8323
8324
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 8318

class OriginGroup < Struct.new(
  :id,
  :failover_criteria,
  :members)
  SENSITIVE = []
  include Aws::Structure
end

#membersTypes::OriginGroupMembers

A complex type that contains information about the origins in an origin group.



8318
8319
8320
8321
8322
8323
8324
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 8318

class OriginGroup < Struct.new(
  :id,
  :failover_criteria,
  :members)
  SENSITIVE = []
  include Aws::Structure
end