Class: AWSCDK::Codepipeline::CfnPipeline::GitConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Codepipeline::CfnPipeline::GitConfigurationProperty
- Defined in:
- codepipeline/cfn_pipeline.rb
Overview
A type of trigger configuration for Git-based source actions.
You can specify the Git configuration trigger type for all third-party Git-based source actions that are supported by the
CodeStarSourceConnectionaction type.
Instance Attribute Summary collapse
-
#pull_request ⇒ AWSCDK::IResolvable, ...
readonly
The field where the repository event that will start the pipeline is specified as pull requests.
-
#push ⇒ AWSCDK::IResolvable, ...
readonly
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.
-
#source_action_name ⇒ String
readonly
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(source_action_name:, pull_request: nil, push: nil) ⇒ GitConfigurationProperty
constructor
A new instance of GitConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(source_action_name:, pull_request: nil, push: nil) ⇒ GitConfigurationProperty
Returns a new instance of GitConfigurationProperty.
1377 1378 1379 1380 1381 1382 1383 1384 |
# File 'codepipeline/cfn_pipeline.rb', line 1377 def initialize(source_action_name:, pull_request: nil, push: nil) @source_action_name = source_action_name Jsii::Type.check_type(@source_action_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceActionName") @pull_request = pull_request Jsii::Type.check_type(@pull_request, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lLkNmblBpcGVsaW5lLkdpdFB1bGxSZXF1ZXN0RmlsdGVyUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "pullRequest") unless @pull_request.nil? @push = push Jsii::Type.check_type(@push, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZXBpcGVsaW5lLkNmblBpcGVsaW5lLkdpdFB1c2hGaWx0ZXJQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "push") unless @push.nil? end |
Instance Attribute Details
#pull_request ⇒ AWSCDK::IResolvable, ... (readonly)
The field where the repository event that will start the pipeline is specified as pull requests.
1399 1400 1401 |
# File 'codepipeline/cfn_pipeline.rb', line 1399 def pull_request @pull_request end |
#push ⇒ AWSCDK::IResolvable, ... (readonly)
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.
1404 1405 1406 |
# File 'codepipeline/cfn_pipeline.rb', line 1404 def push @push end |
#source_action_name ⇒ String (readonly)
The name of the pipeline source action where the trigger configuration, such as Git tags, is specified.
The trigger configuration will start the pipeline upon the specified change only.
You can only specify one trigger configuration per source action.
1394 1395 1396 |
# File 'codepipeline/cfn_pipeline.rb', line 1394 def source_action_name @source_action_name end |
Class Method Details
.jsii_properties ⇒ Object
1406 1407 1408 1409 1410 1411 1412 |
# File 'codepipeline/cfn_pipeline.rb', line 1406 def self.jsii_properties { :source_action_name => "sourceActionName", :pull_request => "pullRequest", :push => "push", } end |
Instance Method Details
#to_jsii ⇒ Object
1414 1415 1416 1417 1418 1419 1420 1421 1422 |
# File 'codepipeline/cfn_pipeline.rb', line 1414 def to_jsii result = {} result.merge!({ "sourceActionName" => @source_action_name, "pullRequest" => @pull_request, "push" => @push, }) result.compact end |