interface CfnPlaybackRestrictionPolicyMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.IVS.Mixins.CfnPlaybackRestrictionPolicyMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsivs/mixins#CfnPlaybackRestrictionPolicyMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.ivs.mixins.CfnPlaybackRestrictionPolicyMixinProps |
Python | aws_cdk.mixins_preview.aws_ivs.mixins.CfnPlaybackRestrictionPolicyMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_ivs » mixins » CfnPlaybackRestrictionPolicyMixinProps |
Properties for CfnPlaybackRestrictionPolicyPropsMixin.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as ivs_mixins } from '@aws-cdk/mixins-preview/aws-ivs';
const cfnPlaybackRestrictionPolicyMixinProps: ivs_mixins.CfnPlaybackRestrictionPolicyMixinProps = {
allowedCountries: ['allowedCountries'],
allowedOrigins: ['allowedOrigins'],
enableStrictOriginEnforcement: false,
name: 'name',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| allowed | string[] | A list of country codes that control geoblocking restrictions. |
| allowed | string[] | A list of origin sites that control CORS restriction. |
| enable | boolean | IResolvable | Whether channel playback is constrained by the origin site. |
| name? | string | Playback-restriction-policy name. |
| tags? | Cfn[] | An array of key-value pairs to apply to this resource. |
allowedCountries?
Type:
string[]
(optional)
A list of country codes that control geoblocking restrictions.
Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array).
allowedOrigins?
Type:
string[]
(optional)
A list of origin sites that control CORS restriction.
Allowed values are the same as valid values of the Origin header defined at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin"
enableStrictOriginEnforcement?
Type:
boolean | IResolvable
(optional, default: false)
Whether channel playback is constrained by the origin site.
name?
Type:
string
(optional)
Playback-restriction-policy name.
tags?
Type:
Cfn[]
(optional)
An array of key-value pairs to apply to this resource.
For more information, see Tag .

.NET
Go
Java
Python
TypeScript