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>
impl<S: State> FleetArgsBuilder<S>
sourcepub fn build_struct(self) -> FleetArgswhere
S: IsComplete,
pub fn build_struct(self) -> FleetArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn context(
self,
value: impl Into<Output<Option<String>>>,
) -> FleetArgsBuilder<SetContext<S>>where
S::Context: IsUnset,
pub fn context(
self,
value: impl Into<Output<Option<String>>>,
) -> FleetArgsBuilder<SetContext<S>>where
S::Context: IsUnset,
sourcepub fn maybe_context(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> FleetArgsBuilder<SetContext<S>>where
S::Context: IsUnset,
pub fn maybe_context(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> FleetArgsBuilder<SetContext<S>>where
S::Context: IsUnset,
sourcepub fn excess_capacity_termination_policy(
self,
value: impl Into<Output<Option<String>>>,
) -> FleetArgsBuilder<SetExcessCapacityTerminationPolicy<S>>where
S::ExcessCapacityTerminationPolicy: IsUnset,
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
.
sourcepub fn maybe_excess_capacity_termination_policy(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> FleetArgsBuilder<SetExcessCapacityTerminationPolicy<S>>where
S::ExcessCapacityTerminationPolicy: IsUnset,
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
.
sourcepub fn fleet_instance_sets(
self,
value: impl Into<Output<Option<Vec<FleetFleetInstanceSet>>>>,
) -> FleetArgsBuilder<SetFleetInstanceSets<S>>where
S::FleetInstanceSets: IsUnset,
pub fn fleet_instance_sets(
self,
value: impl Into<Output<Option<Vec<FleetFleetInstanceSet>>>>,
) -> FleetArgsBuilder<SetFleetInstanceSets<S>>where
S::FleetInstanceSets: IsUnset,
sourcepub fn maybe_fleet_instance_sets(
self,
value: Option<impl Into<Output<Option<Vec<FleetFleetInstanceSet>>>>>,
) -> FleetArgsBuilder<SetFleetInstanceSets<S>>where
S::FleetInstanceSets: IsUnset,
pub fn maybe_fleet_instance_sets(
self,
value: Option<impl Into<Output<Option<Vec<FleetFleetInstanceSet>>>>>,
) -> FleetArgsBuilder<SetFleetInstanceSets<S>>where
S::FleetInstanceSets: IsUnset,
sourcepub fn fleet_state(
self,
value: impl Into<Output<Option<String>>>,
) -> FleetArgsBuilder<SetFleetState<S>>where
S::FleetState: IsUnset,
pub fn fleet_state(
self,
value: impl Into<Output<Option<String>>>,
) -> FleetArgsBuilder<SetFleetState<S>>where
S::FleetState: IsUnset,
sourcepub fn maybe_fleet_state(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> FleetArgsBuilder<SetFleetState<S>>where
S::FleetState: IsUnset,
pub fn maybe_fleet_state(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> FleetArgsBuilder<SetFleetState<S>>where
S::FleetState: IsUnset,
sourcepub fn fulfilled_capacity(
self,
value: impl Into<Output<Option<f64>>>,
) -> FleetArgsBuilder<SetFulfilledCapacity<S>>where
S::FulfilledCapacity: IsUnset,
pub fn fulfilled_capacity(
self,
value: impl Into<Output<Option<f64>>>,
) -> FleetArgsBuilder<SetFulfilledCapacity<S>>where
S::FulfilledCapacity: IsUnset,
sourcepub fn maybe_fulfilled_capacity(
self,
value: Option<impl Into<Output<Option<f64>>>>,
) -> FleetArgsBuilder<SetFulfilledCapacity<S>>where
S::FulfilledCapacity: IsUnset,
pub fn maybe_fulfilled_capacity(
self,
value: Option<impl Into<Output<Option<f64>>>>,
) -> FleetArgsBuilder<SetFulfilledCapacity<S>>where
S::FulfilledCapacity: IsUnset,
sourcepub fn fulfilled_on_demand_capacity(
self,
value: impl Into<Output<Option<f64>>>,
) -> FleetArgsBuilder<SetFulfilledOnDemandCapacity<S>>where
S::FulfilledOnDemandCapacity: IsUnset,
pub fn fulfilled_on_demand_capacity(
self,
value: impl Into<Output<Option<f64>>>,
) -> FleetArgsBuilder<SetFulfilledOnDemandCapacity<S>>where
S::FulfilledOnDemandCapacity: IsUnset,
sourcepub fn maybe_fulfilled_on_demand_capacity(
self,
value: Option<impl Into<Output<Option<f64>>>>,
) -> FleetArgsBuilder<SetFulfilledOnDemandCapacity<S>>where
S::FulfilledOnDemandCapacity: IsUnset,
pub fn maybe_fulfilled_on_demand_capacity(
self,
value: Option<impl Into<Output<Option<f64>>>>,
) -> FleetArgsBuilder<SetFulfilledOnDemandCapacity<S>>where
S::FulfilledOnDemandCapacity: IsUnset,
sourcepub fn launch_template_configs(
self,
value: impl Into<Output<Vec<FleetLaunchTemplateConfig>>>,
) -> FleetArgsBuilder<SetLaunchTemplateConfigs<S>>where
S::LaunchTemplateConfigs: IsUnset,
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.
sourcepub fn on_demand_options(
self,
value: impl Into<Output<Option<FleetOnDemandOptions>>>,
) -> FleetArgsBuilder<SetOnDemandOptions<S>>where
S::OnDemandOptions: IsUnset,
pub fn on_demand_options(
self,
value: impl Into<Output<Option<FleetOnDemandOptions>>>,
) -> FleetArgsBuilder<SetOnDemandOptions<S>>where
S::OnDemandOptions: IsUnset,
sourcepub fn maybe_on_demand_options(
self,
value: Option<impl Into<Output<Option<FleetOnDemandOptions>>>>,
) -> FleetArgsBuilder<SetOnDemandOptions<S>>where
S::OnDemandOptions: IsUnset,
pub fn maybe_on_demand_options(
self,
value: Option<impl Into<Output<Option<FleetOnDemandOptions>>>>,
) -> FleetArgsBuilder<SetOnDemandOptions<S>>where
S::OnDemandOptions: IsUnset,
sourcepub fn replace_unhealthy_instances(
self,
value: impl Into<Output<Option<bool>>>,
) -> FleetArgsBuilder<SetReplaceUnhealthyInstances<S>>where
S::ReplaceUnhealthyInstances: IsUnset,
pub fn replace_unhealthy_instances(
self,
value: impl Into<Output<Option<bool>>>,
) -> FleetArgsBuilder<SetReplaceUnhealthyInstances<S>>where
S::ReplaceUnhealthyInstances: IsUnset,
sourcepub fn maybe_replace_unhealthy_instances(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> FleetArgsBuilder<SetReplaceUnhealthyInstances<S>>where
S::ReplaceUnhealthyInstances: IsUnset,
pub fn maybe_replace_unhealthy_instances(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> FleetArgsBuilder<SetReplaceUnhealthyInstances<S>>where
S::ReplaceUnhealthyInstances: IsUnset,
sourcepub fn spot_options(
self,
value: impl Into<Output<Option<FleetSpotOptions>>>,
) -> FleetArgsBuilder<SetSpotOptions<S>>where
S::SpotOptions: IsUnset,
pub fn spot_options(
self,
value: impl Into<Output<Option<FleetSpotOptions>>>,
) -> FleetArgsBuilder<SetSpotOptions<S>>where
S::SpotOptions: IsUnset,
sourcepub fn maybe_spot_options(
self,
value: Option<impl Into<Output<Option<FleetSpotOptions>>>>,
) -> FleetArgsBuilder<SetSpotOptions<S>>where
S::SpotOptions: IsUnset,
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<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.
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.
sourcepub fn target_capacity_specification(
self,
value: impl Into<Output<FleetTargetCapacitySpecification>>,
) -> FleetArgsBuilder<SetTargetCapacitySpecification<S>>where
S::TargetCapacitySpecification: IsUnset,
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.
sourcepub fn terminate_instances(
self,
value: impl Into<Output<Option<bool>>>,
) -> FleetArgsBuilder<SetTerminateInstances<S>>where
S::TerminateInstances: IsUnset,
pub fn terminate_instances(
self,
value: impl Into<Output<Option<bool>>>,
) -> FleetArgsBuilder<SetTerminateInstances<S>>where
S::TerminateInstances: IsUnset,
sourcepub fn maybe_terminate_instances(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> FleetArgsBuilder<SetTerminateInstances<S>>where
S::TerminateInstances: IsUnset,
pub fn maybe_terminate_instances(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> FleetArgsBuilder<SetTerminateInstances<S>>where
S::TerminateInstances: IsUnset,
sourcepub fn terminate_instances_with_expiration(
self,
value: impl Into<Output<Option<bool>>>,
) -> FleetArgsBuilder<SetTerminateInstancesWithExpiration<S>>where
S::TerminateInstancesWithExpiration: IsUnset,
pub fn terminate_instances_with_expiration(
self,
value: impl Into<Output<Option<bool>>>,
) -> FleetArgsBuilder<SetTerminateInstancesWithExpiration<S>>where
S::TerminateInstancesWithExpiration: IsUnset,
sourcepub fn maybe_terminate_instances_with_expiration(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> FleetArgsBuilder<SetTerminateInstancesWithExpiration<S>>where
S::TerminateInstancesWithExpiration: IsUnset,
pub fn maybe_terminate_instances_with_expiration(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> FleetArgsBuilder<SetTerminateInstancesWithExpiration<S>>where
S::TerminateInstancesWithExpiration: IsUnset,
sourcepub fn type_(
self,
value: impl Into<Output<Option<String>>>,
) -> FleetArgsBuilder<SetType<S>>where
S::Type: IsUnset,
pub fn type_(
self,
value: impl Into<Output<Option<String>>>,
) -> FleetArgsBuilder<SetType<S>>where
S::Type: IsUnset,
sourcepub fn maybe_type_(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> FleetArgsBuilder<SetType<S>>where
S::Type: IsUnset,
pub fn maybe_type_(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> FleetArgsBuilder<SetType<S>>where
S::Type: IsUnset,
sourcepub fn valid_from(
self,
value: impl Into<Output<Option<String>>>,
) -> FleetArgsBuilder<SetValidFrom<S>>where
S::ValidFrom: IsUnset,
pub fn valid_from(
self,
value: impl Into<Output<Option<String>>>,
) -> FleetArgsBuilder<SetValidFrom<S>>where
S::ValidFrom: IsUnset,
sourcepub fn maybe_valid_from(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> FleetArgsBuilder<SetValidFrom<S>>where
S::ValidFrom: IsUnset,
pub fn maybe_valid_from(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> FleetArgsBuilder<SetValidFrom<S>>where
S::ValidFrom: IsUnset,
sourcepub fn valid_until(
self,
value: impl Into<Output<Option<String>>>,
) -> FleetArgsBuilder<SetValidUntil<S>>where
S::ValidUntil: IsUnset,
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.
sourcepub fn maybe_valid_until(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> FleetArgsBuilder<SetValidUntil<S>>where
S::ValidUntil: IsUnset,
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.