Struct aws_sdk_ec2::input::RunScheduledInstancesInput
source · #[non_exhaustive]pub struct RunScheduledInstancesInput { /* private fields */ }
Expand description
Contains the parameters for RunScheduledInstances.
Implementations§
source§impl RunScheduledInstancesInput
impl RunScheduledInstancesInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<RunScheduledInstances, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<RunScheduledInstances, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<RunScheduledInstances
>
Examples found in repository?
77152 77153 77154 77155 77156 77157 77158 77159 77160 77161 77162 77163 77164 77165 77166 77167 77168 77169 77170 77171 77172 77173 77174 77175 77176 77177 77178 77179 77180 77181 77182 77183 77184 77185 77186 77187 77188 77189 77190 77191 77192 77193 77194
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::RunScheduledInstances,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::RunScheduledInstancesError>,
> {
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::RunScheduledInstancesOutput,
aws_smithy_http::result::SdkError<crate::error::RunScheduledInstancesError>,
> {
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 RunScheduledInstancesInput
.
source§impl RunScheduledInstancesInput
impl RunScheduledInstancesInput
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.
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 instance_count(&self) -> Option<i32>
pub fn instance_count(&self) -> Option<i32>
The number of instances.
Default: 1
sourcepub fn launch_specification(
&self
) -> Option<&ScheduledInstancesLaunchSpecification>
pub fn launch_specification(
&self
) -> Option<&ScheduledInstancesLaunchSpecification>
The launch specification. You must match the instance type, Availability Zone, network, and platform of the schedule that you purchased.
sourcepub fn scheduled_instance_id(&self) -> Option<&str>
pub fn scheduled_instance_id(&self) -> Option<&str>
The Scheduled Instance ID.
Trait Implementations§
source§impl Clone for RunScheduledInstancesInput
impl Clone for RunScheduledInstancesInput
source§fn clone(&self) -> RunScheduledInstancesInput
fn clone(&self) -> RunScheduledInstancesInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more