Create Playback Restriction Policy
ivs_create_playback_restriction_policy | R Documentation |
Creates a new playback restriction policy, for constraining playback by countries and/or origins¶
Description¶
Creates a new playback restriction policy, for constraining playback by countries and/or origins.
Usage¶
ivs_create_playback_restriction_policy(allowedCountries, allowedOrigins,
enableStrictOriginEnforcement, name, tags)
Arguments¶
allowedCountries |
A list of country codes that control geoblocking restriction. Allowed values are the officially assigned ISO 3166-1 alpha-2 codes. Default: All countries (an empty array). |
allowedOrigins |
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. Default: All origins (an empty array). |
enableStrictOriginEnforcement |
Whether channel playback is constrained by origin site. Default:
|
name |
Playback-restriction-policy name. The value does not need to be unique. |
tags |
Array of 1-50 maps, each of the form
|
Value¶
A list with the following syntax:
list(
playbackRestrictionPolicy = list(
allowedCountries = list(
"string"
),
allowedOrigins = list(
"string"
),
arn = "string",
enableStrictOriginEnforcement = TRUE|FALSE,
name = "string",
tags = list(
"string"
)
)
)
Request syntax¶
svc$create_playback_restriction_policy(
allowedCountries = list(
"string"
),
allowedOrigins = list(
"string"
),
enableStrictOriginEnforcement = TRUE|FALSE,
name = "string",
tags = list(
"string"
)
)