Class: AWSCDK::Codepipeline::CfnPipeline::GitBranchFilterCriteriaProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
codepipeline/cfn_pipeline.rb

Overview

The Git repository branches specified as filter criteria to start the pipeline.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(excludes: nil, includes: nil) ⇒ GitBranchFilterCriteriaProperty

Returns a new instance of GitBranchFilterCriteriaProperty.

Parameters:

  • excludes (Array<String>, nil) (defaults to: nil)

    The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.

  • includes (Array<String>, nil) (defaults to: nil)

    The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.



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

#excludesArray<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

#includesArray<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_propertiesObject



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_jsiiObject



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