amazonka-appconfig-2.0: Amazon AppConfig 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.AppConfig.CreateDeploymentStrategy

Description

Creates a deployment strategy that defines important criteria for rolling out your configuration to the designated targets. A deployment strategy includes the overall duration required, a percentage of targets to receive the deployment during each interval, an algorithm that defines how percentage grows, and bake time.

Synopsis

Creating a Request

data CreateDeploymentStrategy Source #

See: newCreateDeploymentStrategy smart constructor.

Constructors

CreateDeploymentStrategy' 

Fields

  • description :: Maybe Text

    A description of the deployment strategy.

  • finalBakeTimeInMinutes :: Maybe Natural

    Specifies the amount of time AppConfig monitors for Amazon CloudWatch alarms after the configuration has been deployed to 100% of its targets, before considering the deployment to be complete. If an alarm is triggered during this time, AppConfig rolls back the deployment. You must configure permissions for AppConfig to roll back based on CloudWatch alarms. For more information, see Configuring permissions for rollback based on Amazon CloudWatch alarms in the AppConfig User Guide.

  • growthType :: Maybe GrowthType

    The algorithm used to define how percentage grows over time. AppConfig supports the following growth types:

    Linear: For this type, AppConfig processes the deployment by dividing the total number of targets by the value specified for Step percentage. For example, a linear deployment that uses a Step percentage of 10 deploys the configuration to 10 percent of the hosts. After those deployments are complete, the system deploys the configuration to the next 10 percent. This continues until 100% of the targets have successfully received the configuration.

    Exponential: For this type, AppConfig processes the deployment exponentially using the following formula: G*(2^N). In this formula, G is the growth factor specified by the user and N is the number of steps until the configuration is deployed to all targets. For example, if you specify a growth factor of 2, then the system rolls out the configuration as follows:

    2*(2^0)
    2*(2^1)
    2*(2^2)

    Expressed numerically, the deployment rolls out as follows: 2% of the targets, 4% of the targets, 8% of the targets, and continues until the configuration has been deployed to all targets.

  • replicateTo :: Maybe ReplicateTo

    Save the deployment strategy to a Systems Manager (SSM) document.

  • tags :: Maybe (HashMap Text Text)

    Metadata to assign to the deployment strategy. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define.

  • name :: Text

    A name for the deployment strategy.

  • deploymentDurationInMinutes :: Natural

    Total amount of time for a deployment to last.

  • growthFactor :: Double

    The percentage of targets to receive a deployed configuration during each interval.

Instances

Instances details
ToJSON CreateDeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.CreateDeploymentStrategy

ToHeaders CreateDeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.CreateDeploymentStrategy

ToPath CreateDeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.CreateDeploymentStrategy

ToQuery CreateDeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.CreateDeploymentStrategy

AWSRequest CreateDeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.CreateDeploymentStrategy

Generic CreateDeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.CreateDeploymentStrategy

Associated Types

type Rep CreateDeploymentStrategy :: Type -> Type #

Read CreateDeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.CreateDeploymentStrategy

Show CreateDeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.CreateDeploymentStrategy

NFData CreateDeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.CreateDeploymentStrategy

Eq CreateDeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.CreateDeploymentStrategy

Hashable CreateDeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.CreateDeploymentStrategy

type AWSResponse CreateDeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.CreateDeploymentStrategy

type Rep CreateDeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.CreateDeploymentStrategy

