pub struct GetCapacityBlockOfferingArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> GetCapacityBlockOfferingArgsBuilder<S>
impl<S: State> GetCapacityBlockOfferingArgsBuilder<S>
sourcepub fn build_struct(self) -> GetCapacityBlockOfferingArgswhere
S: IsComplete,
pub fn build_struct(self) -> GetCapacityBlockOfferingArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn capacity_duration_hours(
self,
value: impl Into<Output<i32>>,
) -> GetCapacityBlockOfferingArgsBuilder<SetCapacityDurationHours<S>>where
S::CapacityDurationHours: IsUnset,
pub fn capacity_duration_hours(
self,
value: impl Into<Output<i32>>,
) -> GetCapacityBlockOfferingArgsBuilder<SetCapacityDurationHours<S>>where
S::CapacityDurationHours: IsUnset,
Required.
The amount of time of the Capacity Block reservation in hours.
sourcepub fn end_date_range(
self,
value: impl Into<Output<Option<String>>>,
) -> GetCapacityBlockOfferingArgsBuilder<SetEndDateRange<S>>where
S::EndDateRange: IsUnset,
pub fn end_date_range(
self,
value: impl Into<Output<Option<String>>>,
) -> GetCapacityBlockOfferingArgsBuilder<SetEndDateRange<S>>where
S::EndDateRange: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The date and time at which the Capacity Block Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ
)
sourcepub fn maybe_end_date_range(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> GetCapacityBlockOfferingArgsBuilder<SetEndDateRange<S>>where
S::EndDateRange: IsUnset,
pub fn maybe_end_date_range(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> GetCapacityBlockOfferingArgsBuilder<SetEndDateRange<S>>where
S::EndDateRange: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The date and time at which the Capacity Block Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ
)
sourcepub fn instance_count(
self,
value: impl Into<Output<i32>>,
) -> GetCapacityBlockOfferingArgsBuilder<SetInstanceCount<S>>where
S::InstanceCount: IsUnset,
pub fn instance_count(
self,
value: impl Into<Output<i32>>,
) -> GetCapacityBlockOfferingArgsBuilder<SetInstanceCount<S>>where
S::InstanceCount: IsUnset,
Required.
The number of instances for which to reserve capacity.
sourcepub fn instance_type(
self,
value: impl Into<Output<String>>,
) -> GetCapacityBlockOfferingArgsBuilder<SetInstanceType<S>>where
S::InstanceType: IsUnset,
pub fn instance_type(
self,
value: impl Into<Output<String>>,
) -> GetCapacityBlockOfferingArgsBuilder<SetInstanceType<S>>where
S::InstanceType: IsUnset,
Required.
The instance type for which to reserve capacity.
sourcepub fn start_date_range(
self,
value: impl Into<Output<Option<String>>>,
) -> GetCapacityBlockOfferingArgsBuilder<SetStartDateRange<S>>where
S::StartDateRange: IsUnset,
pub fn start_date_range(
self,
value: impl Into<Output<Option<String>>>,
) -> GetCapacityBlockOfferingArgsBuilder<SetStartDateRange<S>>where
S::StartDateRange: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The date and time at which the Capacity Block Reservation starts. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ
)
sourcepub fn maybe_start_date_range(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> GetCapacityBlockOfferingArgsBuilder<SetStartDateRange<S>>where
S::StartDateRange: IsUnset,
pub fn maybe_start_date_range(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> GetCapacityBlockOfferingArgsBuilder<SetStartDateRange<S>>where
S::StartDateRange: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The date and time at which the Capacity Block Reservation starts. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ
)