Class: AWSCDK::AppConfig::DeploymentStrategyId

Inherits:
Jsii::Object
  • Object
show all
Defined in:
app_config/deployment_strategy_id.rb

Overview

Defines the deployment strategy ID's of AWS AppConfig deployment strategies.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDeploymentStrategyId

Returns a new instance of DeploymentStrategyId.



10
11
12
# File 'app_config/deployment_strategy_id.rb', line 10

def initialize
  Jsii::Object.instance_method(:initialize).bind(self).call
end

Class Method Details

.ALL_AT_ONCEAWSCDK::AppConfig::DeploymentStrategyId

Quick.

This strategy deploys the configuration to all targets immediately.

Returns:

  • (AWSCDK::AppConfig::DeploymentStrategyId)


34
35
36
# File 'app_config/deployment_strategy_id.rb', line 34

def self.ALL_AT_ONCE()
  Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_appconfig.DeploymentStrategyId", "ALL_AT_ONCE")
end

.CANARY_10_PERCENT_20_MINUTESAWSCDK::AppConfig::DeploymentStrategyId

AWS Recommended.

This strategy processes the deployment exponentially using a 10% growth factor over 20 minutes. AWS AppConfig recommends using this strategy for production deployments because it aligns with AWS best practices for configuration deployments.

Returns:

  • (AWSCDK::AppConfig::DeploymentStrategyId)


45
46
47
# File 'app_config/deployment_strategy_id.rb', line 45

def self.CANARY_10_PERCENT_20_MINUTES()
  Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_appconfig.DeploymentStrategyId", "CANARY_10_PERCENT_20_MINUTES")
end

.from_string(deployment_strategy_id) ⇒ AWSCDK::AppConfig::DeploymentStrategyId

Builds a deployment strategy ID from a string.

Parameters:

  • deployment_strategy_id (String)

    The deployment strategy ID.

Returns:

  • (AWSCDK::AppConfig::DeploymentStrategyId)


24
25
26
27
# File 'app_config/deployment_strategy_id.rb', line 24

def self.from_string(deployment_strategy_id)
  Jsii::Type.check_type(deployment_strategy_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deploymentStrategyId")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appconfig.DeploymentStrategyId", "fromString", [deployment_strategy_id])
end

.jsii_overridable_methodsObject



14
15
16
17
18
# File 'app_config/deployment_strategy_id.rb', line 14

def self.jsii_overridable_methods
  {
    :id => { kind: :property, name: "id", is_optional: false },
  }
end

.LINEAR_20_PERCENT_EVERY_6_MINUTESAWSCDK::AppConfig::DeploymentStrategyId

AWS Recommended.

This strategy deploys the configuration to 20% of all targets every six minutes for a 30 minute deployment. AWS AppConfig recommends using this strategy for production deployments because it aligns with AWS best practices for configuration deployments.

Returns:

  • (AWSCDK::AppConfig::DeploymentStrategyId)


56
57
58
# File 'app_config/deployment_strategy_id.rb', line 56

def self.LINEAR_20_PERCENT_EVERY_6_MINUTES()
  Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_appconfig.DeploymentStrategyId", "LINEAR_20_PERCENT_EVERY_6_MINUTES")
end

.LINEAR_50_PERCENT_EVERY_30_SECONDSAWSCDK::AppConfig::DeploymentStrategyId

Testing/Demonstration.

This strategy deploys the configuration to half of all targets every 30 seconds for a one-minute deployment. AWS AppConfig recommends using this strategy only for testing or demonstration purposes because it has a short duration and bake time.

Returns:

  • (AWSCDK::AppConfig::DeploymentStrategyId)


67
68
69
# File 'app_config/deployment_strategy_id.rb', line 67

def self.LINEAR_50_PERCENT_EVERY_30_SECONDS()
  Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_appconfig.DeploymentStrategyId", "LINEAR_50_PERCENT_EVERY_30_SECONDS")
end

Instance Method Details

#idString

The deployment strategy ID.

Returns:

  • (String)


74
75
76
# File 'app_config/deployment_strategy_id.rb', line 74

def id()
  jsii_get_property("id")
end