1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>A data volume that's used in a job's container properties.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Volume {
/// <p>The contents of the <code>host</code> parameter determine whether your data volume persists on the host container instance and where it's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.</p><note>
/// <p>This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.</p>
/// </note>
pub host: ::std::option::Option<crate::types::Host>,
/// <p>The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the <code>sourceVolume</code> parameter of container definition <code>mountPoints</code>.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs that are running on Fargate resources must specify a <code>platformVersion</code> of at least <code>1.4.0</code>.</p>
pub efs_volume_configuration: ::std::option::Option<crate::types::EfsVolumeConfiguration>,
/// <p>This parameter is specified when you're using an S3Files file system for job storage.</p>
pub s3files_volume_configuration: ::std::option::Option<crate::types::S3FilesVolumeConfiguration>,
}
impl Volume {
/// <p>The contents of the <code>host</code> parameter determine whether your data volume persists on the host container instance and where it's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.</p><note>
/// <p>This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.</p>
/// </note>
pub fn host(&self) -> ::std::option::Option<&crate::types::Host> {
self.host.as_ref()
}
/// <p>The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the <code>sourceVolume</code> parameter of container definition <code>mountPoints</code>.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs that are running on Fargate resources must specify a <code>platformVersion</code> of at least <code>1.4.0</code>.</p>
pub fn efs_volume_configuration(&self) -> ::std::option::Option<&crate::types::EfsVolumeConfiguration> {
self.efs_volume_configuration.as_ref()
}
/// <p>This parameter is specified when you're using an S3Files file system for job storage.</p>
pub fn s3files_volume_configuration(&self) -> ::std::option::Option<&crate::types::S3FilesVolumeConfiguration> {
self.s3files_volume_configuration.as_ref()
}
}
impl Volume {
/// Creates a new builder-style object to manufacture [`Volume`](crate::types::Volume).
pub fn builder() -> crate::types::builders::VolumeBuilder {
crate::types::builders::VolumeBuilder::default()
}
}
/// A builder for [`Volume`](crate::types::Volume).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct VolumeBuilder {
pub(crate) host: ::std::option::Option<crate::types::Host>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) efs_volume_configuration: ::std::option::Option<crate::types::EfsVolumeConfiguration>,
pub(crate) s3files_volume_configuration: ::std::option::Option<crate::types::S3FilesVolumeConfiguration>,
}
impl VolumeBuilder {
/// <p>The contents of the <code>host</code> parameter determine whether your data volume persists on the host container instance and where it's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.</p><note>
/// <p>This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.</p>
/// </note>
pub fn host(mut self, input: crate::types::Host) -> Self {
self.host = ::std::option::Option::Some(input);
self
}
/// <p>The contents of the <code>host</code> parameter determine whether your data volume persists on the host container instance and where it's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.</p><note>
/// <p>This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.</p>
/// </note>
pub fn set_host(mut self, input: ::std::option::Option<crate::types::Host>) -> Self {
self.host = input;
self
}
/// <p>The contents of the <code>host</code> parameter determine whether your data volume persists on the host container instance and where it's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.</p><note>
/// <p>This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.</p>
/// </note>
pub fn get_host(&self) -> &::std::option::Option<crate::types::Host> {
&self.host
}
/// <p>The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the <code>sourceVolume</code> parameter of container definition <code>mountPoints</code>.</p>
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the <code>sourceVolume</code> parameter of container definition <code>mountPoints</code>.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the <code>sourceVolume</code> parameter of container definition <code>mountPoints</code>.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs that are running on Fargate resources must specify a <code>platformVersion</code> of at least <code>1.4.0</code>.</p>
pub fn efs_volume_configuration(mut self, input: crate::types::EfsVolumeConfiguration) -> Self {
self.efs_volume_configuration = ::std::option::Option::Some(input);
self
}
/// <p>This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs that are running on Fargate resources must specify a <code>platformVersion</code> of at least <code>1.4.0</code>.</p>
pub fn set_efs_volume_configuration(mut self, input: ::std::option::Option<crate::types::EfsVolumeConfiguration>) -> Self {
self.efs_volume_configuration = input;
self
}
/// <p>This parameter is specified when you're using an Amazon Elastic File System file system for job storage. Jobs that are running on Fargate resources must specify a <code>platformVersion</code> of at least <code>1.4.0</code>.</p>
pub fn get_efs_volume_configuration(&self) -> &::std::option::Option<crate::types::EfsVolumeConfiguration> {
&self.efs_volume_configuration
}
/// <p>This parameter is specified when you're using an S3Files file system for job storage.</p>
pub fn s3files_volume_configuration(mut self, input: crate::types::S3FilesVolumeConfiguration) -> Self {
self.s3files_volume_configuration = ::std::option::Option::Some(input);
self
}
/// <p>This parameter is specified when you're using an S3Files file system for job storage.</p>
pub fn set_s3files_volume_configuration(mut self, input: ::std::option::Option<crate::types::S3FilesVolumeConfiguration>) -> Self {
self.s3files_volume_configuration = input;
self
}
/// <p>This parameter is specified when you're using an S3Files file system for job storage.</p>
pub fn get_s3files_volume_configuration(&self) -> &::std::option::Option<crate::types::S3FilesVolumeConfiguration> {
&self.s3files_volume_configuration
}
/// Consumes the builder and constructs a [`Volume`](crate::types::Volume).
pub fn build(self) -> crate::types::Volume {
crate::types::Volume {
host: self.host,
name: self.name,
efs_volume_configuration: self.efs_volume_configuration,
s3files_volume_configuration: self.s3files_volume_configuration,
}
}
}