pub struct CreateApplicationVersion { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateApplicationVersion
.
Creates an application version for the specified application. You can create an application version from a source bundle in Amazon S3, a commit in AWS CodeCommit, or the output of an AWS CodeBuild build as follows:
Specify a commit in an AWS CodeCommit repository with SourceBuildInformation
.
Specify a build in an AWS CodeBuild with SourceBuildInformation
and BuildConfiguration
.
Specify a source bundle in S3 with SourceBundle
Omit both SourceBuildInformation
and SourceBundle
to use the default sample application.
After you create an application version with a specified Amazon S3 bucket and key location, you can't change that Amazon S3 location. If you change the Amazon S3 location, you receive an exception when you attempt to launch an environment from the application version.
Implementations§
source§impl CreateApplicationVersion
impl CreateApplicationVersion
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateApplicationVersion, AwsResponseRetryClassifier>, SdkError<CreateApplicationVersionError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateApplicationVersion, AwsResponseRetryClassifier>, SdkError<CreateApplicationVersionError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateApplicationVersionOutput, SdkError<CreateApplicationVersionError>>
pub async fn send(
self
) -> Result<CreateApplicationVersionOutput, SdkError<CreateApplicationVersionError>>
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, which can be set when configuring the client.
sourcepub fn application_name(self, input: impl Into<String>) -> Self
pub fn application_name(self, input: impl Into<String>) -> Self
The name of the application. If no application is found with this name, and AutoCreateApplication
is false
, returns an InvalidParameterValue
error.
sourcepub fn set_application_name(self, input: Option<String>) -> Self
pub fn set_application_name(self, input: Option<String>) -> Self
The name of the application. If no application is found with this name, and AutoCreateApplication
is false
, returns an InvalidParameterValue
error.
sourcepub fn version_label(self, input: impl Into<String>) -> Self
pub fn version_label(self, input: impl Into<String>) -> Self
A label identifying this version.
Constraint: Must be unique per application. If an application version already exists with this label for the specified application, AWS Elastic Beanstalk returns an InvalidParameterValue
error.
sourcepub fn set_version_label(self, input: Option<String>) -> Self
pub fn set_version_label(self, input: Option<String>) -> Self
A label identifying this version.
Constraint: Must be unique per application. If an application version already exists with this label for the specified application, AWS Elastic Beanstalk returns an InvalidParameterValue
error.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of this application version.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of this application version.
sourcepub fn source_build_information(self, input: SourceBuildInformation) -> Self
pub fn source_build_information(self, input: SourceBuildInformation) -> Self
Specify a commit in an AWS CodeCommit Git repository to use as the source code for the application version.
sourcepub fn set_source_build_information(
self,
input: Option<SourceBuildInformation>
) -> Self
pub fn set_source_build_information(
self,
input: Option<SourceBuildInformation>
) -> Self
Specify a commit in an AWS CodeCommit Git repository to use as the source code for the application version.
sourcepub fn source_bundle(self, input: S3Location) -> Self
pub fn source_bundle(self, input: S3Location) -> Self
The Amazon S3 bucket and key that identify the location of the source bundle for this version.
The Amazon S3 bucket must be in the same region as the environment.
Specify a source bundle in S3 or a commit in an AWS CodeCommit repository (with SourceBuildInformation
), but not both. If neither SourceBundle
nor SourceBuildInformation
are provided, Elastic Beanstalk uses a sample application.
sourcepub fn set_source_bundle(self, input: Option<S3Location>) -> Self
pub fn set_source_bundle(self, input: Option<S3Location>) -> Self
The Amazon S3 bucket and key that identify the location of the source bundle for this version.
The Amazon S3 bucket must be in the same region as the environment.
Specify a source bundle in S3 or a commit in an AWS CodeCommit repository (with SourceBuildInformation
), but not both. If neither SourceBundle
nor SourceBuildInformation
are provided, Elastic Beanstalk uses a sample application.
sourcepub fn build_configuration(self, input: BuildConfiguration) -> Self
pub fn build_configuration(self, input: BuildConfiguration) -> Self
Settings for an AWS CodeBuild build.
sourcepub fn set_build_configuration(self, input: Option<BuildConfiguration>) -> Self
pub fn set_build_configuration(self, input: Option<BuildConfiguration>) -> Self
Settings for an AWS CodeBuild build.
sourcepub fn auto_create_application(self, input: bool) -> Self
pub fn auto_create_application(self, input: bool) -> Self
Set to true
to create an application with the specified name if it doesn't already exist.
sourcepub fn set_auto_create_application(self, input: Option<bool>) -> Self
pub fn set_auto_create_application(self, input: Option<bool>) -> Self
Set to true
to create an application with the specified name if it doesn't already exist.
sourcepub fn process(self, input: bool) -> Self
pub fn process(self, input: bool) -> Self
Pre-processes and validates the environment manifest (env.yaml
) and configuration files (*.config
files in the .ebextensions
folder) in the source bundle. Validating configuration files can identify issues prior to deploying the application version to an environment.
You must turn processing on for application versions that you create using AWS CodeBuild or AWS CodeCommit. For application versions built from a source bundle in Amazon S3, processing is optional.
The Process
option validates Elastic Beanstalk configuration files. It doesn't validate your application's configuration files, like proxy server or Docker configuration.
sourcepub fn set_process(self, input: Option<bool>) -> Self
pub fn set_process(self, input: Option<bool>) -> Self
Pre-processes and validates the environment manifest (env.yaml
) and configuration files (*.config
files in the .ebextensions
folder) in the source bundle. Validating configuration files can identify issues prior to deploying the application version to an environment.
You must turn processing on for application versions that you create using AWS CodeBuild or AWS CodeCommit. For application versions built from a source bundle in Amazon S3, processing is optional.
The Process
option validates Elastic Beanstalk configuration files. It doesn't validate your application's configuration files, like proxy server or Docker configuration.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
Specifies the tags applied to the application version.
Elastic Beanstalk applies these tags only to the application version. Environments that use the application version don't inherit the tags.
Specifies the tags applied to the application version.
Elastic Beanstalk applies these tags only to the application version. Environments that use the application version don't inherit the tags.
Trait Implementations§
source§impl Clone for CreateApplicationVersion
impl Clone for CreateApplicationVersion
source§fn clone(&self) -> CreateApplicationVersion
fn clone(&self) -> CreateApplicationVersion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more