AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

A CloudFront origin access control configuration.

Inheritance Hierarchy

System.Object
  Amazon.CloudFront.Model.OriginAccessControlConfig

Namespace: Amazon.CloudFront.Model
Assembly: AWSSDK.CloudFront.dll
Version: 3.x.y.z

Syntax

C#
public class OriginAccessControlConfig

The OriginAccessControlConfig type exposes the following members

Constructors

NameDescription
Public Method OriginAccessControlConfig()

Properties

NameTypeDescription
Public Property Description System.String

Gets and sets the property Description.

A description of the origin access control.

Public Property Name System.String

Gets and sets the property Name.

A name to identify the origin access control. You can specify up to 64 characters.

Public Property OriginAccessControlOriginType Amazon.CloudFront.OriginAccessControlOriginTypes

Gets and sets the property OriginAccessControlOriginType.

The type of origin that this origin access control is for.

Public Property SigningBehavior Amazon.CloudFront.OriginAccessControlSigningBehaviors

Gets and sets the property SigningBehavior.

Specifies which requests CloudFront signs (adds authentication information to). 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:

  • always – CloudFront signs all origin requests, overwriting the Authorization header from the viewer request if one exists.

  • never – CloudFront doesn't sign any origin requests. This value turns off origin access control for all origins in all distributions that use this origin access control.

  • no-override – If the viewer request doesn't contain the Authorization header, then CloudFront signs the origin request. If the viewer request contains the Authorization header, then CloudFront doesn't sign the origin request and instead passes along the Authorization header from the viewer request. WARNING: To pass along the Authorization header from the viewer request, you must add the Authorization header to a cache policy for all cache behaviors that use origins associated with this origin access control.

Public Property SigningProtocol Amazon.CloudFront.OriginAccessControlSigningProtocols

Gets and sets the property SigningProtocol.

The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) requests. The only valid value is sigv4.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5