pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEcsTaskDefinitionDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn container_definitions(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsDetails
) -> Self
pub fn container_definitions(
self,
input: AwsEcsTaskDefinitionContainerDefinitionsDetails
) -> Self
Appends an item to container_definitions
.
To override the contents of this collection use set_container_definitions
.
The container definitions that describe the containers that make up the task.
sourcepub fn set_container_definitions(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsDetails>>
) -> Self
pub fn set_container_definitions(
self,
input: Option<Vec<AwsEcsTaskDefinitionContainerDefinitionsDetails>>
) -> Self
The container definitions that describe the containers that make up the task.
Examples found in repository?
16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionDetails>,
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_task_definition_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() {
"ContainerDefinitions" => {
builder = builder.set_container_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_container_definitions_list(tokens)?
);
}
"Cpu" => {
builder = builder.set_cpu(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ExecutionRoleArn" => {
builder = builder.set_execution_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Family" => {
builder = builder.set_family(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"InferenceAccelerators" => {
builder = builder.set_inference_accelerators(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_inference_accelerators_list(tokens)?
);
}
"IpcMode" => {
builder = builder.set_ipc_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Memory" => {
builder = builder.set_memory(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkMode" => {
builder = builder.set_network_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PidMode" => {
builder = builder.set_pid_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_placement_constraints_list(tokens)?
);
}
"ProxyConfiguration" => {
builder = builder.set_proxy_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details(tokens)?
);
}
"RequiresCompatibilities" => {
builder = builder.set_requires_compatibilities(
crate::json_deser::deser_list_com_amazonaws_securityhub_non_empty_string_list(tokens)?
);
}
"TaskRoleArn" => {
builder = builder.set_task_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Volumes" => {
builder = builder.set_volumes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_volumes_list(tokens)?
);
}
_ => 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 cpu(self, input: impl Into<String>) -> Self
pub fn cpu(self, input: impl Into<String>) -> Self
The number of CPU units used by the task.Valid values are as follows:
-
256 (.25 vCPU)
-
512 (.5 vCPU)
-
1024 (1 vCPU)
-
2048 (2 vCPU)
-
4096 (4 vCPU)
sourcepub fn set_cpu(self, input: Option<String>) -> Self
pub fn set_cpu(self, input: Option<String>) -> Self
The number of CPU units used by the task.Valid values are as follows:
-
256 (.25 vCPU)
-
512 (.5 vCPU)
-
1024 (1 vCPU)
-
2048 (2 vCPU)
-
4096 (4 vCPU)
Examples found in repository?
16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionDetails>,
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_task_definition_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() {
"ContainerDefinitions" => {
builder = builder.set_container_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_container_definitions_list(tokens)?
);
}
"Cpu" => {
builder = builder.set_cpu(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ExecutionRoleArn" => {
builder = builder.set_execution_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Family" => {
builder = builder.set_family(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"InferenceAccelerators" => {
builder = builder.set_inference_accelerators(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_inference_accelerators_list(tokens)?
);
}
"IpcMode" => {
builder = builder.set_ipc_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Memory" => {
builder = builder.set_memory(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkMode" => {
builder = builder.set_network_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PidMode" => {
builder = builder.set_pid_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_placement_constraints_list(tokens)?
);
}
"ProxyConfiguration" => {
builder = builder.set_proxy_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details(tokens)?
);
}
"RequiresCompatibilities" => {
builder = builder.set_requires_compatibilities(
crate::json_deser::deser_list_com_amazonaws_securityhub_non_empty_string_list(tokens)?
);
}
"TaskRoleArn" => {
builder = builder.set_task_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Volumes" => {
builder = builder.set_volumes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_volumes_list(tokens)?
);
}
_ => 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 execution_role_arn(self, input: impl Into<String>) -> Self
pub fn execution_role_arn(self, input: impl Into<String>) -> Self
The ARN of the task execution role that grants the container agent permission to make API calls on behalf of the container user.
sourcepub fn set_execution_role_arn(self, input: Option<String>) -> Self
pub fn set_execution_role_arn(self, input: Option<String>) -> Self
The ARN of the task execution role that grants the container agent permission to make API calls on behalf of the container user.
Examples found in repository?
16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionDetails>,
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_task_definition_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() {
"ContainerDefinitions" => {
builder = builder.set_container_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_container_definitions_list(tokens)?
);
}
"Cpu" => {
builder = builder.set_cpu(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ExecutionRoleArn" => {
builder = builder.set_execution_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Family" => {
builder = builder.set_family(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"InferenceAccelerators" => {
builder = builder.set_inference_accelerators(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_inference_accelerators_list(tokens)?
);
}
"IpcMode" => {
builder = builder.set_ipc_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Memory" => {
builder = builder.set_memory(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkMode" => {
builder = builder.set_network_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PidMode" => {
builder = builder.set_pid_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_placement_constraints_list(tokens)?
);
}
"ProxyConfiguration" => {
builder = builder.set_proxy_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details(tokens)?
);
}
"RequiresCompatibilities" => {
builder = builder.set_requires_compatibilities(
crate::json_deser::deser_list_com_amazonaws_securityhub_non_empty_string_list(tokens)?
);
}
"TaskRoleArn" => {
builder = builder.set_task_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Volumes" => {
builder = builder.set_volumes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_volumes_list(tokens)?
);
}
_ => 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 family(self, input: impl Into<String>) -> Self
pub fn family(self, input: impl Into<String>) -> Self
The name of a family that this task definition is registered to.
sourcepub fn set_family(self, input: Option<String>) -> Self
pub fn set_family(self, input: Option<String>) -> Self
The name of a family that this task definition is registered to.
Examples found in repository?
16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionDetails>,
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_task_definition_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() {
"ContainerDefinitions" => {
builder = builder.set_container_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_container_definitions_list(tokens)?
);
}
"Cpu" => {
builder = builder.set_cpu(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ExecutionRoleArn" => {
builder = builder.set_execution_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Family" => {
builder = builder.set_family(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"InferenceAccelerators" => {
builder = builder.set_inference_accelerators(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_inference_accelerators_list(tokens)?
);
}
"IpcMode" => {
builder = builder.set_ipc_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Memory" => {
builder = builder.set_memory(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkMode" => {
builder = builder.set_network_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PidMode" => {
builder = builder.set_pid_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_placement_constraints_list(tokens)?
);
}
"ProxyConfiguration" => {
builder = builder.set_proxy_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details(tokens)?
);
}
"RequiresCompatibilities" => {
builder = builder.set_requires_compatibilities(
crate::json_deser::deser_list_com_amazonaws_securityhub_non_empty_string_list(tokens)?
);
}
"TaskRoleArn" => {
builder = builder.set_task_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Volumes" => {
builder = builder.set_volumes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_volumes_list(tokens)?
);
}
_ => 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 inference_accelerators(
self,
input: AwsEcsTaskDefinitionInferenceAcceleratorsDetails
) -> Self
pub fn inference_accelerators(
self,
input: AwsEcsTaskDefinitionInferenceAcceleratorsDetails
) -> Self
Appends an item to inference_accelerators
.
To override the contents of this collection use set_inference_accelerators
.
The Elastic Inference accelerators to use for the containers in the task.
sourcepub fn set_inference_accelerators(
self,
input: Option<Vec<AwsEcsTaskDefinitionInferenceAcceleratorsDetails>>
) -> Self
pub fn set_inference_accelerators(
self,
input: Option<Vec<AwsEcsTaskDefinitionInferenceAcceleratorsDetails>>
) -> Self
The Elastic Inference accelerators to use for the containers in the task.
Examples found in repository?
16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionDetails>,
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_task_definition_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() {
"ContainerDefinitions" => {
builder = builder.set_container_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_container_definitions_list(tokens)?
);
}
"Cpu" => {
builder = builder.set_cpu(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ExecutionRoleArn" => {
builder = builder.set_execution_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Family" => {
builder = builder.set_family(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"InferenceAccelerators" => {
builder = builder.set_inference_accelerators(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_inference_accelerators_list(tokens)?
);
}
"IpcMode" => {
builder = builder.set_ipc_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Memory" => {
builder = builder.set_memory(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkMode" => {
builder = builder.set_network_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PidMode" => {
builder = builder.set_pid_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_placement_constraints_list(tokens)?
);
}
"ProxyConfiguration" => {
builder = builder.set_proxy_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details(tokens)?
);
}
"RequiresCompatibilities" => {
builder = builder.set_requires_compatibilities(
crate::json_deser::deser_list_com_amazonaws_securityhub_non_empty_string_list(tokens)?
);
}
"TaskRoleArn" => {
builder = builder.set_task_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Volumes" => {
builder = builder.set_volumes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_volumes_list(tokens)?
);
}
_ => 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 ipc_mode(self, input: impl Into<String>) -> Self
pub fn ipc_mode(self, input: impl Into<String>) -> Self
The inter-process communication (IPC) resource namespace to use for the containers in the task. Valid values are as follows:
-
host
-
none
-
task
sourcepub fn set_ipc_mode(self, input: Option<String>) -> Self
pub fn set_ipc_mode(self, input: Option<String>) -> Self
The inter-process communication (IPC) resource namespace to use for the containers in the task. Valid values are as follows:
-
host
-
none
-
task
Examples found in repository?
16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionDetails>,
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_task_definition_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() {
"ContainerDefinitions" => {
builder = builder.set_container_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_container_definitions_list(tokens)?
);
}
"Cpu" => {
builder = builder.set_cpu(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ExecutionRoleArn" => {
builder = builder.set_execution_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Family" => {
builder = builder.set_family(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"InferenceAccelerators" => {
builder = builder.set_inference_accelerators(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_inference_accelerators_list(tokens)?
);
}
"IpcMode" => {
builder = builder.set_ipc_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Memory" => {
builder = builder.set_memory(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkMode" => {
builder = builder.set_network_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PidMode" => {
builder = builder.set_pid_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_placement_constraints_list(tokens)?
);
}
"ProxyConfiguration" => {
builder = builder.set_proxy_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details(tokens)?
);
}
"RequiresCompatibilities" => {
builder = builder.set_requires_compatibilities(
crate::json_deser::deser_list_com_amazonaws_securityhub_non_empty_string_list(tokens)?
);
}
"TaskRoleArn" => {
builder = builder.set_task_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Volumes" => {
builder = builder.set_volumes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_volumes_list(tokens)?
);
}
_ => 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 memory(self, input: impl Into<String>) -> Self
pub fn memory(self, input: impl Into<String>) -> Self
The amount (in MiB) of memory used by the task.
For tasks that are hosted on Amazon EC2, you can provide a task-level memory value or a container-level memory value. For tasks that are hosted on Fargate, you must use one of the specified values in the Amazon Elastic Container Service Developer Guide , which determines your range of supported values for the Cpu
and Memory
parameters.
sourcepub fn set_memory(self, input: Option<String>) -> Self
pub fn set_memory(self, input: Option<String>) -> Self
The amount (in MiB) of memory used by the task.
For tasks that are hosted on Amazon EC2, you can provide a task-level memory value or a container-level memory value. For tasks that are hosted on Fargate, you must use one of the specified values in the Amazon Elastic Container Service Developer Guide , which determines your range of supported values for the Cpu
and Memory
parameters.
Examples found in repository?
16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionDetails>,
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_task_definition_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() {
"ContainerDefinitions" => {
builder = builder.set_container_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_container_definitions_list(tokens)?
);
}
"Cpu" => {
builder = builder.set_cpu(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ExecutionRoleArn" => {
builder = builder.set_execution_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Family" => {
builder = builder.set_family(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"InferenceAccelerators" => {
builder = builder.set_inference_accelerators(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_inference_accelerators_list(tokens)?
);
}
"IpcMode" => {
builder = builder.set_ipc_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Memory" => {
builder = builder.set_memory(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkMode" => {
builder = builder.set_network_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PidMode" => {
builder = builder.set_pid_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_placement_constraints_list(tokens)?
);
}
"ProxyConfiguration" => {
builder = builder.set_proxy_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details(tokens)?
);
}
"RequiresCompatibilities" => {
builder = builder.set_requires_compatibilities(
crate::json_deser::deser_list_com_amazonaws_securityhub_non_empty_string_list(tokens)?
);
}
"TaskRoleArn" => {
builder = builder.set_task_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Volumes" => {
builder = builder.set_volumes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_volumes_list(tokens)?
);
}
_ => 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_mode(self, input: impl Into<String>) -> Self
pub fn network_mode(self, input: impl Into<String>) -> Self
The Docker networking mode to use for the containers in the task. Valid values are as follows:
-
awsvpc
-
bridge
-
host
-
none
sourcepub fn set_network_mode(self, input: Option<String>) -> Self
pub fn set_network_mode(self, input: Option<String>) -> Self
The Docker networking mode to use for the containers in the task. Valid values are as follows:
-
awsvpc
-
bridge
-
host
-
none
Examples found in repository?
16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionDetails>,
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_task_definition_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() {
"ContainerDefinitions" => {
builder = builder.set_container_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_container_definitions_list(tokens)?
);
}
"Cpu" => {
builder = builder.set_cpu(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ExecutionRoleArn" => {
builder = builder.set_execution_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Family" => {
builder = builder.set_family(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"InferenceAccelerators" => {
builder = builder.set_inference_accelerators(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_inference_accelerators_list(tokens)?
);
}
"IpcMode" => {
builder = builder.set_ipc_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Memory" => {
builder = builder.set_memory(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkMode" => {
builder = builder.set_network_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PidMode" => {
builder = builder.set_pid_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_placement_constraints_list(tokens)?
);
}
"ProxyConfiguration" => {
builder = builder.set_proxy_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details(tokens)?
);
}
"RequiresCompatibilities" => {
builder = builder.set_requires_compatibilities(
crate::json_deser::deser_list_com_amazonaws_securityhub_non_empty_string_list(tokens)?
);
}
"TaskRoleArn" => {
builder = builder.set_task_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Volumes" => {
builder = builder.set_volumes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_volumes_list(tokens)?
);
}
_ => 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 pid_mode(self, input: impl Into<String>) -> Self
pub fn pid_mode(self, input: impl Into<String>) -> Self
The process namespace to use for the containers in the task. Valid values are host
or task
.
sourcepub fn set_pid_mode(self, input: Option<String>) -> Self
pub fn set_pid_mode(self, input: Option<String>) -> Self
The process namespace to use for the containers in the task. Valid values are host
or task
.
Examples found in repository?
16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionDetails>,
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_task_definition_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() {
"ContainerDefinitions" => {
builder = builder.set_container_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_container_definitions_list(tokens)?
);
}
"Cpu" => {
builder = builder.set_cpu(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ExecutionRoleArn" => {
builder = builder.set_execution_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Family" => {
builder = builder.set_family(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"InferenceAccelerators" => {
builder = builder.set_inference_accelerators(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_inference_accelerators_list(tokens)?
);
}
"IpcMode" => {
builder = builder.set_ipc_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Memory" => {
builder = builder.set_memory(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkMode" => {
builder = builder.set_network_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PidMode" => {
builder = builder.set_pid_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_placement_constraints_list(tokens)?
);
}
"ProxyConfiguration" => {
builder = builder.set_proxy_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details(tokens)?
);
}
"RequiresCompatibilities" => {
builder = builder.set_requires_compatibilities(
crate::json_deser::deser_list_com_amazonaws_securityhub_non_empty_string_list(tokens)?
);
}
"TaskRoleArn" => {
builder = builder.set_task_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Volumes" => {
builder = builder.set_volumes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_volumes_list(tokens)?
);
}
_ => 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: AwsEcsTaskDefinitionPlacementConstraintsDetails
) -> Self
pub fn placement_constraints(
self,
input: AwsEcsTaskDefinitionPlacementConstraintsDetails
) -> Self
Appends an item to placement_constraints
.
To override the contents of this collection use set_placement_constraints
.
The placement constraint objects to use for tasks.
sourcepub fn set_placement_constraints(
self,
input: Option<Vec<AwsEcsTaskDefinitionPlacementConstraintsDetails>>
) -> Self
pub fn set_placement_constraints(
self,
input: Option<Vec<AwsEcsTaskDefinitionPlacementConstraintsDetails>>
) -> Self
The placement constraint objects to use for tasks.
Examples found in repository?
16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionDetails>,
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_task_definition_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() {
"ContainerDefinitions" => {
builder = builder.set_container_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_container_definitions_list(tokens)?
);
}
"Cpu" => {
builder = builder.set_cpu(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ExecutionRoleArn" => {
builder = builder.set_execution_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Family" => {
builder = builder.set_family(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"InferenceAccelerators" => {
builder = builder.set_inference_accelerators(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_inference_accelerators_list(tokens)?
);
}
"IpcMode" => {
builder = builder.set_ipc_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Memory" => {
builder = builder.set_memory(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkMode" => {
builder = builder.set_network_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PidMode" => {
builder = builder.set_pid_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_placement_constraints_list(tokens)?
);
}
"ProxyConfiguration" => {
builder = builder.set_proxy_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details(tokens)?
);
}
"RequiresCompatibilities" => {
builder = builder.set_requires_compatibilities(
crate::json_deser::deser_list_com_amazonaws_securityhub_non_empty_string_list(tokens)?
);
}
"TaskRoleArn" => {
builder = builder.set_task_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Volumes" => {
builder = builder.set_volumes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_volumes_list(tokens)?
);
}
_ => 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 proxy_configuration(
self,
input: AwsEcsTaskDefinitionProxyConfigurationDetails
) -> Self
pub fn proxy_configuration(
self,
input: AwsEcsTaskDefinitionProxyConfigurationDetails
) -> Self
The configuration details for the App Mesh proxy.
sourcepub fn set_proxy_configuration(
self,
input: Option<AwsEcsTaskDefinitionProxyConfigurationDetails>
) -> Self
pub fn set_proxy_configuration(
self,
input: Option<AwsEcsTaskDefinitionProxyConfigurationDetails>
) -> Self
The configuration details for the App Mesh proxy.
Examples found in repository?
16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionDetails>,
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_task_definition_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() {
"ContainerDefinitions" => {
builder = builder.set_container_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_container_definitions_list(tokens)?
);
}
"Cpu" => {
builder = builder.set_cpu(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ExecutionRoleArn" => {
builder = builder.set_execution_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Family" => {
builder = builder.set_family(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"InferenceAccelerators" => {
builder = builder.set_inference_accelerators(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_inference_accelerators_list(tokens)?
);
}
"IpcMode" => {
builder = builder.set_ipc_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Memory" => {
builder = builder.set_memory(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkMode" => {
builder = builder.set_network_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PidMode" => {
builder = builder.set_pid_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_placement_constraints_list(tokens)?
);
}
"ProxyConfiguration" => {
builder = builder.set_proxy_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details(tokens)?
);
}
"RequiresCompatibilities" => {
builder = builder.set_requires_compatibilities(
crate::json_deser::deser_list_com_amazonaws_securityhub_non_empty_string_list(tokens)?
);
}
"TaskRoleArn" => {
builder = builder.set_task_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Volumes" => {
builder = builder.set_volumes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_volumes_list(tokens)?
);
}
_ => 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 requires_compatibilities(self, input: impl Into<String>) -> Self
pub fn requires_compatibilities(self, input: impl Into<String>) -> Self
Appends an item to requires_compatibilities
.
To override the contents of this collection use set_requires_compatibilities
.
The task launch types that the task definition was validated against.
sourcepub fn set_requires_compatibilities(self, input: Option<Vec<String>>) -> Self
pub fn set_requires_compatibilities(self, input: Option<Vec<String>>) -> Self
The task launch types that the task definition was validated against.
Examples found in repository?
16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionDetails>,
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_task_definition_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() {
"ContainerDefinitions" => {
builder = builder.set_container_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_container_definitions_list(tokens)?
);
}
"Cpu" => {
builder = builder.set_cpu(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ExecutionRoleArn" => {
builder = builder.set_execution_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Family" => {
builder = builder.set_family(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"InferenceAccelerators" => {
builder = builder.set_inference_accelerators(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_inference_accelerators_list(tokens)?
);
}
"IpcMode" => {
builder = builder.set_ipc_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Memory" => {
builder = builder.set_memory(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkMode" => {
builder = builder.set_network_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PidMode" => {
builder = builder.set_pid_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_placement_constraints_list(tokens)?
);
}
"ProxyConfiguration" => {
builder = builder.set_proxy_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details(tokens)?
);
}
"RequiresCompatibilities" => {
builder = builder.set_requires_compatibilities(
crate::json_deser::deser_list_com_amazonaws_securityhub_non_empty_string_list(tokens)?
);
}
"TaskRoleArn" => {
builder = builder.set_task_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Volumes" => {
builder = builder.set_volumes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_volumes_list(tokens)?
);
}
_ => 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_role_arn(self, input: impl Into<String>) -> Self
pub fn task_role_arn(self, input: impl Into<String>) -> Self
The short name or ARN of the IAM role that grants containers in the task permission to call Amazon Web Services API operations on your behalf.
sourcepub fn set_task_role_arn(self, input: Option<String>) -> Self
pub fn set_task_role_arn(self, input: Option<String>) -> Self
The short name or ARN of the IAM role that grants containers in the task permission to call Amazon Web Services API operations on your behalf.
Examples found in repository?
16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionDetails>,
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_task_definition_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() {
"ContainerDefinitions" => {
builder = builder.set_container_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_container_definitions_list(tokens)?
);
}
"Cpu" => {
builder = builder.set_cpu(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ExecutionRoleArn" => {
builder = builder.set_execution_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Family" => {
builder = builder.set_family(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"InferenceAccelerators" => {
builder = builder.set_inference_accelerators(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_inference_accelerators_list(tokens)?
);
}
"IpcMode" => {
builder = builder.set_ipc_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Memory" => {
builder = builder.set_memory(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkMode" => {
builder = builder.set_network_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PidMode" => {
builder = builder.set_pid_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_placement_constraints_list(tokens)?
);
}
"ProxyConfiguration" => {
builder = builder.set_proxy_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details(tokens)?
);
}
"RequiresCompatibilities" => {
builder = builder.set_requires_compatibilities(
crate::json_deser::deser_list_com_amazonaws_securityhub_non_empty_string_list(tokens)?
);
}
"TaskRoleArn" => {
builder = builder.set_task_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Volumes" => {
builder = builder.set_volumes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_volumes_list(tokens)?
);
}
_ => 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 volumes(self, input: AwsEcsTaskDefinitionVolumesDetails) -> Self
pub fn volumes(self, input: AwsEcsTaskDefinitionVolumesDetails) -> Self
Appends an item to volumes
.
To override the contents of this collection use set_volumes
.
The data volume definitions for the task.
sourcepub fn set_volumes(
self,
input: Option<Vec<AwsEcsTaskDefinitionVolumesDetails>>
) -> Self
pub fn set_volumes(
self,
input: Option<Vec<AwsEcsTaskDefinitionVolumesDetails>>
) -> Self
The data volume definitions for the task.
Examples found in repository?
16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionDetails>,
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_task_definition_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() {
"ContainerDefinitions" => {
builder = builder.set_container_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_container_definitions_list(tokens)?
);
}
"Cpu" => {
builder = builder.set_cpu(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ExecutionRoleArn" => {
builder = builder.set_execution_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Family" => {
builder = builder.set_family(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"InferenceAccelerators" => {
builder = builder.set_inference_accelerators(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_inference_accelerators_list(tokens)?
);
}
"IpcMode" => {
builder = builder.set_ipc_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Memory" => {
builder = builder.set_memory(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkMode" => {
builder = builder.set_network_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PidMode" => {
builder = builder.set_pid_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_placement_constraints_list(tokens)?
);
}
"ProxyConfiguration" => {
builder = builder.set_proxy_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details(tokens)?
);
}
"RequiresCompatibilities" => {
builder = builder.set_requires_compatibilities(
crate::json_deser::deser_list_com_amazonaws_securityhub_non_empty_string_list(tokens)?
);
}
"TaskRoleArn" => {
builder = builder.set_task_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Volumes" => {
builder = builder.set_volumes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_volumes_list(tokens)?
);
}
_ => 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) -> AwsEcsTaskDefinitionDetails
pub fn build(self) -> AwsEcsTaskDefinitionDetails
Consumes the builder and constructs a AwsEcsTaskDefinitionDetails
.
Examples found in repository?
16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057
pub(crate) fn deser_structure_crate_model_aws_ecs_task_definition_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEcsTaskDefinitionDetails>,
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_task_definition_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() {
"ContainerDefinitions" => {
builder = builder.set_container_definitions(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_container_definitions_list(tokens)?
);
}
"Cpu" => {
builder = builder.set_cpu(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ExecutionRoleArn" => {
builder = builder.set_execution_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Family" => {
builder = builder.set_family(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"InferenceAccelerators" => {
builder = builder.set_inference_accelerators(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_inference_accelerators_list(tokens)?
);
}
"IpcMode" => {
builder = builder.set_ipc_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Memory" => {
builder = builder.set_memory(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"NetworkMode" => {
builder = builder.set_network_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PidMode" => {
builder = builder.set_pid_mode(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"PlacementConstraints" => {
builder = builder.set_placement_constraints(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_placement_constraints_list(tokens)?
);
}
"ProxyConfiguration" => {
builder = builder.set_proxy_configuration(
crate::json_deser::deser_structure_crate_model_aws_ecs_task_definition_proxy_configuration_details(tokens)?
);
}
"RequiresCompatibilities" => {
builder = builder.set_requires_compatibilities(
crate::json_deser::deser_list_com_amazonaws_securityhub_non_empty_string_list(tokens)?
);
}
"TaskRoleArn" => {
builder = builder.set_task_role_arn(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Volumes" => {
builder = builder.set_volumes(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_ecs_task_definition_volumes_list(tokens)?
);
}
_ => 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",
),
),
}
}