libZSservicesZSamazonka-codedeployZSamazonka-codedeploy
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeDeploy.CreateDeploymentConfig

Description

Creates a deployment configuration.

Synopsis

Creating a Request

data CreateDeploymentConfig Source #

Represents the input of a CreateDeploymentConfig operation.

See: newCreateDeploymentConfig smart constructor.

Constructors

CreateDeploymentConfig' 

Fields

  • computePlatform :: Maybe ComputePlatform

    The destination platform type for the deployment (Lambda, Server, or ECS).

  • minimumHealthyHosts :: Maybe 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, 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.

  • trafficRoutingConfig :: Maybe TrafficRoutingConfig

    The configuration that specifies how the deployment traffic is routed.

  • deploymentConfigName :: Text

    The name of the deployment configuration to create.

Instances

Instances details
Eq CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Read CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Show CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Generic CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Associated Types

type Rep CreateDeploymentConfig :: Type -> Type #

NFData CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Methods

rnf :: CreateDeploymentConfig -> () #

Hashable CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

ToJSON CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

AWSRequest CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Associated Types

type AWSResponse CreateDeploymentConfig #

ToHeaders CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

ToPath CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

ToQuery CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

type Rep CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

type Rep CreateDeploymentConfig = D1 ('MetaData "CreateDeploymentConfig" "Amazonka.CodeDeploy.CreateDeploymentConfig" "libZSservicesZSamazonka-codedeployZSamazonka-codedeploy" 'False) (C1 ('MetaCons "CreateDeploymentConfig'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "computePlatform") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ComputePlatform)) :*: S1 ('MetaSel ('Just "minimumHealthyHosts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MinimumHealthyHosts))) :*: (S1 ('MetaSel ('Just "trafficRoutingConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TrafficRoutingConfig)) :*: S1 ('MetaSel ('Just "deploymentConfigName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

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:

$sel:computePlatform:CreateDeploymentConfig', createDeploymentConfig_computePlatform - The destination platform type for the deployment (Lambda, Server, or ECS).

$sel:minimumHealthyHosts: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, 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.

$sel:trafficRoutingConfig:CreateDeploymentConfig', createDeploymentConfig_trafficRoutingConfig - The configuration that specifies how the deployment traffic is routed.

$sel:deploymentConfigName: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, 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.

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.

Constructors

CreateDeploymentConfigResponse' 

Fields

Instances

Instances details
Eq CreateDeploymentConfigResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Read CreateDeploymentConfigResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Show CreateDeploymentConfigResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Generic CreateDeploymentConfigResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Associated Types

type Rep CreateDeploymentConfigResponse :: Type -> Type #

NFData CreateDeploymentConfigResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

type Rep CreateDeploymentConfigResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

type Rep CreateDeploymentConfigResponse = D1 ('MetaData "CreateDeploymentConfigResponse" "Amazonka.CodeDeploy.CreateDeploymentConfig" "libZSservicesZSamazonka-codedeployZSamazonka-codedeploy" '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:

$sel:deploymentConfigId:CreateDeploymentConfigResponse', createDeploymentConfigResponse_deploymentConfigId - A unique deployment configuration ID.

$sel:httpStatus:CreateDeploymentConfigResponse', createDeploymentConfigResponse_httpStatus - The response's http status code.

Response Lenses