CfnPlaybackRestrictionPolicyMixinProps
- class aws_cdk.mixins_preview.aws_ivs.mixins.CfnPlaybackRestrictionPolicyMixinProps(*, allowed_countries=None, allowed_origins=None, enable_strict_origin_enforcement=None, name=None, tags=None)
Bases:
objectProperties for CfnPlaybackRestrictionPolicyPropsMixin.
- Parameters:
allowed_countries (
Optional[Sequence[str]]) – 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).allowed_origins (
Optional[Sequence[str]]) – 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”enable_strict_origin_enforcement (
Union[bool,IResolvable,None]) – Whether channel playback is constrained by the origin site. Default: - falsename (
Optional[str]) – Playback-restriction-policy name.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – An array of key-value pairs to apply to this resource. For more information, see Tag .
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_ivs import mixins as ivs_mixins cfn_playback_restriction_policy_mixin_props = ivs_mixins.CfnPlaybackRestrictionPolicyMixinProps( allowed_countries=["allowedCountries"], allowed_origins=["allowedOrigins"], enable_strict_origin_enforcement=False, name="name", tags=[CfnTag( key="key", value="value" )] )
Attributes
- allowed_countries
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).
- allowed_origins
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”
- enable_strict_origin_enforcement
Whether channel playback is constrained by the origin site.
- name
Playback-restriction-policy name.