pub struct Builder { /* private fields */ }
Expand description

A builder for CreateApplicationInput.

Implementations§

The name of the application.

Examples found in repository?
src/client.rs (line 445)
444
445
446
447
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.name(input.into());
            self
        }

The name of the application.

Examples found in repository?
src/client.rs (line 450)
449
450
451
452
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_name(input);
            self
        }

The EMR release version associated with the application.

Examples found in repository?
src/client.rs (line 455)
454
455
456
457
        pub fn release_label(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.release_label(input.into());
            self
        }

The EMR release version associated with the application.

Examples found in repository?
src/client.rs (line 463)
459
460
461
462
463
464
465
        pub fn set_release_label(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_release_label(input);
            self
        }

The type of application you want to start, such as Spark or Hive.

Examples found in repository?
src/client.rs (line 468)
467
468
469
470
        pub fn r#type(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.r#type(input.into());
            self
        }

The type of application you want to start, such as Spark or Hive.

Examples found in repository?
src/client.rs (line 473)
472
473
474
475
        pub fn set_type(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_type(input);
            self
        }

The client idempotency token of the application to create. Its value must be unique for each request.

Examples found in repository?
src/client.rs (line 478)
477
478
479
480
        pub fn client_token(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.client_token(input.into());
            self
        }

The client idempotency token of the application to create. Its value must be unique for each request.

Examples found in repository?
src/client.rs (line 483)
482
483
484
485
        pub fn set_client_token(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_client_token(input);
            self
        }

Adds a key-value pair to initial_capacity.

To override the contents of this collection use set_initial_capacity.

The capacity to initialize when the application is created.

Examples found in repository?
src/client.rs (line 496)
491
492
493
494
495
496
497
498
        pub fn initial_capacity(
            mut self,
            k: impl Into<std::string::String>,
            v: crate::model::InitialCapacityConfig,
        ) -> Self {
            self.inner = self.inner.initial_capacity(k.into(), v);
            self
        }

The capacity to initialize when the application is created.

Examples found in repository?
src/client.rs (line 506)
500
501
502
503
504
505
506
507
508
        pub fn set_initial_capacity(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, crate::model::InitialCapacityConfig>,
            >,
        ) -> Self {
            self.inner = self.inner.set_initial_capacity(input);
            self
        }

The maximum capacity to allocate when the application is created. This is cumulative across all workers at any given point in time, not just when an application is created. No new resources will be created once any one of the defined limits is hit.

Examples found in repository?
src/client.rs (line 511)
510
511
512
513
        pub fn maximum_capacity(mut self, input: crate::model::MaximumAllowedResources) -> Self {
            self.inner = self.inner.maximum_capacity(input);
            self
        }

The maximum capacity to allocate when the application is created. This is cumulative across all workers at any given point in time, not just when an application is created. No new resources will be created once any one of the defined limits is hit.

Examples found in repository?
src/client.rs (line 519)
515
516
517
518
519
520
521
        pub fn set_maximum_capacity(
            mut self,
            input: std::option::Option<crate::model::MaximumAllowedResources>,
        ) -> Self {
            self.inner = self.inner.set_maximum_capacity(input);
            self
        }

Adds a key-value pair to tags.

To override the contents of this collection use set_tags.

The tags assigned to the application.

Examples found in repository?
src/client.rs (line 532)
527
528
529
530
531
532
533
534
        pub fn tags(
            mut self,
            k: impl Into<std::string::String>,
            v: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.tags(k.into(), v.into());
            self
        }

The tags assigned to the application.

Examples found in repository?
src/client.rs (line 542)
536
537
538
539
540
541
542
543
544
        pub fn set_tags(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, std::string::String>,
            >,
        ) -> Self {
            self.inner = self.inner.set_tags(input);
            self
        }

The configuration for an application to automatically start on job submission.

Examples found in repository?
src/client.rs (line 547)
546
547
548
549
        pub fn auto_start_configuration(mut self, input: crate::model::AutoStartConfig) -> Self {
            self.inner = self.inner.auto_start_configuration(input);
            self
        }

The configuration for an application to automatically start on job submission.

Examples found in repository?
src/client.rs (line 555)
551
552
553
554
555
556
557
        pub fn set_auto_start_configuration(
            mut self,
            input: std::option::Option<crate::model::AutoStartConfig>,
        ) -> Self {
            self.inner = self.inner.set_auto_start_configuration(input);
            self
        }

The configuration for an application to automatically stop after a certain amount of time being idle.

Examples found in repository?
src/client.rs (line 560)
559
560
561
562
        pub fn auto_stop_configuration(mut self, input: crate::model::AutoStopConfig) -> Self {
            self.inner = self.inner.auto_stop_configuration(input);
            self
        }

The configuration for an application to automatically stop after a certain amount of time being idle.

Examples found in repository?
src/client.rs (line 568)
564
565
566
567
568
569
570
        pub fn set_auto_stop_configuration(
            mut self,
            input: std::option::Option<crate::model::AutoStopConfig>,
        ) -> Self {
            self.inner = self.inner.set_auto_stop_configuration(input);
            self
        }

The network configuration for customer VPC connectivity.

Examples found in repository?
src/client.rs (line 573)
572
573
574
575
        pub fn network_configuration(mut self, input: crate::model::NetworkConfiguration) -> Self {
            self.inner = self.inner.network_configuration(input);
            self
        }

The network configuration for customer VPC connectivity.

Examples found in repository?
src/client.rs (line 581)
577
578
579
580
581
582
583
        pub fn set_network_configuration(
            mut self,
            input: std::option::Option<crate::model::NetworkConfiguration>,
        ) -> Self {
            self.inner = self.inner.set_network_configuration(input);
            self
        }

Consumes the builder and constructs a CreateApplicationInput.

Examples found in repository?
src/client.rs (line 412)
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
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::CreateApplication,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::CreateApplicationError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// Sends the request and returns the response.
        ///
        /// If an error occurs, an `SdkError` will be returned with additional details that
        /// can be matched against.
        ///
        /// By default, any retryable failures will be retried twice. Retry behavior
        /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::CreateApplicationOutput,
            aws_smithy_http::result::SdkError<crate::error::CreateApplicationError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more