Class: AWSCDK::Codepipeline::CfnPipeline::GitPushFilterProperty

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

Overview

The event criteria that specify when a specified repository event will start the pipeline for the specified trigger configuration, such as the lists of Git tags to include and exclude.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(branches: nil, file_paths: nil, tags: nil) ⇒ GitPushFilterProperty

Returns a new instance of GitPushFilterProperty.

Parameters:



1536
1537
1538
1539
1540
1541
1542
1543
# File 'codepipeline/cfn_pipeline.rb', line 1536

def initialize(branches: nil, file_paths: nil, tags: nil)
  @branches = branches.is_a?(Hash) ? ::AWSCDK::Codepipeline::CfnPipeline::GitBranchFilterCriteriaProperty.new(**branches.transform_keys(&:to_sym)) : branches
  Jsii::Type.check_type(@branches, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb2RlcGlwZWxpbmUuQ2ZuUGlwZWxpbmUuR2l0QnJhbmNoRmlsdGVyQ3JpdGVyaWFQcm9wZXJ0eSJ9XX19")), "branches") unless @branches.nil?
  @file_paths = file_paths.is_a?(Hash) ? ::AWSCDK::Codepipeline::CfnPipeline::GitFilePathFilterCriteriaProperty.new(**file_paths.transform_keys(&:to_sym)) : file_paths
  Jsii::Type.check_type(@file_paths, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb2RlcGlwZWxpbmUuQ2ZuUGlwZWxpbmUuR2l0RmlsZVBhdGhGaWx0ZXJDcml0ZXJpYVByb3BlcnR5In1dfX0=")), "filePaths") unless @file_paths.nil?
  @tags = tags.is_a?(Hash) ? ::AWSCDK::Codepipeline::CfnPipeline::GitTagFilterCriteriaProperty.new(**tags.transform_keys(&:to_sym)) : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lLkNmblBpcGVsaW5lLkdpdFRhZ0ZpbHRlckNyaXRlcmlhUHJvcGVydHkifQ==")), "tags") unless @tags.nil?
end

Instance Attribute Details

#branchesAWSCDK::IResolvable, ... (readonly)

The field that specifies to filter on branches for the push trigger configuration.



1549
1550
1551
# File 'codepipeline/cfn_pipeline.rb', line 1549

def branches
  @branches
end

#file_pathsAWSCDK::IResolvable, ... (readonly)

The field that specifies to filter on file paths for the push trigger configuration.



1554
1555
1556
# File 'codepipeline/cfn_pipeline.rb', line 1554

def file_paths
  @file_paths
end

#tagsAWSCDK::Codepipeline::CfnPipeline::GitTagFilterCriteriaProperty? (readonly)

The field that contains the details for the Git tags trigger configuration.



1559
1560
1561
# File 'codepipeline/cfn_pipeline.rb', line 1559

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



1561
1562
1563
1564
1565
1566
1567
# File 'codepipeline/cfn_pipeline.rb', line 1561

def self.jsii_properties
  {
    :branches => "branches",
    :file_paths => "filePaths",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



1569
1570
1571
1572
1573
1574
1575
1576
1577
# File 'codepipeline/cfn_pipeline.rb', line 1569

def to_jsii
  result = {}
  result.merge!({
    "branches" => @branches,
    "filePaths" => @file_paths,
    "tags" => @tags,
  })
  result.compact
end