CfnCloudFrontOriginAccessIdentityProps Struct
Properties for defining a CfnCloudFrontOriginAccessIdentity.
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 cfnCloudFrontOriginAccessIdentityProps: cloudfront.CfnCloudFrontOriginAccessIdentityProps = {
cloudFrontOriginAccessIdentityConfig: {
comment: 'comment',
},
};
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_cloud_front_origin_access_identity_props = cloudfront.CfnCloudFrontOriginAccessIdentityProps(
cloud_front_origin_access_identity_config=cloudfront.CfnCloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfigProperty(
comment="comment"
)
)
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.*;
CfnCloudFrontOriginAccessIdentityProps cfnCloudFrontOriginAccessIdentityProps = CfnCloudFrontOriginAccessIdentityProps.builder()
.cloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfigProperty.builder()
.comment("comment")
.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 cfnCloudFrontOriginAccessIdentityProps = new CfnCloudFrontOriginAccessIdentityProps {
CloudFrontOriginAccessIdentityConfig = new CloudFrontOriginAccessIdentityConfigProperty {
Comment = "comment"
}
};
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"
cfnCloudFrontOriginAccessIdentityProps := &CfnCloudFrontOriginAccessIdentityProps{
CloudFrontOriginAccessIdentityConfig: &CloudFrontOriginAccessIdentityConfigProperty{
Comment: jsii.String("comment"),
},
}
Properties
cloudFrontOriginAccessIdentityConfigIResolvable | CfnCloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfigPropertycloud_front_origin_access_identity_configtyping.Union[IResolvable, CloudFrontOriginAccessIdentityConfigProperty]cloudFrontOriginAccessIdentityConfigIResolvableCloudFrontOriginAccessIdentityConfigIResolvableCloudFrontOriginAccessIdentityConfiginterface{}required#The current configuration information for the identity.