pub struct CreateEnvironment<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateEnvironment
.
Launches an AWS Elastic Beanstalk environment for the specified application using the specified configuration.
Implementations
impl<C, M, R> CreateEnvironment<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateEnvironment<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateEnvironmentOutput, SdkError<CreateEnvironmentError>> where
R::Policy: SmithyRetryPolicy<CreateEnvironmentInputOperationOutputAlias, CreateEnvironmentOutput, CreateEnvironmentError, CreateEnvironmentInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateEnvironmentOutput, SdkError<CreateEnvironmentError>> where
R::Policy: SmithyRetryPolicy<CreateEnvironmentInputOperationOutputAlias, CreateEnvironmentOutput, CreateEnvironmentError, CreateEnvironmentInputOperationRetryAlias>,
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.
The name of the application that is associated with this environment.
The name of the application that is associated with this environment.
A unique name for the environment.
Constraint: Must be from 4 to 40 characters in length. The name can contain only letters, numbers, and hyphens. It can't start or end with a hyphen. This name must be unique within a region in your account. If the specified name already exists in the region, Elastic Beanstalk returns an InvalidParameterValue
error.
If you don't specify the CNAMEPrefix
parameter, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.
A unique name for the environment.
Constraint: Must be from 4 to 40 characters in length. The name can contain only letters, numbers, and hyphens. It can't start or end with a hyphen. This name must be unique within a region in your account. If the specified name already exists in the region, Elastic Beanstalk returns an InvalidParameterValue
error.
If you don't specify the CNAMEPrefix
parameter, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.
The name of the group to which the target environment belongs. Specify a group name only if the environment's name is specified in an environment manifest and not with the environment name parameter. See Environment Manifest (env.yaml) for details.
The name of the group to which the target environment belongs. Specify a group name only if the environment's name is specified in an environment manifest and not with the environment name parameter. See Environment Manifest (env.yaml) for details.
Your description for this environment.
Your description for this environment.
If specified, the environment attempts to use this value as the prefix for the CNAME in your Elastic Beanstalk environment URL. If not specified, the CNAME is generated automatically by appending a random alphanumeric string to the environment name.
If specified, the environment attempts to use this value as the prefix for the CNAME in your Elastic Beanstalk environment URL. If not specified, the CNAME is generated automatically by appending a random alphanumeric string to the environment name.
Specifies the tier to use in creating this environment. The environment tier that you choose determines whether Elastic Beanstalk provisions resources to support a web application that handles HTTP(S) requests or a web application that handles background-processing tasks.
Specifies the tier to use in creating this environment. The environment tier that you choose determines whether Elastic Beanstalk provisions resources to support a web application that handles HTTP(S) requests or a web application that handles background-processing tasks.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
Specifies the tags applied to resources in the environment.
Specifies the tags applied to resources in the environment.
The name of the application version to deploy.
Default: If not specified, Elastic Beanstalk attempts to deploy the sample application.
The name of the application version to deploy.
Default: If not specified, Elastic Beanstalk attempts to deploy the sample application.
The name of the Elastic Beanstalk configuration template to use with the environment.
If you specify TemplateName
, then don't specify SolutionStackName
.
The name of the Elastic Beanstalk configuration template to use with the environment.
If you specify TemplateName
, then don't specify SolutionStackName
.
The name of an Elastic Beanstalk solution stack (platform version) to use with the environment. If specified, Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack. For a list of current solution stacks, see Elastic Beanstalk Supported Platforms in the AWS Elastic Beanstalk Platforms guide.
If you specify SolutionStackName
, don't specify PlatformArn
or TemplateName
.
The name of an Elastic Beanstalk solution stack (platform version) to use with the environment. If specified, Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack. For a list of current solution stacks, see Elastic Beanstalk Supported Platforms in the AWS Elastic Beanstalk Platforms guide.
If you specify SolutionStackName
, don't specify PlatformArn
or TemplateName
.
The Amazon Resource Name (ARN) of the custom platform to use with the environment. For more information, see Custom Platforms in the AWS Elastic Beanstalk Developer Guide.
If you specify PlatformArn
, don't specify SolutionStackName
.
The Amazon Resource Name (ARN) of the custom platform to use with the environment. For more information, see Custom Platforms in the AWS Elastic Beanstalk Developer Guide.
If you specify PlatformArn
, don't specify SolutionStackName
.
Appends an item to OptionSettings
.
To override the contents of this collection use set_option_settings
.
If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.
If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.
Appends an item to OptionsToRemove
.
To override the contents of this collection use set_options_to_remove
.
A list of custom user-defined configuration options to remove from the configuration set for this new environment.
A list of custom user-defined configuration options to remove from the configuration set for this new environment.
The Amazon Resource Name (ARN) of an existing IAM role to be used as the environment's operations role. If specified, Elastic Beanstalk uses the operations role for permissions to downstream services during this call and during subsequent calls acting on this environment. To specify an operations role, you must have the iam:PassRole
permission for the role. For more information, see Operations roles in the AWS Elastic Beanstalk Developer Guide.
The Amazon Resource Name (ARN) of an existing IAM role to be used as the environment's operations role. If specified, Elastic Beanstalk uses the operations role for permissions to downstream services during this call and during subsequent calls acting on this environment. To specify an operations role, you must have the iam:PassRole
permission for the role. For more information, see Operations roles in the AWS Elastic Beanstalk Developer Guide.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateEnvironment<C, M, R>
impl<C, M, R> Send for CreateEnvironment<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateEnvironment<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateEnvironment<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateEnvironment<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
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