Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates a deployment configuration.
Synopsis
- data CreateDeploymentConfig = CreateDeploymentConfig' {}
- newCreateDeploymentConfig :: Text -> CreateDeploymentConfig
- createDeploymentConfig_computePlatform :: Lens' CreateDeploymentConfig (Maybe ComputePlatform)
- createDeploymentConfig_minimumHealthyHosts :: Lens' CreateDeploymentConfig (Maybe MinimumHealthyHosts)
- createDeploymentConfig_trafficRoutingConfig :: Lens' CreateDeploymentConfig (Maybe TrafficRoutingConfig)
- createDeploymentConfig_deploymentConfigName :: Lens' CreateDeploymentConfig Text
- data CreateDeploymentConfigResponse = CreateDeploymentConfigResponse' {}
- newCreateDeploymentConfigResponse :: Int -> CreateDeploymentConfigResponse
- createDeploymentConfigResponse_deploymentConfigId :: Lens' CreateDeploymentConfigResponse (Maybe Text)
- createDeploymentConfigResponse_httpStatus :: Lens' CreateDeploymentConfigResponse Int
Creating a Request
data CreateDeploymentConfig Source #
Represents the input of a CreateDeploymentConfig
operation.
See: newCreateDeploymentConfig
smart constructor.
CreateDeploymentConfig' | |
|
Instances
newCreateDeploymentConfig Source #
Create a value of CreateDeploymentConfig
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateDeploymentConfig
, createDeploymentConfig_computePlatform
- The destination platform type for the deployment (Lambda
, Server
, or
ECS
).
CreateDeploymentConfig
, createDeploymentConfig_minimumHealthyHosts
- 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, 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.
CreateDeploymentConfig
, createDeploymentConfig_trafficRoutingConfig
- The configuration that specifies how the deployment traffic is routed.
CreateDeploymentConfig
, createDeploymentConfig_deploymentConfigName
- The name of the deployment configuration to create.
Request Lenses
createDeploymentConfig_computePlatform :: Lens' CreateDeploymentConfig (Maybe ComputePlatform) Source #
The destination platform type for the deployment (Lambda
, Server
, or
ECS
).
createDeploymentConfig_minimumHealthyHosts :: Lens' CreateDeploymentConfig (Maybe MinimumHealthyHosts) Source #
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, 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.
createDeploymentConfig_trafficRoutingConfig :: Lens' CreateDeploymentConfig (Maybe TrafficRoutingConfig) Source #
The configuration that specifies how the deployment traffic is routed.
createDeploymentConfig_deploymentConfigName :: Lens' CreateDeploymentConfig Text Source #
The name of the deployment configuration to create.
Destructuring the Response
data CreateDeploymentConfigResponse Source #
Represents the output of a CreateDeploymentConfig
operation.
See: newCreateDeploymentConfigResponse
smart constructor.
CreateDeploymentConfigResponse' | |
|
Instances
Generic CreateDeploymentConfigResponse Source # | |
Read CreateDeploymentConfigResponse Source # | |
Show CreateDeploymentConfigResponse Source # | |
Defined in Amazonka.CodeDeploy.CreateDeploymentConfig | |
NFData CreateDeploymentConfigResponse Source # | |
Defined in Amazonka.CodeDeploy.CreateDeploymentConfig rnf :: CreateDeploymentConfigResponse -> () # | |
Eq CreateDeploymentConfigResponse Source # | |
type Rep CreateDeploymentConfigResponse Source # | |
Defined in Amazonka.CodeDeploy.CreateDeploymentConfig type Rep CreateDeploymentConfigResponse = D1 ('MetaData "CreateDeploymentConfigResponse" "Amazonka.CodeDeploy.CreateDeploymentConfig" "amazonka-codedeploy-2.0-4OehMEUeOr9G9ZXD2VmvAo" 'False) (C1 ('MetaCons "CreateDeploymentConfigResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "deploymentConfigId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateDeploymentConfigResponse Source #
Create a value of CreateDeploymentConfigResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateDeploymentConfigResponse
, createDeploymentConfigResponse_deploymentConfigId
- A unique deployment configuration ID.
$sel:httpStatus:CreateDeploymentConfigResponse'
, createDeploymentConfigResponse_httpStatus
- The response's http status code.
Response Lenses
createDeploymentConfigResponse_deploymentConfigId :: Lens' CreateDeploymentConfigResponse (Maybe Text) Source #
A unique deployment configuration ID.
createDeploymentConfigResponse_httpStatus :: Lens' CreateDeploymentConfigResponse Int Source #
The response's http status code.