interface CfnPlaybackRestrictionPolicyProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Ivs.CfnPlaybackRestrictionPolicyProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsivs#CfnPlaybackRestrictionPolicyProps |
Java | software.amazon.awscdk.services.ivs.CfnPlaybackRestrictionPolicyProps |
Python | aws_cdk.aws_ivs.CfnPlaybackRestrictionPolicyProps |
TypeScript | aws-cdk-lib » aws_ivs » CfnPlaybackRestrictionPolicyProps |
Properties for defining a CfnPlaybackRestrictionPolicy.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ivs as ivs } from 'aws-cdk-lib';
const cfnPlaybackRestrictionPolicyProps: ivs.CfnPlaybackRestrictionPolicyProps = {
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