Struct aws_sdk_ivs::types::PlaybackRestrictionPolicy
source · #[non_exhaustive]pub struct PlaybackRestrictionPolicy {
pub arn: String,
pub allowed_countries: Vec<String>,
pub allowed_origins: Vec<String>,
pub enable_strict_origin_enforcement: Option<bool>,
pub name: Option<String>,
pub tags: Option<HashMap<String, String>>,
}
Expand description
An object representing a policy to constrain playback by country and/or origin sites.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.arn: String
Playback-restriction-policy ARN
allowed_countries: Vec<String>
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).
allowed_origins: Vec<String>
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).
enable_strict_origin_enforcement: Option<bool>
Whether channel playback is constrained by origin site. Default: false
.
name: Option<String>
Playback-restriction-policy name. The value does not need to be unique.
Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value)
. See Tagging Amazon Web Services Resources for more information, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.
Implementations§
source§impl PlaybackRestrictionPolicy
impl PlaybackRestrictionPolicy
sourcepub fn allowed_countries(&self) -> &[String]
pub fn allowed_countries(&self) -> &[String]
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).
sourcepub fn allowed_origins(&self) -> &[String]
pub fn allowed_origins(&self) -> &[String]
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).
sourcepub fn enable_strict_origin_enforcement(&self) -> Option<bool>
pub fn enable_strict_origin_enforcement(&self) -> Option<bool>
Whether channel playback is constrained by origin site. Default: false
.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
Playback-restriction-policy name. The value does not need to be unique.
Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value)
. See Tagging Amazon Web Services Resources for more information, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.
source§impl PlaybackRestrictionPolicy
impl PlaybackRestrictionPolicy
sourcepub fn builder() -> PlaybackRestrictionPolicyBuilder
pub fn builder() -> PlaybackRestrictionPolicyBuilder
Creates a new builder-style object to manufacture PlaybackRestrictionPolicy
.
Trait Implementations§
source§impl Clone for PlaybackRestrictionPolicy
impl Clone for PlaybackRestrictionPolicy
source§fn clone(&self) -> PlaybackRestrictionPolicy
fn clone(&self) -> PlaybackRestrictionPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PlaybackRestrictionPolicy
impl Debug for PlaybackRestrictionPolicy
source§impl PartialEq for PlaybackRestrictionPolicy
impl PartialEq for PlaybackRestrictionPolicy
source§fn eq(&self, other: &PlaybackRestrictionPolicy) -> bool
fn eq(&self, other: &PlaybackRestrictionPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PlaybackRestrictionPolicy
Auto Trait Implementations§
impl Freeze for PlaybackRestrictionPolicy
impl RefUnwindSafe for PlaybackRestrictionPolicy
impl Send for PlaybackRestrictionPolicy
impl Sync for PlaybackRestrictionPolicy
impl Unpin for PlaybackRestrictionPolicy
impl UnwindSafe for PlaybackRestrictionPolicy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more