Struct aws_sdk_ec2::model::fleet_data::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for FleetData
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn activity_status(self, input: FleetActivityStatus) -> Self
pub fn activity_status(self, input: FleetActivityStatus) -> Self
The progress of the EC2 Fleet. If there is an error, the status is error
. After all requests are placed, the status is pending_fulfillment
. If the size of the EC2 Fleet is equal to or greater than its target capacity, the status is fulfilled
. If the size of the EC2 Fleet is decreased, the status is pending_termination
while instances are terminating.
sourcepub fn set_activity_status(self, input: Option<FleetActivityStatus>) -> Self
pub fn set_activity_status(self, input: Option<FleetActivityStatus>) -> Self
The progress of the EC2 Fleet. If there is an error, the status is error
. After all requests are placed, the status is pending_fulfillment
. If the size of the EC2 Fleet is equal to or greater than its target capacity, the status is fulfilled
. If the size of the EC2 Fleet is decreased, the status is pending_termination
while instances are terminating.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn create_time(self, input: DateTime) -> Self
pub fn create_time(self, input: DateTime) -> Self
The creation date and time of the EC2 Fleet.
sourcepub fn set_create_time(self, input: Option<DateTime>) -> Self
pub fn set_create_time(self, input: Option<DateTime>) -> Self
The creation date and time of the EC2 Fleet.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn set_fleet_id(self, input: Option<String>) -> Self
pub fn set_fleet_id(self, input: Option<String>) -> Self
The ID of the EC2 Fleet.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn fleet_state(self, input: FleetStateCode) -> Self
pub fn fleet_state(self, input: FleetStateCode) -> Self
The state of the EC2 Fleet.
sourcepub fn set_fleet_state(self, input: Option<FleetStateCode>) -> Self
pub fn set_fleet_state(self, input: Option<FleetStateCode>) -> Self
The state of the EC2 Fleet.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Constraints: Maximum 64 ASCII characters
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Constraints: Maximum 64 ASCII characters
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn excess_capacity_termination_policy(
self,
input: FleetExcessCapacityTerminationPolicy
) -> Self
pub fn excess_capacity_termination_policy(
self,
input: FleetExcessCapacityTerminationPolicy
) -> Self
Indicates whether running instances should be terminated if the target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
sourcepub 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 target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn fulfilled_capacity(self, input: f64) -> Self
pub fn fulfilled_capacity(self, input: f64) -> Self
The number of units fulfilled by this request compared to the set target capacity.
sourcepub fn set_fulfilled_capacity(self, input: Option<f64>) -> Self
pub fn set_fulfilled_capacity(self, input: Option<f64>) -> Self
The number of units fulfilled by this request compared to the set target capacity.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn fulfilled_on_demand_capacity(self, input: f64) -> Self
pub fn fulfilled_on_demand_capacity(self, input: f64) -> Self
The number of units fulfilled by this request compared to the set target On-Demand capacity.
sourcepub fn set_fulfilled_on_demand_capacity(self, input: Option<f64>) -> Self
pub fn set_fulfilled_on_demand_capacity(self, input: Option<f64>) -> Self
The number of units fulfilled by this request compared to the set target On-Demand capacity.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn launch_template_configs(self, input: FleetLaunchTemplateConfig) -> Self
pub fn launch_template_configs(self, input: FleetLaunchTemplateConfig) -> Self
Appends an item to launch_template_configs
.
To override the contents of this collection use set_launch_template_configs
.
The launch template and overrides.
sourcepub fn set_launch_template_configs(
self,
input: Option<Vec<FleetLaunchTemplateConfig>>
) -> Self
pub fn set_launch_template_configs(
self,
input: Option<Vec<FleetLaunchTemplateConfig>>
) -> Self
The launch template and overrides.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn target_capacity_specification(
self,
input: TargetCapacitySpecification
) -> Self
pub fn target_capacity_specification(
self,
input: TargetCapacitySpecification
) -> Self
The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is maintain
, you can specify a target capacity of 0 and add capacity later.
sourcepub fn set_target_capacity_specification(
self,
input: Option<TargetCapacitySpecification>
) -> Self
pub fn set_target_capacity_specification(
self,
input: Option<TargetCapacitySpecification>
) -> Self
The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is maintain
, you can specify a target capacity of 0 and add capacity later.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn terminate_instances_with_expiration(self, input: bool) -> Self
pub fn terminate_instances_with_expiration(self, input: bool) -> Self
Indicates whether running instances should be terminated when the EC2 Fleet expires.
sourcepub fn set_terminate_instances_with_expiration(self, input: Option<bool>) -> Self
pub fn set_terminate_instances_with_expiration(self, input: Option<bool>) -> Self
Indicates whether running instances should be terminated when the EC2 Fleet expires.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn type(self, input: FleetType) -> Self
pub fn type(self, input: FleetType) -> Self
The type of request. Indicates whether the EC2 Fleet only requests
the target capacity, or also attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only places the required requests; it does not attempt to replenish instances if capacity is diminished, and it does not submit requests in alternative capacity pools if capacity is unavailable. To maintain a certain target capacity, EC2 Fleet places the required requests to meet this target capacity. It also automatically replenishes any interrupted Spot Instances. Default: maintain
.
sourcepub fn set_type(self, input: Option<FleetType>) -> Self
pub fn set_type(self, input: Option<FleetType>) -> Self
The type of request. Indicates whether the EC2 Fleet only requests
the target capacity, or also attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only places the required requests; it does not attempt to replenish instances if capacity is diminished, and it does not submit requests in alternative capacity pools if capacity is unavailable. To maintain a certain target capacity, EC2 Fleet places the required requests to meet this target capacity. It also automatically replenishes any interrupted Spot Instances. Default: maintain
.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn valid_from(self, input: DateTime) -> Self
pub fn valid_from(self, input: DateTime) -> Self
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.
sourcepub fn set_valid_from(self, input: Option<DateTime>) -> Self
pub fn set_valid_from(self, input: Option<DateTime>) -> Self
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.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn valid_until(self, input: DateTime) -> Self
pub fn valid_until(self, input: DateTime) -> Self
The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new instance requests are placed or able to fulfill the request. The default end date is 7 days from the current date.
sourcepub fn set_valid_until(self, input: Option<DateTime>) -> Self
pub fn set_valid_until(self, input: Option<DateTime>) -> Self
The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new instance requests are placed or able to fulfill the request. The default end date is 7 days from the current date.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn replace_unhealthy_instances(self, input: bool) -> Self
pub fn replace_unhealthy_instances(self, input: bool) -> Self
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.
sourcepub fn set_replace_unhealthy_instances(self, input: Option<bool>) -> Self
pub fn set_replace_unhealthy_instances(self, input: Option<bool>) -> Self
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.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn spot_options(self, input: SpotOptions) -> Self
pub fn spot_options(self, input: SpotOptions) -> Self
The configuration of Spot Instances in an EC2 Fleet.
sourcepub fn set_spot_options(self, input: Option<SpotOptions>) -> Self
pub fn set_spot_options(self, input: Option<SpotOptions>) -> Self
The configuration of Spot Instances in an EC2 Fleet.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn on_demand_options(self, input: OnDemandOptions) -> Self
pub fn on_demand_options(self, input: OnDemandOptions) -> Self
The allocation strategy of On-Demand Instances in an EC2 Fleet.
sourcepub fn set_on_demand_options(self, input: Option<OnDemandOptions>) -> Self
pub fn set_on_demand_options(self, input: Option<OnDemandOptions>) -> Self
The allocation strategy of On-Demand Instances in an EC2 Fleet.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags for an EC2 Fleet resource.
The tags for an EC2 Fleet resource.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn errors(self, input: DescribeFleetError) -> Self
pub fn errors(self, input: DescribeFleetError) -> Self
Appends an item to errors
.
To override the contents of this collection use set_errors
.
Information about the instances that could not be launched by the fleet. Valid only when Type is set to instant
.
sourcepub fn set_errors(self, input: Option<Vec<DescribeFleetError>>) -> Self
pub fn set_errors(self, input: Option<Vec<DescribeFleetError>>) -> Self
Information about the instances that could not be launched by the fleet. Valid only when Type is set to instant
.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn instances(self, input: DescribeFleetsInstances) -> Self
pub fn instances(self, input: DescribeFleetsInstances) -> Self
Appends an item to instances
.
To override the contents of this collection use set_instances
.
Information about the instances that were launched by the fleet. Valid only when Type is set to instant
.
sourcepub fn set_instances(self, input: Option<Vec<DescribeFleetsInstances>>) -> Self
pub fn set_instances(self, input: Option<Vec<DescribeFleetsInstances>>) -> Self
Information about the instances that were launched by the fleet. Valid only when Type is set to instant
.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn set_context(self, input: Option<String>) -> Self
pub fn set_context(self, input: Option<String>) -> Self
Reserved.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> FleetData
pub fn build(self) -> FleetData
Consumes the builder and constructs a FleetData
.
Examples found in repository?
44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099
pub fn deser_structure_crate_model_fleet_data(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FleetData, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FleetData::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("activityStatus") /* ActivityStatus com.amazonaws.ec2#FleetData$ActivityStatus */ => {
let var_1978 =
Some(
Result::<crate::model::FleetActivityStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetActivityStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_activity_status(var_1978);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#FleetData$CreateTime */ => {
let var_1979 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1979);
}
,
s if s.matches("fleetId") /* FleetId com.amazonaws.ec2#FleetData$FleetId */ => {
let var_1980 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_fleet_id(var_1980);
}
,
s if s.matches("fleetState") /* FleetState com.amazonaws.ec2#FleetData$FleetState */ => {
let var_1981 =
Some(
Result::<crate::model::FleetStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetStateCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_fleet_state(var_1981);
}
,
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#FleetData$ClientToken */ => {
let var_1982 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_client_token(var_1982);
}
,
s if s.matches("excessCapacityTerminationPolicy") /* ExcessCapacityTerminationPolicy com.amazonaws.ec2#FleetData$ExcessCapacityTerminationPolicy */ => {
let var_1983 =
Some(
Result::<crate::model::FleetExcessCapacityTerminationPolicy, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetExcessCapacityTerminationPolicy::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_excess_capacity_termination_policy(var_1983);
}
,
s if s.matches("fulfilledCapacity") /* FulfilledCapacity com.amazonaws.ec2#FleetData$FulfilledCapacity */ => {
let var_1984 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_capacity(var_1984);
}
,
s if s.matches("fulfilledOnDemandCapacity") /* FulfilledOnDemandCapacity com.amazonaws.ec2#FleetData$FulfilledOnDemandCapacity */ => {
let var_1985 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_fulfilled_on_demand_capacity(var_1985);
}
,
s if s.matches("launchTemplateConfigs") /* LaunchTemplateConfigs com.amazonaws.ec2#FleetData$LaunchTemplateConfigs */ => {
let var_1986 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_fleet_launch_template_config_list(&mut tag)
?
)
;
builder = builder.set_launch_template_configs(var_1986);
}
,
s if s.matches("targetCapacitySpecification") /* TargetCapacitySpecification com.amazonaws.ec2#FleetData$TargetCapacitySpecification */ => {
let var_1987 =
Some(
crate::xml_deser::deser_structure_crate_model_target_capacity_specification(&mut tag)
?
)
;
builder = builder.set_target_capacity_specification(var_1987);
}
,
s if s.matches("terminateInstancesWithExpiration") /* TerminateInstancesWithExpiration com.amazonaws.ec2#FleetData$TerminateInstancesWithExpiration */ => {
let var_1988 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_terminate_instances_with_expiration(var_1988);
}
,
s if s.matches("type") /* Type com.amazonaws.ec2#FleetData$Type */ => {
let var_1989 =
Some(
Result::<crate::model::FleetType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::FleetType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_1989);
}
,
s if s.matches("validFrom") /* ValidFrom com.amazonaws.ec2#FleetData$ValidFrom */ => {
let var_1990 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_from(var_1990);
}
,
s if s.matches("validUntil") /* ValidUntil com.amazonaws.ec2#FleetData$ValidUntil */ => {
let var_1991 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_valid_until(var_1991);
}
,
s if s.matches("replaceUnhealthyInstances") /* ReplaceUnhealthyInstances com.amazonaws.ec2#FleetData$ReplaceUnhealthyInstances */ => {
let var_1992 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_replace_unhealthy_instances(var_1992);
}
,
s if s.matches("spotOptions") /* SpotOptions com.amazonaws.ec2#FleetData$SpotOptions */ => {
let var_1993 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_options(&mut tag)
?
)
;
builder = builder.set_spot_options(var_1993);
}
,
s if s.matches("onDemandOptions") /* OnDemandOptions com.amazonaws.ec2#FleetData$OnDemandOptions */ => {
let var_1994 =
Some(
crate::xml_deser::deser_structure_crate_model_on_demand_options(&mut tag)
?
)
;
builder = builder.set_on_demand_options(var_1994);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#FleetData$Tags */ => {
let var_1995 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1995);
}
,
s if s.matches("errorSet") /* Errors com.amazonaws.ec2#FleetData$Errors */ => {
let var_1996 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_error_set(&mut tag)
?
)
;
builder = builder.set_errors(var_1996);
}
,
s if s.matches("fleetInstanceSet") /* Instances com.amazonaws.ec2#FleetData$Instances */ => {
let var_1997 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_describe_fleets_instances_set(&mut tag)
?
)
;
builder = builder.set_instances(var_1997);
}
,
s if s.matches("context") /* Context com.amazonaws.ec2#FleetData$Context */ => {
let var_1998 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_context(var_1998);
}
,
_ => {}
}
}
Ok(builder.build())
}