CfnCloudFrontOriginAccessIdentityPropsMixin

class aws_cdk.cfn_property_mixins.aws_cloudfront.CfnCloudFrontOriginAccessIdentityPropsMixin(props, *, strategy=None)

Bases: Mixin

The request to create a new origin access identity (OAI).

An origin access identity is a special CloudFront user that you can associate with Amazon S3 origins, so that you can secure all or just some of your Amazon S3 content. For more information, see Restricting Access to Amazon S3 Content by Using an Origin Access Identity in the Amazon CloudFront Developer Guide .

See:

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

CloudformationResource:

AWS::CloudFront::CloudFrontOriginAccessIdentity

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_cloudfront as cloudfront
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_cloud_front_origin_access_identity_props_mixin = cloudfront.CfnCloudFrontOriginAccessIdentityPropsMixin(cloudfront.CfnCloudFrontOriginAccessIdentityMixinProps(
    cloud_front_origin_access_identity_config=cloudfront.CfnCloudFrontOriginAccessIdentityPropsMixin.CloudFrontOriginAccessIdentityConfigProperty(
        comment="comment"
    )
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::CloudFront::CloudFrontOriginAccessIdentity.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['cloudFrontOriginAccessIdentityConfig']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

CloudFrontOriginAccessIdentityConfigProperty

class CfnCloudFrontOriginAccessIdentityPropsMixin.CloudFrontOriginAccessIdentityConfigProperty(*, comment=None)

Bases: object

Origin access identity configuration.

Send a GET request to the / *CloudFront API version* /CloudFront/identity ID/config resource.

Parameters:

comment (Optional[str]) – A comment to describe the origin access identity. The comment cannot be longer than 128 characters.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_cloudfront as cloudfront

cloud_front_origin_access_identity_config_property = cloudfront.CfnCloudFrontOriginAccessIdentityPropsMixin.CloudFrontOriginAccessIdentityConfigProperty(
    comment="comment"
)

Attributes

comment

A comment to describe the origin access identity.

The comment cannot be longer than 128 characters.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig.html#cfn-cloudfront-cloudfrontoriginaccessidentity-cloudfrontoriginaccessidentityconfig-comment