CfnOriginAccessControlProps

class aws_cdk.aws_cloudfront.CfnOriginAccessControlProps(*, origin_access_control_config)

Bases: object

Properties for defining a CfnOriginAccessControl.

Parameters:

origin_access_control_config (Union[IResolvable, OriginAccessControlConfigProperty, Dict[str, Any]]) – The origin access control.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.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"
    )
)

Attributes

origin_access_control_config

The origin access control.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig