1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct UpdateEnvironmentInput {
/// <p>The name of your Amazon MWAA environment. For example, <code>MyMWAAEnvironment</code>.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services resources in your environment. For example, <code>arn:aws:iam::123456789:role/my-execution-role</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html">Amazon MWAA Execution role</a>.</p>
pub execution_role_arn: ::std::option::Option<::std::string::String>,
/// <p>The Apache Airflow version for your environment. To upgrade your environment, specify a newer version of Apache Airflow supported by Amazon MWAA.</p>
/// <p>Before you upgrade an environment, make sure your requirements, DAGs, plugins, and other resources used in your workflows are compatible with the new Apache Airflow version. For more information about updating your resources, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/upgrading-environment.html">Upgrading an Amazon MWAA environment</a>.</p>
/// <p>Valid values: <code>1.10.12</code>, <code>2.0.2</code>, <code>2.2.2</code>, <code>2.4.3</code>, and <code>2.5.1</code>.</p>
pub airflow_version: ::std::option::Option<::std::string::String>,
/// <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For example, <code>arn:aws:s3:::my-airflow-bucket-unique-name</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html">Create an Amazon S3 bucket for Amazon MWAA</a>.</p>
pub source_bucket_arn: ::std::option::Option<::std::string::String>,
/// <p>The relative path to the DAGs folder on your Amazon S3 bucket. For example, <code>dags</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html">Adding or updating DAGs</a>.</p>
pub dag_s3_path: ::std::option::Option<::std::string::String>,
/// <p>The relative path to the <code>plugins.zip</code> file on your Amazon S3 bucket. For example, <code>plugins.zip</code>. If specified, then the plugins.zip version is required. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html">Installing custom plugins</a>.</p>
pub plugins_s3_path: ::std::option::Option<::std::string::String>,
/// <p>The version of the plugins.zip file on your Amazon S3 bucket. You must specify a version each time a <code>plugins.zip</code> file is updated. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">How S3 Versioning works</a>.</p>
pub plugins_s3_object_version: ::std::option::Option<::std::string::String>,
/// <p>The relative path to the <code>requirements.txt</code> file on your Amazon S3 bucket. For example, <code>requirements.txt</code>. If specified, then a file version is required. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html">Installing Python dependencies</a>.</p>
pub requirements_s3_path: ::std::option::Option<::std::string::String>,
/// <p>The version of the requirements.txt file on your Amazon S3 bucket. You must specify a version each time a <code>requirements.txt</code> file is updated. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">How S3 Versioning works</a>.</p>
pub requirements_s3_object_version: ::std::option::Option<::std::string::String>,
/// <p>The relative path to the startup shell script in your Amazon S3 bucket. For example, <code>s3://mwaa-environment/startup.sh</code>.</p>
/// <p> Amazon MWAA runs the script as your environment starts, and before running the Apache Airflow process. You can use this script to install dependencies, modify Apache Airflow configuration options, and set environment variables. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html">Using a startup script</a>. </p>
pub startup_script_s3_path: ::std::option::Option<::std::string::String>,
/// <p> The version of the startup shell script in your Amazon S3 bucket. You must specify the <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">version ID</a> that Amazon S3 assigns to the file every time you update the script. </p>
/// <p> Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example: </p>
/// <p> <code>3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo</code> </p>
/// <p> For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html">Using a startup script</a>. </p>
pub startup_script_s3_object_version: ::std::option::Option<::std::string::String>,
/// <p>A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html">Apache Airflow configuration options</a>.</p>
pub airflow_configuration_options: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
/// <p>The environment class type. Valid values: <code>mw1.small</code>, <code>mw1.medium</code>, <code>mw1.large</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html">Amazon MWAA environment class</a>.</p>
pub environment_class: ::std::option::Option<::std::string::String>,
/// <p>The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the <code>MaxWorkers</code> field. For example, <code>20</code>. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one worker that is included with your environment, or the number you specify in <code>MinWorkers</code>.</p>
pub max_workers: ::std::option::Option<i32>,
/// <p>The VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html">About networking on Amazon MWAA</a>.</p>
pub network_configuration: ::std::option::Option<crate::types::UpdateNetworkConfigurationInput>,
/// <p>The Apache Airflow log types to send to CloudWatch Logs.</p>
pub logging_configuration: ::std::option::Option<crate::types::LoggingConfigurationInput>,
/// <p>The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly maintenance updates of your environment in the following format: <code>DAY:HH:MM</code>. For example: <code>TUE:03:30</code>. You can specify a start time in 30 minute increments only.</p>
pub weekly_maintenance_window_start: ::std::option::Option<::std::string::String>,
/// <p>The Apache Airflow <i>Web server</i> access mode. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html">Apache Airflow access modes</a>.</p>
pub webserver_access_mode: ::std::option::Option<crate::types::WebserverAccessMode>,
/// <p>The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the <code>MaxWorkers</code> field. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the <code>MinWorkers</code> field. For example, <code>2</code>.</p>
pub min_workers: ::std::option::Option<i32>,
/// <p>The number of Apache Airflow schedulers to run in your Amazon MWAA environment.</p>
pub schedulers: ::std::option::Option<i32>,
}
impl UpdateEnvironmentInput {
/// <p>The name of your Amazon MWAA environment. For example, <code>MyMWAAEnvironment</code>.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services resources in your environment. For example, <code>arn:aws:iam::123456789:role/my-execution-role</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html">Amazon MWAA Execution role</a>.</p>
pub fn execution_role_arn(&self) -> ::std::option::Option<&str> {
self.execution_role_arn.as_deref()
}
/// <p>The Apache Airflow version for your environment. To upgrade your environment, specify a newer version of Apache Airflow supported by Amazon MWAA.</p>
/// <p>Before you upgrade an environment, make sure your requirements, DAGs, plugins, and other resources used in your workflows are compatible with the new Apache Airflow version. For more information about updating your resources, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/upgrading-environment.html">Upgrading an Amazon MWAA environment</a>.</p>
/// <p>Valid values: <code>1.10.12</code>, <code>2.0.2</code>, <code>2.2.2</code>, <code>2.4.3</code>, and <code>2.5.1</code>.</p>
pub fn airflow_version(&self) -> ::std::option::Option<&str> {
self.airflow_version.as_deref()
}
/// <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For example, <code>arn:aws:s3:::my-airflow-bucket-unique-name</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html">Create an Amazon S3 bucket for Amazon MWAA</a>.</p>
pub fn source_bucket_arn(&self) -> ::std::option::Option<&str> {
self.source_bucket_arn.as_deref()
}
/// <p>The relative path to the DAGs folder on your Amazon S3 bucket. For example, <code>dags</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html">Adding or updating DAGs</a>.</p>
pub fn dag_s3_path(&self) -> ::std::option::Option<&str> {
self.dag_s3_path.as_deref()
}
/// <p>The relative path to the <code>plugins.zip</code> file on your Amazon S3 bucket. For example, <code>plugins.zip</code>. If specified, then the plugins.zip version is required. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html">Installing custom plugins</a>.</p>
pub fn plugins_s3_path(&self) -> ::std::option::Option<&str> {
self.plugins_s3_path.as_deref()
}
/// <p>The version of the plugins.zip file on your Amazon S3 bucket. You must specify a version each time a <code>plugins.zip</code> file is updated. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">How S3 Versioning works</a>.</p>
pub fn plugins_s3_object_version(&self) -> ::std::option::Option<&str> {
self.plugins_s3_object_version.as_deref()
}
/// <p>The relative path to the <code>requirements.txt</code> file on your Amazon S3 bucket. For example, <code>requirements.txt</code>. If specified, then a file version is required. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html">Installing Python dependencies</a>.</p>
pub fn requirements_s3_path(&self) -> ::std::option::Option<&str> {
self.requirements_s3_path.as_deref()
}
/// <p>The version of the requirements.txt file on your Amazon S3 bucket. You must specify a version each time a <code>requirements.txt</code> file is updated. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">How S3 Versioning works</a>.</p>
pub fn requirements_s3_object_version(&self) -> ::std::option::Option<&str> {
self.requirements_s3_object_version.as_deref()
}
/// <p>The relative path to the startup shell script in your Amazon S3 bucket. For example, <code>s3://mwaa-environment/startup.sh</code>.</p>
/// <p> Amazon MWAA runs the script as your environment starts, and before running the Apache Airflow process. You can use this script to install dependencies, modify Apache Airflow configuration options, and set environment variables. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html">Using a startup script</a>. </p>
pub fn startup_script_s3_path(&self) -> ::std::option::Option<&str> {
self.startup_script_s3_path.as_deref()
}
/// <p> The version of the startup shell script in your Amazon S3 bucket. You must specify the <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">version ID</a> that Amazon S3 assigns to the file every time you update the script. </p>
/// <p> Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example: </p>
/// <p> <code>3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo</code> </p>
/// <p> For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html">Using a startup script</a>. </p>
pub fn startup_script_s3_object_version(&self) -> ::std::option::Option<&str> {
self.startup_script_s3_object_version.as_deref()
}
/// <p>A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html">Apache Airflow configuration options</a>.</p>
pub fn airflow_configuration_options(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.airflow_configuration_options.as_ref()
}
/// <p>The environment class type. Valid values: <code>mw1.small</code>, <code>mw1.medium</code>, <code>mw1.large</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html">Amazon MWAA environment class</a>.</p>
pub fn environment_class(&self) -> ::std::option::Option<&str> {
self.environment_class.as_deref()
}
/// <p>The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the <code>MaxWorkers</code> field. For example, <code>20</code>. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one worker that is included with your environment, or the number you specify in <code>MinWorkers</code>.</p>
pub fn max_workers(&self) -> ::std::option::Option<i32> {
self.max_workers
}
/// <p>The VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html">About networking on Amazon MWAA</a>.</p>
pub fn network_configuration(&self) -> ::std::option::Option<&crate::types::UpdateNetworkConfigurationInput> {
self.network_configuration.as_ref()
}
/// <p>The Apache Airflow log types to send to CloudWatch Logs.</p>
pub fn logging_configuration(&self) -> ::std::option::Option<&crate::types::LoggingConfigurationInput> {
self.logging_configuration.as_ref()
}
/// <p>The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly maintenance updates of your environment in the following format: <code>DAY:HH:MM</code>. For example: <code>TUE:03:30</code>. You can specify a start time in 30 minute increments only.</p>
pub fn weekly_maintenance_window_start(&self) -> ::std::option::Option<&str> {
self.weekly_maintenance_window_start.as_deref()
}
/// <p>The Apache Airflow <i>Web server</i> access mode. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html">Apache Airflow access modes</a>.</p>
pub fn webserver_access_mode(&self) -> ::std::option::Option<&crate::types::WebserverAccessMode> {
self.webserver_access_mode.as_ref()
}
/// <p>The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the <code>MaxWorkers</code> field. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the <code>MinWorkers</code> field. For example, <code>2</code>.</p>
pub fn min_workers(&self) -> ::std::option::Option<i32> {
self.min_workers
}
/// <p>The number of Apache Airflow schedulers to run in your Amazon MWAA environment.</p>
pub fn schedulers(&self) -> ::std::option::Option<i32> {
self.schedulers
}
}
impl ::std::fmt::Debug for UpdateEnvironmentInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("UpdateEnvironmentInput");
formatter.field("name", &self.name);
formatter.field("execution_role_arn", &self.execution_role_arn);
formatter.field("airflow_version", &self.airflow_version);
formatter.field("source_bucket_arn", &self.source_bucket_arn);
formatter.field("dag_s3_path", &self.dag_s3_path);
formatter.field("plugins_s3_path", &self.plugins_s3_path);
formatter.field("plugins_s3_object_version", &self.plugins_s3_object_version);
formatter.field("requirements_s3_path", &self.requirements_s3_path);
formatter.field("requirements_s3_object_version", &self.requirements_s3_object_version);
formatter.field("startup_script_s3_path", &self.startup_script_s3_path);
formatter.field("startup_script_s3_object_version", &self.startup_script_s3_object_version);
formatter.field("airflow_configuration_options", &"*** Sensitive Data Redacted ***");
formatter.field("environment_class", &self.environment_class);
formatter.field("max_workers", &self.max_workers);
formatter.field("network_configuration", &self.network_configuration);
formatter.field("logging_configuration", &self.logging_configuration);
formatter.field("weekly_maintenance_window_start", &self.weekly_maintenance_window_start);
formatter.field("webserver_access_mode", &self.webserver_access_mode);
formatter.field("min_workers", &self.min_workers);
formatter.field("schedulers", &self.schedulers);
formatter.finish()
}
}
impl UpdateEnvironmentInput {
/// Creates a new builder-style object to manufacture [`UpdateEnvironmentInput`](crate::operation::update_environment::UpdateEnvironmentInput).
pub fn builder() -> crate::operation::update_environment::builders::UpdateEnvironmentInputBuilder {
crate::operation::update_environment::builders::UpdateEnvironmentInputBuilder::default()
}
}
/// A builder for [`UpdateEnvironmentInput`](crate::operation::update_environment::UpdateEnvironmentInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
pub struct UpdateEnvironmentInputBuilder {
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) execution_role_arn: ::std::option::Option<::std::string::String>,
pub(crate) airflow_version: ::std::option::Option<::std::string::String>,
pub(crate) source_bucket_arn: ::std::option::Option<::std::string::String>,
pub(crate) dag_s3_path: ::std::option::Option<::std::string::String>,
pub(crate) plugins_s3_path: ::std::option::Option<::std::string::String>,
pub(crate) plugins_s3_object_version: ::std::option::Option<::std::string::String>,
pub(crate) requirements_s3_path: ::std::option::Option<::std::string::String>,
pub(crate) requirements_s3_object_version: ::std::option::Option<::std::string::String>,
pub(crate) startup_script_s3_path: ::std::option::Option<::std::string::String>,
pub(crate) startup_script_s3_object_version: ::std::option::Option<::std::string::String>,
pub(crate) airflow_configuration_options: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub(crate) environment_class: ::std::option::Option<::std::string::String>,
pub(crate) max_workers: ::std::option::Option<i32>,
pub(crate) network_configuration: ::std::option::Option<crate::types::UpdateNetworkConfigurationInput>,
pub(crate) logging_configuration: ::std::option::Option<crate::types::LoggingConfigurationInput>,
pub(crate) weekly_maintenance_window_start: ::std::option::Option<::std::string::String>,
pub(crate) webserver_access_mode: ::std::option::Option<crate::types::WebserverAccessMode>,
pub(crate) min_workers: ::std::option::Option<i32>,
pub(crate) schedulers: ::std::option::Option<i32>,
}
impl UpdateEnvironmentInputBuilder {
/// <p>The name of your Amazon MWAA environment. For example, <code>MyMWAAEnvironment</code>.</p>
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of your Amazon MWAA environment. For example, <code>MyMWAAEnvironment</code>.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of your Amazon MWAA environment. For example, <code>MyMWAAEnvironment</code>.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services resources in your environment. For example, <code>arn:aws:iam::123456789:role/my-execution-role</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html">Amazon MWAA Execution role</a>.</p>
pub fn execution_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.execution_role_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services resources in your environment. For example, <code>arn:aws:iam::123456789:role/my-execution-role</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html">Amazon MWAA Execution role</a>.</p>
pub fn set_execution_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.execution_role_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to access Amazon Web Services resources in your environment. For example, <code>arn:aws:iam::123456789:role/my-execution-role</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html">Amazon MWAA Execution role</a>.</p>
pub fn get_execution_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.execution_role_arn
}
/// <p>The Apache Airflow version for your environment. To upgrade your environment, specify a newer version of Apache Airflow supported by Amazon MWAA.</p>
/// <p>Before you upgrade an environment, make sure your requirements, DAGs, plugins, and other resources used in your workflows are compatible with the new Apache Airflow version. For more information about updating your resources, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/upgrading-environment.html">Upgrading an Amazon MWAA environment</a>.</p>
/// <p>Valid values: <code>1.10.12</code>, <code>2.0.2</code>, <code>2.2.2</code>, <code>2.4.3</code>, and <code>2.5.1</code>.</p>
pub fn airflow_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.airflow_version = ::std::option::Option::Some(input.into());
self
}
/// <p>The Apache Airflow version for your environment. To upgrade your environment, specify a newer version of Apache Airflow supported by Amazon MWAA.</p>
/// <p>Before you upgrade an environment, make sure your requirements, DAGs, plugins, and other resources used in your workflows are compatible with the new Apache Airflow version. For more information about updating your resources, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/upgrading-environment.html">Upgrading an Amazon MWAA environment</a>.</p>
/// <p>Valid values: <code>1.10.12</code>, <code>2.0.2</code>, <code>2.2.2</code>, <code>2.4.3</code>, and <code>2.5.1</code>.</p>
pub fn set_airflow_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.airflow_version = input;
self
}
/// <p>The Apache Airflow version for your environment. To upgrade your environment, specify a newer version of Apache Airflow supported by Amazon MWAA.</p>
/// <p>Before you upgrade an environment, make sure your requirements, DAGs, plugins, and other resources used in your workflows are compatible with the new Apache Airflow version. For more information about updating your resources, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/upgrading-environment.html">Upgrading an Amazon MWAA environment</a>.</p>
/// <p>Valid values: <code>1.10.12</code>, <code>2.0.2</code>, <code>2.2.2</code>, <code>2.4.3</code>, and <code>2.5.1</code>.</p>
pub fn get_airflow_version(&self) -> &::std::option::Option<::std::string::String> {
&self.airflow_version
}
/// <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For example, <code>arn:aws:s3:::my-airflow-bucket-unique-name</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html">Create an Amazon S3 bucket for Amazon MWAA</a>.</p>
pub fn source_bucket_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.source_bucket_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For example, <code>arn:aws:s3:::my-airflow-bucket-unique-name</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html">Create an Amazon S3 bucket for Amazon MWAA</a>.</p>
pub fn set_source_bucket_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.source_bucket_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and supporting files are stored. For example, <code>arn:aws:s3:::my-airflow-bucket-unique-name</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html">Create an Amazon S3 bucket for Amazon MWAA</a>.</p>
pub fn get_source_bucket_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.source_bucket_arn
}
/// <p>The relative path to the DAGs folder on your Amazon S3 bucket. For example, <code>dags</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html">Adding or updating DAGs</a>.</p>
pub fn dag_s3_path(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.dag_s3_path = ::std::option::Option::Some(input.into());
self
}
/// <p>The relative path to the DAGs folder on your Amazon S3 bucket. For example, <code>dags</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html">Adding or updating DAGs</a>.</p>
pub fn set_dag_s3_path(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.dag_s3_path = input;
self
}
/// <p>The relative path to the DAGs folder on your Amazon S3 bucket. For example, <code>dags</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html">Adding or updating DAGs</a>.</p>
pub fn get_dag_s3_path(&self) -> &::std::option::Option<::std::string::String> {
&self.dag_s3_path
}
/// <p>The relative path to the <code>plugins.zip</code> file on your Amazon S3 bucket. For example, <code>plugins.zip</code>. If specified, then the plugins.zip version is required. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html">Installing custom plugins</a>.</p>
pub fn plugins_s3_path(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.plugins_s3_path = ::std::option::Option::Some(input.into());
self
}
/// <p>The relative path to the <code>plugins.zip</code> file on your Amazon S3 bucket. For example, <code>plugins.zip</code>. If specified, then the plugins.zip version is required. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html">Installing custom plugins</a>.</p>
pub fn set_plugins_s3_path(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.plugins_s3_path = input;
self
}
/// <p>The relative path to the <code>plugins.zip</code> file on your Amazon S3 bucket. For example, <code>plugins.zip</code>. If specified, then the plugins.zip version is required. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html">Installing custom plugins</a>.</p>
pub fn get_plugins_s3_path(&self) -> &::std::option::Option<::std::string::String> {
&self.plugins_s3_path
}
/// <p>The version of the plugins.zip file on your Amazon S3 bucket. You must specify a version each time a <code>plugins.zip</code> file is updated. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">How S3 Versioning works</a>.</p>
pub fn plugins_s3_object_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.plugins_s3_object_version = ::std::option::Option::Some(input.into());
self
}
/// <p>The version of the plugins.zip file on your Amazon S3 bucket. You must specify a version each time a <code>plugins.zip</code> file is updated. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">How S3 Versioning works</a>.</p>
pub fn set_plugins_s3_object_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.plugins_s3_object_version = input;
self
}
/// <p>The version of the plugins.zip file on your Amazon S3 bucket. You must specify a version each time a <code>plugins.zip</code> file is updated. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">How S3 Versioning works</a>.</p>
pub fn get_plugins_s3_object_version(&self) -> &::std::option::Option<::std::string::String> {
&self.plugins_s3_object_version
}
/// <p>The relative path to the <code>requirements.txt</code> file on your Amazon S3 bucket. For example, <code>requirements.txt</code>. If specified, then a file version is required. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html">Installing Python dependencies</a>.</p>
pub fn requirements_s3_path(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.requirements_s3_path = ::std::option::Option::Some(input.into());
self
}
/// <p>The relative path to the <code>requirements.txt</code> file on your Amazon S3 bucket. For example, <code>requirements.txt</code>. If specified, then a file version is required. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html">Installing Python dependencies</a>.</p>
pub fn set_requirements_s3_path(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.requirements_s3_path = input;
self
}
/// <p>The relative path to the <code>requirements.txt</code> file on your Amazon S3 bucket. For example, <code>requirements.txt</code>. If specified, then a file version is required. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html">Installing Python dependencies</a>.</p>
pub fn get_requirements_s3_path(&self) -> &::std::option::Option<::std::string::String> {
&self.requirements_s3_path
}
/// <p>The version of the requirements.txt file on your Amazon S3 bucket. You must specify a version each time a <code>requirements.txt</code> file is updated. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">How S3 Versioning works</a>.</p>
pub fn requirements_s3_object_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.requirements_s3_object_version = ::std::option::Option::Some(input.into());
self
}
/// <p>The version of the requirements.txt file on your Amazon S3 bucket. You must specify a version each time a <code>requirements.txt</code> file is updated. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">How S3 Versioning works</a>.</p>
pub fn set_requirements_s3_object_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.requirements_s3_object_version = input;
self
}
/// <p>The version of the requirements.txt file on your Amazon S3 bucket. You must specify a version each time a <code>requirements.txt</code> file is updated. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">How S3 Versioning works</a>.</p>
pub fn get_requirements_s3_object_version(&self) -> &::std::option::Option<::std::string::String> {
&self.requirements_s3_object_version
}
/// <p>The relative path to the startup shell script in your Amazon S3 bucket. For example, <code>s3://mwaa-environment/startup.sh</code>.</p>
/// <p> Amazon MWAA runs the script as your environment starts, and before running the Apache Airflow process. You can use this script to install dependencies, modify Apache Airflow configuration options, and set environment variables. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html">Using a startup script</a>. </p>
pub fn startup_script_s3_path(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.startup_script_s3_path = ::std::option::Option::Some(input.into());
self
}
/// <p>The relative path to the startup shell script in your Amazon S3 bucket. For example, <code>s3://mwaa-environment/startup.sh</code>.</p>
/// <p> Amazon MWAA runs the script as your environment starts, and before running the Apache Airflow process. You can use this script to install dependencies, modify Apache Airflow configuration options, and set environment variables. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html">Using a startup script</a>. </p>
pub fn set_startup_script_s3_path(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.startup_script_s3_path = input;
self
}
/// <p>The relative path to the startup shell script in your Amazon S3 bucket. For example, <code>s3://mwaa-environment/startup.sh</code>.</p>
/// <p> Amazon MWAA runs the script as your environment starts, and before running the Apache Airflow process. You can use this script to install dependencies, modify Apache Airflow configuration options, and set environment variables. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html">Using a startup script</a>. </p>
pub fn get_startup_script_s3_path(&self) -> &::std::option::Option<::std::string::String> {
&self.startup_script_s3_path
}
/// <p> The version of the startup shell script in your Amazon S3 bucket. You must specify the <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">version ID</a> that Amazon S3 assigns to the file every time you update the script. </p>
/// <p> Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example: </p>
/// <p> <code>3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo</code> </p>
/// <p> For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html">Using a startup script</a>. </p>
pub fn startup_script_s3_object_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.startup_script_s3_object_version = ::std::option::Option::Some(input.into());
self
}
/// <p> The version of the startup shell script in your Amazon S3 bucket. You must specify the <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">version ID</a> that Amazon S3 assigns to the file every time you update the script. </p>
/// <p> Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example: </p>
/// <p> <code>3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo</code> </p>
/// <p> For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html">Using a startup script</a>. </p>
pub fn set_startup_script_s3_object_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.startup_script_s3_object_version = input;
self
}
/// <p> The version of the startup shell script in your Amazon S3 bucket. You must specify the <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html">version ID</a> that Amazon S3 assigns to the file every time you update the script. </p>
/// <p> Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no more than 1,024 bytes long. The following is an example: </p>
/// <p> <code>3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo</code> </p>
/// <p> For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html">Using a startup script</a>. </p>
pub fn get_startup_script_s3_object_version(&self) -> &::std::option::Option<::std::string::String> {
&self.startup_script_s3_object_version
}
/// Adds a key-value pair to `airflow_configuration_options`.
///
/// To override the contents of this collection use [`set_airflow_configuration_options`](Self::set_airflow_configuration_options).
///
/// <p>A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html">Apache Airflow configuration options</a>.</p>
pub fn airflow_configuration_options(
mut self,
k: impl ::std::convert::Into<::std::string::String>,
v: impl ::std::convert::Into<::std::string::String>,
) -> Self {
let mut hash_map = self.airflow_configuration_options.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.airflow_configuration_options = ::std::option::Option::Some(hash_map);
self
}
/// <p>A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html">Apache Airflow configuration options</a>.</p>
pub fn set_airflow_configuration_options(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
) -> Self {
self.airflow_configuration_options = input;
self
}
/// <p>A list of key-value pairs containing the Apache Airflow configuration options you want to attach to your environment. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html">Apache Airflow configuration options</a>.</p>
pub fn get_airflow_configuration_options(
&self,
) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.airflow_configuration_options
}
/// <p>The environment class type. Valid values: <code>mw1.small</code>, <code>mw1.medium</code>, <code>mw1.large</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html">Amazon MWAA environment class</a>.</p>
pub fn environment_class(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.environment_class = ::std::option::Option::Some(input.into());
self
}
/// <p>The environment class type. Valid values: <code>mw1.small</code>, <code>mw1.medium</code>, <code>mw1.large</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html">Amazon MWAA environment class</a>.</p>
pub fn set_environment_class(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.environment_class = input;
self
}
/// <p>The environment class type. Valid values: <code>mw1.small</code>, <code>mw1.medium</code>, <code>mw1.large</code>. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html">Amazon MWAA environment class</a>.</p>
pub fn get_environment_class(&self) -> &::std::option::Option<::std::string::String> {
&self.environment_class
}
/// <p>The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the <code>MaxWorkers</code> field. For example, <code>20</code>. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one worker that is included with your environment, or the number you specify in <code>MinWorkers</code>.</p>
pub fn max_workers(mut self, input: i32) -> Self {
self.max_workers = ::std::option::Option::Some(input);
self
}
/// <p>The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the <code>MaxWorkers</code> field. For example, <code>20</code>. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one worker that is included with your environment, or the number you specify in <code>MinWorkers</code>.</p>
pub fn set_max_workers(mut self, input: ::std::option::Option<i32>) -> Self {
self.max_workers = input;
self
}
/// <p>The maximum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the <code>MaxWorkers</code> field. For example, <code>20</code>. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the one worker that is included with your environment, or the number you specify in <code>MinWorkers</code>.</p>
pub fn get_max_workers(&self) -> &::std::option::Option<i32> {
&self.max_workers
}
/// <p>The VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html">About networking on Amazon MWAA</a>.</p>
pub fn network_configuration(mut self, input: crate::types::UpdateNetworkConfigurationInput) -> Self {
self.network_configuration = ::std::option::Option::Some(input);
self
}
/// <p>The VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html">About networking on Amazon MWAA</a>.</p>
pub fn set_network_configuration(mut self, input: ::std::option::Option<crate::types::UpdateNetworkConfigurationInput>) -> Self {
self.network_configuration = input;
self
}
/// <p>The VPC networking components used to secure and enable network traffic between the Amazon Web Services resources for your environment. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html">About networking on Amazon MWAA</a>.</p>
pub fn get_network_configuration(&self) -> &::std::option::Option<crate::types::UpdateNetworkConfigurationInput> {
&self.network_configuration
}
/// <p>The Apache Airflow log types to send to CloudWatch Logs.</p>
pub fn logging_configuration(mut self, input: crate::types::LoggingConfigurationInput) -> Self {
self.logging_configuration = ::std::option::Option::Some(input);
self
}
/// <p>The Apache Airflow log types to send to CloudWatch Logs.</p>
pub fn set_logging_configuration(mut self, input: ::std::option::Option<crate::types::LoggingConfigurationInput>) -> Self {
self.logging_configuration = input;
self
}
/// <p>The Apache Airflow log types to send to CloudWatch Logs.</p>
pub fn get_logging_configuration(&self) -> &::std::option::Option<crate::types::LoggingConfigurationInput> {
&self.logging_configuration
}
/// <p>The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly maintenance updates of your environment in the following format: <code>DAY:HH:MM</code>. For example: <code>TUE:03:30</code>. You can specify a start time in 30 minute increments only.</p>
pub fn weekly_maintenance_window_start(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.weekly_maintenance_window_start = ::std::option::Option::Some(input.into());
self
}
/// <p>The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly maintenance updates of your environment in the following format: <code>DAY:HH:MM</code>. For example: <code>TUE:03:30</code>. You can specify a start time in 30 minute increments only.</p>
pub fn set_weekly_maintenance_window_start(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.weekly_maintenance_window_start = input;
self
}
/// <p>The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time to start weekly maintenance updates of your environment in the following format: <code>DAY:HH:MM</code>. For example: <code>TUE:03:30</code>. You can specify a start time in 30 minute increments only.</p>
pub fn get_weekly_maintenance_window_start(&self) -> &::std::option::Option<::std::string::String> {
&self.weekly_maintenance_window_start
}
/// <p>The Apache Airflow <i>Web server</i> access mode. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html">Apache Airflow access modes</a>.</p>
pub fn webserver_access_mode(mut self, input: crate::types::WebserverAccessMode) -> Self {
self.webserver_access_mode = ::std::option::Option::Some(input);
self
}
/// <p>The Apache Airflow <i>Web server</i> access mode. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html">Apache Airflow access modes</a>.</p>
pub fn set_webserver_access_mode(mut self, input: ::std::option::Option<crate::types::WebserverAccessMode>) -> Self {
self.webserver_access_mode = input;
self
}
/// <p>The Apache Airflow <i>Web server</i> access mode. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html">Apache Airflow access modes</a>.</p>
pub fn get_webserver_access_mode(&self) -> &::std::option::Option<crate::types::WebserverAccessMode> {
&self.webserver_access_mode
}
/// <p>The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the <code>MaxWorkers</code> field. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the <code>MinWorkers</code> field. For example, <code>2</code>.</p>
pub fn min_workers(mut self, input: i32) -> Self {
self.min_workers = ::std::option::Option::Some(input);
self
}
/// <p>The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the <code>MaxWorkers</code> field. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the <code>MinWorkers</code> field. For example, <code>2</code>.</p>
pub fn set_min_workers(mut self, input: ::std::option::Option<i32>) -> Self {
self.min_workers = input;
self
}
/// <p>The minimum number of workers that you want to run in your environment. MWAA scales the number of Apache Airflow workers up to the number you specify in the <code>MaxWorkers</code> field. When there are no more tasks running, and no more in the queue, MWAA disposes of the extra workers leaving the worker count you specify in the <code>MinWorkers</code> field. For example, <code>2</code>.</p>
pub fn get_min_workers(&self) -> &::std::option::Option<i32> {
&self.min_workers
}
/// <p>The number of Apache Airflow schedulers to run in your Amazon MWAA environment.</p>
pub fn schedulers(mut self, input: i32) -> Self {
self.schedulers = ::std::option::Option::Some(input);
self
}
/// <p>The number of Apache Airflow schedulers to run in your Amazon MWAA environment.</p>
pub fn set_schedulers(mut self, input: ::std::option::Option<i32>) -> Self {
self.schedulers = input;
self
}
/// <p>The number of Apache Airflow schedulers to run in your Amazon MWAA environment.</p>
pub fn get_schedulers(&self) -> &::std::option::Option<i32> {
&self.schedulers
}
/// Consumes the builder and constructs a [`UpdateEnvironmentInput`](crate::operation::update_environment::UpdateEnvironmentInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_environment::UpdateEnvironmentInput, ::aws_smithy_http::operation::error::BuildError> {
::std::result::Result::Ok(crate::operation::update_environment::UpdateEnvironmentInput {
name: self.name,
execution_role_arn: self.execution_role_arn,
airflow_version: self.airflow_version,
source_bucket_arn: self.source_bucket_arn,
dag_s3_path: self.dag_s3_path,
plugins_s3_path: self.plugins_s3_path,
plugins_s3_object_version: self.plugins_s3_object_version,
requirements_s3_path: self.requirements_s3_path,
requirements_s3_object_version: self.requirements_s3_object_version,
startup_script_s3_path: self.startup_script_s3_path,
startup_script_s3_object_version: self.startup_script_s3_object_version,
airflow_configuration_options: self.airflow_configuration_options,
environment_class: self.environment_class,
max_workers: self.max_workers,
network_configuration: self.network_configuration,
logging_configuration: self.logging_configuration,
weekly_maintenance_window_start: self.weekly_maintenance_window_start,
webserver_access_mode: self.webserver_access_mode,
min_workers: self.min_workers,
schedulers: self.schedulers,
})
}
}
impl ::std::fmt::Debug for UpdateEnvironmentInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("UpdateEnvironmentInputBuilder");
formatter.field("name", &self.name);
formatter.field("execution_role_arn", &self.execution_role_arn);
formatter.field("airflow_version", &self.airflow_version);
formatter.field("source_bucket_arn", &self.source_bucket_arn);
formatter.field("dag_s3_path", &self.dag_s3_path);
formatter.field("plugins_s3_path", &self.plugins_s3_path);
formatter.field("plugins_s3_object_version", &self.plugins_s3_object_version);
formatter.field("requirements_s3_path", &self.requirements_s3_path);
formatter.field("requirements_s3_object_version", &self.requirements_s3_object_version);
formatter.field("startup_script_s3_path", &self.startup_script_s3_path);
formatter.field("startup_script_s3_object_version", &self.startup_script_s3_object_version);
formatter.field("airflow_configuration_options", &"*** Sensitive Data Redacted ***");
formatter.field("environment_class", &self.environment_class);
formatter.field("max_workers", &self.max_workers);
formatter.field("network_configuration", &self.network_configuration);
formatter.field("logging_configuration", &self.logging_configuration);
formatter.field("weekly_maintenance_window_start", &self.weekly_maintenance_window_start);
formatter.field("webserver_access_mode", &self.webserver_access_mode);
formatter.field("min_workers", &self.min_workers);
formatter.field("schedulers", &self.schedulers);
formatter.finish()
}
}