Struct aws_sdk_sfn::operation::validate_state_machine_definition::builders::ValidateStateMachineDefinitionFluentBuilder
source · pub struct ValidateStateMachineDefinitionFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to ValidateStateMachineDefinition.
Validates the syntax of a state machine definition.
You can validate that a state machine definition is correct without creating a state machine resource. Step Functions will implicitly perform the same syntax check when you invoke CreateStateMachine and UpdateStateMachine. State machine definitions are specified using a JSON-based, structured language. For more information on Amazon States Language see Amazon States Language (ASL).
Suggested uses for ValidateStateMachineDefinition:
-
Integrate automated checks into your code review or Continuous Integration (CI) process to validate state machine definitions before starting deployments.
-
Run the validation from a Git pre-commit hook to check your state machine definitions before committing them to your source repository.
Errors found in the state machine definition will be returned in the response as a list of diagnostic elements, rather than raise an exception.
Implementations§
source§impl ValidateStateMachineDefinitionFluentBuilder
impl ValidateStateMachineDefinitionFluentBuilder
sourcepub fn as_input(&self) -> &ValidateStateMachineDefinitionInputBuilder
pub fn as_input(&self) -> &ValidateStateMachineDefinitionInputBuilder
Access the ValidateStateMachineDefinition as a reference.
sourcepub async fn send(
self
) -> Result<ValidateStateMachineDefinitionOutput, SdkError<ValidateStateMachineDefinitionError, HttpResponse>>
pub async fn send( self ) -> Result<ValidateStateMachineDefinitionOutput, SdkError<ValidateStateMachineDefinitionError, 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<ValidateStateMachineDefinitionOutput, ValidateStateMachineDefinitionError, Self>
pub fn customize( self ) -> CustomizableOperation<ValidateStateMachineDefinitionOutput, ValidateStateMachineDefinitionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn definition(self, input: impl Into<String>) -> Self
pub fn definition(self, input: impl Into<String>) -> Self
The Amazon States Language definition of the state machine. For more information, see Amazon States Language (ASL).
sourcepub fn set_definition(self, input: Option<String>) -> Self
pub fn set_definition(self, input: Option<String>) -> Self
The Amazon States Language definition of the state machine. For more information, see Amazon States Language (ASL).
sourcepub fn get_definition(&self) -> &Option<String>
pub fn get_definition(&self) -> &Option<String>
The Amazon States Language definition of the state machine. For more information, see Amazon States Language (ASL).
sourcepub fn type(self, input: StateMachineType) -> Self
pub fn type(self, input: StateMachineType) -> Self
The target type of state machine for this definition. The default is STANDARD.
sourcepub fn set_type(self, input: Option<StateMachineType>) -> Self
pub fn set_type(self, input: Option<StateMachineType>) -> Self
The target type of state machine for this definition. The default is STANDARD.
sourcepub fn get_type(&self) -> &Option<StateMachineType>
pub fn get_type(&self) -> &Option<StateMachineType>
The target type of state machine for this definition. The default is STANDARD.
Trait Implementations§
source§impl Clone for ValidateStateMachineDefinitionFluentBuilder
impl Clone for ValidateStateMachineDefinitionFluentBuilder
source§fn clone(&self) -> ValidateStateMachineDefinitionFluentBuilder
fn clone(&self) -> ValidateStateMachineDefinitionFluentBuilder
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 ValidateStateMachineDefinitionFluentBuilder
impl !RefUnwindSafe for ValidateStateMachineDefinitionFluentBuilder
impl Send for ValidateStateMachineDefinitionFluentBuilder
impl Sync for ValidateStateMachineDefinitionFluentBuilder
impl Unpin for ValidateStateMachineDefinitionFluentBuilder
impl !UnwindSafe for ValidateStateMachineDefinitionFluentBuilder
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