type Rep CreateDeploymentStrategy = D1 ('MetaData "CreateDeploymentStrategy" "Amazonka.AppConfig.CreateDeploymentStrategy" "amazonka-appconfig-2.0-KxEFpSAUlWtLf1lFyPWujo" 'False) (C1 ('MetaCons "CreateDeploymentStrategy'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "finalBakeTimeInMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "growthType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GrowthType)) :*: S1 ('MetaSel ('Just "replicateTo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReplicateTo)))) :*: ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "deploymentDurationInMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: S1 ('MetaSel ('Just "growthFactor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Double)))))

newCreateDeploymentStrategy Source #

Create a value of CreateDeploymentStrategy 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:

CreateDeploymentStrategy, createDeploymentStrategy_description - A description of the deployment strategy.

CreateDeploymentStrategy, createDeploymentStrategy_finalBakeTimeInMinutes - Specifies the amount of time AppConfig monitors for Amazon CloudWatch alarms after the configuration has been deployed to 100% of its targets, before considering the deployment to be complete. If an alarm is triggered during this time, AppConfig rolls back the deployment. You must configure permissions for AppConfig to roll back based on CloudWatch alarms. For more information, see Configuring permissions for rollback based on Amazon CloudWatch alarms in the AppConfig User Guide.

CreateDeploymentStrategy, createDeploymentStrategy_growthType - The algorithm used to define how percentage grows over time. AppConfig supports the following growth types:

Linear: For this type, AppConfig processes the deployment by dividing the total number of targets by the value specified for Step percentage. For example, a linear deployment that uses a Step percentage of 10 deploys the configuration to 10 percent of the hosts. After those deployments are complete, the system deploys the configuration to the next 10 percent. This continues until 100% of the targets have successfully received the configuration.

Exponential: For this type, AppConfig processes the deployment exponentially using the following formula: G*(2^N). In this formula, G is the growth factor specified by the user and N is the number of steps until the configuration is deployed to all targets. For example, if you specify a growth factor of 2, then the system rolls out the configuration as follows:

2*(2^0)
2*(2^1)
2*(2^2)

Expressed numerically, the deployment rolls out as follows: 2% of the targets, 4% of the targets, 8% of the targets, and continues until the configuration has been deployed to all targets.

CreateDeploymentStrategy, createDeploymentStrategy_replicateTo - Save the deployment strategy to a Systems Manager (SSM) document.

$sel:tags:CreateDeploymentStrategy', createDeploymentStrategy_tags - Metadata to assign to the deployment strategy. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define.

CreateDeploymentStrategy, createDeploymentStrategy_name - A name for the deployment strategy.

CreateDeploymentStrategy, createDeploymentStrategy_deploymentDurationInMinutes - Total amount of time for a deployment to last.

CreateDeploymentStrategy, createDeploymentStrategy_growthFactor - The percentage of targets to receive a deployed configuration during each interval.

Request Lenses

createDeploymentStrategy_finalBakeTimeInMinutes :: Lens' CreateDeploymentStrategy (Maybe Natural) Source #

Specifies the amount of time AppConfig monitors for Amazon CloudWatch alarms after the configuration has been deployed to 100% of its targets, before considering the deployment to be complete. If an alarm is triggered during this time, AppConfig rolls back the deployment. You must configure permissions for AppConfig to roll back based on CloudWatch alarms. For more information, see Configuring permissions for rollback based on Amazon CloudWatch alarms in the AppConfig User Guide.

createDeploymentStrategy_growthType :: Lens' CreateDeploymentStrategy (Maybe GrowthType) Source #

The algorithm used to define how percentage grows over time. AppConfig supports the following growth types:

Linear: For this type, AppConfig processes the deployment by dividing the total number of targets by the value specified for Step percentage. For example, a linear deployment that uses a Step percentage of 10 deploys the configuration to 10 percent of the hosts. After those deployments are complete, the system deploys the configuration to the next 10 percent. This continues until 100% of the targets have successfully received the configuration.

Exponential: For this type, AppConfig processes the deployment exponentially using the following formula: G*(2^N). In this formula, G is the growth factor specified by the user and N is the number of steps until the configuration is deployed to all targets. For example, if you specify a growth factor of 2, then the system rolls out the configuration as follows:

2*(2^0)
2*(2^1)
2*(2^2)

Expressed numerically, the deployment rolls out as follows: 2% of the targets, 4% of the targets, 8% of the targets, and continues until the configuration has been deployed to all targets.

createDeploymentStrategy_replicateTo :: Lens' CreateDeploymentStrategy (Maybe ReplicateTo) Source #

Save the deployment strategy to a Systems Manager (SSM) document.

createDeploymentStrategy_tags :: Lens' CreateDeploymentStrategy (Maybe (HashMap Text Text)) Source #

Metadata to assign to the deployment strategy. Tags help organize and categorize your AppConfig resources. Each tag consists of a key and an optional value, both of which you define.

createDeploymentStrategy_growthFactor :: Lens' CreateDeploymentStrategy Double Source #

The percentage of targets to receive a deployed configuration during each interval.

Destructuring the Response

data DeploymentStrategy Source #

See: newDeploymentStrategy smart constructor.

Constructors

DeploymentStrategy' 

Fields

Instances

Instances details
FromJSON DeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.Types.DeploymentStrategy

Generic DeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.Types.DeploymentStrategy

Associated Types

type Rep DeploymentStrategy :: Type -> Type #

Read DeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.Types.DeploymentStrategy

Show DeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.Types.DeploymentStrategy

NFData DeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.Types.DeploymentStrategy

Methods

rnf :: DeploymentStrategy -> () #

Eq DeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.Types.DeploymentStrategy

Hashable DeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.Types.DeploymentStrategy

type Rep DeploymentStrategy Source # 
Instance details

Defined in Amazonka.AppConfig.Types.DeploymentStrategy

type Rep DeploymentStrategy = D1 ('MetaData "DeploymentStrategy" "Amazonka.AppConfig.Types.DeploymentStrategy" "amazonka-appconfig-2.0-KxEFpSAUlWtLf1lFyPWujo" 'False) (C1 ('MetaCons "DeploymentStrategy'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "deploymentDurationInMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "finalBakeTimeInMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "growthFactor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)))) :*: ((S1 ('MetaSel ('Just "growthType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GrowthType)) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "replicateTo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReplicateTo))))))

newDeploymentStrategy :: DeploymentStrategy Source #

Create a value of DeploymentStrategy 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:deploymentDurationInMinutes:DeploymentStrategy', deploymentStrategy_deploymentDurationInMinutes - Total amount of time the deployment lasted.

$sel:description:DeploymentStrategy', deploymentStrategy_description - The description of the deployment strategy.

$sel:finalBakeTimeInMinutes:DeploymentStrategy', deploymentStrategy_finalBakeTimeInMinutes - The amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no longer eligible for automatic rollback.

$sel:growthFactor:DeploymentStrategy', deploymentStrategy_growthFactor - The percentage of targets that received a deployed configuration during each interval.

$sel:growthType:DeploymentStrategy', deploymentStrategy_growthType - The algorithm used to define how percentage grew over time.

$sel:id:DeploymentStrategy', deploymentStrategy_id - The deployment strategy ID.

$sel:name:DeploymentStrategy', deploymentStrategy_name - The name of the deployment strategy.

$sel:replicateTo:DeploymentStrategy', deploymentStrategy_replicateTo - Save the deployment strategy to a Systems Manager (SSM) document.

Response Lenses

deploymentStrategy_description :: Lens' DeploymentStrategy (Maybe Text) Source #

The description of the deployment strategy.

deploymentStrategy_finalBakeTimeInMinutes :: Lens' DeploymentStrategy (Maybe Natural) Source #

The amount of time that AppConfig monitored for alarms before considering the deployment to be complete and no longer eligible for automatic rollback.

deploymentStrategy_growthFactor :: Lens' DeploymentStrategy (Maybe Double) Source #

The percentage of targets that received a deployed configuration during each interval.

deploymentStrategy_growthType :: Lens' DeploymentStrategy (Maybe GrowthType) Source #

The algorithm used to define how percentage grew over time.

deploymentStrategy_name :: Lens' DeploymentStrategy (Maybe Text) Source #

The name of the deployment strategy.

deploymentStrategy_replicateTo :: Lens' DeploymentStrategy (Maybe ReplicateTo) Source #

Save the deployment strategy to a Systems Manager (SSM) document.