class Aws::CloudFront::Types::OriginShield

CloudFront Origin Shield.

Using Origin Shield can help reduce the load on your origin. For more information, see [Using Origin Shield] in the *Amazon CloudFront Developer Guide*.

[1]: docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html

@note When making an API call, you may pass OriginShield

data as a hash:

    {
      enabled: false, # required
      origin_shield_region: "OriginShieldRegion",
    }

@!attribute [rw] enabled

A flag that specifies whether Origin Shield is enabled.

When it’s enabled, CloudFront routes all requests through Origin
Shield, which can help protect your origin. When it’s disabled,
CloudFront might send requests directly to your origin from multiple
edge locations or regional edge caches.
@return [Boolean]

@!attribute [rw] origin_shield_region

The Region for Origin Shield.

Specify the Region that has the lowest latency to your origin. To
specify a region, use the region code, not the region name. For
example, specify the US East (Ohio) region as `us-east-2`.

When you enable CloudFront Origin Shield, you must specify the
Region for Origin Shield. For the list of Regions that you can
specify, and for help choosing the best Region for your origin, see
[Choosing the Region for Origin Shield][1] in the *Amazon CloudFront
Developer Guide*.

[1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html#choose-origin-shield-region
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/OriginShield AWS API Documentation

Constants

SENSITIVE