Struct rusoto_autoscaling::LifecycleHook
source · [−]pub struct LifecycleHook {
pub auto_scaling_group_name: Option<String>,
pub default_result: Option<String>,
pub global_timeout: Option<i64>,
pub heartbeat_timeout: Option<i64>,
pub lifecycle_hook_name: Option<String>,
pub lifecycle_transition: Option<String>,
pub notification_metadata: Option<String>,
pub notification_target_arn: Option<String>,
pub role_arn: Option<String>,
}
Expand description
Describes a lifecycle hook, which tells Amazon EC2 Auto Scaling that you want to perform an action whenever it launches instances or terminates instances.
Fields
auto_scaling_group_name: Option<String>
The name of the Auto Scaling group for the lifecycle hook.
default_result: Option<String>
Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses or if an unexpected failure occurs. The possible values are CONTINUE
and ABANDON
.
global_timeout: Option<i64>
The maximum time, in seconds, that an instance can remain in a Pending:Wait
or Terminating:Wait
state. The maximum is 172800 seconds (48 hours) or 100 times HeartbeatTimeout
, whichever is smaller.
heartbeat_timeout: Option<i64>
The maximum time, in seconds, that can elapse before the lifecycle hook times out. If the lifecycle hook times out, Amazon EC2 Auto Scaling performs the action that you specified in the DefaultResult
parameter.
lifecycle_hook_name: Option<String>
The name of the lifecycle hook.
lifecycle_transition: Option<String>
The state of the EC2 instance to which to attach the lifecycle hook. The following are possible values:
-
autoscaling:EC2INSTANCELAUNCHING
-
autoscaling:EC2INSTANCETERMINATING
notification_metadata: Option<String>
Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification target.
notification_target_arn: Option<String>
The ARN of the target that Amazon EC2 Auto Scaling sends notifications to when an instance is in the transition state for the lifecycle hook. The notification target can be either an SQS queue or an SNS topic.
role_arn: Option<String>
The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.
Trait Implementations
sourceimpl Clone for LifecycleHook
impl Clone for LifecycleHook
sourcefn clone(&self) -> LifecycleHook
fn clone(&self) -> LifecycleHook
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LifecycleHook
impl Debug for LifecycleHook
sourceimpl Default for LifecycleHook
impl Default for LifecycleHook
sourcefn default() -> LifecycleHook
fn default() -> LifecycleHook
Returns the “default value” for a type. Read more
sourceimpl PartialEq<LifecycleHook> for LifecycleHook
impl PartialEq<LifecycleHook> for LifecycleHook
sourcefn eq(&self, other: &LifecycleHook) -> bool
fn eq(&self, other: &LifecycleHook) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LifecycleHook) -> bool
fn ne(&self, other: &LifecycleHook) -> bool
This method tests for !=
.
impl StructuralPartialEq for LifecycleHook
Auto Trait Implementations
impl RefUnwindSafe for LifecycleHook
impl Send for LifecycleHook
impl Sync for LifecycleHook
impl Unpin for LifecycleHook
impl UnwindSafe for LifecycleHook
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more