Class: AWSCDK::AppConfig::DeploymentStrategyId
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::AppConfig::DeploymentStrategyId
- Defined in:
- app_config/deployment_strategy_id.rb
Overview
Defines the deployment strategy ID's of AWS AppConfig deployment strategies.
Class Method Summary collapse
-
.ALL_AT_ONCE ⇒ AWSCDK::AppConfig::DeploymentStrategyId
Quick.
-
.CANARY_10_PERCENT_20_MINUTES ⇒ AWSCDK::AppConfig::DeploymentStrategyId
AWS Recommended.
-
.from_string(deployment_strategy_id) ⇒ AWSCDK::AppConfig::DeploymentStrategyId
Builds a deployment strategy ID from a string.
- .jsii_overridable_methods ⇒ Object
-
.LINEAR_20_PERCENT_EVERY_6_MINUTES ⇒ AWSCDK::AppConfig::DeploymentStrategyId
AWS Recommended.
-
.LINEAR_50_PERCENT_EVERY_30_SECONDS ⇒ AWSCDK::AppConfig::DeploymentStrategyId
Testing/Demonstration.
Instance Method Summary collapse
-
#id ⇒ String
The deployment strategy ID.
-
#initialize ⇒ DeploymentStrategyId
constructor
A new instance of DeploymentStrategyId.
Constructor Details
#initialize ⇒ DeploymentStrategyId
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_ONCE ⇒ AWSCDK::AppConfig::DeploymentStrategyId
Quick.
This strategy deploys the configuration to all targets immediately.
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_MINUTES ⇒ AWSCDK::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.
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.
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_methods ⇒ Object
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_MINUTES ⇒ AWSCDK::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.
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_SECONDS ⇒ AWSCDK::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.
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
#id ⇒ String
The deployment strategy ID.
74 75 76 |
# File 'app_config/deployment_strategy_id.rb', line 74 def id() jsii_get_property("id") end |