Class: AWSCDK::Codepipeline::CfnPipeline::PipelineTriggerDeclarationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Codepipeline::CfnPipeline::PipelineTriggerDeclarationProperty
- Defined in:
- codepipeline/cfn_pipeline.rb
Overview
Represents information about the specified trigger configuration, such as the filter criteria and the source stage for the action that contains the trigger.
This is only supported for the
CodeStarSourceConnectionaction type. > When a trigger configuration is specified, default change detection for repository and branch commits is disabled.
Instance Attribute Summary collapse
-
#git_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.
-
#provider_type ⇒ String
readonly
The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(provider_type:, git_configuration: nil) ⇒ PipelineTriggerDeclarationProperty
constructor
A new instance of PipelineTriggerDeclarationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(provider_type:, git_configuration: nil) ⇒ PipelineTriggerDeclarationProperty
Returns a new instance of PipelineTriggerDeclarationProperty.
1717 1718 1719 1720 1721 1722 |
# File 'codepipeline/cfn_pipeline.rb', line 1717 def initialize(provider_type:, git_configuration: nil) @provider_type = provider_type Jsii::Type.check_type(@provider_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "providerType") @git_configuration = git_configuration.is_a?(Hash) ? ::AWSCDK::Codepipeline::CfnPipeline::GitConfigurationProperty.new(**git_configuration.transform_keys(&:to_sym)) : git_configuration Jsii::Type.check_type(@git_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb2RlcGlwZWxpbmUuQ2ZuUGlwZWxpbmUuR2l0Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "gitConfiguration") unless @git_configuration.nil? end |
Instance Attribute Details
#git_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.
1733 1734 1735 |
# File 'codepipeline/cfn_pipeline.rb', line 1733 def git_configuration @git_configuration end |
#provider_type ⇒ String (readonly)
The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.
1728 1729 1730 |
# File 'codepipeline/cfn_pipeline.rb', line 1728 def provider_type @provider_type end |
Class Method Details
.jsii_properties ⇒ Object
1735 1736 1737 1738 1739 1740 |
# File 'codepipeline/cfn_pipeline.rb', line 1735 def self.jsii_properties { :provider_type => "providerType", :git_configuration => "gitConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
1742 1743 1744 1745 1746 1747 1748 1749 |
# File 'codepipeline/cfn_pipeline.rb', line 1742 def to_jsii result = {} result.merge!({ "providerType" => @provider_type, "gitConfiguration" => @git_configuration, }) result.compact end |