Class: AWSCDK::Codepipeline::TriggerProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Codepipeline::TriggerProps
- Defined in:
- codepipeline/trigger_props.rb
Overview
Properties of trigger.
Instance Attribute Summary collapse
-
#git_configuration ⇒ AWSCDK::Codepipeline::GitConfiguration?
readonly
Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.
-
#provider_type ⇒ AWSCDK::Codepipeline::ProviderType
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) ⇒ TriggerProps
constructor
A new instance of TriggerProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(provider_type:, git_configuration: nil) ⇒ TriggerProps
Returns a new instance of TriggerProps.
9 10 11 12 13 14 |
# File 'codepipeline/trigger_props.rb', line 9 def initialize(provider_type:, git_configuration: nil) @provider_type = provider_type Jsii::Type.check_type(@provider_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lLlByb3ZpZGVyVHlwZSJ9")), "providerType") @git_configuration = git_configuration.is_a?(Hash) ? ::AWSCDK::Codepipeline::GitConfiguration.new(**git_configuration.transform_keys(&:to_sym)) : git_configuration Jsii::Type.check_type(@git_configuration, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lLkdpdENvbmZpZ3VyYXRpb24ifQ==")), "gitConfiguration") unless @git_configuration.nil? end |
Instance Attribute Details
#git_configuration ⇒ AWSCDK::Codepipeline::GitConfiguration? (readonly)
Note:
Default: - no configuration.
Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.
24 25 26 |
# File 'codepipeline/trigger_props.rb', line 24 def git_configuration @git_configuration end |
#provider_type ⇒ AWSCDK::Codepipeline::ProviderType (readonly)
The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.
19 20 21 |
# File 'codepipeline/trigger_props.rb', line 19 def provider_type @provider_type end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 31 |
# File 'codepipeline/trigger_props.rb', line 26 def self.jsii_properties { :provider_type => "providerType", :git_configuration => "gitConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'codepipeline/trigger_props.rb', line 33 def to_jsii result = {} result.merge!({ "providerType" => @provider_type, "gitConfiguration" => @git_configuration, }) result.compact end |