Struct aws_sdk_eventbridge::operation::remove_permission::builders::RemovePermissionFluentBuilder
source · pub struct RemovePermissionFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to RemovePermission
.
Revokes the permission of another Amazon Web Services account to be able to put events to the specified event bus. Specify the account to revoke by the StatementId
value that you associated with the account when you granted it permission with PutPermission
. You can find the StatementId
by using DescribeEventBus.
Implementations§
source§impl RemovePermissionFluentBuilder
impl RemovePermissionFluentBuilder
sourcepub fn as_input(&self) -> &RemovePermissionInputBuilder
pub fn as_input(&self) -> &RemovePermissionInputBuilder
Access the RemovePermission as a reference.
sourcepub async fn send(
self
) -> Result<RemovePermissionOutput, SdkError<RemovePermissionError, HttpResponse>>
pub async fn send( self ) -> Result<RemovePermissionOutput, SdkError<RemovePermissionError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<RemovePermissionOutput, RemovePermissionError, Self>
pub fn customize( self ) -> CustomizableOperation<RemovePermissionOutput, RemovePermissionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn statement_id(self, input: impl Into<String>) -> Self
pub fn statement_id(self, input: impl Into<String>) -> Self
The statement ID corresponding to the account that is no longer allowed to put events to the default event bus.
sourcepub fn set_statement_id(self, input: Option<String>) -> Self
pub fn set_statement_id(self, input: Option<String>) -> Self
The statement ID corresponding to the account that is no longer allowed to put events to the default event bus.
sourcepub fn get_statement_id(&self) -> &Option<String>
pub fn get_statement_id(&self) -> &Option<String>
The statement ID corresponding to the account that is no longer allowed to put events to the default event bus.
sourcepub fn remove_all_permissions(self, input: bool) -> Self
pub fn remove_all_permissions(self, input: bool) -> Self
Specifies whether to remove all permissions.
sourcepub fn set_remove_all_permissions(self, input: Option<bool>) -> Self
pub fn set_remove_all_permissions(self, input: Option<bool>) -> Self
Specifies whether to remove all permissions.
sourcepub fn get_remove_all_permissions(&self) -> &Option<bool>
pub fn get_remove_all_permissions(&self) -> &Option<bool>
Specifies whether to remove all permissions.
sourcepub fn event_bus_name(self, input: impl Into<String>) -> Self
pub fn event_bus_name(self, input: impl Into<String>) -> Self
The name of the event bus to revoke permissions for. If you omit this, the default event bus is used.
sourcepub fn set_event_bus_name(self, input: Option<String>) -> Self
pub fn set_event_bus_name(self, input: Option<String>) -> Self
The name of the event bus to revoke permissions for. If you omit this, the default event bus is used.
sourcepub fn get_event_bus_name(&self) -> &Option<String>
pub fn get_event_bus_name(&self) -> &Option<String>
The name of the event bus to revoke permissions for. If you omit this, the default event bus is used.
Trait Implementations§
source§impl Clone for RemovePermissionFluentBuilder
impl Clone for RemovePermissionFluentBuilder
source§fn clone(&self) -> RemovePermissionFluentBuilder
fn clone(&self) -> RemovePermissionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for RemovePermissionFluentBuilder
impl !RefUnwindSafe for RemovePermissionFluentBuilder
impl Send for RemovePermissionFluentBuilder
impl Sync for RemovePermissionFluentBuilder
impl Unpin for RemovePermissionFluentBuilder
impl !UnwindSafe for RemovePermissionFluentBuilder
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