Struct aws_sdk_ec2::input::ReportInstanceStatusInput
source · #[non_exhaustive]pub struct ReportInstanceStatusInput { /* private fields */ }
Implementations§
source§impl ReportInstanceStatusInput
impl ReportInstanceStatusInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ReportInstanceStatus, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ReportInstanceStatus, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ReportInstanceStatus
>
Examples found in repository?
74269 74270 74271 74272 74273 74274 74275 74276 74277 74278 74279 74280 74281 74282 74283 74284 74285 74286 74287 74288 74289 74290 74291 74292 74293 74294 74295 74296 74297 74298 74299 74300 74301 74302 74303 74304 74305 74306 74307 74308 74309 74310 74311
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ReportInstanceStatus,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ReportInstanceStatusError>,
> {
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::ReportInstanceStatusOutput,
aws_smithy_http::result::SdkError<crate::error::ReportInstanceStatusError>,
> {
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 ReportInstanceStatusInput
.
source§impl ReportInstanceStatusInput
impl ReportInstanceStatusInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Descriptive text about the health state of your instance.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn end_time(&self) -> Option<&DateTime>
pub fn end_time(&self) -> Option<&DateTime>
The time at which the reported instance health state ended.
sourcepub fn reason_codes(&self) -> Option<&[ReportInstanceReasonCodes]>
pub fn reason_codes(&self) -> Option<&[ReportInstanceReasonCodes]>
The reason codes that describe the health state of your instance.
-
instance-stuck-in-state
: My instance is stuck in a state. -
unresponsive
: My instance is unresponsive. -
not-accepting-credentials
: My instance is not accepting my credentials. -
password-not-available
: A password is not available for my instance. -
performance-network
: My instance is experiencing performance problems that I believe are network related. -
performance-instance-store
: My instance is experiencing performance problems that I believe are related to the instance stores. -
performance-ebs-volume
: My instance is experiencing performance problems that I believe are related to an EBS volume. -
performance-other
: My instance is experiencing performance problems. -
other
: [explain using the description parameter]
sourcepub fn start_time(&self) -> Option<&DateTime>
pub fn start_time(&self) -> Option<&DateTime>
The time at which the reported instance health state began.
sourcepub fn status(&self) -> Option<&ReportStatusType>
pub fn status(&self) -> Option<&ReportStatusType>
The status of all instances listed.
Trait Implementations§
source§impl Clone for ReportInstanceStatusInput
impl Clone for ReportInstanceStatusInput
source§fn clone(&self) -> ReportInstanceStatusInput
fn clone(&self) -> ReportInstanceStatusInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more