Struct aws_sdk_sfn::operation::create_state_machine_alias::builders::CreateStateMachineAliasFluentBuilder
source · pub struct CreateStateMachineAliasFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to CreateStateMachineAlias.
Creates an alias for a state machine that points to one or two versions of the same state machine. You can set your application to call StartExecution with an alias and update the version the alias uses without changing the client's code.
You can also map an alias to split StartExecution requests between two versions of a state machine. To do this, add a second RoutingConfig object in the routingConfiguration parameter. You must also specify the percentage of execution run requests each version should receive in both RoutingConfig objects. Step Functions randomly chooses which version runs a given execution based on the percentage you specify.
To create an alias that points to a single version, specify a single RoutingConfig object with a weight set to 100.
You can create up to 100 aliases for each state machine. You must delete unused aliases using the DeleteStateMachineAlias API action.
CreateStateMachineAlias is an idempotent API. Step Functions bases the idempotency check on the stateMachineArn, description, name, and routingConfiguration parameters. Requests that contain the same values for these parameters return a successful idempotent response without creating a duplicate resource.
Related operations:
-
DescribeStateMachineAlias -
ListStateMachineAliases -
UpdateStateMachineAlias -
DeleteStateMachineAlias
Implementations§
source§impl CreateStateMachineAliasFluentBuilder
impl CreateStateMachineAliasFluentBuilder
sourcepub fn as_input(&self) -> &CreateStateMachineAliasInputBuilder
pub fn as_input(&self) -> &CreateStateMachineAliasInputBuilder
Access the CreateStateMachineAlias as a reference.
sourcepub async fn send(
self
) -> Result<CreateStateMachineAliasOutput, SdkError<CreateStateMachineAliasError, HttpResponse>>
pub async fn send( self ) -> Result<CreateStateMachineAliasOutput, SdkError<CreateStateMachineAliasError, 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<CreateStateMachineAliasOutput, CreateStateMachineAliasError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateStateMachineAliasOutput, CreateStateMachineAliasError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description for the state machine alias.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description for the state machine alias.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description for the state machine alias.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the state machine alias.
To avoid conflict with version ARNs, don't use an integer in the name of the alias.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the state machine alias.
To avoid conflict with version ARNs, don't use an integer in the name of the alias.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the state machine alias.
To avoid conflict with version ARNs, don't use an integer in the name of the alias.
sourcepub fn routing_configuration(self, input: RoutingConfigurationListItem) -> Self
pub fn routing_configuration(self, input: RoutingConfigurationListItem) -> Self
Appends an item to routingConfiguration.
To override the contents of this collection use set_routing_configuration.
The routing configuration of a state machine alias. The routing configuration shifts execution traffic between two state machine versions. routingConfiguration contains an array of RoutingConfig objects that specify up to two state machine versions. Step Functions then randomly choses which version to run an execution with based on the weight assigned to each RoutingConfig.
sourcepub fn set_routing_configuration(
self,
input: Option<Vec<RoutingConfigurationListItem>>
) -> Self
pub fn set_routing_configuration( self, input: Option<Vec<RoutingConfigurationListItem>> ) -> Self
The routing configuration of a state machine alias. The routing configuration shifts execution traffic between two state machine versions. routingConfiguration contains an array of RoutingConfig objects that specify up to two state machine versions. Step Functions then randomly choses which version to run an execution with based on the weight assigned to each RoutingConfig.
sourcepub fn get_routing_configuration(
&self
) -> &Option<Vec<RoutingConfigurationListItem>>
pub fn get_routing_configuration( &self ) -> &Option<Vec<RoutingConfigurationListItem>>
The routing configuration of a state machine alias. The routing configuration shifts execution traffic between two state machine versions. routingConfiguration contains an array of RoutingConfig objects that specify up to two state machine versions. Step Functions then randomly choses which version to run an execution with based on the weight assigned to each RoutingConfig.
Trait Implementations§
source§impl Clone for CreateStateMachineAliasFluentBuilder
impl Clone for CreateStateMachineAliasFluentBuilder
source§fn clone(&self) -> CreateStateMachineAliasFluentBuilder
fn clone(&self) -> CreateStateMachineAliasFluentBuilder
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 CreateStateMachineAliasFluentBuilder
impl !RefUnwindSafe for CreateStateMachineAliasFluentBuilder
impl Send for CreateStateMachineAliasFluentBuilder
impl Sync for CreateStateMachineAliasFluentBuilder
impl Unpin for CreateStateMachineAliasFluentBuilder
impl !UnwindSafe for CreateStateMachineAliasFluentBuilder
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