Struct aws_sdk_ec2::client::fluent_builders::ReportInstanceStatus
source · pub struct ReportInstanceStatus { /* private fields */ }
Expand description
Fluent builder constructing a request to ReportInstanceStatus
.
Submits feedback about the status of an instance. The instance must be in the running
state. If your experience with the instance differs from the instance status returned by DescribeInstanceStatus
, use ReportInstanceStatus
to report your experience with the instance. Amazon EC2 collects this information to improve the accuracy of status checks.
Use of this action does not change the value returned by DescribeInstanceStatus
.
Implementations§
source§impl ReportInstanceStatus
impl ReportInstanceStatus
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ReportInstanceStatus, AwsResponseRetryClassifier>, SdkError<ReportInstanceStatusError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ReportInstanceStatus, AwsResponseRetryClassifier>, SdkError<ReportInstanceStatusError>>
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<ReportInstanceStatusOutput, SdkError<ReportInstanceStatusError>>
pub async fn send(
self
) -> Result<ReportInstanceStatusOutput, SdkError<ReportInstanceStatusError>>
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 description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
Descriptive text about the health state of your instance.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
Descriptive text about the health state of your instance.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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 set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
The time at which the reported instance health state ended.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The time at which the reported instance health state ended.
sourcepub fn instances(self, input: impl Into<String>) -> Self
pub fn instances(self, input: impl Into<String>) -> Self
Appends an item to Instances
.
To override the contents of this collection use set_instances
.
The instances.
sourcepub fn set_instances(self, input: Option<Vec<String>>) -> Self
pub fn set_instances(self, input: Option<Vec<String>>) -> Self
The instances.
sourcepub fn reason_codes(self, input: ReportInstanceReasonCodes) -> Self
pub fn reason_codes(self, input: ReportInstanceReasonCodes) -> Self
Appends an item to ReasonCodes
.
To override the contents of this collection use set_reason_codes
.
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 set_reason_codes(
self,
input: Option<Vec<ReportInstanceReasonCodes>>
) -> Self
pub fn set_reason_codes(
self,
input: Option<Vec<ReportInstanceReasonCodes>>
) -> Self
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, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The time at which the reported instance health state began.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The time at which the reported instance health state began.
sourcepub fn status(self, input: ReportStatusType) -> Self
pub fn status(self, input: ReportStatusType) -> Self
The status of all instances listed.
sourcepub fn set_status(self, input: Option<ReportStatusType>) -> Self
pub fn set_status(self, input: Option<ReportStatusType>) -> Self
The status of all instances listed.
Trait Implementations§
source§impl Clone for ReportInstanceStatus
impl Clone for ReportInstanceStatus
source§fn clone(&self) -> ReportInstanceStatus
fn clone(&self) -> ReportInstanceStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more