Class: AWSCDK::ECS::DeploymentLifecycleLambdaTargetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::DeploymentLifecycleLambdaTargetProps
- Defined in:
- ecs/deployment_lifecycle_lambda_target_props.rb
Overview
Configuration for a lambda deployment lifecycle hook.
Instance Attribute Summary collapse
-
#lifecycle_stages ⇒ Array<AWSCDK::ECS::DeploymentLifecycleStage>
readonly
The lifecycle stages when this hook should be executed.
-
#role ⇒ AWSCDK::IAM::IRole?
readonly
The IAM role that grants permissions to invoke the lambda target.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(lifecycle_stages:, role: nil) ⇒ DeploymentLifecycleLambdaTargetProps
constructor
A new instance of DeploymentLifecycleLambdaTargetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(lifecycle_stages:, role: nil) ⇒ DeploymentLifecycleLambdaTargetProps
Returns a new instance of DeploymentLifecycleLambdaTargetProps.
9 10 11 12 13 14 |
# File 'ecs/deployment_lifecycle_lambda_target_props.rb', line 9 def initialize(lifecycle_stages:, role: nil) @lifecycle_stages = lifecycle_stages Jsii::Type.check_type(@lifecycle_stages, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lY3MuRGVwbG95bWVudExpZmVjeWNsZVN0YWdlIn0sImtpbmQiOiJhcnJheSJ9fQ==")), "lifecycleStages") @role = role Jsii::Type.check_type(@role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "role") unless @role.nil? end |
Instance Attribute Details
#lifecycle_stages ⇒ Array<AWSCDK::ECS::DeploymentLifecycleStage> (readonly)
The lifecycle stages when this hook should be executed.
19 20 21 |
# File 'ecs/deployment_lifecycle_lambda_target_props.rb', line 19 def lifecycle_stages @lifecycle_stages end |
#role ⇒ AWSCDK::IAM::IRole? (readonly)
Note:
Default: - A unique role will be generated for this lambda function.
The IAM role that grants permissions to invoke the lambda target.
24 25 26 |
# File 'ecs/deployment_lifecycle_lambda_target_props.rb', line 24 def role @role end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 31 |
# File 'ecs/deployment_lifecycle_lambda_target_props.rb', line 26 def self.jsii_properties { :lifecycle_stages => "lifecycleStages", :role => "role", } end |
Instance Method Details
#to_jsii ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'ecs/deployment_lifecycle_lambda_target_props.rb', line 33 def to_jsii result = {} result.merge!({ "lifecycleStages" => @lifecycle_stages, "role" => @role, }) result.compact end |