amazonka-codedeploy-2.0: Amazon CodeDeploy SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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, 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
ToJSON CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.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

AWSRequest CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Associated Types

type AWSResponse CreateDeploymentConfig #

Generic CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Associated Types

type Rep CreateDeploymentConfig :: Type -> Type #

Read CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Show CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

NFData CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Methods

rnf :: CreateDeploymentConfig -> () #

Eq CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Hashable CreateDeploymentConfig Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

type AWSResponse 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" "amazonka-codedeploy-2.0-4OehMEUeOr9G9ZXD2VmvAo" '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))))

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.

Constructors

CreateDeploymentConfigResponse' 

Fields

Instances

Instances details
Generic CreateDeploymentConfigResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Associated Types

type Rep CreateDeploymentConfigResponse :: Type -> Type #

Read CreateDeploymentConfigResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Show CreateDeploymentConfigResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

NFData CreateDeploymentConfigResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.CreateDeploymentConfig

Eq 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" "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