Class: AWSCDK::Pipelines::S3SourceOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pipelines::S3SourceOptions
- Defined in:
- pipelines/s3_source_options.rb
Overview
Options for S3 sources.
Instance Attribute Summary collapse
-
#action_name ⇒ String?
readonly
The action name used for this source in the CodePipeline.
-
#role ⇒ AWSCDK::IAM::IRole?
readonly
The role that will be assumed by the pipeline prior to executing the
S3Sourceaction. -
#trigger ⇒ AWSCDK::CodePipelineActions::S3Trigger?
readonly
How should CodePipeline detect source changes for this Action.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action_name: nil, role: nil, trigger: nil) ⇒ S3SourceOptions
constructor
A new instance of S3SourceOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(action_name: nil, role: nil, trigger: nil) ⇒ S3SourceOptions
Returns a new instance of S3SourceOptions.
10 11 12 13 14 15 16 17 |
# File 'pipelines/s3_source_options.rb', line 10 def initialize(action_name: nil, role: nil, trigger: nil) @action_name = action_name Jsii::Type.check_type(@action_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "actionName") unless @action_name.nil? @role = role Jsii::Type.check_type(@role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "role") unless @role.nil? @trigger = trigger Jsii::Type.check_type(@trigger, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lX2FjdGlvbnMuUzNUcmlnZ2VyIn0=")), "trigger") unless @trigger.nil? end |
Instance Attribute Details
#action_name ⇒ String? (readonly)
Default: - The bucket name
The action name used for this source in the CodePipeline.
23 24 25 |
# File 'pipelines/s3_source_options.rb', line 23 def action_name @action_name end |
#role ⇒ AWSCDK::IAM::IRole? (readonly)
Default: - a new role will be generated
The role that will be assumed by the pipeline prior to executing the S3Source action.
28 29 30 |
# File 'pipelines/s3_source_options.rb', line 28 def role @role end |
#trigger ⇒ AWSCDK::CodePipelineActions::S3Trigger? (readonly)
Default: S3Trigger.POLL
How should CodePipeline detect source changes for this Action.
Note that if this is S3Trigger.EVENTS, you need to make sure to include the source Bucket in a CloudTrail Trail, as otherwise the CloudWatch Events will not be emitted.
37 38 39 |
# File 'pipelines/s3_source_options.rb', line 37 def trigger @trigger end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'pipelines/s3_source_options.rb', line 39 def self.jsii_properties { :action_name => "actionName", :role => "role", :trigger => "trigger", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'pipelines/s3_source_options.rb', line 47 def to_jsii result = {} result.merge!({ "actionName" => @action_name, "role" => @role, "trigger" => @trigger, }) result.compact end |