Show / Hide Table of Contents

Class CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty

A list of origins (domain names) that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header.

Inheritance
object
CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty
Implements
CfnResponseHeadersPolicy.IAccessControlAllowOriginsProperty
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 CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty : CfnResponseHeadersPolicy.IAccessControlAllowOriginsProperty
Syntax (vb)
Public Class CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty Implements CfnResponseHeadersPolicy.IAccessControlAllowOriginsProperty
Remarks

For more information about the Access-Control-Allow-Origin HTTP response header, see Access-Control-Allow-Origin in the MDN Web Docs.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolalloworigins.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 accessControlAllowOriginsProperty = new AccessControlAllowOriginsProperty {
                 Items = new [] { "items" }
             };

Synopsis

Constructors

AccessControlAllowOriginsProperty()

A list of origins (domain names) that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header.

Properties

Items

The list of origins (domain names).

Constructors

AccessControlAllowOriginsProperty()

A list of origins (domain names) that CloudFront can use as the value for the Access-Control-Allow-Origin HTTP response header.

public AccessControlAllowOriginsProperty()
Remarks

For more information about the Access-Control-Allow-Origin HTTP response header, see Access-Control-Allow-Origin in the MDN Web Docs.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolalloworigins.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 accessControlAllowOriginsProperty = new AccessControlAllowOriginsProperty {
                 Items = new [] { "items" }
             };

Properties

Items

The list of origins (domain names).

public string[] Items { get; set; }
Property Value

string[]

Remarks

You can specify * to allow all origins.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-accesscontrolalloworigins.html#cfn-cloudfront-responseheaderspolicy-accesscontrolalloworigins-items

Implements

CfnResponseHeadersPolicy.IAccessControlAllowOriginsProperty
Back to top Generated by DocFX