Struct aws_sdk_ec2::client::fluent_builders::CreateFleet [−][src]
pub struct CreateFleet<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateFleet
.
Launches an EC2 Fleet.
You can create a single EC2 Fleet that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.
For more information, see Launching an EC2 Fleet in the Amazon EC2 User Guide.
Implementations
impl<C, M, R> CreateFleet<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateFleet<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(self) -> Result<CreateFleetOutput, SdkError<CreateFleetError>> where
R::Policy: SmithyRetryPolicy<CreateFleetInputOperationOutputAlias, CreateFleetOutput, CreateFleetError, CreateFleetInputOperationRetryAlias>,
pub async fn send(self) -> Result<CreateFleetOutput, SdkError<CreateFleetError>> where
R::Policy: SmithyRetryPolicy<CreateFleetInputOperationOutputAlias, CreateFleetOutput, CreateFleetError, CreateFleetInputOperationRetryAlias>,
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.
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
.
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
.
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
Describes the configuration of Spot Instances in an EC2 Fleet.
Describes the configuration of Spot Instances in an EC2 Fleet.
Describes the configuration of On-Demand Instances in an EC2 Fleet.
Describes the configuration of On-Demand Instances in an EC2 Fleet.
pub fn excess_capacity_termination_policy(
self,
inp: FleetExcessCapacityTerminationPolicy
) -> Self
pub fn excess_capacity_termination_policy(
self,
inp: FleetExcessCapacityTerminationPolicy
) -> Self
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
pub fn set_excess_capacity_termination_policy(
self,
input: Option<FleetExcessCapacityTerminationPolicy>
) -> Self
pub fn set_excess_capacity_termination_policy(
self,
input: Option<FleetExcessCapacityTerminationPolicy>
) -> Self
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
pub fn launch_template_configs(
self,
inp: impl Into<FleetLaunchTemplateConfigRequest>
) -> Self
pub fn launch_template_configs(
self,
inp: impl Into<FleetLaunchTemplateConfigRequest>
) -> Self
Appends an item to LaunchTemplateConfigs
.
To override the contents of this collection use set_launch_template_configs
.
The configuration for the EC2 Fleet.
pub fn set_launch_template_configs(
self,
input: Option<Vec<FleetLaunchTemplateConfigRequest>>
) -> Self
pub fn set_launch_template_configs(
self,
input: Option<Vec<FleetLaunchTemplateConfigRequest>>
) -> Self
The configuration for the EC2 Fleet.
The number of units to request.
pub fn set_target_capacity_specification(
self,
input: Option<TargetCapacitySpecificationRequest>
) -> Self
pub fn set_target_capacity_specification(
self,
input: Option<TargetCapacitySpecificationRequest>
) -> Self
The number of units to request.
Indicates whether running instances should be terminated when the EC2 Fleet expires.
Indicates whether running instances should be terminated when the EC2 Fleet expires.
The fleet type. The default value is maintain
.
-
maintain
- The EC2 Fleet places an asynchronous request for your desired capacity, and continues to maintain your desired Spot capacity by replenishing interrupted Spot Instances. -
request
- The EC2 Fleet places an asynchronous one-time request for your desired capacity, but does submit Spot requests in alternative capacity pools if Spot capacity is unavailable, and does not maintain Spot capacity if Spot Instances are interrupted. -
instant
- The EC2 Fleet places a synchronous one-time request for your desired capacity, and returns errors for any instances that could not be launched.
For more information, see EC2 Fleet request types in the Amazon EC2 User Guide.
The fleet type. The default value is maintain
.
-
maintain
- The EC2 Fleet places an asynchronous request for your desired capacity, and continues to maintain your desired Spot capacity by replenishing interrupted Spot Instances. -
request
- The EC2 Fleet places an asynchronous one-time request for your desired capacity, but does submit Spot requests in alternative capacity pools if Spot capacity is unavailable, and does not maintain Spot capacity if Spot Instances are interrupted. -
instant
- The EC2 Fleet places a synchronous one-time request for your desired capacity, and returns errors for any instances that could not be launched.
For more information, see EC2 Fleet request types in the Amazon EC2 User Guide.
The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.
The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.
The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new EC2 Fleet requests are placed or able to fulfill the request. If no value is specified, the request remains until you cancel it.
The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new EC2 Fleet requests are placed or able to fulfill the request. If no value is specified, the request remains until you cancel it.
Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for
fleets of type maintain
. For more information, see EC2 Fleet
health checks in the Amazon EC2 User Guide.
Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for
fleets of type maintain
. For more information, see EC2 Fleet
health checks in the Amazon EC2 User Guide.
Appends an item to TagSpecifications
.
To override the contents of this collection use set_tag_specifications
.
The key-value pair for tagging the EC2 Fleet request on creation. For more information, see Tagging your resources.
If the fleet type is instant
, specify a resource type of fleet
to tag the fleet or instance
to tag the instances at launch.
If the fleet type is maintain
or request
, specify a resource
type of fleet
to tag the fleet. You cannot specify a resource type of
instance
. To tag instances at launch, specify the tags in a launch template.
The key-value pair for tagging the EC2 Fleet request on creation. For more information, see Tagging your resources.
If the fleet type is instant
, specify a resource type of fleet
to tag the fleet or instance
to tag the instances at launch.
If the fleet type is maintain
or request
, specify a resource
type of fleet
to tag the fleet. You cannot specify a resource type of
instance
. To tag instances at launch, specify the tags in a launch template.
Reserved.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateFleet<C, M, R>
impl<C, M, R> Unpin for CreateFleet<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateFleet<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more