aws_sdk_ecs/operation/create_task_set/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_task_set::_create_task_set_output::CreateTaskSetOutputBuilder;
3
4pub use crate::operation::create_task_set::_create_task_set_input::CreateTaskSetInputBuilder;
5
6impl crate::operation::create_task_set::builders::CreateTaskSetInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::create_task_set::CreateTaskSetOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::create_task_set::CreateTaskSetError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.create_task_set();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `CreateTaskSet`.
24///
25/// <p>Create a task set in the specified cluster and service. This is used when a service uses the <code>EXTERNAL</code> deployment controller type. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html">Amazon ECS deployment types</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p><note>
26/// <p>On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.</p>
27/// </note>
28/// <p>For information about the maximum number of task sets and other quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon ECS service quotas</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
29#[derive(::std::clone::Clone, ::std::fmt::Debug)]
30pub struct CreateTaskSetFluentBuilder {
31 handle: ::std::sync::Arc<crate::client::Handle>,
32 inner: crate::operation::create_task_set::builders::CreateTaskSetInputBuilder,
33 config_override: ::std::option::Option<crate::config::Builder>,
34}
35impl
36 crate::client::customize::internal::CustomizableSend<
37 crate::operation::create_task_set::CreateTaskSetOutput,
38 crate::operation::create_task_set::CreateTaskSetError,
39 > for CreateTaskSetFluentBuilder
40{
41 fn send(
42 self,
43 config_override: crate::config::Builder,
44 ) -> crate::client::customize::internal::BoxFuture<
45 crate::client::customize::internal::SendResult<
46 crate::operation::create_task_set::CreateTaskSetOutput,
47 crate::operation::create_task_set::CreateTaskSetError,
48 >,
49 > {
50 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
51 }
52}
53impl CreateTaskSetFluentBuilder {
54 /// Creates a new `CreateTaskSetFluentBuilder`.
55 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
56 Self {
57 handle,
58 inner: ::std::default::Default::default(),
59 config_override: ::std::option::Option::None,
60 }
61 }
62 /// Access the CreateTaskSet as a reference.
63 pub fn as_input(&self) -> &crate::operation::create_task_set::builders::CreateTaskSetInputBuilder {
64 &self.inner
65 }
66 /// Sends the request and returns the response.
67 ///
68 /// If an error occurs, an `SdkError` will be returned with additional details that
69 /// can be matched against.
70 ///
71 /// By default, any retryable failures will be retried twice. Retry behavior
72 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
73 /// set when configuring the client.
74 pub async fn send(
75 self,
76 ) -> ::std::result::Result<
77 crate::operation::create_task_set::CreateTaskSetOutput,
78 ::aws_smithy_runtime_api::client::result::SdkError<
79 crate::operation::create_task_set::CreateTaskSetError,
80 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
81 >,
82 > {
83 let input = self
84 .inner
85 .build()
86 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
87 let runtime_plugins = crate::operation::create_task_set::CreateTaskSet::operation_runtime_plugins(
88 self.handle.runtime_plugins.clone(),
89 &self.handle.conf,
90 self.config_override,
91 );
92 crate::operation::create_task_set::CreateTaskSet::orchestrate(&runtime_plugins, input).await
93 }
94
95 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
96 pub fn customize(
97 self,
98 ) -> crate::client::customize::CustomizableOperation<
99 crate::operation::create_task_set::CreateTaskSetOutput,
100 crate::operation::create_task_set::CreateTaskSetError,
101 Self,
102 > {
103 crate::client::customize::CustomizableOperation::new(self)
104 }
105 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
106 self.set_config_override(::std::option::Option::Some(config_override.into()));
107 self
108 }
109
110 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
111 self.config_override = config_override;
112 self
113 }
114 /// <p>The short name or full Amazon Resource Name (ARN) of the service to create the task set in.</p>
115 pub fn service(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
116 self.inner = self.inner.service(input.into());
117 self
118 }
119 /// <p>The short name or full Amazon Resource Name (ARN) of the service to create the task set in.</p>
120 pub fn set_service(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
121 self.inner = self.inner.set_service(input);
122 self
123 }
124 /// <p>The short name or full Amazon Resource Name (ARN) of the service to create the task set in.</p>
125 pub fn get_service(&self) -> &::std::option::Option<::std::string::String> {
126 self.inner.get_service()
127 }
128 /// <p>The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.</p>
129 pub fn cluster(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
130 self.inner = self.inner.cluster(input.into());
131 self
132 }
133 /// <p>The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.</p>
134 pub fn set_cluster(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
135 self.inner = self.inner.set_cluster(input);
136 self
137 }
138 /// <p>The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.</p>
139 pub fn get_cluster(&self) -> &::std::option::Option<::std::string::String> {
140 self.inner.get_cluster()
141 }
142 /// <p>An optional non-unique tag that identifies this task set in external systems. If the task set is associated with a service discovery registry, the tasks in this task set will have the <code>ECS_TASK_SET_EXTERNAL_ID</code> Cloud Map attribute set to the provided value.</p>
143 pub fn external_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
144 self.inner = self.inner.external_id(input.into());
145 self
146 }
147 /// <p>An optional non-unique tag that identifies this task set in external systems. If the task set is associated with a service discovery registry, the tasks in this task set will have the <code>ECS_TASK_SET_EXTERNAL_ID</code> Cloud Map attribute set to the provided value.</p>
148 pub fn set_external_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
149 self.inner = self.inner.set_external_id(input);
150 self
151 }
152 /// <p>An optional non-unique tag that identifies this task set in external systems. If the task set is associated with a service discovery registry, the tasks in this task set will have the <code>ECS_TASK_SET_EXTERNAL_ID</code> Cloud Map attribute set to the provided value.</p>
153 pub fn get_external_id(&self) -> &::std::option::Option<::std::string::String> {
154 self.inner.get_external_id()
155 }
156 /// <p>The task definition for the tasks in the task set to use. If a revision isn't specified, the latest <code>ACTIVE</code> revision is used.</p>
157 pub fn task_definition(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
158 self.inner = self.inner.task_definition(input.into());
159 self
160 }
161 /// <p>The task definition for the tasks in the task set to use. If a revision isn't specified, the latest <code>ACTIVE</code> revision is used.</p>
162 pub fn set_task_definition(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
163 self.inner = self.inner.set_task_definition(input);
164 self
165 }
166 /// <p>The task definition for the tasks in the task set to use. If a revision isn't specified, the latest <code>ACTIVE</code> revision is used.</p>
167 pub fn get_task_definition(&self) -> &::std::option::Option<::std::string::String> {
168 self.inner.get_task_definition()
169 }
170 /// <p>An object representing the network configuration for a task set.</p>
171 pub fn network_configuration(mut self, input: crate::types::NetworkConfiguration) -> Self {
172 self.inner = self.inner.network_configuration(input);
173 self
174 }
175 /// <p>An object representing the network configuration for a task set.</p>
176 pub fn set_network_configuration(mut self, input: ::std::option::Option<crate::types::NetworkConfiguration>) -> Self {
177 self.inner = self.inner.set_network_configuration(input);
178 self
179 }
180 /// <p>An object representing the network configuration for a task set.</p>
181 pub fn get_network_configuration(&self) -> &::std::option::Option<crate::types::NetworkConfiguration> {
182 self.inner.get_network_configuration()
183 }
184 ///
185 /// Appends an item to `loadBalancers`.
186 ///
187 /// To override the contents of this collection use [`set_load_balancers`](Self::set_load_balancers).
188 ///
189 /// <p>A load balancer object representing the load balancer to use with the task set. The supported load balancer types are either an Application Load Balancer or a Network Load Balancer.</p>
190 pub fn load_balancers(mut self, input: crate::types::LoadBalancer) -> Self {
191 self.inner = self.inner.load_balancers(input);
192 self
193 }
194 /// <p>A load balancer object representing the load balancer to use with the task set. The supported load balancer types are either an Application Load Balancer or a Network Load Balancer.</p>
195 pub fn set_load_balancers(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::LoadBalancer>>) -> Self {
196 self.inner = self.inner.set_load_balancers(input);
197 self
198 }
199 /// <p>A load balancer object representing the load balancer to use with the task set. The supported load balancer types are either an Application Load Balancer or a Network Load Balancer.</p>
200 pub fn get_load_balancers(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::LoadBalancer>> {
201 self.inner.get_load_balancers()
202 }
203 ///
204 /// Appends an item to `serviceRegistries`.
205 ///
206 /// To override the contents of this collection use [`set_service_registries`](Self::set_service_registries).
207 ///
208 /// <p>The details of the service discovery registries to assign to this task set. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html">Service discovery</a>.</p>
209 pub fn service_registries(mut self, input: crate::types::ServiceRegistry) -> Self {
210 self.inner = self.inner.service_registries(input);
211 self
212 }
213 /// <p>The details of the service discovery registries to assign to this task set. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html">Service discovery</a>.</p>
214 pub fn set_service_registries(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ServiceRegistry>>) -> Self {
215 self.inner = self.inner.set_service_registries(input);
216 self
217 }
218 /// <p>The details of the service discovery registries to assign to this task set. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html">Service discovery</a>.</p>
219 pub fn get_service_registries(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ServiceRegistry>> {
220 self.inner.get_service_registries()
221 }
222 /// <p>The launch type that new tasks in the task set uses. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html">Amazon ECS launch types</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
223 /// <p>If a <code>launchType</code> is specified, the <code>capacityProviderStrategy</code> parameter must be omitted.</p>
224 pub fn launch_type(mut self, input: crate::types::LaunchType) -> Self {
225 self.inner = self.inner.launch_type(input);
226 self
227 }
228 /// <p>The launch type that new tasks in the task set uses. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html">Amazon ECS launch types</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
229 /// <p>If a <code>launchType</code> is specified, the <code>capacityProviderStrategy</code> parameter must be omitted.</p>
230 pub fn set_launch_type(mut self, input: ::std::option::Option<crate::types::LaunchType>) -> Self {
231 self.inner = self.inner.set_launch_type(input);
232 self
233 }
234 /// <p>The launch type that new tasks in the task set uses. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html">Amazon ECS launch types</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
235 /// <p>If a <code>launchType</code> is specified, the <code>capacityProviderStrategy</code> parameter must be omitted.</p>
236 pub fn get_launch_type(&self) -> &::std::option::Option<crate::types::LaunchType> {
237 self.inner.get_launch_type()
238 }
239 ///
240 /// Appends an item to `capacityProviderStrategy`.
241 ///
242 /// To override the contents of this collection use [`set_capacity_provider_strategy`](Self::set_capacity_provider_strategy).
243 ///
244 /// <p>The capacity provider strategy to use for the task set.</p>
245 /// <p>A capacity provider strategy consists of one or more capacity providers along with the <code>base</code> and <code>weight</code> to assign to them. A capacity provider must be associated with the cluster to be used in a capacity provider strategy. The <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html">PutClusterCapacityProviders</a> API is used to associate a capacity provider with a cluster. Only capacity providers with an <code>ACTIVE</code> or <code>UPDATING</code> status can be used.</p>
246 /// <p>If a <code>capacityProviderStrategy</code> is specified, the <code>launchType</code> parameter must be omitted. If no <code>capacityProviderStrategy</code> or <code>launchType</code> is specified, the <code>defaultCapacityProviderStrategy</code> for the cluster is used.</p>
247 /// <p>If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already be created. New capacity providers can be created with the <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCapacityProviderProvider.html">CreateCapacityProviderProvider</a>API operation.</p>
248 /// <p>To use a Fargate capacity provider, specify either the <code>FARGATE</code> or <code>FARGATE_SPOT</code> capacity providers. The Fargate capacity providers are available to all accounts and only need to be associated with a cluster to be used.</p>
249 /// <p>The <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html">PutClusterCapacityProviders</a> API operation is used to update the list of available capacity providers for a cluster after the cluster is created.</p>
250 pub fn capacity_provider_strategy(mut self, input: crate::types::CapacityProviderStrategyItem) -> Self {
251 self.inner = self.inner.capacity_provider_strategy(input);
252 self
253 }
254 /// <p>The capacity provider strategy to use for the task set.</p>
255 /// <p>A capacity provider strategy consists of one or more capacity providers along with the <code>base</code> and <code>weight</code> to assign to them. A capacity provider must be associated with the cluster to be used in a capacity provider strategy. The <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html">PutClusterCapacityProviders</a> API is used to associate a capacity provider with a cluster. Only capacity providers with an <code>ACTIVE</code> or <code>UPDATING</code> status can be used.</p>
256 /// <p>If a <code>capacityProviderStrategy</code> is specified, the <code>launchType</code> parameter must be omitted. If no <code>capacityProviderStrategy</code> or <code>launchType</code> is specified, the <code>defaultCapacityProviderStrategy</code> for the cluster is used.</p>
257 /// <p>If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already be created. New capacity providers can be created with the <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCapacityProviderProvider.html">CreateCapacityProviderProvider</a>API operation.</p>
258 /// <p>To use a Fargate capacity provider, specify either the <code>FARGATE</code> or <code>FARGATE_SPOT</code> capacity providers. The Fargate capacity providers are available to all accounts and only need to be associated with a cluster to be used.</p>
259 /// <p>The <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html">PutClusterCapacityProviders</a> API operation is used to update the list of available capacity providers for a cluster after the cluster is created.</p>
260 pub fn set_capacity_provider_strategy(
261 mut self,
262 input: ::std::option::Option<::std::vec::Vec<crate::types::CapacityProviderStrategyItem>>,
263 ) -> Self {
264 self.inner = self.inner.set_capacity_provider_strategy(input);
265 self
266 }
267 /// <p>The capacity provider strategy to use for the task set.</p>
268 /// <p>A capacity provider strategy consists of one or more capacity providers along with the <code>base</code> and <code>weight</code> to assign to them. A capacity provider must be associated with the cluster to be used in a capacity provider strategy. The <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html">PutClusterCapacityProviders</a> API is used to associate a capacity provider with a cluster. Only capacity providers with an <code>ACTIVE</code> or <code>UPDATING</code> status can be used.</p>
269 /// <p>If a <code>capacityProviderStrategy</code> is specified, the <code>launchType</code> parameter must be omitted. If no <code>capacityProviderStrategy</code> or <code>launchType</code> is specified, the <code>defaultCapacityProviderStrategy</code> for the cluster is used.</p>
270 /// <p>If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already be created. New capacity providers can be created with the <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCapacityProviderProvider.html">CreateCapacityProviderProvider</a>API operation.</p>
271 /// <p>To use a Fargate capacity provider, specify either the <code>FARGATE</code> or <code>FARGATE_SPOT</code> capacity providers. The Fargate capacity providers are available to all accounts and only need to be associated with a cluster to be used.</p>
272 /// <p>The <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html">PutClusterCapacityProviders</a> API operation is used to update the list of available capacity providers for a cluster after the cluster is created.</p>
273 pub fn get_capacity_provider_strategy(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::CapacityProviderStrategyItem>> {
274 self.inner.get_capacity_provider_strategy()
275 }
276 /// <p>The platform version that the tasks in the task set uses. A platform version is specified only for tasks using the Fargate launch type. If one isn't specified, the <code>LATEST</code> platform version is used.</p>
277 pub fn platform_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
278 self.inner = self.inner.platform_version(input.into());
279 self
280 }
281 /// <p>The platform version that the tasks in the task set uses. A platform version is specified only for tasks using the Fargate launch type. If one isn't specified, the <code>LATEST</code> platform version is used.</p>
282 pub fn set_platform_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
283 self.inner = self.inner.set_platform_version(input);
284 self
285 }
286 /// <p>The platform version that the tasks in the task set uses. A platform version is specified only for tasks using the Fargate launch type. If one isn't specified, the <code>LATEST</code> platform version is used.</p>
287 pub fn get_platform_version(&self) -> &::std::option::Option<::std::string::String> {
288 self.inner.get_platform_version()
289 }
290 /// <p>A floating-point percentage of the desired number of tasks to place and keep running in the task set.</p>
291 pub fn scale(mut self, input: crate::types::Scale) -> Self {
292 self.inner = self.inner.scale(input);
293 self
294 }
295 /// <p>A floating-point percentage of the desired number of tasks to place and keep running in the task set.</p>
296 pub fn set_scale(mut self, input: ::std::option::Option<crate::types::Scale>) -> Self {
297 self.inner = self.inner.set_scale(input);
298 self
299 }
300 /// <p>A floating-point percentage of the desired number of tasks to place and keep running in the task set.</p>
301 pub fn get_scale(&self) -> &::std::option::Option<crate::types::Scale> {
302 self.inner.get_scale()
303 }
304 /// <p>An identifier that you provide to ensure the idempotency of the request. It must be unique and is case sensitive. Up to 36 ASCII characters in the range of 33-126 (inclusive) are allowed.</p>
305 pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
306 self.inner = self.inner.client_token(input.into());
307 self
308 }
309 /// <p>An identifier that you provide to ensure the idempotency of the request. It must be unique and is case sensitive. Up to 36 ASCII characters in the range of 33-126 (inclusive) are allowed.</p>
310 pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
311 self.inner = self.inner.set_client_token(input);
312 self
313 }
314 /// <p>An identifier that you provide to ensure the idempotency of the request. It must be unique and is case sensitive. Up to 36 ASCII characters in the range of 33-126 (inclusive) are allowed.</p>
315 pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
316 self.inner.get_client_token()
317 }
318 ///
319 /// Appends an item to `tags`.
320 ///
321 /// To override the contents of this collection use [`set_tags`](Self::set_tags).
322 ///
323 /// <p>The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of a key and an optional value. You define both. When a service is deleted, the tags are deleted.</p>
324 /// <p>The following basic restrictions apply to tags:</p>
325 /// <ul>
326 /// <li>
327 /// <p>Maximum number of tags per resource - 50</p></li>
328 /// <li>
329 /// <p>For each resource, each tag key must be unique, and each tag key can have only one value.</p></li>
330 /// <li>
331 /// <p>Maximum key length - 128 Unicode characters in UTF-8</p></li>
332 /// <li>
333 /// <p>Maximum value length - 256 Unicode characters in UTF-8</p></li>
334 /// <li>
335 /// <p>If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.</p></li>
336 /// <li>
337 /// <p>Tag keys and values are case-sensitive.</p></li>
338 /// <li>
339 /// <p>Do not use <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.</p></li>
340 /// </ul>
341 pub fn tags(mut self, input: crate::types::Tag) -> Self {
342 self.inner = self.inner.tags(input);
343 self
344 }
345 /// <p>The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of a key and an optional value. You define both. When a service is deleted, the tags are deleted.</p>
346 /// <p>The following basic restrictions apply to tags:</p>
347 /// <ul>
348 /// <li>
349 /// <p>Maximum number of tags per resource - 50</p></li>
350 /// <li>
351 /// <p>For each resource, each tag key must be unique, and each tag key can have only one value.</p></li>
352 /// <li>
353 /// <p>Maximum key length - 128 Unicode characters in UTF-8</p></li>
354 /// <li>
355 /// <p>Maximum value length - 256 Unicode characters in UTF-8</p></li>
356 /// <li>
357 /// <p>If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.</p></li>
358 /// <li>
359 /// <p>Tag keys and values are case-sensitive.</p></li>
360 /// <li>
361 /// <p>Do not use <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.</p></li>
362 /// </ul>
363 pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
364 self.inner = self.inner.set_tags(input);
365 self
366 }
367 /// <p>The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of a key and an optional value. You define both. When a service is deleted, the tags are deleted.</p>
368 /// <p>The following basic restrictions apply to tags:</p>
369 /// <ul>
370 /// <li>
371 /// <p>Maximum number of tags per resource - 50</p></li>
372 /// <li>
373 /// <p>For each resource, each tag key must be unique, and each tag key can have only one value.</p></li>
374 /// <li>
375 /// <p>Maximum key length - 128 Unicode characters in UTF-8</p></li>
376 /// <li>
377 /// <p>Maximum value length - 256 Unicode characters in UTF-8</p></li>
378 /// <li>
379 /// <p>If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.</p></li>
380 /// <li>
381 /// <p>Tag keys and values are case-sensitive.</p></li>
382 /// <li>
383 /// <p>Do not use <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.</p></li>
384 /// </ul>
385 pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
386 self.inner.get_tags()
387 }
388}