class CfnContainerPropsMixin (mixin)
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.MediaStore.CfnContainerPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsmediastore#CfnContainerPropsMixin |
Java | software.amazon.awscdk.cfnpropertymixins.services.mediastore.CfnContainerPropsMixin |
Python | aws_cdk.cfn_property_mixins.aws_mediastore.CfnContainerPropsMixin |
TypeScript | @aws-cdk/cfn-property-mixins » aws_mediastore » CfnContainerPropsMixin |
Implements
IMixin
Extends
Mixin
The AWS::MediaStore::Container resource specifies a storage container to hold objects.
A container is similar to a bucket in Amazon S3.
When you create a container using CloudFormation , the template manages data for five API actions: creating a container, setting access logging, updating the default container policy, adding a cross-origin resource sharing (CORS) policy, and adding an object lifecycle policy.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediastore-container.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediastore as mediastore } from '@aws-cdk/cfn-property-mixins';
import * as cdk from 'aws-cdk-lib';
declare const mergeStrategy: cdk.IMergeStrategy;
const cfnContainerPropsMixin = new mediastore.CfnContainerPropsMixin({
accessLoggingEnabled: false,
containerName: 'containerName',
corsPolicy: [{
allowedHeaders: ['allowedHeaders'],
allowedMethods: ['allowedMethods'],
allowedOrigins: ['allowedOrigins'],
exposeHeaders: ['exposeHeaders'],
maxAgeSeconds: 123,
}],
lifecyclePolicy: 'lifecyclePolicy',
metricPolicy: {
containerLevelMetrics: 'containerLevelMetrics',
metricPolicyRules: [{
objectGroup: 'objectGroup',
objectGroupName: 'objectGroupName',
}],
},
policy: 'policy',
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mergeStrategy,
});
Initializer
new CfnContainerPropsMixin(props: CfnContainerMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Container Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::MediaStore::Container.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | IMerge | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
IMerge
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): void
Parameters
- construct
IConstruct
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript