aws_sdk_ecs/operation/start_task/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::start_task::_start_task_output::StartTaskOutputBuilder;
3
4pub use crate::operation::start_task::_start_task_input::StartTaskInputBuilder;
5
6impl crate::operation::start_task::builders::StartTaskInputBuilder {
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::start_task::StartTaskOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::start_task::StartTaskError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.start_task();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `StartTask`.
24///
25/// <p>Starts a new task from the specified task definition on the specified container instance or instances.</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> <note>
28/// <p>Amazon Elastic Inference (EI) is no longer available to customers.</p>
29/// </note>
30/// <p>Alternatively, you can use<code>RunTask</code> to place tasks for you. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduling_tasks.html">Scheduling Tasks</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
31/// <p>You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-volumes.html#ebs-volume-types">Amazon EBS volumes</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
32#[derive(::std::clone::Clone, ::std::fmt::Debug)]
33pub struct StartTaskFluentBuilder {
34    handle: ::std::sync::Arc<crate::client::Handle>,
35    inner: crate::operation::start_task::builders::StartTaskInputBuilder,
36    config_override: ::std::option::Option<crate::config::Builder>,
37}
38impl crate::client::customize::internal::CustomizableSend<crate::operation::start_task::StartTaskOutput, crate::operation::start_task::StartTaskError>
39    for StartTaskFluentBuilder
40{
41    fn send(
42        self,
43        config_override: crate::config::Builder,
44    ) -> crate::client::customize::internal::BoxFuture<
45        crate::client::customize::internal::SendResult<crate::operation::start_task::StartTaskOutput, crate::operation::start_task::StartTaskError>,
46    > {
47        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48    }
49}
50impl StartTaskFluentBuilder {
51    /// Creates a new `StartTaskFluentBuilder`.
52    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53        Self {
54            handle,
55            inner: ::std::default::Default::default(),
56            config_override: ::std::option::Option::None,
57        }
58    }
59    /// Access the StartTask as a reference.
60    pub fn as_input(&self) -> &crate::operation::start_task::builders::StartTaskInputBuilder {
61        &self.inner
62    }
63    /// Sends the request and returns the response.
64    ///
65    /// If an error occurs, an `SdkError` will be returned with additional details that
66    /// can be matched against.
67    ///
68    /// By default, any retryable failures will be retried twice. Retry behavior
69    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
70    /// set when configuring the client.
71    pub async fn send(
72        self,
73    ) -> ::std::result::Result<
74        crate::operation::start_task::StartTaskOutput,
75        ::aws_smithy_runtime_api::client::result::SdkError<
76            crate::operation::start_task::StartTaskError,
77            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78        >,
79    > {
80        let input = self
81            .inner
82            .build()
83            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84        let runtime_plugins = crate::operation::start_task::StartTask::operation_runtime_plugins(
85            self.handle.runtime_plugins.clone(),
86            &self.handle.conf,
87            self.config_override,
88        );
89        crate::operation::start_task::StartTask::orchestrate(&runtime_plugins, input).await
90    }
91
92    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
93    pub fn customize(
94        self,
95    ) -> crate::client::customize::CustomizableOperation<
96        crate::operation::start_task::StartTaskOutput,
97        crate::operation::start_task::StartTaskError,
98        Self,
99    > {
100        crate::client::customize::CustomizableOperation::new(self)
101    }
102    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103        self.set_config_override(::std::option::Option::Some(config_override.into()));
104        self
105    }
106
107    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108        self.config_override = config_override;
109        self
110    }
111    /// <p>The short name or full Amazon Resource Name (ARN) of the cluster where to start your task. If you do not specify a cluster, the default cluster is assumed.</p>
112    pub fn cluster(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113        self.inner = self.inner.cluster(input.into());
114        self
115    }
116    /// <p>The short name or full Amazon Resource Name (ARN) of the cluster where to start your task. If you do not specify a cluster, the default cluster is assumed.</p>
117    pub fn set_cluster(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118        self.inner = self.inner.set_cluster(input);
119        self
120    }
121    /// <p>The short name or full Amazon Resource Name (ARN) of the cluster where to start your task. If you do not specify a cluster, the default cluster is assumed.</p>
122    pub fn get_cluster(&self) -> &::std::option::Option<::std::string::String> {
123        self.inner.get_cluster()
124    }
125    ///
126    /// Appends an item to `containerInstances`.
127    ///
128    /// To override the contents of this collection use [`set_container_instances`](Self::set_container_instances).
129    ///
130    /// <p>The container instance IDs or full ARN entries for the container instances where you would like to place your task. You can specify up to 10 container instances.</p>
131    pub fn container_instances(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
132        self.inner = self.inner.container_instances(input.into());
133        self
134    }
135    /// <p>The container instance IDs or full ARN entries for the container instances where you would like to place your task. You can specify up to 10 container instances.</p>
136    pub fn set_container_instances(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
137        self.inner = self.inner.set_container_instances(input);
138        self
139    }
140    /// <p>The container instance IDs or full ARN entries for the container instances where you would like to place your task. You can specify up to 10 container instances.</p>
141    pub fn get_container_instances(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
142        self.inner.get_container_instances()
143    }
144    /// <p>Specifies whether to use Amazon ECS managed tags for the task. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html">Tagging Your Amazon ECS Resources</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
145    pub fn enable_ecs_managed_tags(mut self, input: bool) -> Self {
146        self.inner = self.inner.enable_ecs_managed_tags(input);
147        self
148    }
149    /// <p>Specifies whether to use Amazon ECS managed tags for the task. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html">Tagging Your Amazon ECS Resources</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
150    pub fn set_enable_ecs_managed_tags(mut self, input: ::std::option::Option<bool>) -> Self {
151        self.inner = self.inner.set_enable_ecs_managed_tags(input);
152        self
153    }
154    /// <p>Specifies whether to use Amazon ECS managed tags for the task. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html">Tagging Your Amazon ECS Resources</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
155    pub fn get_enable_ecs_managed_tags(&self) -> &::std::option::Option<bool> {
156        self.inner.get_enable_ecs_managed_tags()
157    }
158    /// <p>Whether or not the execute command functionality is turned on for the task. If <code>true</code>, this turns on the execute command functionality on all containers in the task.</p>
159    pub fn enable_execute_command(mut self, input: bool) -> Self {
160        self.inner = self.inner.enable_execute_command(input);
161        self
162    }
163    /// <p>Whether or not the execute command functionality is turned on for the task. If <code>true</code>, this turns on the execute command functionality on all containers in the task.</p>
164    pub fn set_enable_execute_command(mut self, input: ::std::option::Option<bool>) -> Self {
165        self.inner = self.inner.set_enable_execute_command(input);
166        self
167    }
168    /// <p>Whether or not the execute command functionality is turned on for the task. If <code>true</code>, this turns on the execute command functionality on all containers in the task.</p>
169    pub fn get_enable_execute_command(&self) -> &::std::option::Option<bool> {
170        self.inner.get_enable_execute_command()
171    }
172    /// <p>The name of the task group to associate with the task. The default value is the family name of the task definition (for example, family:my-family-name).</p>
173    pub fn group(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
174        self.inner = self.inner.group(input.into());
175        self
176    }
177    /// <p>The name of the task group to associate with the task. The default value is the family name of the task definition (for example, family:my-family-name).</p>
178    pub fn set_group(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
179        self.inner = self.inner.set_group(input);
180        self
181    }
182    /// <p>The name of the task group to associate with the task. The default value is the family name of the task definition (for example, family:my-family-name).</p>
183    pub fn get_group(&self) -> &::std::option::Option<::std::string::String> {
184        self.inner.get_group()
185    }
186    /// <p>The VPC subnet and security group configuration for tasks that receive their own elastic network interface by using the <code>awsvpc</code> networking mode.</p>
187    pub fn network_configuration(mut self, input: crate::types::NetworkConfiguration) -> Self {
188        self.inner = self.inner.network_configuration(input);
189        self
190    }
191    /// <p>The VPC subnet and security group configuration for tasks that receive their own elastic network interface by using the <code>awsvpc</code> networking mode.</p>
192    pub fn set_network_configuration(mut self, input: ::std::option::Option<crate::types::NetworkConfiguration>) -> Self {
193        self.inner = self.inner.set_network_configuration(input);
194        self
195    }
196    /// <p>The VPC subnet and security group configuration for tasks that receive their own elastic network interface by using the <code>awsvpc</code> networking mode.</p>
197    pub fn get_network_configuration(&self) -> &::std::option::Option<crate::types::NetworkConfiguration> {
198        self.inner.get_network_configuration()
199    }
200    /// <p>A list of container overrides in JSON format that specify the name of a container in the specified task definition and the overrides it receives. You can override the default command for a container (that's specified in the task definition or Docker image) with a <code>command</code> override. You can also override existing environment variables (that are specified in the task definition or Docker image) on a container or add new environment variables to it with an <code>environment</code> override.</p><note>
201    /// <p>A total of 8192 characters are allowed for overrides. This limit includes the JSON formatting characters of the override structure.</p>
202    /// </note>
203    pub fn overrides(mut self, input: crate::types::TaskOverride) -> Self {
204        self.inner = self.inner.overrides(input);
205        self
206    }
207    /// <p>A list of container overrides in JSON format that specify the name of a container in the specified task definition and the overrides it receives. You can override the default command for a container (that's specified in the task definition or Docker image) with a <code>command</code> override. You can also override existing environment variables (that are specified in the task definition or Docker image) on a container or add new environment variables to it with an <code>environment</code> override.</p><note>
208    /// <p>A total of 8192 characters are allowed for overrides. This limit includes the JSON formatting characters of the override structure.</p>
209    /// </note>
210    pub fn set_overrides(mut self, input: ::std::option::Option<crate::types::TaskOverride>) -> Self {
211        self.inner = self.inner.set_overrides(input);
212        self
213    }
214    /// <p>A list of container overrides in JSON format that specify the name of a container in the specified task definition and the overrides it receives. You can override the default command for a container (that's specified in the task definition or Docker image) with a <code>command</code> override. You can also override existing environment variables (that are specified in the task definition or Docker image) on a container or add new environment variables to it with an <code>environment</code> override.</p><note>
215    /// <p>A total of 8192 characters are allowed for overrides. This limit includes the JSON formatting characters of the override structure.</p>
216    /// </note>
217    pub fn get_overrides(&self) -> &::std::option::Option<crate::types::TaskOverride> {
218        self.inner.get_overrides()
219    }
220    /// <p>Specifies whether to propagate the tags from the task definition or the service to the task. If no value is specified, the tags aren't propagated.</p>
221    pub fn propagate_tags(mut self, input: crate::types::PropagateTags) -> Self {
222        self.inner = self.inner.propagate_tags(input);
223        self
224    }
225    /// <p>Specifies whether to propagate the tags from the task definition or the service to the task. If no value is specified, the tags aren't propagated.</p>
226    pub fn set_propagate_tags(mut self, input: ::std::option::Option<crate::types::PropagateTags>) -> Self {
227        self.inner = self.inner.set_propagate_tags(input);
228        self
229    }
230    /// <p>Specifies whether to propagate the tags from the task definition or the service to the task. If no value is specified, the tags aren't propagated.</p>
231    pub fn get_propagate_tags(&self) -> &::std::option::Option<crate::types::PropagateTags> {
232        self.inner.get_propagate_tags()
233    }
234    /// <p>This parameter is only used by Amazon ECS. It is not intended for use by customers.</p>
235    pub fn reference_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
236        self.inner = self.inner.reference_id(input.into());
237        self
238    }
239    /// <p>This parameter is only used by Amazon ECS. It is not intended for use by customers.</p>
240    pub fn set_reference_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
241        self.inner = self.inner.set_reference_id(input);
242        self
243    }
244    /// <p>This parameter is only used by Amazon ECS. It is not intended for use by customers.</p>
245    pub fn get_reference_id(&self) -> &::std::option::Option<::std::string::String> {
246        self.inner.get_reference_id()
247    }
248    /// <p>An optional tag specified when a task is started. For example, if you automatically trigger a task to run a batch process job, you could apply a unique identifier for that job to your task with the <code>startedBy</code> parameter. You can then identify which tasks belong to that job by filtering the results of a <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListTasks.html">ListTasks</a> call with the <code>startedBy</code> value. Up to 36 letters (uppercase and lowercase), numbers, hyphens (-), forward slash (/), and underscores (_) are allowed.</p>
249    /// <p>If a task is started by an Amazon ECS service, the <code>startedBy</code> parameter contains the deployment ID of the service that starts it.</p>
250    pub fn started_by(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
251        self.inner = self.inner.started_by(input.into());
252        self
253    }
254    /// <p>An optional tag specified when a task is started. For example, if you automatically trigger a task to run a batch process job, you could apply a unique identifier for that job to your task with the <code>startedBy</code> parameter. You can then identify which tasks belong to that job by filtering the results of a <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListTasks.html">ListTasks</a> call with the <code>startedBy</code> value. Up to 36 letters (uppercase and lowercase), numbers, hyphens (-), forward slash (/), and underscores (_) are allowed.</p>
255    /// <p>If a task is started by an Amazon ECS service, the <code>startedBy</code> parameter contains the deployment ID of the service that starts it.</p>
256    pub fn set_started_by(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
257        self.inner = self.inner.set_started_by(input);
258        self
259    }
260    /// <p>An optional tag specified when a task is started. For example, if you automatically trigger a task to run a batch process job, you could apply a unique identifier for that job to your task with the <code>startedBy</code> parameter. You can then identify which tasks belong to that job by filtering the results of a <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListTasks.html">ListTasks</a> call with the <code>startedBy</code> value. Up to 36 letters (uppercase and lowercase), numbers, hyphens (-), forward slash (/), and underscores (_) are allowed.</p>
261    /// <p>If a task is started by an Amazon ECS service, the <code>startedBy</code> parameter contains the deployment ID of the service that starts it.</p>
262    pub fn get_started_by(&self) -> &::std::option::Option<::std::string::String> {
263        self.inner.get_started_by()
264    }
265    ///
266    /// Appends an item to `tags`.
267    ///
268    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
269    ///
270    /// <p>The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.</p>
271    /// <p>The following basic restrictions apply to tags:</p>
272    /// <ul>
273    /// <li>
274    /// <p>Maximum number of tags per resource - 50</p></li>
275    /// <li>
276    /// <p>For each resource, each tag key must be unique, and each tag key can have only one value.</p></li>
277    /// <li>
278    /// <p>Maximum key length - 128 Unicode characters in UTF-8</p></li>
279    /// <li>
280    /// <p>Maximum value length - 256 Unicode characters in UTF-8</p></li>
281    /// <li>
282    /// <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>
283    /// <li>
284    /// <p>Tag keys and values are case-sensitive.</p></li>
285    /// <li>
286    /// <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>
287    /// </ul>
288    pub fn tags(mut self, input: crate::types::Tag) -> Self {
289        self.inner = self.inner.tags(input);
290        self
291    }
292    /// <p>The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.</p>
293    /// <p>The following basic restrictions apply to tags:</p>
294    /// <ul>
295    /// <li>
296    /// <p>Maximum number of tags per resource - 50</p></li>
297    /// <li>
298    /// <p>For each resource, each tag key must be unique, and each tag key can have only one value.</p></li>
299    /// <li>
300    /// <p>Maximum key length - 128 Unicode characters in UTF-8</p></li>
301    /// <li>
302    /// <p>Maximum value length - 256 Unicode characters in UTF-8</p></li>
303    /// <li>
304    /// <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>
305    /// <li>
306    /// <p>Tag keys and values are case-sensitive.</p></li>
307    /// <li>
308    /// <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>
309    /// </ul>
310    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
311        self.inner = self.inner.set_tags(input);
312        self
313    }
314    /// <p>The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.</p>
315    /// <p>The following basic restrictions apply to tags:</p>
316    /// <ul>
317    /// <li>
318    /// <p>Maximum number of tags per resource - 50</p></li>
319    /// <li>
320    /// <p>For each resource, each tag key must be unique, and each tag key can have only one value.</p></li>
321    /// <li>
322    /// <p>Maximum key length - 128 Unicode characters in UTF-8</p></li>
323    /// <li>
324    /// <p>Maximum value length - 256 Unicode characters in UTF-8</p></li>
325    /// <li>
326    /// <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>
327    /// <li>
328    /// <p>Tag keys and values are case-sensitive.</p></li>
329    /// <li>
330    /// <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>
331    /// </ul>
332    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
333        self.inner.get_tags()
334    }
335    /// <p>The <code>family</code> and <code>revision</code> (<code>family:revision</code>) or full ARN of the task definition to start. If a <code>revision</code> isn't specified, the latest <code>ACTIVE</code> revision is used.</p>
336    pub fn task_definition(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
337        self.inner = self.inner.task_definition(input.into());
338        self
339    }
340    /// <p>The <code>family</code> and <code>revision</code> (<code>family:revision</code>) or full ARN of the task definition to start. If a <code>revision</code> isn't specified, the latest <code>ACTIVE</code> revision is used.</p>
341    pub fn set_task_definition(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
342        self.inner = self.inner.set_task_definition(input);
343        self
344    }
345    /// <p>The <code>family</code> and <code>revision</code> (<code>family:revision</code>) or full ARN of the task definition to start. If a <code>revision</code> isn't specified, the latest <code>ACTIVE</code> revision is used.</p>
346    pub fn get_task_definition(&self) -> &::std::option::Option<::std::string::String> {
347        self.inner.get_task_definition()
348    }
349    ///
350    /// Appends an item to `volumeConfigurations`.
351    ///
352    /// To override the contents of this collection use [`set_volume_configurations`](Self::set_volume_configurations).
353    ///
354    /// <p>The details of the volume that was <code>configuredAtLaunch</code>. You can configure the size, volumeType, IOPS, throughput, snapshot and encryption in <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskManagedEBSVolumeConfiguration.html">TaskManagedEBSVolumeConfiguration</a>. The <code>name</code> of the volume must match the <code>name</code> from the task definition.</p>
355    pub fn volume_configurations(mut self, input: crate::types::TaskVolumeConfiguration) -> Self {
356        self.inner = self.inner.volume_configurations(input);
357        self
358    }
359    /// <p>The details of the volume that was <code>configuredAtLaunch</code>. You can configure the size, volumeType, IOPS, throughput, snapshot and encryption in <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskManagedEBSVolumeConfiguration.html">TaskManagedEBSVolumeConfiguration</a>. The <code>name</code> of the volume must match the <code>name</code> from the task definition.</p>
360    pub fn set_volume_configurations(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::TaskVolumeConfiguration>>) -> Self {
361        self.inner = self.inner.set_volume_configurations(input);
362        self
363    }
364    /// <p>The details of the volume that was <code>configuredAtLaunch</code>. You can configure the size, volumeType, IOPS, throughput, snapshot and encryption in <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskManagedEBSVolumeConfiguration.html">TaskManagedEBSVolumeConfiguration</a>. The <code>name</code> of the volume must match the <code>name</code> from the task definition.</p>
365    pub fn get_volume_configurations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::TaskVolumeConfiguration>> {
366        self.inner.get_volume_configurations()
367    }
368}