Struct aws_sdk_codedeploy::client::fluent_builders::PutLifecycleEventHookExecutionStatus
source · [−]pub struct PutLifecycleEventHookExecutionStatus { /* private fields */ }
Expand description
Fluent builder constructing a request to PutLifecycleEventHookExecutionStatus
.
Sets the result of a Lambda validation function. The function validates lifecycle hooks during a deployment that uses the Lambda or Amazon ECS compute platform. For Lambda deployments, the available lifecycle hooks are BeforeAllowTraffic
and AfterAllowTraffic
. For Amazon ECS deployments, the available lifecycle hooks are BeforeInstall
, AfterInstall
, AfterAllowTestTraffic
, BeforeAllowTraffic
, and AfterAllowTraffic
. Lambda validation functions return Succeeded
or Failed
. For more information, see AppSpec 'hooks' Section for an Lambda Deployment and AppSpec 'hooks' Section for an Amazon ECS Deployment.
Implementations
sourceimpl PutLifecycleEventHookExecutionStatus
impl PutLifecycleEventHookExecutionStatus
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PutLifecycleEventHookExecutionStatus, AwsResponseRetryClassifier>, SdkError<PutLifecycleEventHookExecutionStatusError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PutLifecycleEventHookExecutionStatus, AwsResponseRetryClassifier>, SdkError<PutLifecycleEventHookExecutionStatusError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<PutLifecycleEventHookExecutionStatusOutput, SdkError<PutLifecycleEventHookExecutionStatusError>>
pub async fn send(
self
) -> Result<PutLifecycleEventHookExecutionStatusOutput, SdkError<PutLifecycleEventHookExecutionStatusError>>
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 deployment_id(self, input: impl Into<String>) -> Self
pub fn deployment_id(self, input: impl Into<String>) -> Self
The unique ID of a deployment. Pass this ID to a Lambda function that validates a deployment lifecycle event.
sourcepub fn set_deployment_id(self, input: Option<String>) -> Self
pub fn set_deployment_id(self, input: Option<String>) -> Self
The unique ID of a deployment. Pass this ID to a Lambda function that validates a deployment lifecycle event.
sourcepub fn lifecycle_event_hook_execution_id(self, input: impl Into<String>) -> Self
pub fn lifecycle_event_hook_execution_id(self, input: impl Into<String>) -> Self
The execution ID of a deployment's lifecycle hook. A deployment lifecycle hook is specified in the hooks
section of the AppSpec file.
sourcepub fn set_lifecycle_event_hook_execution_id(self, input: Option<String>) -> Self
pub fn set_lifecycle_event_hook_execution_id(self, input: Option<String>) -> Self
The execution ID of a deployment's lifecycle hook. A deployment lifecycle hook is specified in the hooks
section of the AppSpec file.
sourcepub fn status(self, input: LifecycleEventStatus) -> Self
pub fn status(self, input: LifecycleEventStatus) -> Self
The result of a Lambda function that validates a deployment lifecycle event. The values listed in Valid Values are valid for lifecycle statuses in general; however, only Succeeded
and Failed
can be passed successfully in your API call.
sourcepub fn set_status(self, input: Option<LifecycleEventStatus>) -> Self
pub fn set_status(self, input: Option<LifecycleEventStatus>) -> Self
The result of a Lambda function that validates a deployment lifecycle event. The values listed in Valid Values are valid for lifecycle statuses in general; however, only Succeeded
and Failed
can be passed successfully in your API call.
Trait Implementations
sourceimpl Clone for PutLifecycleEventHookExecutionStatus
impl Clone for PutLifecycleEventHookExecutionStatus
sourcefn clone(&self) -> PutLifecycleEventHookExecutionStatus
fn clone(&self) -> PutLifecycleEventHookExecutionStatus
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more