#[non_exhaustive]pub struct PlaybackRestrictionPolicySummary {
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
Summary information about a PlaybackRestrictionPolicy.
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 PlaybackRestrictionPolicySummary
impl PlaybackRestrictionPolicySummary
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 PlaybackRestrictionPolicySummary
impl PlaybackRestrictionPolicySummary
sourcepub fn builder() -> PlaybackRestrictionPolicySummaryBuilder
pub fn builder() -> PlaybackRestrictionPolicySummaryBuilder
Creates a new builder-style object to manufacture PlaybackRestrictionPolicySummary
.
Trait Implementations§
source§impl Clone for PlaybackRestrictionPolicySummary
impl Clone for PlaybackRestrictionPolicySummary
source§fn clone(&self) -> PlaybackRestrictionPolicySummary
fn clone(&self) -> PlaybackRestrictionPolicySummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for PlaybackRestrictionPolicySummary
impl PartialEq for PlaybackRestrictionPolicySummary
source§fn eq(&self, other: &PlaybackRestrictionPolicySummary) -> bool
fn eq(&self, other: &PlaybackRestrictionPolicySummary) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PlaybackRestrictionPolicySummary
Auto Trait Implementations§
impl Freeze for PlaybackRestrictionPolicySummary
impl RefUnwindSafe for PlaybackRestrictionPolicySummary
impl Send for PlaybackRestrictionPolicySummary
impl Sync for PlaybackRestrictionPolicySummary
impl Unpin for PlaybackRestrictionPolicySummary
impl UnwindSafe for PlaybackRestrictionPolicySummary
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