Class: AWSCDK::CodePipelineActions::S3SourceAction
- Inherits:
-
Action
- Object
- Action
- AWSCDK::CodePipelineActions::S3SourceAction
- Defined in:
- code_pipeline_actions/s3_source_action.rb
Overview
Source that is provided by a specific Amazon S3 object.
Will trigger the pipeline as soon as the S3 object changes, but only if there is a CloudTrail Trail in the account that captures the S3 event.
Class Method Summary collapse
Instance Method Summary collapse
-
#action_properties ⇒ AWSCDK::Codepipeline::ActionProperties
The simple properties of the Action, like its Owner, name, etc.
-
#bind(scope, stage, options) ⇒ AWSCDK::Codepipeline::ActionConfig
The callback invoked when this Action is added to a Pipeline.
-
#bound(_scope, stage, options) ⇒ AWSCDK::Codepipeline::ActionConfig
This is a renamed version of the
IAction.bindmethod. -
#initialize(props) ⇒ S3SourceAction
constructor
A new instance of S3SourceAction.
-
#on_state_change(name, target = nil, options = nil) ⇒ AWSCDK::Events::Rule
Creates an Event that will be triggered whenever the state of this Action changes.
-
#provided_action_properties ⇒ AWSCDK::Codepipeline::ActionProperties
This is a renamed version of the
IAction.actionPropertiesproperty. - #variable_expression(variable_name) ⇒ String
-
#variables ⇒ AWSCDK::CodePipelineActions::S3SourceVariables
The variables emitted by this action.
Constructor Details
#initialize(props) ⇒ S3SourceAction
Returns a new instance of S3SourceAction.
12 13 14 15 16 |
# File 'code_pipeline_actions/s3_source_action.rb', line 12 def initialize(props) props = props.is_a?(Hash) ? ::AWSCDK::CodePipelineActions::S3SourceActionProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lX2FjdGlvbnMuUzNTb3VyY2VBY3Rpb25Qcm9wcyJ9")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'code_pipeline_actions/s3_source_action.rb', line 18 def self.jsii_overridable_methods { :action_properties => { kind: :property, name: "actionProperties", is_optional: false }, :provided_action_properties => { kind: :property, name: "providedActionProperties", is_optional: false }, :variables => { kind: :property, name: "variables", is_optional: false }, :bind => { kind: :method, name: "bind", is_optional: false }, :bound => { kind: :method, name: "bound", is_optional: false }, :on_state_change => { kind: :method, name: "onStateChange", is_optional: false }, :variable_expression => { kind: :method, name: "variableExpression", is_optional: false }, } end |
Instance Method Details
#action_properties ⇒ AWSCDK::Codepipeline::ActionProperties
The simple properties of the Action, like its Owner, name, etc.
Note that this accessor will be called before the bind callback.
35 36 37 |
# File 'code_pipeline_actions/s3_source_action.rb', line 35 def action_properties() jsii_get_property("actionProperties") end |
#bind(scope, stage, options) ⇒ AWSCDK::Codepipeline::ActionConfig
The callback invoked when this Action is added to a Pipeline.
59 60 61 62 63 64 65 |
# File 'code_pipeline_actions/s3_source_action.rb', line 59 def bind(scope, stage, ) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(stage, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lLklTdGFnZSJ9")), "stage") = .is_a?(Hash) ? ::AWSCDK::Codepipeline::ActionBindOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lLkFjdGlvbkJpbmRPcHRpb25zIn0=")), "options") jsii_call_method("bind", [scope, stage, ]) end |
#bound(_scope, stage, options) ⇒ AWSCDK::Codepipeline::ActionConfig
This is a renamed version of the IAction.bind method.
73 74 75 76 77 78 79 |
# File 'code_pipeline_actions/s3_source_action.rb', line 73 def bound(_scope, stage, ) Jsii::Type.check_type(_scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "_scope") Jsii::Type.check_type(stage, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lLklTdGFnZSJ9")), "stage") = .is_a?(Hash) ? ::AWSCDK::Codepipeline::ActionBindOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lLkFjdGlvbkJpbmRPcHRpb25zIn0=")), "options") jsii_call_method("bound", [_scope, stage, ]) end |
#on_state_change(name, target = nil, options = nil) ⇒ AWSCDK::Events::Rule
Creates an Event that will be triggered whenever the state of this Action changes.
87 88 89 90 91 92 93 |
# File 'code_pipeline_actions/s3_source_action.rb', line 87 def on_state_change(name, target = nil, = nil) Jsii::Type.check_type(name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") Jsii::Type.check_type(target, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZXZlbnRzLklSdWxlVGFyZ2V0In0=")), "target") unless target.nil? = .is_a?(Hash) ? ::AWSCDK::Events::RuleProps.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZXZlbnRzLlJ1bGVQcm9wcyJ9")), "options") unless .nil? jsii_call_method("onStateChange", [name, target, ]) end |
#provided_action_properties ⇒ AWSCDK::Codepipeline::ActionProperties
This is a renamed version of the IAction.actionProperties property.
42 43 44 |
# File 'code_pipeline_actions/s3_source_action.rb', line 42 def provided_action_properties() jsii_get_property("providedActionProperties") end |
#variable_expression(variable_name) ⇒ String
97 98 99 100 |
# File 'code_pipeline_actions/s3_source_action.rb', line 97 def variable_expression(variable_name) Jsii::Type.check_type(variable_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "variableName") jsii_call_method("variableExpression", [variable_name]) end |
#variables ⇒ AWSCDK::CodePipelineActions::S3SourceVariables
The variables emitted by this action.
49 50 51 |
# File 'code_pipeline_actions/s3_source_action.rb', line 49 def variables() jsii_get_property("variables") end |