CfnPlaybackRestrictionPolicyProps

class aws_cdk.aws_ivs.CfnPlaybackRestrictionPolicyProps(*, allowed_countries, allowed_origins, enable_strict_origin_enforcement=None, name=None, tags=None)

Bases: object

Properties for defining a CfnPlaybackRestrictionPolicy.

Parameters:
  • allowed_countries (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 (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: - false

  • name (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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-playbackrestrictionpolicy.html

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 import aws_ivs as ivs

cfn_playback_restriction_policy_props = ivs.CfnPlaybackRestrictionPolicyProps(
    allowed_countries=["allowedCountries"],
    allowed_origins=["allowedOrigins"],

    # the properties below are optional
    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).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-playbackrestrictionpolicy.html#cfn-ivs-playbackrestrictionpolicy-allowedcountries

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”

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-playbackrestrictionpolicy.html#cfn-ivs-playbackrestrictionpolicy-allowedorigins

enable_strict_origin_enforcement

Whether channel playback is constrained by the origin site.

Default:
  • false

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-playbackrestrictionpolicy.html#cfn-ivs-playbackrestrictionpolicy-enablestrictoriginenforcement

name

Playback-restriction-policy name.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-playbackrestrictionpolicy.html#cfn-ivs-playbackrestrictionpolicy-name

tags

An array of key-value pairs to apply to this resource.

For more information, see Tag .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ivs-playbackrestrictionpolicy.html#cfn-ivs-playbackrestrictionpolicy-tags