pub struct UpdateTemplateActiveVersion<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateTemplateActiveVersion
.
Changes the status of a specific version of a message template to active.
Implementations
impl<C, M, R> UpdateTemplateActiveVersion<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> UpdateTemplateActiveVersion<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<UpdateTemplateActiveVersionOutput, SdkError<UpdateTemplateActiveVersionError>> where
R::Policy: SmithyRetryPolicy<UpdateTemplateActiveVersionInputOperationOutputAlias, UpdateTemplateActiveVersionOutput, UpdateTemplateActiveVersionError, UpdateTemplateActiveVersionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<UpdateTemplateActiveVersionOutput, SdkError<UpdateTemplateActiveVersionError>> where
R::Policy: SmithyRetryPolicy<UpdateTemplateActiveVersionInputOperationOutputAlias, UpdateTemplateActiveVersionOutput, UpdateTemplateActiveVersionError, UpdateTemplateActiveVersionInputOperationRetryAlias>,
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.
Specifies which version of a message template to use as the active version of the template.
pub fn set_template_active_version_request(
self,
input: Option<TemplateActiveVersionRequest>
) -> Self
pub fn set_template_active_version_request(
self,
input: Option<TemplateActiveVersionRequest>
) -> Self
Specifies which version of a message template to use as the active version of the template.
The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
The type of channel that the message template is designed for. Valid values are: EMAIL, PUSH, SMS, and VOICE.
The type of channel that the message template is designed for. Valid values are: EMAIL, PUSH, SMS, and VOICE.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for UpdateTemplateActiveVersion<C, M, R>
impl<C, M, R> Send for UpdateTemplateActiveVersion<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for UpdateTemplateActiveVersion<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for UpdateTemplateActiveVersion<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for UpdateTemplateActiveVersion<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more