Class: AWSCDK::CodeDeploy::CustomLambdaDeploymentConfigProps Deprecated

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_deploy/custom_lambda_deployment_config_props.rb

Overview

Deprecated.

Use LambdaDeploymentConfig

Properties of a reference to a CodeDeploy Lambda Deployment Configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interval:, percentage:, type:, deployment_config_name: nil) ⇒ CustomLambdaDeploymentConfigProps

Returns a new instance of CustomLambdaDeploymentConfigProps.

Parameters:

  • interval (AWSCDK::Duration)

    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.

  • percentage (Numeric)

    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.

  • type (AWSCDK::CodeDeploy::CustomLambdaDeploymentConfigType)

    The type of deployment config, either CANARY or LINEAR.

  • deployment_config_name (String, nil) (defaults to: nil)

    The verbatim name of the deployment config.



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_nameString? (readonly)

Deprecated.

Use LambdaDeploymentConfig

Note:

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.

Returns:

  • (String, nil)


47
48
49
# File 'code_deploy/custom_lambda_deployment_config_props.rb', line 47

def deployment_config_name
  @deployment_config_name
end

#intervalAWSCDK::Duration (readonly)

Deprecated.

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.

Returns:



28
29
30
# File 'code_deploy/custom_lambda_deployment_config_props.rb', line 28

def interval
  @interval
end

#percentageNumeric (readonly)

Deprecated.

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.

Returns:

  • (Numeric)


33
34
35
# File 'code_deploy/custom_lambda_deployment_config_props.rb', line 33

def percentage
  @percentage
end

#typeAWSCDK::CodeDeploy::CustomLambdaDeploymentConfigType (readonly)

Deprecated.

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_propertiesObject



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_jsiiObject



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