pulumi_wasm_providers_aws_mini::ec2::fleet

Struct FleetArgsBuilder

source
pub struct FleetArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> FleetArgsBuilder<S>

source

pub fn build_struct(self) -> FleetArgs
where S: IsComplete,

Finish building and return the requested object

source

pub fn context( self, value: impl Into<Output<Option<String>>>, ) -> FleetArgsBuilder<SetContext<S>>
where S::Context: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Reserved.

source

pub fn maybe_context( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FleetArgsBuilder<SetContext<S>>
where S::Context: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Reserved.

source

pub fn excess_capacity_termination_policy( self, value: impl Into<Output<Option<String>>>, ) -> FleetArgsBuilder<SetExcessCapacityTerminationPolicy<S>>
where S::ExcessCapacityTerminationPolicy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination. Supported only for fleets of type maintain.

source

pub fn maybe_excess_capacity_termination_policy( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FleetArgsBuilder<SetExcessCapacityTerminationPolicy<S>>
where S::ExcessCapacityTerminationPolicy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination, termination. Defaults to termination. Supported only for fleets of type maintain.

source

pub fn fleet_instance_sets( self, value: impl Into<Output<Option<Vec<FleetFleetInstanceSet>>>>, ) -> FleetArgsBuilder<SetFleetInstanceSets<S>>
where S::FleetInstanceSets: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::FleetFleetInstanceSet>>,
> as Default>::default()

Information about the instances that were launched by the fleet. Available only when type is set to instant.

source

pub fn maybe_fleet_instance_sets( self, value: Option<impl Into<Output<Option<Vec<FleetFleetInstanceSet>>>>>, ) -> FleetArgsBuilder<SetFleetInstanceSets<S>>
where S::FleetInstanceSets: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::ec2::FleetFleetInstanceSet>>,
> as Default>::default()

Information about the instances that were launched by the fleet. Available only when type is set to instant.

source

pub fn fleet_state( self, value: impl Into<Output<Option<String>>>, ) -> FleetArgsBuilder<SetFleetState<S>>
where S::FleetState: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The state of the EC2 Fleet.

source

pub fn maybe_fleet_state( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FleetArgsBuilder<SetFleetState<S>>
where S::FleetState: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The state of the EC2 Fleet.

source

pub fn fulfilled_capacity( self, value: impl Into<Output<Option<f64>>>, ) -> FleetArgsBuilder<SetFulfilledCapacity<S>>
where S::FulfilledCapacity: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<f64>> as Default>::default().

The number of units fulfilled by this request compared to the set target capacity.

source

pub fn maybe_fulfilled_capacity( self, value: Option<impl Into<Output<Option<f64>>>>, ) -> FleetArgsBuilder<SetFulfilledCapacity<S>>
where S::FulfilledCapacity: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<f64>> as Default>::default().

The number of units fulfilled by this request compared to the set target capacity.

source

pub fn fulfilled_on_demand_capacity( self, value: impl Into<Output<Option<f64>>>, ) -> FleetArgsBuilder<SetFulfilledOnDemandCapacity<S>>
where S::FulfilledOnDemandCapacity: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<f64>> as Default>::default().

The number of units fulfilled by this request compared to the set target On-Demand capacity.

source

pub fn maybe_fulfilled_on_demand_capacity( self, value: Option<impl Into<Output<Option<f64>>>>, ) -> FleetArgsBuilder<SetFulfilledOnDemandCapacity<S>>
where S::FulfilledOnDemandCapacity: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<f64>> as Default>::default().

The number of units fulfilled by this request compared to the set target On-Demand capacity.

source

pub fn launch_template_configs( self, value: impl Into<Output<Vec<FleetLaunchTemplateConfig>>>, ) -> FleetArgsBuilder<SetLaunchTemplateConfigs<S>>
where S::LaunchTemplateConfigs: IsUnset,

Required.

Nested argument containing EC2 Launch Template configurations. Defined below.

source

pub fn on_demand_options( self, value: impl Into<Output<Option<FleetOnDemandOptions>>>, ) -> FleetArgsBuilder<SetOnDemandOptions<S>>
where S::OnDemandOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::FleetOnDemandOptions>,
> as Default>::default()

Nested argument containing On-Demand configurations. Defined below.

source

pub fn maybe_on_demand_options( self, value: Option<impl Into<Output<Option<FleetOnDemandOptions>>>>, ) -> FleetArgsBuilder<SetOnDemandOptions<S>>
where S::OnDemandOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::FleetOnDemandOptions>,
> as Default>::default()

Nested argument containing On-Demand configurations. Defined below.

source

pub fn replace_unhealthy_instances( self, value: impl Into<Output<Option<bool>>>, ) -> FleetArgsBuilder<SetReplaceUnhealthyInstances<S>>
where S::ReplaceUnhealthyInstances: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of type maintain.

source

pub fn maybe_replace_unhealthy_instances( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> FleetArgsBuilder<SetReplaceUnhealthyInstances<S>>
where S::ReplaceUnhealthyInstances: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Whether EC2 Fleet should replace unhealthy instances. Defaults to false. Supported only for fleets of type maintain.

source

pub fn spot_options( self, value: impl Into<Output<Option<FleetSpotOptions>>>, ) -> FleetArgsBuilder<SetSpotOptions<S>>
where S::SpotOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::FleetSpotOptions>,
> as Default>::default()

Nested argument containing Spot configurations. Defined below.

source

pub fn maybe_spot_options( self, value: Option<impl Into<Output<Option<FleetSpotOptions>>>>, ) -> FleetArgsBuilder<SetSpotOptions<S>>
where S::SpotOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::FleetSpotOptions>,
> as Default>::default()

Nested argument containing Spot configurations. Defined below.

source

pub fn tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> FleetArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

source

pub fn maybe_tags( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> FleetArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

source

pub fn target_capacity_specification( self, value: impl Into<Output<FleetTargetCapacitySpecification>>, ) -> FleetArgsBuilder<SetTargetCapacitySpecification<S>>
where S::TargetCapacitySpecification: IsUnset,

Required.

Nested argument containing target capacity configurations. Defined below.

source

pub fn terminate_instances( self, value: impl Into<Output<Option<bool>>>, ) -> FleetArgsBuilder<SetTerminateInstances<S>>
where S::TerminateInstances: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.

source

pub fn maybe_terminate_instances( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> FleetArgsBuilder<SetTerminateInstances<S>>
where S::TerminateInstances: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false.

source

pub fn terminate_instances_with_expiration( self, value: impl Into<Output<Option<bool>>>, ) -> FleetArgsBuilder<SetTerminateInstancesWithExpiration<S>>
where S::TerminateInstancesWithExpiration: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Whether running instances should be terminated when the EC2 Fleet expires. Defaults to false.

source

pub fn maybe_terminate_instances_with_expiration( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> FleetArgsBuilder<SetTerminateInstancesWithExpiration<S>>
where S::TerminateInstancesWithExpiration: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Whether running instances should be terminated when the EC2 Fleet expires. Defaults to false.

source

pub fn type_( self, value: impl Into<Output<Option<String>>>, ) -> FleetArgsBuilder<SetType<S>>
where S::Type: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: maintain, request, instant. Defaults to maintain.

source

pub fn maybe_type_( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FleetArgsBuilder<SetType<S>>
where S::Type: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: maintain, request, instant. Defaults to maintain.

source

pub fn valid_from( self, value: impl Into<Output<Option<String>>>, ) -> FleetArgsBuilder<SetValidFrom<S>>
where S::ValidFrom: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_valid_from( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FleetArgsBuilder<SetValidFrom<S>>
where S::ValidFrom: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn valid_until( self, value: impl Into<Output<Option<String>>>, ) -> FleetArgsBuilder<SetValidUntil<S>>
where S::ValidUntil: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_valid_until( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FleetArgsBuilder<SetValidUntil<S>>
where S::ValidUntil: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.