Class: AWSCDK::CodePipelineActions::EC2DeploySpecifications

Inherits:
Jsii::Object
  • Object
show all
Defined in:
code_pipeline_actions/ec2_deploy_specifications.rb

Overview

A deploy specifications for EC2 deploy action.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEC2DeploySpecifications

Returns a new instance of EC2DeploySpecifications.



8
9
10
# File 'code_pipeline_actions/ec2_deploy_specifications.rb', line 8

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

Class Method Details

.inline(props) ⇒ AWSCDK::CodePipelineActions::EC2DeploySpecifications

Store deploy specifications as action configurations.

Parameters:

Returns:

  • (AWSCDK::CodePipelineActions::EC2DeploySpecifications)


22
23
24
25
26
# File 'code_pipeline_actions/ec2_deploy_specifications.rb', line 22

def self.inline(props)
  props = props.is_a?(Hash) ? ::AWSCDK::CodePipelineActions::EC2DeploySpecificationsInlineProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lX2FjdGlvbnMuRWMyRGVwbG95U3BlY2lmaWNhdGlvbnNJbmxpbmVQcm9wcyJ9")), "props")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_codepipeline_actions.Ec2DeploySpecifications", "inline", [props])
end

.jsii_overridable_methodsObject



12
13
14
15
16
# File 'code_pipeline_actions/ec2_deploy_specifications.rb', line 12

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

Instance Method Details

#bind(scope) ⇒ Object

The callback invoked when this deploy specifications is bound to an action.

Parameters:

  • scope (Constructs::Construct)

    the Construct tree scope.

Returns:

  • (Object)

    the action configurations



32
33
34
35
# File 'code_pipeline_actions/ec2_deploy_specifications.rb', line 32

def bind(scope)
  Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
  jsii_call_method("bind", [scope])
end