Module Values.CreatePlaybackRestrictionPolicyRequestSource

Creates a new playback restriction policy, for constraining playback by countries and/or origins.

Sourcetype nonrec t = {
  1. allowedCountries : PlaybackRestrictionPolicyAllowedCountryList.t option;
    (*

    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).

    *)
  2. allowedOrigins : PlaybackRestrictionPolicyAllowedOriginList.t option;
    (*

    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).

    *)
  3. enableStrictOriginEnforcement : PlaybackRestrictionPolicyEnableStrictOriginEnforcement.t option;
    (*

    Whether channel playback is constrained by origin site. Default: false.

    *)
  4. name : PlaybackRestrictionPolicyName.t option;
    (*

    Playback-restriction-policy name. The value does not need to be unique.

    *)
  5. tags : Tags.t option;
    (*

    Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.

    *)
}
Sourceval make : ?allowedCountries:??? -> ?allowedOrigins:??? -> ?enableStrictOriginEnforcement:??? -> ?name:??? -> ?tags:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of PlaybackRestrictionPolicyEnableStrictOriginEnforcement.t | `List of [> `String of PlaybackRestrictionPolicyAllowedCountry.t ] list | `Map of ([> `String of TagKey.t ] * [> `String of TagValue.t ]) list | `String of PlaybackRestrictionPolicyName.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t