MediaPackageV2OriginAccessControlProps Struct
Properties for creating a MediaPackage V2 Origin Access Control resource.
| Source | aws-cloudfront/lib/origin-access-control.ts |
|---|---|
| Type last changed |
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';
declare const signing: cloudfront.Signing;
const mediaPackageV2OriginAccessControlProps: cloudfront.MediaPackageV2OriginAccessControlProps = {
description: 'description',
originAccessControlName: 'originAccessControlName',
signing: signing,
};
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
# signing: cloudfront.Signing
media_package_v2_origin_access_control_props = cloudfront.MediaPackageV2OriginAccessControlProps(
description="description",
origin_access_control_name="originAccessControlName",
signing=signing
)
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.*;
Signing signing;
MediaPackageV2OriginAccessControlProps mediaPackageV2OriginAccessControlProps = MediaPackageV2OriginAccessControlProps.builder()
.description("description")
.originAccessControlName("originAccessControlName")
.signing(signing)
.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;
Signing signing;
var mediaPackageV2OriginAccessControlProps = new MediaPackageV2OriginAccessControlProps {
Description = "description",
OriginAccessControlName = "originAccessControlName",
Signing = signing
};
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"
var signing Signing
mediaPackageV2OriginAccessControlProps := &MediaPackageV2OriginAccessControlProps{
Description: jsii.String("description"),
OriginAccessControlName: jsii.String("originAccessControlName"),
Signing: signing,
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A description of the origin access control.
Default: no description
originAccessControlNameoptionalstringorigin_access_control_nameoptionalstroriginAccessControlNameoptionalStringOriginAccessControlNameoptionalstringOriginAccessControlNameoptional*string #A name to identify the origin access control, with a maximum length of 64 characters.
Default: a generated name