Show / Hide Table of Contents

Class CfnDistribution.OriginShieldProperty

CloudFront Origin Shield.

Inheritance
object
CfnDistribution.OriginShieldProperty
Implements
CfnDistribution.IOriginShieldProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDistribution.OriginShieldProperty : CfnDistribution.IOriginShieldProperty
Syntax (vb)
Public Class CfnDistribution.OriginShieldProperty Implements CfnDistribution.IOriginShieldProperty
Remarks

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.CloudFront;

             var originShieldProperty = new OriginShieldProperty {
                 Enabled = false,
                 OriginShieldRegion = "originShieldRegion"
             };

Synopsis

Constructors

OriginShieldProperty()

CloudFront Origin Shield.

Properties

Enabled

A flag that specifies whether Origin Shield is enabled.

OriginShieldRegion

The AWS Region for Origin Shield.

Constructors

OriginShieldProperty()

CloudFront Origin Shield.

public OriginShieldProperty()
Remarks

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.CloudFront;

             var originShieldProperty = new OriginShieldProperty {
                 Enabled = false,
                 OriginShieldRegion = "originShieldRegion"
             };

Properties

Enabled

A flag that specifies whether Origin Shield is enabled.

public object? Enabled { get; set; }
Property Value

object

Remarks

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html#cfn-cloudfront-distribution-originshield-enabled

OriginShieldRegion

The AWS Region for Origin Shield.

public string? OriginShieldRegion { get; set; }
Property Value

string

Remarks

Specify the AWS 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 AWS Region for Origin Shield. For the list of AWS Regions that you can specify, and for help choosing the best Region for your origin, see Choosing the AWS Region for Origin Shield in the Amazon CloudFront Developer Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-originshield.html#cfn-cloudfront-distribution-originshield-originshieldregion

Implements

CfnDistribution.IOriginShieldProperty
Back to top Generated by DocFX