Struct aws_sdk_cloudformation::input::SignalResourceInput
source · #[non_exhaustive]pub struct SignalResourceInput { /* private fields */ }Expand description
The input for the SignalResource action.
Implementations§
source§impl SignalResourceInput
impl SignalResourceInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SignalResource, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SignalResource, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<SignalResource>
Examples found in repository?
8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::SignalResource,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::SignalResourceError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SignalResourceOutput,
aws_smithy_http::result::SdkError<crate::error::SignalResourceError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SignalResourceInput.
source§impl SignalResourceInput
impl SignalResourceInput
sourcepub fn stack_name(&self) -> Option<&str>
pub fn stack_name(&self) -> Option<&str>
The stack name or unique stack ID that includes the resource that you want to signal.
sourcepub fn logical_resource_id(&self) -> Option<&str>
pub fn logical_resource_id(&self) -> Option<&str>
The logical ID of the resource that you want to signal. The logical ID is the name of the resource that given in the template.
sourcepub fn unique_id(&self) -> Option<&str>
pub fn unique_id(&self) -> Option<&str>
A unique ID of the signal. When you signal Amazon EC2 instances or Auto Scaling groups, specify the instance ID that you are signaling as the unique ID. If you send multiple signals to a single resource (such as signaling a wait condition), each signal requires a different unique ID.
sourcepub fn status(&self) -> Option<&ResourceSignalStatus>
pub fn status(&self) -> Option<&ResourceSignalStatus>
The status of the signal, which is either success or failure. A failure signal causes CloudFormation to immediately fail the stack creation or update.
Trait Implementations§
source§impl Clone for SignalResourceInput
impl Clone for SignalResourceInput
source§fn clone(&self) -> SignalResourceInput
fn clone(&self) -> SignalResourceInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more