OriginAccessControlConfigArgs

data class OriginAccessControlConfigArgs(val description: Output<String>? = null, val name: Output<String>, val originAccessControlOriginType: Output<String>, val signingBehavior: Output<String>, val signingProtocol: Output<String>) : ConvertibleToJava<OriginAccessControlConfigArgs>

Creates a new origin access control in CloudFront. 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 origin in the Amazon CloudFront Developer Guide.

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, name: Output<String>, originAccessControlOriginType: Output<String>, signingBehavior: Output<String>, signingProtocol: Output<String>)

Properties

Link copied to clipboard
val description: Output<String>? = null

A description of the origin access control.

Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard

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

Link copied to clipboard
val signingBehavior: Output<String>

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:

Link copied to clipboard
val signingProtocol: Output<String>

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

Functions

Link copied to clipboard
open override fun toJava(): OriginAccessControlConfigArgs