pub struct QueuePolicyBuilder { /* private fields */ }Implementations§
Source§impl QueuePolicyBuilder
impl QueuePolicyBuilder
Sourcepub fn new(
id: &str,
doc: PolicyDocument,
queues: Vec<&QueueRef>,
) -> QueuePolicyBuilder
pub fn new( id: &str, doc: PolicyDocument, queues: Vec<&QueueRef>, ) -> QueuePolicyBuilder
Creates a new SQS queue policy builder.
Important Current limitation: CloudFormation only allows one resource policy for a given queue, applying the last one it receives. If you’ve added a bucket notification for this queue, which requires a policy, and you also define one yourself, one of both will get lost.
§Arguments
id- Unique identifier for the queuedoc- The resource policy that should be applied to the queuesqueues- Queues for which the policy is valid
pub fn build(self, stack_builder: &mut StackBuilder) -> QueuePolicyRef
Auto Trait Implementations§
impl Freeze for QueuePolicyBuilder
impl RefUnwindSafe for QueuePolicyBuilder
impl Send for QueuePolicyBuilder
impl Sync for QueuePolicyBuilder
impl Unpin for QueuePolicyBuilder
impl UnwindSafe for QueuePolicyBuilder
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.