Class: AWSCDK::CodeDeploy::CustomLambdaDeploymentConfigProps Deprecated
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeDeploy::CustomLambdaDeploymentConfigProps
- Defined in:
- code_deploy/custom_lambda_deployment_config_props.rb
Overview
Use LambdaDeploymentConfig
Properties of a reference to a CodeDeploy Lambda Deployment Configuration.
Instance Attribute Summary collapse
-
#deployment_config_name ⇒ String?
readonly
deprecated
Deprecated.
Use
LambdaDeploymentConfig -
#interval ⇒ AWSCDK::Duration
readonly
deprecated
Deprecated.
Use
LambdaDeploymentConfig -
#percentage ⇒ Numeric
readonly
deprecated
Deprecated.
Use
LambdaDeploymentConfig -
#type ⇒ AWSCDK::CodeDeploy::CustomLambdaDeploymentConfigType
readonly
deprecated
Deprecated.
Use
LambdaDeploymentConfig
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(interval:, percentage:, type:, deployment_config_name: nil) ⇒ CustomLambdaDeploymentConfigProps
constructor
A new instance of CustomLambdaDeploymentConfigProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(interval:, percentage:, type:, deployment_config_name: nil) ⇒ CustomLambdaDeploymentConfigProps
Returns a new instance of CustomLambdaDeploymentConfigProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'code_deploy/custom_lambda_deployment_config_props.rb', line 13 def initialize(interval:, percentage:, type:, deployment_config_name: nil) @interval = interval Jsii::Type.check_type(@interval, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "interval") @percentage = percentage Jsii::Type.check_type(@percentage, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "percentage") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZWRlcGxveS5DdXN0b21MYW1iZGFEZXBsb3ltZW50Q29uZmlnVHlwZSJ9")), "type") @deployment_config_name = deployment_config_name Jsii::Type.check_type(@deployment_config_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deploymentConfigName") unless @deployment_config_name.nil? end |
Instance Attribute Details
#deployment_config_name ⇒ String? (readonly)
Use LambdaDeploymentConfig
Default: - automatically generated name
The verbatim name of the deployment config.
Must be unique per account/region. Other parameters cannot be updated if this name is provided.
47 48 49 |
# File 'code_deploy/custom_lambda_deployment_config_props.rb', line 47 def deployment_config_name @deployment_config_name end |
#interval ⇒ AWSCDK::Duration (readonly)
Use LambdaDeploymentConfig
The interval, in number of minutes: - For LINEAR, how frequently additional traffic is shifted - For CANARY, how long to shift traffic before the full deployment.
28 29 30 |
# File 'code_deploy/custom_lambda_deployment_config_props.rb', line 28 def interval @interval end |
#percentage ⇒ Numeric (readonly)
Use LambdaDeploymentConfig
The integer percentage of traffic to shift: - For LINEAR, the percentage to shift every interval - For CANARY, the percentage to shift until the interval passes, before the full deployment.
33 34 35 |
# File 'code_deploy/custom_lambda_deployment_config_props.rb', line 33 def percentage @percentage end |
#type ⇒ AWSCDK::CodeDeploy::CustomLambdaDeploymentConfigType (readonly)
Use LambdaDeploymentConfig
The type of deployment config, either CANARY or LINEAR.
38 39 40 |
# File 'code_deploy/custom_lambda_deployment_config_props.rb', line 38 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'code_deploy/custom_lambda_deployment_config_props.rb', line 49 def self.jsii_properties { :interval => "interval", :percentage => "percentage", :type => "type", :deployment_config_name => "deploymentConfigName", } end |
Instance Method Details
#to_jsii ⇒ Object
58 59 60 61 62 63 64 65 66 67 |
# File 'code_deploy/custom_lambda_deployment_config_props.rb', line 58 def to_jsii result = {} result.merge!({ "interval" => @interval, "percentage" => @percentage, "type" => @type, "deploymentConfigName" => @deployment_config_name, }) result.compact end |