Skip to content
v2.277.0

CfnOriginAccessControlProps Struct ​

Properties for defining a CfnOriginAccessControl.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const cfnOriginAccessControlProps: cloudfront.CfnOriginAccessControlProps = {
  originAccessControlConfig: {
    name: 'name',
    originAccessControlOriginType: 'originAccessControlOriginType',
    signingBehavior: 'signingBehavior',
    signingProtocol: 'signingProtocol',

    // the properties below are optional
    description: 'description',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront

cfn_origin_access_control_props = cloudfront.CfnOriginAccessControlProps(
    origin_access_control_config=cloudfront.CfnOriginAccessControl.OriginAccessControlConfigProperty(
        name="name",
        origin_access_control_origin_type="originAccessControlOriginType",
        signing_behavior="signingBehavior",
        signing_protocol="signingProtocol",

        # the properties below are optional
        description="description"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;

CfnOriginAccessControlProps cfnOriginAccessControlProps = CfnOriginAccessControlProps.builder()
        .originAccessControlConfig(OriginAccessControlConfigProperty.builder()
                .name("name")
                .originAccessControlOriginType("originAccessControlOriginType")
                .signingBehavior("signingBehavior")
                .signingProtocol("signingProtocol")

                // the properties below are optional
                .description("description")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 cfnOriginAccessControlProps = new CfnOriginAccessControlProps {
    OriginAccessControlConfig = new OriginAccessControlConfigProperty {
        Name = "name",
        OriginAccessControlOriginType = "originAccessControlOriginType",
        SigningBehavior = "signingBehavior",
        SigningProtocol = "signingProtocol",

        // the properties below are optional
        Description = "description"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnOriginAccessControlProps := &CfnOriginAccessControlProps{
	OriginAccessControlConfig: &OriginAccessControlConfigProperty{
		Name: jsii.String("name"),
		OriginAccessControlOriginType: jsii.String("originAccessControlOriginType"),
		SigningBehavior: jsii.String("signingBehavior"),
		SigningProtocol: jsii.String("signingProtocol"),

		// the properties below are optional
		Description: jsii.String("description"),
	},
}

Properties ​

originAccessControlConfigIResolvable | CfnOriginAccessControl.OriginAccessControlConfigPropertyorigin_access_control_configtyping.Union[IResolvable, OriginAccessControlConfigProperty]originAccessControlConfigIResolvableOriginAccessControlConfigIResolvableOriginAccessControlConfiginterface{}required#
The origin access control.