Struct aws_sdk_neptunedata::operation::execute_fast_reset::builders::ExecuteFastResetFluentBuilder
source · pub struct ExecuteFastResetFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ExecuteFastReset
.
The fast reset REST API lets you reset a Neptune graph quicky and easily, removing all of its data.
Neptune fast reset is a two-step process. First you call ExecuteFastReset
with action
set to initiateDatabaseReset
. This returns a UUID token which you then include when calling ExecuteFastReset
again with action
set to performDatabaseReset
. See Empty an Amazon Neptune DB cluster using the fast reset API.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:ResetDatabase IAM action in that cluster.
Implementations§
source§impl ExecuteFastResetFluentBuilder
impl ExecuteFastResetFluentBuilder
sourcepub fn as_input(&self) -> &ExecuteFastResetInputBuilder
pub fn as_input(&self) -> &ExecuteFastResetInputBuilder
Access the ExecuteFastReset as a reference.
sourcepub async fn send(
self
) -> Result<ExecuteFastResetOutput, SdkError<ExecuteFastResetError, HttpResponse>>
pub async fn send( self ) -> Result<ExecuteFastResetOutput, SdkError<ExecuteFastResetError, 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<ExecuteFastResetOutput, ExecuteFastResetError, Self>
pub fn customize( self ) -> CustomizableOperation<ExecuteFastResetOutput, ExecuteFastResetError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn action(self, input: Action) -> Self
pub fn action(self, input: Action) -> Self
The fast reset action. One of the following values:
-
initiateDatabaseReset
– This action generates a unique token needed to actually perform the fast reset. -
performDatabaseReset
– This action uses the token generated by theinitiateDatabaseReset
action to actually perform the fast reset.
sourcepub fn set_action(self, input: Option<Action>) -> Self
pub fn set_action(self, input: Option<Action>) -> Self
The fast reset action. One of the following values:
-
initiateDatabaseReset
– This action generates a unique token needed to actually perform the fast reset. -
performDatabaseReset
– This action uses the token generated by theinitiateDatabaseReset
action to actually perform the fast reset.
sourcepub fn get_action(&self) -> &Option<Action>
pub fn get_action(&self) -> &Option<Action>
The fast reset action. One of the following values:
-
initiateDatabaseReset
– This action generates a unique token needed to actually perform the fast reset. -
performDatabaseReset
– This action uses the token generated by theinitiateDatabaseReset
action to actually perform the fast reset.
sourcepub fn token(self, input: impl Into<String>) -> Self
pub fn token(self, input: impl Into<String>) -> Self
The fast-reset token to initiate the reset.
Trait Implementations§
source§impl Clone for ExecuteFastResetFluentBuilder
impl Clone for ExecuteFastResetFluentBuilder
source§fn clone(&self) -> ExecuteFastResetFluentBuilder
fn clone(&self) -> ExecuteFastResetFluentBuilder
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 ExecuteFastResetFluentBuilder
impl !RefUnwindSafe for ExecuteFastResetFluentBuilder
impl Send for ExecuteFastResetFluentBuilder
impl Sync for ExecuteFastResetFluentBuilder
impl Unpin for ExecuteFastResetFluentBuilder
impl !UnwindSafe for ExecuteFastResetFluentBuilder
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