Struct aws_sdk_securityhub::model::aws_ecs_service_details::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEcsServiceDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn capacity_provider_strategy(
self,
input: AwsEcsServiceCapacityProviderStrategyDetails
) -> Self
pub fn capacity_provider_strategy(
self,
input: AwsEcsServiceCapacityProviderStrategyDetails
) -> Self
Appends an item to capacity_provider_strategy
.
To override the contents of this collection use set_capacity_provider_strategy
.
The capacity provider strategy that the service uses.
sourcepub fn set_capacity_provider_strategy(
self,
input: Option<Vec<AwsEcsServiceCapacityProviderStrategyDetails>>
) -> Self
pub fn set_capacity_provider_strategy(
self,
input: Option<Vec<AwsEcsServiceCapacityProviderStrategyDetails>>
) -> Self
The capacity provider strategy that the service uses.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn cluster(self, input: impl Into<String>) -> Self
pub fn cluster(self, input: impl Into<String>) -> Self
The ARN of the cluster that hosts the service.
sourcepub fn set_cluster(self, input: Option<String>) -> Self
pub fn set_cluster(self, input: Option<String>) -> Self
The ARN of the cluster that hosts the service.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn deployment_configuration(
self,
input: AwsEcsServiceDeploymentConfigurationDetails
) -> Self
pub fn deployment_configuration(
self,
input: AwsEcsServiceDeploymentConfigurationDetails
) -> Self
Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.
sourcepub fn set_deployment_configuration(
self,
input: Option<AwsEcsServiceDeploymentConfigurationDetails>
) -> Self
pub fn set_deployment_configuration(
self,
input: Option<AwsEcsServiceDeploymentConfigurationDetails>
) -> Self
Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn deployment_controller(
self,
input: AwsEcsServiceDeploymentControllerDetails
) -> Self
pub fn deployment_controller(
self,
input: AwsEcsServiceDeploymentControllerDetails
) -> Self
Contains the deployment controller type that the service uses.
sourcepub fn set_deployment_controller(
self,
input: Option<AwsEcsServiceDeploymentControllerDetails>
) -> Self
pub fn set_deployment_controller(
self,
input: Option<AwsEcsServiceDeploymentControllerDetails>
) -> Self
Contains the deployment controller type that the service uses.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn desired_count(self, input: i32) -> Self
pub fn desired_count(self, input: i32) -> Self
The number of instantiations of the task definition to run on the service.
sourcepub fn set_desired_count(self, input: Option<i32>) -> Self
pub fn set_desired_count(self, input: Option<i32>) -> Self
The number of instantiations of the task definition to run on the service.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
Whether to enable Amazon ECS managed tags for the tasks in the service.
Whether to enable Amazon ECS managed tags for the tasks in the service.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn enable_execute_command(self, input: bool) -> Self
pub fn enable_execute_command(self, input: bool) -> Self
Whether the execute command functionality is enabled for the service.
sourcepub fn set_enable_execute_command(self, input: Option<bool>) -> Self
pub fn set_enable_execute_command(self, input: Option<bool>) -> Self
Whether the execute command functionality is enabled for the service.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn health_check_grace_period_seconds(self, input: i32) -> Self
pub fn health_check_grace_period_seconds(self, input: i32) -> Self
After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks.
sourcepub fn set_health_check_grace_period_seconds(self, input: Option<i32>) -> Self
pub fn set_health_check_grace_period_seconds(self, input: Option<i32>) -> Self
After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn launch_type(self, input: impl Into<String>) -> Self
pub fn launch_type(self, input: impl Into<String>) -> Self
The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
sourcepub fn set_launch_type(self, input: Option<String>) -> Self
pub fn set_launch_type(self, input: Option<String>) -> Self
The launch type that the service uses.
Valid values: EC2
| FARGATE
| EXTERNAL
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn load_balancers(self, input: AwsEcsServiceLoadBalancersDetails) -> Self
pub fn load_balancers(self, input: AwsEcsServiceLoadBalancersDetails) -> Self
Appends an item to load_balancers
.
To override the contents of this collection use set_load_balancers
.
Information about the load balancers that the service uses.
sourcepub fn set_load_balancers(
self,
input: Option<Vec<AwsEcsServiceLoadBalancersDetails>>
) -> Self
pub fn set_load_balancers(
self,
input: Option<Vec<AwsEcsServiceLoadBalancersDetails>>
) -> Self
Information about the load balancers that the service uses.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the service.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn network_configuration(
self,
input: AwsEcsServiceNetworkConfigurationDetails
) -> Self
pub fn network_configuration(
self,
input: AwsEcsServiceNetworkConfigurationDetails
) -> Self
For tasks that use the awsvpc
networking mode, the VPC subnet and security group configuration.
sourcepub fn set_network_configuration(
self,
input: Option<AwsEcsServiceNetworkConfigurationDetails>
) -> Self
pub fn set_network_configuration(
self,
input: Option<AwsEcsServiceNetworkConfigurationDetails>
) -> Self
For tasks that use the awsvpc
networking mode, the VPC subnet and security group configuration.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn placement_constraints(
self,
input: AwsEcsServicePlacementConstraintsDetails
) -> Self
pub fn placement_constraints(
self,
input: AwsEcsServicePlacementConstraintsDetails
) -> Self
Appends an item to placement_constraints
.
To override the contents of this collection use set_placement_constraints
.
The placement constraints for the tasks in the service.
sourcepub fn set_placement_constraints(
self,
input: Option<Vec<AwsEcsServicePlacementConstraintsDetails>>
) -> Self
pub fn set_placement_constraints(
self,
input: Option<Vec<AwsEcsServicePlacementConstraintsDetails>>
) -> Self
The placement constraints for the tasks in the service.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn placement_strategies(
self,
input: AwsEcsServicePlacementStrategiesDetails
) -> Self
pub fn placement_strategies(
self,
input: AwsEcsServicePlacementStrategiesDetails
) -> Self
Appends an item to placement_strategies
.
To override the contents of this collection use set_placement_strategies
.
Information about how tasks for the service are placed.
sourcepub fn set_placement_strategies(
self,
input: Option<Vec<AwsEcsServicePlacementStrategiesDetails>>
) -> Self
pub fn set_placement_strategies(
self,
input: Option<Vec<AwsEcsServicePlacementStrategiesDetails>>
) -> Self
Information about how tasks for the service are placed.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn platform_version(self, input: impl Into<String>) -> Self
pub fn platform_version(self, input: impl Into<String>) -> Self
The platform version on which to run the service. Only specified for tasks that are hosted on Fargate. If a platform version is not specified, the LATEST
platform version is used by default.
sourcepub fn set_platform_version(self, input: Option<String>) -> Self
pub fn set_platform_version(self, input: Option<String>) -> Self
The platform version on which to run the service. Only specified for tasks that are hosted on Fargate. If a platform version is not specified, the LATEST
platform version is used by default.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
Indicates whether to propagate the tags from the task definition to the task or from the service to the task. If no value is provided, then tags are not propagated.
Valid values: TASK_DEFINITION
| SERVICE
Indicates whether to propagate the tags from the task definition to the task or from the service to the task. If no value is provided, then tags are not propagated.
Valid values: TASK_DEFINITION
| SERVICE
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn role(self, input: impl Into<String>) -> Self
pub fn role(self, input: impl Into<String>) -> Self
The ARN of the IAM role that is associated with the service. The role allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.
sourcepub fn set_role(self, input: Option<String>) -> Self
pub fn set_role(self, input: Option<String>) -> Self
The ARN of the IAM role that is associated with the service. The role allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn scheduling_strategy(self, input: impl Into<String>) -> Self
pub fn scheduling_strategy(self, input: impl Into<String>) -> Self
The scheduling strategy to use for the service.
The REPLICA
scheduling strategy places and maintains the desired number of tasks across the cluster. By default, the service scheduler spreads tasks across Availability Zones. Task placement strategies and constraints are used to customize task placement decisions.
The DAEMON
scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that are specified in the cluster. The service scheduler also evaluates the task placement constraints for running tasks and stops tasks that do not meet the placement constraints.
Valid values: REPLICA
| DAEMON
sourcepub fn set_scheduling_strategy(self, input: Option<String>) -> Self
pub fn set_scheduling_strategy(self, input: Option<String>) -> Self
The scheduling strategy to use for the service.
The REPLICA
scheduling strategy places and maintains the desired number of tasks across the cluster. By default, the service scheduler spreads tasks across Availability Zones. Task placement strategies and constraints are used to customize task placement decisions.
The DAEMON
scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that are specified in the cluster. The service scheduler also evaluates the task placement constraints for running tasks and stops tasks that do not meet the placement constraints.
Valid values: REPLICA
| DAEMON
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn service_arn(self, input: impl Into<String>) -> Self
pub fn service_arn(self, input: impl Into<String>) -> Self
The ARN of the service.
sourcepub fn set_service_arn(self, input: Option<String>) -> Self
pub fn set_service_arn(self, input: Option<String>) -> Self
The ARN of the service.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn service_registries(
self,
input: AwsEcsServiceServiceRegistriesDetails
) -> Self
pub fn service_registries(
self,
input: AwsEcsServiceServiceRegistriesDetails
) -> Self
Appends an item to service_registries
.
To override the contents of this collection use set_service_registries
.
Information about the service discovery registries to assign to the service.
sourcepub fn set_service_registries(
self,
input: Option<Vec<AwsEcsServiceServiceRegistriesDetails>>
) -> Self
pub fn set_service_registries(
self,
input: Option<Vec<AwsEcsServiceServiceRegistriesDetails>>
) -> Self
Information about the service discovery registries to assign to the service.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn task_definition(self, input: impl Into<String>) -> Self
pub fn task_definition(self, input: impl Into<String>) -> Self
The task definition to use for tasks in the service.
sourcepub fn set_task_definition(self, input: Option<String>) -> Self
pub fn set_task_definition(self, input: Option<String>) -> Self
The task definition to use for tasks in the service.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn build(self) -> AwsEcsServiceDetails
pub fn build(self) -> AwsEcsServiceDetails
Consumes the builder and constructs a AwsEcsServiceDetails
.
Examples found in repository?
17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497
pub(crate) fn deser_structure_crate_model_aws_ecs_service_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsServiceDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_ecs_service_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"CapacityProviderStrategy" => {
builder = builder.set_capacity_provider_strategy(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_capacity_provider_strategy_list(tokens)?
);
}
"Cluster" => {
builder = builder.set_cluster(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DeploymentConfiguration" => {
builder = builder.set_deployment_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_configuration_details(tokens)?
);
}
"DeploymentController" => {
builder = builder.set_deployment_controller(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_deployment_controller_details(tokens)?
);
}
"DesiredCount" => {
builder = builder.set_desired_count(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"EnableEcsManagedTags" => {
builder = builder.set_enable_ecs_managed_tags(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"EnableExecuteCommand" => {
builder = builder.set_enable_execute_command(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"HealthCheckGracePeriodSeconds" => {
builder = builder.set_health_check_grace_period_seconds(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"LaunchType" => {
builder = builder.set_launch_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"LoadBalancers" => {
builder = builder.set_load_balancers(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_load_balancers_list(tokens)?
);
}
"Name" => {
builder = builder.set_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkConfiguration" => {
builder = builder.set_network_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_service_network_configuration_details(tokens)?
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_constraints_list(tokens)?
);
}
"PlacementStrategies" => {
builder = builder.set_placement_strategies(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_placement_strategies_list(tokens)?
);
}
"PlatformVersion" => {
builder = builder.set_platform_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PropagateTags" => {
builder = builder.set_propagate_tags(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Role" => {
builder = builder.set_role(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SchedulingStrategy" => {
builder = builder.set_scheduling_strategy(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceArn" => {
builder = builder.set_service_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceName" => {
builder = builder.set_service_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ServiceRegistries" => {
builder = builder.set_service_registries(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_service_service_registries_list(tokens)?
);
}
"TaskDefinition" => {
builder = builder.set_task_definition(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}