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

Implementations§

The Amazon Resource Name (ARN) of the application.

Examples found in repository?
src/client.rs (line 697)
696
697
698
699
        pub fn application_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.application_id(input.into());
            self
        }

The Amazon Resource Name (ARN) of the application.

Examples found in repository?
src/client.rs (line 705)
701
702
703
704
705
706
707
        pub fn set_application_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_application_id(input);
            self
        }

The semantic version of the new version.

Examples found in repository?
src/client.rs (line 710)
709
710
711
712
        pub fn semantic_version(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.semantic_version(input.into());
            self
        }

The semantic version of the new version.

Examples found in repository?
src/client.rs (line 718)
714
715
716
717
718
719
720
        pub fn set_semantic_version(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_semantic_version(input);
            self
        }

A link to the S3 object that contains the ZIP archive of the source code for this version of your application.

Maximum size 50 MB

Examples found in repository?
src/client.rs (line 724)
723
724
725
726
        pub fn source_code_archive_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.source_code_archive_url(input.into());
            self
        }

A link to the S3 object that contains the ZIP archive of the source code for this version of your application.

Maximum size 50 MB

Examples found in repository?
src/client.rs (line 733)
729
730
731
732
733
734
735
        pub fn set_source_code_archive_url(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_source_code_archive_url(input);
            self
        }

A link to a public repository for the source code of your application, for example the URL of a specific GitHub commit.

Examples found in repository?
src/client.rs (line 738)
737
738
739
740
        pub fn source_code_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.source_code_url(input.into());
            self
        }

A link to a public repository for the source code of your application, for example the URL of a specific GitHub commit.

Examples found in repository?
src/client.rs (line 746)
742
743
744
745
746
747
748
        pub fn set_source_code_url(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_source_code_url(input);
            self
        }

The raw packaged AWS SAM template of your application.

Examples found in repository?
src/client.rs (line 751)
750
751
752
753
        pub fn template_body(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.template_body(input.into());
            self
        }

The raw packaged AWS SAM template of your application.

Examples found in repository?
src/client.rs (line 759)
755
756
757
758
759
760
761
        pub fn set_template_body(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_template_body(input);
            self
        }

A link to the packaged AWS SAM template of your application.

Examples found in repository?
src/client.rs (line 764)
763
764
765
766
        pub fn template_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.template_url(input.into());
            self
        }

A link to the packaged AWS SAM template of your application.

Examples found in repository?
src/client.rs (line 769)
768
769
770
771
        pub fn set_template_url(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_template_url(input);
            self
        }

Consumes the builder and constructs a CreateApplicationVersionInput.

Examples found in repository?
src/client.rs (line 664)
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::CreateApplicationVersion,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::CreateApplicationVersionError>,
        > {
            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::CreateApplicationVersionOutput,
            aws_smithy_http::result::SdkError<crate::error::CreateApplicationVersionError>,
        > {
            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