pub struct TopicPolicyBuilder { /* private fields */ }Implementations§
Source§impl TopicPolicyBuilder
impl TopicPolicyBuilder
Sourcepub fn new(
id: &str,
doc: PolicyDocument,
topics: Vec<&TopicRef>,
) -> TopicPolicyBuilder
pub fn new( id: &str, doc: PolicyDocument, topics: Vec<&TopicRef>, ) -> TopicPolicyBuilder
Creates a new SNS topic policy builder.
Important Current limitation: CloudFormation only allows one resource policy for a given topic, applying the last one it receives. If you’ve added a bucket notification for this topic, which requires a policy, and you also define one yourself, one of both will get lost.
§Arguments
id- Unique identifier for the topicdoc- The resource policy that should be applied to the topicstopics- Topics for which the policy is valid
pub fn build(self, stack_builder: &mut StackBuilder) -> TopicPolicyRef
Auto Trait Implementations§
impl Freeze for TopicPolicyBuilder
impl RefUnwindSafe for TopicPolicyBuilder
impl Send for TopicPolicyBuilder
impl Sync for TopicPolicyBuilder
impl Unpin for TopicPolicyBuilder
impl UnwindSafe for TopicPolicyBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.