Class CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty
Creates a new origin access control in CloudFront.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty : CfnOriginAccessControlPropsMixin.IOriginAccessControlConfigProperty
Syntax (vb)
Public Class CfnOriginAccessControlPropsMixin.OriginAccessControlConfigProperty Implements CfnOriginAccessControlPropsMixin.IOriginAccessControlConfigProperty
Remarks
After you create an origin access control, you can add it to an origin in a CloudFront distribution so that CloudFront sends authenticated (signed) requests to the origin.
This makes it possible to block public access to the origin, allowing viewers (users) to access the origin's content only through CloudFront.
For more information about using a CloudFront origin access control, see Restricting access to an AWS origin in the Amazon CloudFront Developer Guide .
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.Mixins.Preview.AWS.CloudFront.Mixins;
var originAccessControlConfigProperty = new OriginAccessControlConfigProperty {
Description = "description",
Name = "name",
OriginAccessControlOriginType = "originAccessControlOriginType",
SigningBehavior = "signingBehavior",
SigningProtocol = "signingProtocol"
};
Synopsis
Constructors
| OriginAccessControlConfigProperty() | Creates a new origin access control in CloudFront. |
Properties
| Description | A description of the origin access control. |
| Name | A name to identify the origin access control. |
| OriginAccessControlOriginType | The type of origin that this origin access control is for. |
| SigningBehavior | Specifies which requests CloudFront signs (adds authentication information to). |
| SigningProtocol | The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests. |
Constructors
OriginAccessControlConfigProperty()
Creates a new origin access control in CloudFront.
public OriginAccessControlConfigProperty()
Remarks
After you create an origin access control, you can add it to an origin in a CloudFront distribution so that CloudFront sends authenticated (signed) requests to the origin.
This makes it possible to block public access to the origin, allowing viewers (users) to access the origin's content only through CloudFront.
For more information about using a CloudFront origin access control, see Restricting access to an AWS origin in the Amazon CloudFront Developer Guide .
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.Mixins.Preview.AWS.CloudFront.Mixins;
var originAccessControlConfigProperty = new OriginAccessControlConfigProperty {
Description = "description",
Name = "name",
OriginAccessControlOriginType = "originAccessControlOriginType",
SigningBehavior = "signingBehavior",
SigningProtocol = "signingProtocol"
};
Properties
Description
A description of the origin access control.
public string? Description { get; set; }
Property Value
Remarks
Name
A name to identify the origin access control.
public string? Name { get; set; }
Property Value
Remarks
OriginAccessControlOriginType
The type of origin that this origin access control is for.
public string? OriginAccessControlOriginType { get; set; }
Property Value
Remarks
SigningBehavior
Specifies which requests CloudFront signs (adds authentication information to).
public string? SigningBehavior { get; set; }
Property Value
Remarks
Specify always for the most common use case. For more information, see origin access control advanced settings in the Amazon CloudFront Developer Guide .
This field can have one of the following values:
SigningProtocol
The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests.
public string? SigningProtocol { get; set; }