Class: AWSCDK::CodeDeploy::LambdaDeploymentGroupAttributes

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

Overview

Properties of a reference to a CodeDeploy Lambda Deployment Group.

See Also:

  • LambdaDeploymentGroup#fromLambdaDeploymentGroupAttributes

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application:, deployment_group_name:, deployment_config: nil) ⇒ LambdaDeploymentGroupAttributes

Returns a new instance of LambdaDeploymentGroupAttributes.

Parameters:

  • application (AWSCDK::CodeDeploy::ILambdaApplication)

    The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.

  • deployment_group_name (String)

    The physical, human-readable name of the CodeDeploy Lambda Deployment Group that we are referencing.

  • deployment_config (AWSCDK::CodeDeploy::ILambdaDeploymentConfig, nil) (defaults to: nil)

    The Deployment Configuration this Deployment Group uses.



12
13
14
15
16
17
18
19
# File 'code_deploy/lambda_deployment_group_attributes.rb', line 12

def initialize(application:, deployment_group_name:, deployment_config: nil)
  @application = application
  Jsii::Type.check_type(@application, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZWRlcGxveS5JTGFtYmRhQXBwbGljYXRpb24ifQ==")), "application")
  @deployment_group_name = deployment_group_name
  Jsii::Type.check_type(@deployment_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deploymentGroupName")
  @deployment_config = deployment_config
  Jsii::Type.check_type(@deployment_config, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZWRlcGxveS5JTGFtYmRhRGVwbG95bWVudENvbmZpZyJ9")), "deploymentConfig") unless @deployment_config.nil?
end

Instance Attribute Details

#applicationAWSCDK::CodeDeploy::ILambdaApplication (readonly)

The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.



24
25
26
# File 'code_deploy/lambda_deployment_group_attributes.rb', line 24

def application
  @application
end

#deployment_configAWSCDK::CodeDeploy::ILambdaDeploymentConfig? (readonly)

Note:

Default: LambdaDeploymentConfig.CANARY_10PERCENT_5MINUTES

The Deployment Configuration this Deployment Group uses.



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

def deployment_config
  @deployment_config
end

#deployment_group_nameString (readonly)

The physical, human-readable name of the CodeDeploy Lambda Deployment Group that we are referencing.

Returns:

  • (String)


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

def deployment_group_name
  @deployment_group_name
end

Class Method Details

.jsii_propertiesObject



35
36
37
38
39
40
41
# File 'code_deploy/lambda_deployment_group_attributes.rb', line 35

def self.jsii_properties
  {
    :application => "application",
    :deployment_group_name => "deploymentGroupName",
    :deployment_config => "deploymentConfig",
  }
end

Instance Method Details

#to_jsiiObject



43
44
45
46
47
48
49
50
51
# File 'code_deploy/lambda_deployment_group_attributes.rb', line 43

def to_jsii
  result = {}
  result.merge!({
    "application" => @application,
    "deploymentGroupName" => @deployment_group_name,
    "deploymentConfig" => @deployment_config,
  })
  result.compact
end