aws_sdk_ivs/client/create_playback_restriction_policy.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CreatePlaybackRestrictionPolicy`](crate::operation::create_playback_restriction_policy::builders::CreatePlaybackRestrictionPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`allowed_countries(impl Into<String>)`](crate::operation::create_playback_restriction_policy::builders::CreatePlaybackRestrictionPolicyFluentBuilder::allowed_countries) / [`set_allowed_countries(Option<Vec::<String>>)`](crate::operation::create_playback_restriction_policy::builders::CreatePlaybackRestrictionPolicyFluentBuilder::set_allowed_countries):<br>required: **false**<br><p>A list of country codes that control geoblocking restriction. Allowed values are the officially assigned <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a> codes. Default: All countries (an empty array).</p><br>
7 /// - [`allowed_origins(impl Into<String>)`](crate::operation::create_playback_restriction_policy::builders::CreatePlaybackRestrictionPolicyFluentBuilder::allowed_origins) / [`set_allowed_origins(Option<Vec::<String>>)`](crate::operation::create_playback_restriction_policy::builders::CreatePlaybackRestrictionPolicyFluentBuilder::set_allowed_origins):<br>required: **false**<br><p>A list of origin sites that control CORS restriction. Allowed values are the same as valid values of the Origin header defined at <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin</a>. Default: All origins (an empty array).</p><br>
8 /// - [`enable_strict_origin_enforcement(bool)`](crate::operation::create_playback_restriction_policy::builders::CreatePlaybackRestrictionPolicyFluentBuilder::enable_strict_origin_enforcement) / [`set_enable_strict_origin_enforcement(Option<bool>)`](crate::operation::create_playback_restriction_policy::builders::CreatePlaybackRestrictionPolicyFluentBuilder::set_enable_strict_origin_enforcement):<br>required: **false**<br><p>Whether channel playback is constrained by origin site. Default: <code>false</code>.</p><br>
9 /// - [`name(impl Into<String>)`](crate::operation::create_playback_restriction_policy::builders::CreatePlaybackRestrictionPolicyFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_playback_restriction_policy::builders::CreatePlaybackRestrictionPolicyFluentBuilder::set_name):<br>required: **false**<br><p>Playback-restriction-policy name. The value does not need to be unique.</p><br>
10 /// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_playback_restriction_policy::builders::CreatePlaybackRestrictionPolicyFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_playback_restriction_policy::builders::CreatePlaybackRestrictionPolicyFluentBuilder::set_tags):<br>required: **false**<br><p>Array of 1-50 maps, each of the form <code>string:string (key:value)</code>. See <a href="https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html">Best practices and strategies</a> in <i>Tagging Amazon Web Services Resources and Tag Editor</i> 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.</p><br>
11 /// - On success, responds with [`CreatePlaybackRestrictionPolicyOutput`](crate::operation::create_playback_restriction_policy::CreatePlaybackRestrictionPolicyOutput) with field(s):
12 /// - [`playback_restriction_policy(Option<PlaybackRestrictionPolicy>)`](crate::operation::create_playback_restriction_policy::CreatePlaybackRestrictionPolicyOutput::playback_restriction_policy): <p></p>
13 /// - On failure, responds with [`SdkError<CreatePlaybackRestrictionPolicyError>`](crate::operation::create_playback_restriction_policy::CreatePlaybackRestrictionPolicyError)
14 pub fn create_playback_restriction_policy(
15 &self,
16 ) -> crate::operation::create_playback_restriction_policy::builders::CreatePlaybackRestrictionPolicyFluentBuilder {
17 crate::operation::create_playback_restriction_policy::builders::CreatePlaybackRestrictionPolicyFluentBuilder::new(self.handle.clone())
18 }
19}