Struct aws_sdk_codedeploy::client::fluent_builders::CreateDeploymentConfig [−][src]
pub struct CreateDeploymentConfig<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateDeploymentConfig
.
Creates a deployment configuration.
Implementations
impl<C, M, R> CreateDeploymentConfig<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateDeploymentConfig<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateDeploymentConfigOutput, SdkError<CreateDeploymentConfigError>> where
R::Policy: SmithyRetryPolicy<CreateDeploymentConfigInputOperationOutputAlias, CreateDeploymentConfigOutput, CreateDeploymentConfigError, CreateDeploymentConfigInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateDeploymentConfigOutput, SdkError<CreateDeploymentConfigError>> where
R::Policy: SmithyRetryPolicy<CreateDeploymentConfigInputOperationOutputAlias, CreateDeploymentConfigOutput, CreateDeploymentConfigError, CreateDeploymentConfigInputOperationRetryAlias>,
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 deployment configuration to create.
The name of the deployment configuration to create.
The minimum number of healthy instances that should be available at any time during the deployment. There are two parameters expected in the input: type and value.
The type parameter takes either of the following values:
-
HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value.
-
FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instances and rounds up fractional instances.
The value parameter takes an integer.
For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95.
The minimum number of healthy instances that should be available at any time during the deployment. There are two parameters expected in the input: type and value.
The type parameter takes either of the following values:
-
HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value.
-
FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instances and rounds up fractional instances.
The value parameter takes an integer.
For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95.
The configuration that specifies how the deployment traffic is routed.
The configuration that specifies how the deployment traffic is routed.
The destination platform type for the deployment (Lambda
,
Server
, or ECS
).
The destination platform type for the deployment (Lambda
,
Server
, or ECS
).
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateDeploymentConfig<C, M, R>
impl<C, M, R> Send for CreateDeploymentConfig<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateDeploymentConfig<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateDeploymentConfig<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateDeploymentConfig<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