Class: AWSCDK::Codepipeline::CfnPipeline::GitBranchFilterCriteriaProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Codepipeline::CfnPipeline::GitBranchFilterCriteriaProperty
- Defined in:
- codepipeline/cfn_pipeline.rb
Overview
The Git repository branches specified as filter criteria to start the pipeline.
Instance Attribute Summary collapse
-
#excludes ⇒ Array<String>?
readonly
The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
-
#includes ⇒ Array<String>?
readonly
The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(excludes: nil, includes: nil) ⇒ GitBranchFilterCriteriaProperty
constructor
A new instance of GitBranchFilterCriteriaProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(excludes: nil, includes: nil) ⇒ GitBranchFilterCriteriaProperty
Returns a new instance of GitBranchFilterCriteriaProperty.
1331 1332 1333 1334 1335 1336 |
# File 'codepipeline/cfn_pipeline.rb', line 1331 def initialize(excludes: nil, includes: nil) @excludes = excludes Jsii::Type.check_type(@excludes, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "excludes") unless @excludes.nil? @includes = includes Jsii::Type.check_type(@includes, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "includes") unless @includes.nil? end |
Instance Attribute Details
#excludes ⇒ Array<String>? (readonly)
The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.
1342 1343 1344 |
# File 'codepipeline/cfn_pipeline.rb', line 1342 def excludes @excludes end |
#includes ⇒ Array<String>? (readonly)
The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.
1347 1348 1349 |
# File 'codepipeline/cfn_pipeline.rb', line 1347 def includes @includes end |
Class Method Details
.jsii_properties ⇒ Object
1349 1350 1351 1352 1353 1354 |
# File 'codepipeline/cfn_pipeline.rb', line 1349 def self.jsii_properties { :excludes => "excludes", :includes => "includes", } end |
Instance Method Details
#to_jsii ⇒ Object
1356 1357 1358 1359 1360 1361 1362 1363 |
# File 'codepipeline/cfn_pipeline.rb', line 1356 def to_jsii result = {} result.merge!({ "excludes" => @excludes, "includes" => @includes, }) result.compact end |