#[non_exhaustive]pub struct SnsTopicConfiguration {
pub topic_policy: Option<String>,
}
Expand description
The proposed access control configuration for an Amazon SNS topic. You can propose a configuration for a new Amazon SNS topic or an existing Amazon SNS topic that you own by specifying the policy. If the configuration is for an existing Amazon SNS topic and you do not specify the Amazon SNS policy, then the access preview uses the existing Amazon SNS policy for the topic. If the access preview is for a new resource and you do not specify the policy, then the access preview assumes an Amazon SNS topic without a policy. To propose deletion of an existing Amazon SNS topic policy, you can specify an empty string for the Amazon SNS policy. For more information, see Topic.
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.topic_policy: Option<String>
The JSON policy text that defines who can access an Amazon SNS topic. For more information, see Example cases for Amazon SNS access control in the Amazon SNS Developer Guide.
Implementations§
source§impl SnsTopicConfiguration
impl SnsTopicConfiguration
sourcepub fn topic_policy(&self) -> Option<&str>
pub fn topic_policy(&self) -> Option<&str>
The JSON policy text that defines who can access an Amazon SNS topic. For more information, see Example cases for Amazon SNS access control in the Amazon SNS Developer Guide.
source§impl SnsTopicConfiguration
impl SnsTopicConfiguration
sourcepub fn builder() -> SnsTopicConfigurationBuilder
pub fn builder() -> SnsTopicConfigurationBuilder
Creates a new builder-style object to manufacture SnsTopicConfiguration
.
Trait Implementations§
source§impl Clone for SnsTopicConfiguration
impl Clone for SnsTopicConfiguration
source§fn clone(&self) -> SnsTopicConfiguration
fn clone(&self) -> SnsTopicConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SnsTopicConfiguration
impl Debug for SnsTopicConfiguration
source§impl PartialEq for SnsTopicConfiguration
impl PartialEq for SnsTopicConfiguration
source§fn eq(&self, other: &SnsTopicConfiguration) -> bool
fn eq(&self, other: &SnsTopicConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SnsTopicConfiguration
Auto Trait Implementations§
impl Freeze for SnsTopicConfiguration
impl RefUnwindSafe for SnsTopicConfiguration
impl Send for SnsTopicConfiguration
impl Sync for SnsTopicConfiguration
impl Unpin for SnsTopicConfiguration
impl UnwindSafe for SnsTopicConfiguration
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