aws_sdk_glue/operation/create_job/_create_job_input.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
5pub struct CreateJobInput {
6 /// <p>The name you assign to this job definition. It must be unique in your account.</p>
7 pub name: ::std::option::Option<::std::string::String>,
8 /// <p>A mode that describes how a job was created. Valid values are:</p>
9 /// <ul>
10 /// <li>
11 /// <p><code>SCRIPT</code> - The job was created using the Glue Studio script editor.</p></li>
12 /// <li>
13 /// <p><code>VISUAL</code> - The job was created using the Glue Studio visual editor.</p></li>
14 /// <li>
15 /// <p><code>NOTEBOOK</code> - The job was created using an interactive sessions notebook.</p></li>
16 /// </ul>
17 /// <p>When the <code>JobMode</code> field is missing or null, <code>SCRIPT</code> is assigned as the default value.</p>
18 pub job_mode: ::std::option::Option<crate::types::JobMode>,
19 /// <p>Specifies whether job run queuing is enabled for the job runs for this job.</p>
20 /// <p>A value of true means job run queuing is enabled for the job runs. If false or not populated, the job runs will not be considered for queueing.</p>
21 /// <p>If this field does not match the value set in the job run, then the value from the job run field will be used.</p>
22 pub job_run_queuing_enabled: ::std::option::Option<bool>,
23 /// <p>Description of the job being defined.</p>
24 pub description: ::std::option::Option<::std::string::String>,
25 /// <p>This field is reserved for future use.</p>
26 pub log_uri: ::std::option::Option<::std::string::String>,
27 /// <p>The name or Amazon Resource Name (ARN) of the IAM role associated with this job.</p>
28 pub role: ::std::option::Option<::std::string::String>,
29 /// <p>An <code>ExecutionProperty</code> specifying the maximum number of concurrent runs allowed for this job.</p>
30 pub execution_property: ::std::option::Option<crate::types::ExecutionProperty>,
31 /// <p>The <code>JobCommand</code> that runs this job.</p>
32 pub command: ::std::option::Option<crate::types::JobCommand>,
33 /// <p>The default arguments for every run of this job, specified as name-value pairs.</p>
34 /// <p>You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.</p>
35 /// <p>Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep them within the Job.</p>
36 /// <p>For information about how to specify and consume your own Job arguments, see the <a href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling Glue APIs in Python</a> topic in the developer guide.</p>
37 /// <p>For information about the arguments you can provide to this field when configuring Spark jobs, see the <a href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special Parameters Used by Glue</a> topic in the developer guide.</p>
38 /// <p>For information about the arguments you can provide to this field when configuring Ray jobs, see <a href="https://docs.aws.amazon.com/glue/latest/dg/author-job-ray-job-parameters.html">Using job parameters in Ray jobs</a> in the developer guide.</p>
39 pub default_arguments: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
40 /// <p>Arguments for this job that are not overridden when providing job arguments in a job run, specified as name-value pairs.</p>
41 pub non_overridable_arguments: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
42 /// <p>The connections used for this job.</p>
43 pub connections: ::std::option::Option<crate::types::ConnectionsList>,
44 /// <p>The maximum number of times to retry this job if it fails.</p>
45 pub max_retries: ::std::option::Option<i32>,
46 /// <p>This parameter is deprecated. Use <code>MaxCapacity</code> instead.</p>
47 /// <p>The number of Glue data processing units (DPUs) to allocate to this Job. You can allocate a minimum of 2 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the <a href="https://aws.amazon.com/glue/pricing/">Glue pricing page</a>.</p>
48 #[deprecated(note = "This property is deprecated, use MaxCapacity instead.")]
49 pub allocated_capacity: ::std::option::Option<i32>,
50 /// <p>The job timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters <code>TIMEOUT</code> status.</p>
51 /// <p>Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.</p>
52 /// <p>When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.</p>
53 /// <p>Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.</p>
54 /// <p>For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.</p>
55 pub timeout: ::std::option::Option<i32>,
56 /// <p>For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the <a href="https://aws.amazon.com/glue/pricing/"> Glue pricing page</a>.</p>
57 /// <p>For Glue version 2.0+ jobs, you cannot specify a <code>Maximum capacity</code>. Instead, you should specify a <code>Worker type</code> and the <code>Number of workers</code>.</p>
58 /// <p>Do not set <code>MaxCapacity</code> if using <code>WorkerType</code> and <code>NumberOfWorkers</code>.</p>
59 /// <p>The value that can be allocated for <code>MaxCapacity</code> depends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:</p>
60 /// <ul>
61 /// <li>
62 /// <p>When you specify a Python shell job (<code>JobCommand.Name</code>="pythonshell"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.</p></li>
63 /// <li>
64 /// <p>When you specify an Apache Spark ETL job (<code>JobCommand.Name</code>="glueetl") or Apache Spark streaming ETL job (<code>JobCommand.Name</code>="gluestreaming"), you can allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.</p></li>
65 /// </ul>
66 pub max_capacity: ::std::option::Option<f64>,
67 /// <p>The name of the <code>SecurityConfiguration</code> structure to be used with this job.</p>
68 pub security_configuration: ::std::option::Option<::std::string::String>,
69 /// <p>The tags to use with this job. You may use tags to limit access to the job. For more information about tags in Glue, see <a href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">Amazon Web Services Tags in Glue</a> in the developer guide.</p>
70 pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
71 /// <p>Specifies configuration properties of a job notification.</p>
72 pub notification_property: ::std::option::Option<crate::types::NotificationProperty>,
73 /// <p>In Spark jobs, <code>GlueVersion</code> determines the versions of Apache Spark and Python that Glue available in a job. The Python version indicates the version supported for jobs of type Spark.</p>
74 /// <p>Ray jobs should set <code>GlueVersion</code> to <code>4.0</code> or greater. However, the versions of Ray, Python and additional libraries available in your Ray job are determined by the <code>Runtime</code> parameter of the Job command.</p>
75 /// <p>For more information about the available Glue versions and corresponding Spark and Python versions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Glue version</a> in the developer guide.</p>
76 /// <p>Jobs that are created without specifying a Glue version default to Glue 6.0.</p>
77 /// <p>Set <code>GlueVersion</code> to <code>auto</code> to turn on automatic version upgrades for the job. For more information, see <a href="https://docs.aws.amazon.com/glue/latest/dg/auto-version-upgrades.html">Automatic version upgrades for Glue jobs</a> in the developer guide. For the job requirements, see <a href="https://docs.aws.amazon.com/glue/latest/dg/auto-version-upgrades.html#auto-version-upgrades-before-you-start">Before you start</a>.</p>
78 pub glue_version: ::std::option::Option<::std::string::String>,
79 /// <p>The number of workers of a defined <code>workerType</code> that are allocated when a job runs.</p>
80 pub number_of_workers: ::std::option::Option<i32>,
81 /// <p>The type of predefined worker that is allocated when a job runs. Accepts a value of G.025X, G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray jobs.</p>
82 /// <ul>
83 /// <li>
84 /// <p>For the <code>G.025X</code> worker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs.</p></li>
85 /// <li>
86 /// <p>For the <code>G.1X</code> worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.</p></li>
87 /// <li>
88 /// <p>For the <code>G.2X</code> worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.</p></li>
89 /// <li>
90 /// <p>For the <code>G.4X</code> worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
91 /// <li>
92 /// <p>For the <code>G.8X</code> worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
93 /// <li>
94 /// <p>For the <code>G.12X</code> worker type, each worker maps to 12 DPU (48 vCPUs, 192 GB of memory) with 768GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
95 /// <li>
96 /// <p>For the <code>G.16X</code> worker type, each worker maps to 16 DPU (64 vCPUs, 256 GB of memory) with 1024GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
97 /// <li>
98 /// <p>For the <code>R.1X</code> worker type, each worker maps to 1 M-DPU (4 vCPUs, 32 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
99 /// <li>
100 /// <p>For the <code>R.2X</code> worker type, each worker maps to 2 M-DPU (8 vCPUs, 64 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
101 /// <li>
102 /// <p>For the <code>R.4X</code> worker type, each worker maps to 4 M-DPU (16 vCPUs, 128 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
103 /// <li>
104 /// <p>For the <code>R.8X</code> worker type, each worker maps to 8 M-DPU (32 vCPUs, 256 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
105 /// <li>
106 /// <p>For the <code>Z.2X</code> worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.</p></li>
107 /// </ul>
108 pub worker_type: ::std::option::Option<crate::types::WorkerType>,
109 /// <p>The representation of a directed acyclic graph on which both the Glue Studio visual component and Glue Studio code generation is based.</p>
110 pub code_gen_configuration_nodes:
111 ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::CodeGenConfigurationNode>>,
112 /// <p>Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.</p>
113 /// <p>The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.</p>
114 /// <p>Only jobs with Glue version 3.0 and above and command type <code>glueetl</code> will be allowed to set <code>ExecutionClass</code> to <code>FLEX</code>. The flexible execution class is available for Spark jobs.</p>
115 pub execution_class: ::std::option::Option<crate::types::ExecutionClass>,
116 /// <p>The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.</p>
117 pub source_control_details: ::std::option::Option<crate::types::SourceControlDetails>,
118 /// <p>This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.</p>
119 /// <p>Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.</p>
120 pub maintenance_window: ::std::option::Option<::std::string::String>,
121}
122impl CreateJobInput {
123 /// <p>The name you assign to this job definition. It must be unique in your account.</p>
124 pub fn name(&self) -> ::std::option::Option<&str> {
125 self.name.as_deref()
126 }
127 /// <p>A mode that describes how a job was created. Valid values are:</p>
128 /// <ul>
129 /// <li>
130 /// <p><code>SCRIPT</code> - The job was created using the Glue Studio script editor.</p></li>
131 /// <li>
132 /// <p><code>VISUAL</code> - The job was created using the Glue Studio visual editor.</p></li>
133 /// <li>
134 /// <p><code>NOTEBOOK</code> - The job was created using an interactive sessions notebook.</p></li>
135 /// </ul>
136 /// <p>When the <code>JobMode</code> field is missing or null, <code>SCRIPT</code> is assigned as the default value.</p>
137 pub fn job_mode(&self) -> ::std::option::Option<&crate::types::JobMode> {
138 self.job_mode.as_ref()
139 }
140 /// <p>Specifies whether job run queuing is enabled for the job runs for this job.</p>
141 /// <p>A value of true means job run queuing is enabled for the job runs. If false or not populated, the job runs will not be considered for queueing.</p>
142 /// <p>If this field does not match the value set in the job run, then the value from the job run field will be used.</p>
143 pub fn job_run_queuing_enabled(&self) -> ::std::option::Option<bool> {
144 self.job_run_queuing_enabled
145 }
146 /// <p>Description of the job being defined.</p>
147 pub fn description(&self) -> ::std::option::Option<&str> {
148 self.description.as_deref()
149 }
150 /// <p>This field is reserved for future use.</p>
151 pub fn log_uri(&self) -> ::std::option::Option<&str> {
152 self.log_uri.as_deref()
153 }
154 /// <p>The name or Amazon Resource Name (ARN) of the IAM role associated with this job.</p>
155 pub fn role(&self) -> ::std::option::Option<&str> {
156 self.role.as_deref()
157 }
158 /// <p>An <code>ExecutionProperty</code> specifying the maximum number of concurrent runs allowed for this job.</p>
159 pub fn execution_property(&self) -> ::std::option::Option<&crate::types::ExecutionProperty> {
160 self.execution_property.as_ref()
161 }
162 /// <p>The <code>JobCommand</code> that runs this job.</p>
163 pub fn command(&self) -> ::std::option::Option<&crate::types::JobCommand> {
164 self.command.as_ref()
165 }
166 /// <p>The default arguments for every run of this job, specified as name-value pairs.</p>
167 /// <p>You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.</p>
168 /// <p>Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep them within the Job.</p>
169 /// <p>For information about how to specify and consume your own Job arguments, see the <a href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling Glue APIs in Python</a> topic in the developer guide.</p>
170 /// <p>For information about the arguments you can provide to this field when configuring Spark jobs, see the <a href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special Parameters Used by Glue</a> topic in the developer guide.</p>
171 /// <p>For information about the arguments you can provide to this field when configuring Ray jobs, see <a href="https://docs.aws.amazon.com/glue/latest/dg/author-job-ray-job-parameters.html">Using job parameters in Ray jobs</a> in the developer guide.</p>
172 pub fn default_arguments(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
173 self.default_arguments.as_ref()
174 }
175 /// <p>Arguments for this job that are not overridden when providing job arguments in a job run, specified as name-value pairs.</p>
176 pub fn non_overridable_arguments(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
177 self.non_overridable_arguments.as_ref()
178 }
179 /// <p>The connections used for this job.</p>
180 pub fn connections(&self) -> ::std::option::Option<&crate::types::ConnectionsList> {
181 self.connections.as_ref()
182 }
183 /// <p>The maximum number of times to retry this job if it fails.</p>
184 pub fn max_retries(&self) -> ::std::option::Option<i32> {
185 self.max_retries
186 }
187 /// <p>This parameter is deprecated. Use <code>MaxCapacity</code> instead.</p>
188 /// <p>The number of Glue data processing units (DPUs) to allocate to this Job. You can allocate a minimum of 2 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the <a href="https://aws.amazon.com/glue/pricing/">Glue pricing page</a>.</p>
189 #[deprecated(note = "This property is deprecated, use MaxCapacity instead.")]
190 pub fn allocated_capacity(&self) -> ::std::option::Option<i32> {
191 self.allocated_capacity
192 }
193 /// <p>The job timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters <code>TIMEOUT</code> status.</p>
194 /// <p>Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.</p>
195 /// <p>When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.</p>
196 /// <p>Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.</p>
197 /// <p>For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.</p>
198 pub fn timeout(&self) -> ::std::option::Option<i32> {
199 self.timeout
200 }
201 /// <p>For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the <a href="https://aws.amazon.com/glue/pricing/"> Glue pricing page</a>.</p>
202 /// <p>For Glue version 2.0+ jobs, you cannot specify a <code>Maximum capacity</code>. Instead, you should specify a <code>Worker type</code> and the <code>Number of workers</code>.</p>
203 /// <p>Do not set <code>MaxCapacity</code> if using <code>WorkerType</code> and <code>NumberOfWorkers</code>.</p>
204 /// <p>The value that can be allocated for <code>MaxCapacity</code> depends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:</p>
205 /// <ul>
206 /// <li>
207 /// <p>When you specify a Python shell job (<code>JobCommand.Name</code>="pythonshell"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.</p></li>
208 /// <li>
209 /// <p>When you specify an Apache Spark ETL job (<code>JobCommand.Name</code>="glueetl") or Apache Spark streaming ETL job (<code>JobCommand.Name</code>="gluestreaming"), you can allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.</p></li>
210 /// </ul>
211 pub fn max_capacity(&self) -> ::std::option::Option<f64> {
212 self.max_capacity
213 }
214 /// <p>The name of the <code>SecurityConfiguration</code> structure to be used with this job.</p>
215 pub fn security_configuration(&self) -> ::std::option::Option<&str> {
216 self.security_configuration.as_deref()
217 }
218 /// <p>The tags to use with this job. You may use tags to limit access to the job. For more information about tags in Glue, see <a href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">Amazon Web Services Tags in Glue</a> in the developer guide.</p>
219 pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
220 self.tags.as_ref()
221 }
222 /// <p>Specifies configuration properties of a job notification.</p>
223 pub fn notification_property(&self) -> ::std::option::Option<&crate::types::NotificationProperty> {
224 self.notification_property.as_ref()
225 }
226 /// <p>In Spark jobs, <code>GlueVersion</code> determines the versions of Apache Spark and Python that Glue available in a job. The Python version indicates the version supported for jobs of type Spark.</p>
227 /// <p>Ray jobs should set <code>GlueVersion</code> to <code>4.0</code> or greater. However, the versions of Ray, Python and additional libraries available in your Ray job are determined by the <code>Runtime</code> parameter of the Job command.</p>
228 /// <p>For more information about the available Glue versions and corresponding Spark and Python versions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Glue version</a> in the developer guide.</p>
229 /// <p>Jobs that are created without specifying a Glue version default to Glue 6.0.</p>
230 /// <p>Set <code>GlueVersion</code> to <code>auto</code> to turn on automatic version upgrades for the job. For more information, see <a href="https://docs.aws.amazon.com/glue/latest/dg/auto-version-upgrades.html">Automatic version upgrades for Glue jobs</a> in the developer guide. For the job requirements, see <a href="https://docs.aws.amazon.com/glue/latest/dg/auto-version-upgrades.html#auto-version-upgrades-before-you-start">Before you start</a>.</p>
231 pub fn glue_version(&self) -> ::std::option::Option<&str> {
232 self.glue_version.as_deref()
233 }
234 /// <p>The number of workers of a defined <code>workerType</code> that are allocated when a job runs.</p>
235 pub fn number_of_workers(&self) -> ::std::option::Option<i32> {
236 self.number_of_workers
237 }
238 /// <p>The type of predefined worker that is allocated when a job runs. Accepts a value of G.025X, G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray jobs.</p>
239 /// <ul>
240 /// <li>
241 /// <p>For the <code>G.025X</code> worker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs.</p></li>
242 /// <li>
243 /// <p>For the <code>G.1X</code> worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.</p></li>
244 /// <li>
245 /// <p>For the <code>G.2X</code> worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.</p></li>
246 /// <li>
247 /// <p>For the <code>G.4X</code> worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
248 /// <li>
249 /// <p>For the <code>G.8X</code> worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
250 /// <li>
251 /// <p>For the <code>G.12X</code> worker type, each worker maps to 12 DPU (48 vCPUs, 192 GB of memory) with 768GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
252 /// <li>
253 /// <p>For the <code>G.16X</code> worker type, each worker maps to 16 DPU (64 vCPUs, 256 GB of memory) with 1024GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
254 /// <li>
255 /// <p>For the <code>R.1X</code> worker type, each worker maps to 1 M-DPU (4 vCPUs, 32 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
256 /// <li>
257 /// <p>For the <code>R.2X</code> worker type, each worker maps to 2 M-DPU (8 vCPUs, 64 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
258 /// <li>
259 /// <p>For the <code>R.4X</code> worker type, each worker maps to 4 M-DPU (16 vCPUs, 128 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
260 /// <li>
261 /// <p>For the <code>R.8X</code> worker type, each worker maps to 8 M-DPU (32 vCPUs, 256 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
262 /// <li>
263 /// <p>For the <code>Z.2X</code> worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.</p></li>
264 /// </ul>
265 pub fn worker_type(&self) -> ::std::option::Option<&crate::types::WorkerType> {
266 self.worker_type.as_ref()
267 }
268 /// <p>The representation of a directed acyclic graph on which both the Glue Studio visual component and Glue Studio code generation is based.</p>
269 pub fn code_gen_configuration_nodes(
270 &self,
271 ) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::CodeGenConfigurationNode>> {
272 self.code_gen_configuration_nodes.as_ref()
273 }
274 /// <p>Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.</p>
275 /// <p>The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.</p>
276 /// <p>Only jobs with Glue version 3.0 and above and command type <code>glueetl</code> will be allowed to set <code>ExecutionClass</code> to <code>FLEX</code>. The flexible execution class is available for Spark jobs.</p>
277 pub fn execution_class(&self) -> ::std::option::Option<&crate::types::ExecutionClass> {
278 self.execution_class.as_ref()
279 }
280 /// <p>The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.</p>
281 pub fn source_control_details(&self) -> ::std::option::Option<&crate::types::SourceControlDetails> {
282 self.source_control_details.as_ref()
283 }
284 /// <p>This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.</p>
285 /// <p>Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.</p>
286 pub fn maintenance_window(&self) -> ::std::option::Option<&str> {
287 self.maintenance_window.as_deref()
288 }
289}
290impl ::std::fmt::Debug for CreateJobInput {
291 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
292 let mut formatter = f.debug_struct("CreateJobInput");
293 formatter.field("name", &self.name);
294 formatter.field("job_mode", &self.job_mode);
295 formatter.field("job_run_queuing_enabled", &self.job_run_queuing_enabled);
296 formatter.field("description", &self.description);
297 formatter.field("log_uri", &self.log_uri);
298 formatter.field("role", &self.role);
299 formatter.field("execution_property", &self.execution_property);
300 formatter.field("command", &self.command);
301 formatter.field("default_arguments", &self.default_arguments);
302 formatter.field("non_overridable_arguments", &self.non_overridable_arguments);
303 formatter.field("connections", &self.connections);
304 formatter.field("max_retries", &self.max_retries);
305 formatter.field("allocated_capacity", &self.allocated_capacity);
306 formatter.field("timeout", &self.timeout);
307 formatter.field("max_capacity", &self.max_capacity);
308 formatter.field("security_configuration", &self.security_configuration);
309 formatter.field("tags", &self.tags);
310 formatter.field("notification_property", &self.notification_property);
311 formatter.field("glue_version", &self.glue_version);
312 formatter.field("number_of_workers", &self.number_of_workers);
313 formatter.field("worker_type", &self.worker_type);
314 formatter.field("code_gen_configuration_nodes", &"*** Sensitive Data Redacted ***");
315 formatter.field("execution_class", &self.execution_class);
316 formatter.field("source_control_details", &self.source_control_details);
317 formatter.field("maintenance_window", &self.maintenance_window);
318 formatter.finish()
319 }
320}
321impl CreateJobInput {
322 /// Creates a new builder-style object to manufacture [`CreateJobInput`](crate::operation::create_job::CreateJobInput).
323 pub fn builder() -> crate::operation::create_job::builders::CreateJobInputBuilder {
324 crate::operation::create_job::builders::CreateJobInputBuilder::default()
325 }
326}
327
328/// A builder for [`CreateJobInput`](crate::operation::create_job::CreateJobInput).
329#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
330#[non_exhaustive]
331pub struct CreateJobInputBuilder {
332 pub(crate) name: ::std::option::Option<::std::string::String>,
333 pub(crate) job_mode: ::std::option::Option<crate::types::JobMode>,
334 pub(crate) job_run_queuing_enabled: ::std::option::Option<bool>,
335 pub(crate) description: ::std::option::Option<::std::string::String>,
336 pub(crate) log_uri: ::std::option::Option<::std::string::String>,
337 pub(crate) role: ::std::option::Option<::std::string::String>,
338 pub(crate) execution_property: ::std::option::Option<crate::types::ExecutionProperty>,
339 pub(crate) command: ::std::option::Option<crate::types::JobCommand>,
340 pub(crate) default_arguments: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
341 pub(crate) non_overridable_arguments: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
342 pub(crate) connections: ::std::option::Option<crate::types::ConnectionsList>,
343 pub(crate) max_retries: ::std::option::Option<i32>,
344 pub(crate) allocated_capacity: ::std::option::Option<i32>,
345 pub(crate) timeout: ::std::option::Option<i32>,
346 pub(crate) max_capacity: ::std::option::Option<f64>,
347 pub(crate) security_configuration: ::std::option::Option<::std::string::String>,
348 pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
349 pub(crate) notification_property: ::std::option::Option<crate::types::NotificationProperty>,
350 pub(crate) glue_version: ::std::option::Option<::std::string::String>,
351 pub(crate) number_of_workers: ::std::option::Option<i32>,
352 pub(crate) worker_type: ::std::option::Option<crate::types::WorkerType>,
353 pub(crate) code_gen_configuration_nodes:
354 ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::CodeGenConfigurationNode>>,
355 pub(crate) execution_class: ::std::option::Option<crate::types::ExecutionClass>,
356 pub(crate) source_control_details: ::std::option::Option<crate::types::SourceControlDetails>,
357 pub(crate) maintenance_window: ::std::option::Option<::std::string::String>,
358}
359impl CreateJobInputBuilder {
360 /// <p>The name you assign to this job definition. It must be unique in your account.</p>
361 /// This field is required.
362 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
363 self.name = ::std::option::Option::Some(input.into());
364 self
365 }
366 /// <p>The name you assign to this job definition. It must be unique in your account.</p>
367 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
368 self.name = input;
369 self
370 }
371 /// <p>The name you assign to this job definition. It must be unique in your account.</p>
372 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
373 &self.name
374 }
375 /// <p>A mode that describes how a job was created. Valid values are:</p>
376 /// <ul>
377 /// <li>
378 /// <p><code>SCRIPT</code> - The job was created using the Glue Studio script editor.</p></li>
379 /// <li>
380 /// <p><code>VISUAL</code> - The job was created using the Glue Studio visual editor.</p></li>
381 /// <li>
382 /// <p><code>NOTEBOOK</code> - The job was created using an interactive sessions notebook.</p></li>
383 /// </ul>
384 /// <p>When the <code>JobMode</code> field is missing or null, <code>SCRIPT</code> is assigned as the default value.</p>
385 pub fn job_mode(mut self, input: crate::types::JobMode) -> Self {
386 self.job_mode = ::std::option::Option::Some(input);
387 self
388 }
389 /// <p>A mode that describes how a job was created. Valid values are:</p>
390 /// <ul>
391 /// <li>
392 /// <p><code>SCRIPT</code> - The job was created using the Glue Studio script editor.</p></li>
393 /// <li>
394 /// <p><code>VISUAL</code> - The job was created using the Glue Studio visual editor.</p></li>
395 /// <li>
396 /// <p><code>NOTEBOOK</code> - The job was created using an interactive sessions notebook.</p></li>
397 /// </ul>
398 /// <p>When the <code>JobMode</code> field is missing or null, <code>SCRIPT</code> is assigned as the default value.</p>
399 pub fn set_job_mode(mut self, input: ::std::option::Option<crate::types::JobMode>) -> Self {
400 self.job_mode = input;
401 self
402 }
403 /// <p>A mode that describes how a job was created. Valid values are:</p>
404 /// <ul>
405 /// <li>
406 /// <p><code>SCRIPT</code> - The job was created using the Glue Studio script editor.</p></li>
407 /// <li>
408 /// <p><code>VISUAL</code> - The job was created using the Glue Studio visual editor.</p></li>
409 /// <li>
410 /// <p><code>NOTEBOOK</code> - The job was created using an interactive sessions notebook.</p></li>
411 /// </ul>
412 /// <p>When the <code>JobMode</code> field is missing or null, <code>SCRIPT</code> is assigned as the default value.</p>
413 pub fn get_job_mode(&self) -> &::std::option::Option<crate::types::JobMode> {
414 &self.job_mode
415 }
416 /// <p>Specifies whether job run queuing is enabled for the job runs for this job.</p>
417 /// <p>A value of true means job run queuing is enabled for the job runs. If false or not populated, the job runs will not be considered for queueing.</p>
418 /// <p>If this field does not match the value set in the job run, then the value from the job run field will be used.</p>
419 pub fn job_run_queuing_enabled(mut self, input: bool) -> Self {
420 self.job_run_queuing_enabled = ::std::option::Option::Some(input);
421 self
422 }
423 /// <p>Specifies whether job run queuing is enabled for the job runs for this job.</p>
424 /// <p>A value of true means job run queuing is enabled for the job runs. If false or not populated, the job runs will not be considered for queueing.</p>
425 /// <p>If this field does not match the value set in the job run, then the value from the job run field will be used.</p>
426 pub fn set_job_run_queuing_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
427 self.job_run_queuing_enabled = input;
428 self
429 }
430 /// <p>Specifies whether job run queuing is enabled for the job runs for this job.</p>
431 /// <p>A value of true means job run queuing is enabled for the job runs. If false or not populated, the job runs will not be considered for queueing.</p>
432 /// <p>If this field does not match the value set in the job run, then the value from the job run field will be used.</p>
433 pub fn get_job_run_queuing_enabled(&self) -> &::std::option::Option<bool> {
434 &self.job_run_queuing_enabled
435 }
436 /// <p>Description of the job being defined.</p>
437 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
438 self.description = ::std::option::Option::Some(input.into());
439 self
440 }
441 /// <p>Description of the job being defined.</p>
442 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
443 self.description = input;
444 self
445 }
446 /// <p>Description of the job being defined.</p>
447 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
448 &self.description
449 }
450 /// <p>This field is reserved for future use.</p>
451 pub fn log_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
452 self.log_uri = ::std::option::Option::Some(input.into());
453 self
454 }
455 /// <p>This field is reserved for future use.</p>
456 pub fn set_log_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
457 self.log_uri = input;
458 self
459 }
460 /// <p>This field is reserved for future use.</p>
461 pub fn get_log_uri(&self) -> &::std::option::Option<::std::string::String> {
462 &self.log_uri
463 }
464 /// <p>The name or Amazon Resource Name (ARN) of the IAM role associated with this job.</p>
465 /// This field is required.
466 pub fn role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
467 self.role = ::std::option::Option::Some(input.into());
468 self
469 }
470 /// <p>The name or Amazon Resource Name (ARN) of the IAM role associated with this job.</p>
471 pub fn set_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
472 self.role = input;
473 self
474 }
475 /// <p>The name or Amazon Resource Name (ARN) of the IAM role associated with this job.</p>
476 pub fn get_role(&self) -> &::std::option::Option<::std::string::String> {
477 &self.role
478 }
479 /// <p>An <code>ExecutionProperty</code> specifying the maximum number of concurrent runs allowed for this job.</p>
480 pub fn execution_property(mut self, input: crate::types::ExecutionProperty) -> Self {
481 self.execution_property = ::std::option::Option::Some(input);
482 self
483 }
484 /// <p>An <code>ExecutionProperty</code> specifying the maximum number of concurrent runs allowed for this job.</p>
485 pub fn set_execution_property(mut self, input: ::std::option::Option<crate::types::ExecutionProperty>) -> Self {
486 self.execution_property = input;
487 self
488 }
489 /// <p>An <code>ExecutionProperty</code> specifying the maximum number of concurrent runs allowed for this job.</p>
490 pub fn get_execution_property(&self) -> &::std::option::Option<crate::types::ExecutionProperty> {
491 &self.execution_property
492 }
493 /// <p>The <code>JobCommand</code> that runs this job.</p>
494 /// This field is required.
495 pub fn command(mut self, input: crate::types::JobCommand) -> Self {
496 self.command = ::std::option::Option::Some(input);
497 self
498 }
499 /// <p>The <code>JobCommand</code> that runs this job.</p>
500 pub fn set_command(mut self, input: ::std::option::Option<crate::types::JobCommand>) -> Self {
501 self.command = input;
502 self
503 }
504 /// <p>The <code>JobCommand</code> that runs this job.</p>
505 pub fn get_command(&self) -> &::std::option::Option<crate::types::JobCommand> {
506 &self.command
507 }
508 /// Adds a key-value pair to `default_arguments`.
509 ///
510 /// To override the contents of this collection use [`set_default_arguments`](Self::set_default_arguments).
511 ///
512 /// <p>The default arguments for every run of this job, specified as name-value pairs.</p>
513 /// <p>You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.</p>
514 /// <p>Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep them within the Job.</p>
515 /// <p>For information about how to specify and consume your own Job arguments, see the <a href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling Glue APIs in Python</a> topic in the developer guide.</p>
516 /// <p>For information about the arguments you can provide to this field when configuring Spark jobs, see the <a href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special Parameters Used by Glue</a> topic in the developer guide.</p>
517 /// <p>For information about the arguments you can provide to this field when configuring Ray jobs, see <a href="https://docs.aws.amazon.com/glue/latest/dg/author-job-ray-job-parameters.html">Using job parameters in Ray jobs</a> in the developer guide.</p>
518 pub fn default_arguments(
519 mut self,
520 k: impl ::std::convert::Into<::std::string::String>,
521 v: impl ::std::convert::Into<::std::string::String>,
522 ) -> Self {
523 let mut hash_map = self.default_arguments.unwrap_or_default();
524 hash_map.insert(k.into(), v.into());
525 self.default_arguments = ::std::option::Option::Some(hash_map);
526 self
527 }
528 /// <p>The default arguments for every run of this job, specified as name-value pairs.</p>
529 /// <p>You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.</p>
530 /// <p>Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep them within the Job.</p>
531 /// <p>For information about how to specify and consume your own Job arguments, see the <a href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling Glue APIs in Python</a> topic in the developer guide.</p>
532 /// <p>For information about the arguments you can provide to this field when configuring Spark jobs, see the <a href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special Parameters Used by Glue</a> topic in the developer guide.</p>
533 /// <p>For information about the arguments you can provide to this field when configuring Ray jobs, see <a href="https://docs.aws.amazon.com/glue/latest/dg/author-job-ray-job-parameters.html">Using job parameters in Ray jobs</a> in the developer guide.</p>
534 pub fn set_default_arguments(
535 mut self,
536 input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
537 ) -> Self {
538 self.default_arguments = input;
539 self
540 }
541 /// <p>The default arguments for every run of this job, specified as name-value pairs.</p>
542 /// <p>You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.</p>
543 /// <p>Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep them within the Job.</p>
544 /// <p>For information about how to specify and consume your own Job arguments, see the <a href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html">Calling Glue APIs in Python</a> topic in the developer guide.</p>
545 /// <p>For information about the arguments you can provide to this field when configuring Spark jobs, see the <a href="https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html">Special Parameters Used by Glue</a> topic in the developer guide.</p>
546 /// <p>For information about the arguments you can provide to this field when configuring Ray jobs, see <a href="https://docs.aws.amazon.com/glue/latest/dg/author-job-ray-job-parameters.html">Using job parameters in Ray jobs</a> in the developer guide.</p>
547 pub fn get_default_arguments(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
548 &self.default_arguments
549 }
550 /// Adds a key-value pair to `non_overridable_arguments`.
551 ///
552 /// To override the contents of this collection use [`set_non_overridable_arguments`](Self::set_non_overridable_arguments).
553 ///
554 /// <p>Arguments for this job that are not overridden when providing job arguments in a job run, specified as name-value pairs.</p>
555 pub fn non_overridable_arguments(
556 mut self,
557 k: impl ::std::convert::Into<::std::string::String>,
558 v: impl ::std::convert::Into<::std::string::String>,
559 ) -> Self {
560 let mut hash_map = self.non_overridable_arguments.unwrap_or_default();
561 hash_map.insert(k.into(), v.into());
562 self.non_overridable_arguments = ::std::option::Option::Some(hash_map);
563 self
564 }
565 /// <p>Arguments for this job that are not overridden when providing job arguments in a job run, specified as name-value pairs.</p>
566 pub fn set_non_overridable_arguments(
567 mut self,
568 input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
569 ) -> Self {
570 self.non_overridable_arguments = input;
571 self
572 }
573 /// <p>Arguments for this job that are not overridden when providing job arguments in a job run, specified as name-value pairs.</p>
574 pub fn get_non_overridable_arguments(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
575 &self.non_overridable_arguments
576 }
577 /// <p>The connections used for this job.</p>
578 pub fn connections(mut self, input: crate::types::ConnectionsList) -> Self {
579 self.connections = ::std::option::Option::Some(input);
580 self
581 }
582 /// <p>The connections used for this job.</p>
583 pub fn set_connections(mut self, input: ::std::option::Option<crate::types::ConnectionsList>) -> Self {
584 self.connections = input;
585 self
586 }
587 /// <p>The connections used for this job.</p>
588 pub fn get_connections(&self) -> &::std::option::Option<crate::types::ConnectionsList> {
589 &self.connections
590 }
591 /// <p>The maximum number of times to retry this job if it fails.</p>
592 pub fn max_retries(mut self, input: i32) -> Self {
593 self.max_retries = ::std::option::Option::Some(input);
594 self
595 }
596 /// <p>The maximum number of times to retry this job if it fails.</p>
597 pub fn set_max_retries(mut self, input: ::std::option::Option<i32>) -> Self {
598 self.max_retries = input;
599 self
600 }
601 /// <p>The maximum number of times to retry this job if it fails.</p>
602 pub fn get_max_retries(&self) -> &::std::option::Option<i32> {
603 &self.max_retries
604 }
605 /// <p>This parameter is deprecated. Use <code>MaxCapacity</code> instead.</p>
606 /// <p>The number of Glue data processing units (DPUs) to allocate to this Job. You can allocate a minimum of 2 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the <a href="https://aws.amazon.com/glue/pricing/">Glue pricing page</a>.</p>
607 #[deprecated(note = "This property is deprecated, use MaxCapacity instead.")]
608 pub fn allocated_capacity(mut self, input: i32) -> Self {
609 self.allocated_capacity = ::std::option::Option::Some(input);
610 self
611 }
612 /// <p>This parameter is deprecated. Use <code>MaxCapacity</code> instead.</p>
613 /// <p>The number of Glue data processing units (DPUs) to allocate to this Job. You can allocate a minimum of 2 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the <a href="https://aws.amazon.com/glue/pricing/">Glue pricing page</a>.</p>
614 #[deprecated(note = "This property is deprecated, use MaxCapacity instead.")]
615 pub fn set_allocated_capacity(mut self, input: ::std::option::Option<i32>) -> Self {
616 self.allocated_capacity = input;
617 self
618 }
619 /// <p>This parameter is deprecated. Use <code>MaxCapacity</code> instead.</p>
620 /// <p>The number of Glue data processing units (DPUs) to allocate to this Job. You can allocate a minimum of 2 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the <a href="https://aws.amazon.com/glue/pricing/">Glue pricing page</a>.</p>
621 #[deprecated(note = "This property is deprecated, use MaxCapacity instead.")]
622 pub fn get_allocated_capacity(&self) -> &::std::option::Option<i32> {
623 &self.allocated_capacity
624 }
625 /// <p>The job timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters <code>TIMEOUT</code> status.</p>
626 /// <p>Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.</p>
627 /// <p>When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.</p>
628 /// <p>Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.</p>
629 /// <p>For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.</p>
630 pub fn timeout(mut self, input: i32) -> Self {
631 self.timeout = ::std::option::Option::Some(input);
632 self
633 }
634 /// <p>The job timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters <code>TIMEOUT</code> status.</p>
635 /// <p>Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.</p>
636 /// <p>When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.</p>
637 /// <p>Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.</p>
638 /// <p>For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.</p>
639 pub fn set_timeout(mut self, input: ::std::option::Option<i32>) -> Self {
640 self.timeout = input;
641 self
642 }
643 /// <p>The job timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters <code>TIMEOUT</code> status.</p>
644 /// <p>Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.</p>
645 /// <p>When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.</p>
646 /// <p>Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.</p>
647 /// <p>For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.</p>
648 pub fn get_timeout(&self) -> &::std::option::Option<i32> {
649 &self.timeout
650 }
651 /// <p>For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the <a href="https://aws.amazon.com/glue/pricing/"> Glue pricing page</a>.</p>
652 /// <p>For Glue version 2.0+ jobs, you cannot specify a <code>Maximum capacity</code>. Instead, you should specify a <code>Worker type</code> and the <code>Number of workers</code>.</p>
653 /// <p>Do not set <code>MaxCapacity</code> if using <code>WorkerType</code> and <code>NumberOfWorkers</code>.</p>
654 /// <p>The value that can be allocated for <code>MaxCapacity</code> depends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:</p>
655 /// <ul>
656 /// <li>
657 /// <p>When you specify a Python shell job (<code>JobCommand.Name</code>="pythonshell"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.</p></li>
658 /// <li>
659 /// <p>When you specify an Apache Spark ETL job (<code>JobCommand.Name</code>="glueetl") or Apache Spark streaming ETL job (<code>JobCommand.Name</code>="gluestreaming"), you can allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.</p></li>
660 /// </ul>
661 pub fn max_capacity(mut self, input: f64) -> Self {
662 self.max_capacity = ::std::option::Option::Some(input);
663 self
664 }
665 /// <p>For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the <a href="https://aws.amazon.com/glue/pricing/"> Glue pricing page</a>.</p>
666 /// <p>For Glue version 2.0+ jobs, you cannot specify a <code>Maximum capacity</code>. Instead, you should specify a <code>Worker type</code> and the <code>Number of workers</code>.</p>
667 /// <p>Do not set <code>MaxCapacity</code> if using <code>WorkerType</code> and <code>NumberOfWorkers</code>.</p>
668 /// <p>The value that can be allocated for <code>MaxCapacity</code> depends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:</p>
669 /// <ul>
670 /// <li>
671 /// <p>When you specify a Python shell job (<code>JobCommand.Name</code>="pythonshell"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.</p></li>
672 /// <li>
673 /// <p>When you specify an Apache Spark ETL job (<code>JobCommand.Name</code>="glueetl") or Apache Spark streaming ETL job (<code>JobCommand.Name</code>="gluestreaming"), you can allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.</p></li>
674 /// </ul>
675 pub fn set_max_capacity(mut self, input: ::std::option::Option<f64>) -> Self {
676 self.max_capacity = input;
677 self
678 }
679 /// <p>For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the <a href="https://aws.amazon.com/glue/pricing/"> Glue pricing page</a>.</p>
680 /// <p>For Glue version 2.0+ jobs, you cannot specify a <code>Maximum capacity</code>. Instead, you should specify a <code>Worker type</code> and the <code>Number of workers</code>.</p>
681 /// <p>Do not set <code>MaxCapacity</code> if using <code>WorkerType</code> and <code>NumberOfWorkers</code>.</p>
682 /// <p>The value that can be allocated for <code>MaxCapacity</code> depends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:</p>
683 /// <ul>
684 /// <li>
685 /// <p>When you specify a Python shell job (<code>JobCommand.Name</code>="pythonshell"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.</p></li>
686 /// <li>
687 /// <p>When you specify an Apache Spark ETL job (<code>JobCommand.Name</code>="glueetl") or Apache Spark streaming ETL job (<code>JobCommand.Name</code>="gluestreaming"), you can allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.</p></li>
688 /// </ul>
689 pub fn get_max_capacity(&self) -> &::std::option::Option<f64> {
690 &self.max_capacity
691 }
692 /// <p>The name of the <code>SecurityConfiguration</code> structure to be used with this job.</p>
693 pub fn security_configuration(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
694 self.security_configuration = ::std::option::Option::Some(input.into());
695 self
696 }
697 /// <p>The name of the <code>SecurityConfiguration</code> structure to be used with this job.</p>
698 pub fn set_security_configuration(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
699 self.security_configuration = input;
700 self
701 }
702 /// <p>The name of the <code>SecurityConfiguration</code> structure to be used with this job.</p>
703 pub fn get_security_configuration(&self) -> &::std::option::Option<::std::string::String> {
704 &self.security_configuration
705 }
706 /// Adds a key-value pair to `tags`.
707 ///
708 /// To override the contents of this collection use [`set_tags`](Self::set_tags).
709 ///
710 /// <p>The tags to use with this job. You may use tags to limit access to the job. For more information about tags in Glue, see <a href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">Amazon Web Services Tags in Glue</a> in the developer guide.</p>
711 pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
712 let mut hash_map = self.tags.unwrap_or_default();
713 hash_map.insert(k.into(), v.into());
714 self.tags = ::std::option::Option::Some(hash_map);
715 self
716 }
717 /// <p>The tags to use with this job. You may use tags to limit access to the job. For more information about tags in Glue, see <a href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">Amazon Web Services Tags in Glue</a> in the developer guide.</p>
718 pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
719 self.tags = input;
720 self
721 }
722 /// <p>The tags to use with this job. You may use tags to limit access to the job. For more information about tags in Glue, see <a href="https://docs.aws.amazon.com/glue/latest/dg/monitor-tags.html">Amazon Web Services Tags in Glue</a> in the developer guide.</p>
723 pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
724 &self.tags
725 }
726 /// <p>Specifies configuration properties of a job notification.</p>
727 pub fn notification_property(mut self, input: crate::types::NotificationProperty) -> Self {
728 self.notification_property = ::std::option::Option::Some(input);
729 self
730 }
731 /// <p>Specifies configuration properties of a job notification.</p>
732 pub fn set_notification_property(mut self, input: ::std::option::Option<crate::types::NotificationProperty>) -> Self {
733 self.notification_property = input;
734 self
735 }
736 /// <p>Specifies configuration properties of a job notification.</p>
737 pub fn get_notification_property(&self) -> &::std::option::Option<crate::types::NotificationProperty> {
738 &self.notification_property
739 }
740 /// <p>In Spark jobs, <code>GlueVersion</code> determines the versions of Apache Spark and Python that Glue available in a job. The Python version indicates the version supported for jobs of type Spark.</p>
741 /// <p>Ray jobs should set <code>GlueVersion</code> to <code>4.0</code> or greater. However, the versions of Ray, Python and additional libraries available in your Ray job are determined by the <code>Runtime</code> parameter of the Job command.</p>
742 /// <p>For more information about the available Glue versions and corresponding Spark and Python versions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Glue version</a> in the developer guide.</p>
743 /// <p>Jobs that are created without specifying a Glue version default to Glue 6.0.</p>
744 /// <p>Set <code>GlueVersion</code> to <code>auto</code> to turn on automatic version upgrades for the job. For more information, see <a href="https://docs.aws.amazon.com/glue/latest/dg/auto-version-upgrades.html">Automatic version upgrades for Glue jobs</a> in the developer guide. For the job requirements, see <a href="https://docs.aws.amazon.com/glue/latest/dg/auto-version-upgrades.html#auto-version-upgrades-before-you-start">Before you start</a>.</p>
745 pub fn glue_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
746 self.glue_version = ::std::option::Option::Some(input.into());
747 self
748 }
749 /// <p>In Spark jobs, <code>GlueVersion</code> determines the versions of Apache Spark and Python that Glue available in a job. The Python version indicates the version supported for jobs of type Spark.</p>
750 /// <p>Ray jobs should set <code>GlueVersion</code> to <code>4.0</code> or greater. However, the versions of Ray, Python and additional libraries available in your Ray job are determined by the <code>Runtime</code> parameter of the Job command.</p>
751 /// <p>For more information about the available Glue versions and corresponding Spark and Python versions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Glue version</a> in the developer guide.</p>
752 /// <p>Jobs that are created without specifying a Glue version default to Glue 6.0.</p>
753 /// <p>Set <code>GlueVersion</code> to <code>auto</code> to turn on automatic version upgrades for the job. For more information, see <a href="https://docs.aws.amazon.com/glue/latest/dg/auto-version-upgrades.html">Automatic version upgrades for Glue jobs</a> in the developer guide. For the job requirements, see <a href="https://docs.aws.amazon.com/glue/latest/dg/auto-version-upgrades.html#auto-version-upgrades-before-you-start">Before you start</a>.</p>
754 pub fn set_glue_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
755 self.glue_version = input;
756 self
757 }
758 /// <p>In Spark jobs, <code>GlueVersion</code> determines the versions of Apache Spark and Python that Glue available in a job. The Python version indicates the version supported for jobs of type Spark.</p>
759 /// <p>Ray jobs should set <code>GlueVersion</code> to <code>4.0</code> or greater. However, the versions of Ray, Python and additional libraries available in your Ray job are determined by the <code>Runtime</code> parameter of the Job command.</p>
760 /// <p>For more information about the available Glue versions and corresponding Spark and Python versions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Glue version</a> in the developer guide.</p>
761 /// <p>Jobs that are created without specifying a Glue version default to Glue 6.0.</p>
762 /// <p>Set <code>GlueVersion</code> to <code>auto</code> to turn on automatic version upgrades for the job. For more information, see <a href="https://docs.aws.amazon.com/glue/latest/dg/auto-version-upgrades.html">Automatic version upgrades for Glue jobs</a> in the developer guide. For the job requirements, see <a href="https://docs.aws.amazon.com/glue/latest/dg/auto-version-upgrades.html#auto-version-upgrades-before-you-start">Before you start</a>.</p>
763 pub fn get_glue_version(&self) -> &::std::option::Option<::std::string::String> {
764 &self.glue_version
765 }
766 /// <p>The number of workers of a defined <code>workerType</code> that are allocated when a job runs.</p>
767 pub fn number_of_workers(mut self, input: i32) -> Self {
768 self.number_of_workers = ::std::option::Option::Some(input);
769 self
770 }
771 /// <p>The number of workers of a defined <code>workerType</code> that are allocated when a job runs.</p>
772 pub fn set_number_of_workers(mut self, input: ::std::option::Option<i32>) -> Self {
773 self.number_of_workers = input;
774 self
775 }
776 /// <p>The number of workers of a defined <code>workerType</code> that are allocated when a job runs.</p>
777 pub fn get_number_of_workers(&self) -> &::std::option::Option<i32> {
778 &self.number_of_workers
779 }
780 /// <p>The type of predefined worker that is allocated when a job runs. Accepts a value of G.025X, G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray jobs.</p>
781 /// <ul>
782 /// <li>
783 /// <p>For the <code>G.025X</code> worker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs.</p></li>
784 /// <li>
785 /// <p>For the <code>G.1X</code> worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.</p></li>
786 /// <li>
787 /// <p>For the <code>G.2X</code> worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.</p></li>
788 /// <li>
789 /// <p>For the <code>G.4X</code> worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
790 /// <li>
791 /// <p>For the <code>G.8X</code> worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
792 /// <li>
793 /// <p>For the <code>G.12X</code> worker type, each worker maps to 12 DPU (48 vCPUs, 192 GB of memory) with 768GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
794 /// <li>
795 /// <p>For the <code>G.16X</code> worker type, each worker maps to 16 DPU (64 vCPUs, 256 GB of memory) with 1024GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
796 /// <li>
797 /// <p>For the <code>R.1X</code> worker type, each worker maps to 1 M-DPU (4 vCPUs, 32 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
798 /// <li>
799 /// <p>For the <code>R.2X</code> worker type, each worker maps to 2 M-DPU (8 vCPUs, 64 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
800 /// <li>
801 /// <p>For the <code>R.4X</code> worker type, each worker maps to 4 M-DPU (16 vCPUs, 128 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
802 /// <li>
803 /// <p>For the <code>R.8X</code> worker type, each worker maps to 8 M-DPU (32 vCPUs, 256 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
804 /// <li>
805 /// <p>For the <code>Z.2X</code> worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.</p></li>
806 /// </ul>
807 pub fn worker_type(mut self, input: crate::types::WorkerType) -> Self {
808 self.worker_type = ::std::option::Option::Some(input);
809 self
810 }
811 /// <p>The type of predefined worker that is allocated when a job runs. Accepts a value of G.025X, G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray jobs.</p>
812 /// <ul>
813 /// <li>
814 /// <p>For the <code>G.025X</code> worker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs.</p></li>
815 /// <li>
816 /// <p>For the <code>G.1X</code> worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.</p></li>
817 /// <li>
818 /// <p>For the <code>G.2X</code> worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.</p></li>
819 /// <li>
820 /// <p>For the <code>G.4X</code> worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
821 /// <li>
822 /// <p>For the <code>G.8X</code> worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
823 /// <li>
824 /// <p>For the <code>G.12X</code> worker type, each worker maps to 12 DPU (48 vCPUs, 192 GB of memory) with 768GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
825 /// <li>
826 /// <p>For the <code>G.16X</code> worker type, each worker maps to 16 DPU (64 vCPUs, 256 GB of memory) with 1024GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
827 /// <li>
828 /// <p>For the <code>R.1X</code> worker type, each worker maps to 1 M-DPU (4 vCPUs, 32 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
829 /// <li>
830 /// <p>For the <code>R.2X</code> worker type, each worker maps to 2 M-DPU (8 vCPUs, 64 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
831 /// <li>
832 /// <p>For the <code>R.4X</code> worker type, each worker maps to 4 M-DPU (16 vCPUs, 128 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
833 /// <li>
834 /// <p>For the <code>R.8X</code> worker type, each worker maps to 8 M-DPU (32 vCPUs, 256 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
835 /// <li>
836 /// <p>For the <code>Z.2X</code> worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.</p></li>
837 /// </ul>
838 pub fn set_worker_type(mut self, input: ::std::option::Option<crate::types::WorkerType>) -> Self {
839 self.worker_type = input;
840 self
841 }
842 /// <p>The type of predefined worker that is allocated when a job runs. Accepts a value of G.025X, G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray jobs.</p>
843 /// <ul>
844 /// <li>
845 /// <p>For the <code>G.025X</code> worker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs.</p></li>
846 /// <li>
847 /// <p>For the <code>G.1X</code> worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.</p></li>
848 /// <li>
849 /// <p>For the <code>G.2X</code> worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.</p></li>
850 /// <li>
851 /// <p>For the <code>G.4X</code> worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
852 /// <li>
853 /// <p>For the <code>G.8X</code> worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
854 /// <li>
855 /// <p>For the <code>G.12X</code> worker type, each worker maps to 12 DPU (48 vCPUs, 192 GB of memory) with 768GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
856 /// <li>
857 /// <p>For the <code>G.16X</code> worker type, each worker maps to 16 DPU (64 vCPUs, 256 GB of memory) with 1024GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
858 /// <li>
859 /// <p>For the <code>R.1X</code> worker type, each worker maps to 1 M-DPU (4 vCPUs, 32 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
860 /// <li>
861 /// <p>For the <code>R.2X</code> worker type, each worker maps to 2 M-DPU (8 vCPUs, 64 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
862 /// <li>
863 /// <p>For the <code>R.4X</code> worker type, each worker maps to 4 M-DPU (16 vCPUs, 128 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
864 /// <li>
865 /// <p>For the <code>R.8X</code> worker type, each worker maps to 8 M-DPU (32 vCPUs, 256 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see <a href="https://docs.aws.amazon.com/glue/latest/dg/add-job.html">Configuring job properties for Spark jobs</a> in the developer guide.</p></li>
866 /// <li>
867 /// <p>For the <code>Z.2X</code> worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.</p></li>
868 /// </ul>
869 pub fn get_worker_type(&self) -> &::std::option::Option<crate::types::WorkerType> {
870 &self.worker_type
871 }
872 /// Adds a key-value pair to `code_gen_configuration_nodes`.
873 ///
874 /// To override the contents of this collection use [`set_code_gen_configuration_nodes`](Self::set_code_gen_configuration_nodes).
875 ///
876 /// <p>The representation of a directed acyclic graph on which both the Glue Studio visual component and Glue Studio code generation is based.</p>
877 pub fn code_gen_configuration_nodes(
878 mut self,
879 k: impl ::std::convert::Into<::std::string::String>,
880 v: crate::types::CodeGenConfigurationNode,
881 ) -> Self {
882 let mut hash_map = self.code_gen_configuration_nodes.unwrap_or_default();
883 hash_map.insert(k.into(), v);
884 self.code_gen_configuration_nodes = ::std::option::Option::Some(hash_map);
885 self
886 }
887 /// <p>The representation of a directed acyclic graph on which both the Glue Studio visual component and Glue Studio code generation is based.</p>
888 pub fn set_code_gen_configuration_nodes(
889 mut self,
890 input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::CodeGenConfigurationNode>>,
891 ) -> Self {
892 self.code_gen_configuration_nodes = input;
893 self
894 }
895 /// <p>The representation of a directed acyclic graph on which both the Glue Studio visual component and Glue Studio code generation is based.</p>
896 pub fn get_code_gen_configuration_nodes(
897 &self,
898 ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::CodeGenConfigurationNode>> {
899 &self.code_gen_configuration_nodes
900 }
901 /// <p>Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.</p>
902 /// <p>The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.</p>
903 /// <p>Only jobs with Glue version 3.0 and above and command type <code>glueetl</code> will be allowed to set <code>ExecutionClass</code> to <code>FLEX</code>. The flexible execution class is available for Spark jobs.</p>
904 pub fn execution_class(mut self, input: crate::types::ExecutionClass) -> Self {
905 self.execution_class = ::std::option::Option::Some(input);
906 self
907 }
908 /// <p>Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.</p>
909 /// <p>The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.</p>
910 /// <p>Only jobs with Glue version 3.0 and above and command type <code>glueetl</code> will be allowed to set <code>ExecutionClass</code> to <code>FLEX</code>. The flexible execution class is available for Spark jobs.</p>
911 pub fn set_execution_class(mut self, input: ::std::option::Option<crate::types::ExecutionClass>) -> Self {
912 self.execution_class = input;
913 self
914 }
915 /// <p>Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.</p>
916 /// <p>The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.</p>
917 /// <p>Only jobs with Glue version 3.0 and above and command type <code>glueetl</code> will be allowed to set <code>ExecutionClass</code> to <code>FLEX</code>. The flexible execution class is available for Spark jobs.</p>
918 pub fn get_execution_class(&self) -> &::std::option::Option<crate::types::ExecutionClass> {
919 &self.execution_class
920 }
921 /// <p>The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.</p>
922 pub fn source_control_details(mut self, input: crate::types::SourceControlDetails) -> Self {
923 self.source_control_details = ::std::option::Option::Some(input);
924 self
925 }
926 /// <p>The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.</p>
927 pub fn set_source_control_details(mut self, input: ::std::option::Option<crate::types::SourceControlDetails>) -> Self {
928 self.source_control_details = input;
929 self
930 }
931 /// <p>The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.</p>
932 pub fn get_source_control_details(&self) -> &::std::option::Option<crate::types::SourceControlDetails> {
933 &self.source_control_details
934 }
935 /// <p>This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.</p>
936 /// <p>Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.</p>
937 pub fn maintenance_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
938 self.maintenance_window = ::std::option::Option::Some(input.into());
939 self
940 }
941 /// <p>This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.</p>
942 /// <p>Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.</p>
943 pub fn set_maintenance_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
944 self.maintenance_window = input;
945 self
946 }
947 /// <p>This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.</p>
948 /// <p>Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.</p>
949 pub fn get_maintenance_window(&self) -> &::std::option::Option<::std::string::String> {
950 &self.maintenance_window
951 }
952 /// Consumes the builder and constructs a [`CreateJobInput`](crate::operation::create_job::CreateJobInput).
953 pub fn build(self) -> ::std::result::Result<crate::operation::create_job::CreateJobInput, ::aws_smithy_types::error::operation::BuildError> {
954 ::std::result::Result::Ok(crate::operation::create_job::CreateJobInput {
955 name: self.name,
956 job_mode: self.job_mode,
957 job_run_queuing_enabled: self.job_run_queuing_enabled,
958 description: self.description,
959 log_uri: self.log_uri,
960 role: self.role,
961 execution_property: self.execution_property,
962 command: self.command,
963 default_arguments: self.default_arguments,
964 non_overridable_arguments: self.non_overridable_arguments,
965 connections: self.connections,
966 max_retries: self.max_retries,
967 allocated_capacity: self.allocated_capacity,
968 timeout: self.timeout,
969 max_capacity: self.max_capacity,
970 security_configuration: self.security_configuration,
971 tags: self.tags,
972 notification_property: self.notification_property,
973 glue_version: self.glue_version,
974 number_of_workers: self.number_of_workers,
975 worker_type: self.worker_type,
976 code_gen_configuration_nodes: self.code_gen_configuration_nodes,
977 execution_class: self.execution_class,
978 source_control_details: self.source_control_details,
979 maintenance_window: self.maintenance_window,
980 })
981 }
982}
983impl ::std::fmt::Debug for CreateJobInputBuilder {
984 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
985 let mut formatter = f.debug_struct("CreateJobInputBuilder");
986 formatter.field("name", &self.name);
987 formatter.field("job_mode", &self.job_mode);
988 formatter.field("job_run_queuing_enabled", &self.job_run_queuing_enabled);
989 formatter.field("description", &self.description);
990 formatter.field("log_uri", &self.log_uri);
991 formatter.field("role", &self.role);
992 formatter.field("execution_property", &self.execution_property);
993 formatter.field("command", &self.command);
994 formatter.field("default_arguments", &self.default_arguments);
995 formatter.field("non_overridable_arguments", &self.non_overridable_arguments);
996 formatter.field("connections", &self.connections);
997 formatter.field("max_retries", &self.max_retries);
998 formatter.field("allocated_capacity", &self.allocated_capacity);
999 formatter.field("timeout", &self.timeout);
1000 formatter.field("max_capacity", &self.max_capacity);
1001 formatter.field("security_configuration", &self.security_configuration);
1002 formatter.field("tags", &self.tags);
1003 formatter.field("notification_property", &self.notification_property);
1004 formatter.field("glue_version", &self.glue_version);
1005 formatter.field("number_of_workers", &self.number_of_workers);
1006 formatter.field("worker_type", &self.worker_type);
1007 formatter.field("code_gen_configuration_nodes", &"*** Sensitive Data Redacted ***");
1008 formatter.field("execution_class", &self.execution_class);
1009 formatter.field("source_control_details", &self.source_control_details);
1010 formatter.field("maintenance_window", &self.maintenance_window);
1011 formatter.finish()
1012 }
1013}