You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::CloudFront::Types::StatusCodes

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing StatusCodes as input to an Aws::Client method, you can use a vanilla Hash:

{
  quantity: 1, # required
  items: [1], # required
}

A complex data type for the status codes that you specify that, when returned by a primary origin, trigger CloudFront to failover to a second origin.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#itemsArray<Integer>

The items (status codes) for an origin group.

Returns:

  • (Array<Integer>)

    The items (status codes) for an origin group.

#quantityInteger

The number of status codes.

Returns:

  • (Integer)

    The number of status codes.