aws-sdk-codepipeline 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b898d040f65f01393bcd3e83fc252d4c6fe9fbe5
4
- data.tar.gz: 2675d2c74f8c58f57d57c807951f7e6aad4fc130
3
+ metadata.gz: 032f8df6ba554d0341e13f378712e7d1b92b1771
4
+ data.tar.gz: 24a0a36412ee9b18b6bc47f61dbf7f276b5bbfdb
5
5
  SHA512:
6
- metadata.gz: d967c5dcaa28a19f338ad99852a88d7091440569a06dbc63b930c5c86fb7aa1d468f1e3142d26f225c38ba2208e413754cb06f38d451c0ef4f589082368ad66f
7
- data.tar.gz: 2c98852772615410cfc782183935320d88e59c080a0b52d81009a2757e8c03b6a2508a0c7d063783525b21760106766fa06ad18982cf86f30d62369917d15f31
6
+ metadata.gz: a6a5012f06f7c638356f4af48bbd10bc040475a9bcbc0b55f61cff445d54eea63659cab0ef08f8fa90a3c8941d084f431bc881189d592a2e616de298d78dbbe6
7
+ data.tar.gz: 8079e3de1ac86f8a934b99618501d36ccdc875c236de6367df9f47eb49b61a3a6847bfe527798458bd0b4f9365bf54cb0bb1c06959e4176a30d890fe7b53fb2f
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-codepipeline/customizations'
42
42
  # @service
43
43
  module Aws::CodePipeline
44
44
 
45
- GEM_VERSION = '1.2.0'
45
+ GEM_VERSION = '1.3.0'
46
46
 
47
47
  end
@@ -454,8 +454,11 @@ module Aws::CodePipeline
454
454
  # will fail after the action is marked for deletion. Only used for
455
455
  # custom actions.
456
456
  #
457
- # You cannot recreate a custom action after it has been deleted unless
458
- # you increase the version number of the action.
457
+ # To re-create a custom action after it has been deleted you must use a
458
+ # string in the version field that has never been used before. This
459
+ # string can be an incremented version number, for example. To restore a
460
+ # deleted custom action, use a JSON file that is identical to the
461
+ # deleted action, including the original string in the version field.
459
462
  #
460
463
  # @option params [required, String] :category
461
464
  # The category of the custom action that you want to delete, such as
@@ -509,6 +512,57 @@ module Aws::CodePipeline
509
512
  req.send_request(options)
510
513
  end
511
514
 
515
+ # Deletes a previously created webhook by name. Deleting the webhook
516
+ # stops AWS CodePipeline from starting a pipeline every time an external
517
+ # event occurs. The API will return successfully when trying to delete a
518
+ # webhook that is already deleted. If a deleted webhook is re-created by
519
+ # calling PutWebhook with the same name, it will have a different URL.
520
+ #
521
+ # @option params [required, String] :name
522
+ # The name of the webhook you want to delete.
523
+ #
524
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
525
+ #
526
+ # @example Request syntax with placeholder values
527
+ #
528
+ # resp = client.delete_webhook({
529
+ # name: "WebhookName", # required
530
+ # })
531
+ #
532
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteWebhook AWS API Documentation
533
+ #
534
+ # @overload delete_webhook(params = {})
535
+ # @param [Hash] params ({})
536
+ def delete_webhook(params = {}, options = {})
537
+ req = build_request(:delete_webhook, params)
538
+ req.send_request(options)
539
+ end
540
+
541
+ # Removes the connection between the webhook that was created by
542
+ # CodePipeline and the external tool with events to be detected.
543
+ # Currently only supported for webhooks that target an action type of
544
+ # GitHub.
545
+ #
546
+ # @option params [String] :webhook_name
547
+ # The name of the webhook you want to deregister.
548
+ #
549
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
550
+ #
551
+ # @example Request syntax with placeholder values
552
+ #
553
+ # resp = client.deregister_webhook_with_third_party({
554
+ # webhook_name: "WebhookName",
555
+ # })
556
+ #
557
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeregisterWebhookWithThirdParty AWS API Documentation
558
+ #
559
+ # @overload deregister_webhook_with_third_party(params = {})
560
+ # @param [Hash] params ({})
561
+ def deregister_webhook_with_third_party(params = {}, options = {})
562
+ req = build_request(:deregister_webhook_with_third_party, params)
563
+ req.send_request(options)
564
+ end
565
+
512
566
  # Prevents artifacts in a pipeline from transitioning to the next stage
513
567
  # in the pipeline.
514
568
  #
@@ -1040,7 +1094,63 @@ module Aws::CodePipeline
1040
1094
  req.send_request(options)
1041
1095
  end
1042
1096
 
1097
+ # Gets a listing of all the webhooks in this region for this account.
1098
+ # The output lists all webhooks and includes the webhook URL and ARN, as
1099
+ # well the configuration for each webhook.
1100
+ #
1101
+ # @option params [String] :next_token
1102
+ # The token that was returned from the previous ListWebhooks call, which
1103
+ # can be used to return the next set of webhooks in the list.
1104
+ #
1105
+ # @option params [Integer] :max_results
1106
+ # The maximum number of results to return in a single call. To retrieve
1107
+ # the remaining results, make another call with the returned nextToken
1108
+ # value.
1109
+ #
1110
+ # @return [Types::ListWebhooksOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1111
+ #
1112
+ # * {Types::ListWebhooksOutput#webhooks #webhooks} => Array<Types::ListWebhookItem>
1113
+ # * {Types::ListWebhooksOutput#next_token #next_token} => String
1114
+ #
1115
+ # @example Request syntax with placeholder values
1116
+ #
1117
+ # resp = client.list_webhooks({
1118
+ # next_token: "NextToken",
1119
+ # max_results: 1,
1120
+ # })
1121
+ #
1122
+ # @example Response structure
1123
+ #
1124
+ # resp.webhooks #=> Array
1125
+ # resp.webhooks[0].definition.name #=> String
1126
+ # resp.webhooks[0].definition.target_pipeline #=> String
1127
+ # resp.webhooks[0].definition.target_action #=> String
1128
+ # resp.webhooks[0].definition.filters #=> Array
1129
+ # resp.webhooks[0].definition.filters[0].json_path #=> String
1130
+ # resp.webhooks[0].definition.filters[0].match_equals #=> String
1131
+ # resp.webhooks[0].definition.authentication #=> String, one of "GITHUB_HMAC", "IP", "UNAUTHENTICATED"
1132
+ # resp.webhooks[0].definition.authentication_configuration.allowed_ip_range #=> String
1133
+ # resp.webhooks[0].definition.authentication_configuration.secret_token #=> String
1134
+ # resp.webhooks[0].url #=> String
1135
+ # resp.webhooks[0].error_message #=> String
1136
+ # resp.webhooks[0].error_code #=> String
1137
+ # resp.webhooks[0].last_triggered #=> Time
1138
+ # resp.webhooks[0].arn #=> String
1139
+ # resp.next_token #=> String
1140
+ #
1141
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListWebhooks AWS API Documentation
1142
+ #
1143
+ # @overload list_webhooks(params = {})
1144
+ # @param [Hash] params ({})
1145
+ def list_webhooks(params = {}, options = {})
1146
+ req = build_request(:list_webhooks, params)
1147
+ req.send_request(options)
1148
+ end
1149
+
1043
1150
  # Returns information about any jobs for AWS CodePipeline to act upon.
1151
+ # PollForJobs is only valid for action types with "Custom" in the
1152
+ # owner field. If the action type contains "AWS" or "ThirdParty" in
1153
+ # the owner field, the PollForJobs action returns an error.
1044
1154
  #
1045
1155
  # When this API is called, AWS CodePipeline returns temporary
1046
1156
  # credentials for the Amazon S3 bucket used to store artifacts for the
@@ -1448,6 +1558,98 @@ module Aws::CodePipeline
1448
1558
  req.send_request(options)
1449
1559
  end
1450
1560
 
1561
+ # Defines a webhook and returns a unique webhook URL generated by
1562
+ # CodePipeline. This URL can be supplied to third party source hosting
1563
+ # providers to call every time there's a code change. When CodePipeline
1564
+ # receives a POST request on this URL, the pipeline defined in the
1565
+ # webhook is started as long as the POST request satisfied the
1566
+ # authentication and filtering requirements supplied when defining the
1567
+ # webhook. RegisterWebhookWithThirdParty and
1568
+ # DeregisterWebhookWithThirdParty APIs can be used to automatically
1569
+ # configure supported third parties to call the generated webhook URL.
1570
+ #
1571
+ # @option params [required, Types::WebhookDefinition] :webhook
1572
+ # The detail provided in an input file to create the webhook, such as
1573
+ # the webhook name, the pipeline name, and the action name. Give the
1574
+ # webhook a unique name which identifies the webhook being defined. You
1575
+ # may choose to name the webhook after the pipeline and action it
1576
+ # targets so that you can easily recognize what it's used for later.
1577
+ #
1578
+ # @return [Types::PutWebhookOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1579
+ #
1580
+ # * {Types::PutWebhookOutput#webhook #webhook} => Types::ListWebhookItem
1581
+ #
1582
+ # @example Request syntax with placeholder values
1583
+ #
1584
+ # resp = client.put_webhook({
1585
+ # webhook: { # required
1586
+ # name: "WebhookName", # required
1587
+ # target_pipeline: "PipelineName", # required
1588
+ # target_action: "ActionName", # required
1589
+ # filters: [ # required
1590
+ # {
1591
+ # json_path: "JsonPath", # required
1592
+ # match_equals: "MatchEquals",
1593
+ # },
1594
+ # ],
1595
+ # authentication: "GITHUB_HMAC", # required, accepts GITHUB_HMAC, IP, UNAUTHENTICATED
1596
+ # authentication_configuration: { # required
1597
+ # allowed_ip_range: "WebhookAuthConfigurationAllowedIPRange",
1598
+ # secret_token: "WebhookAuthConfigurationSecretToken",
1599
+ # },
1600
+ # },
1601
+ # })
1602
+ #
1603
+ # @example Response structure
1604
+ #
1605
+ # resp.webhook.definition.name #=> String
1606
+ # resp.webhook.definition.target_pipeline #=> String
1607
+ # resp.webhook.definition.target_action #=> String
1608
+ # resp.webhook.definition.filters #=> Array
1609
+ # resp.webhook.definition.filters[0].json_path #=> String
1610
+ # resp.webhook.definition.filters[0].match_equals #=> String
1611
+ # resp.webhook.definition.authentication #=> String, one of "GITHUB_HMAC", "IP", "UNAUTHENTICATED"
1612
+ # resp.webhook.definition.authentication_configuration.allowed_ip_range #=> String
1613
+ # resp.webhook.definition.authentication_configuration.secret_token #=> String
1614
+ # resp.webhook.url #=> String
1615
+ # resp.webhook.error_message #=> String
1616
+ # resp.webhook.error_code #=> String
1617
+ # resp.webhook.last_triggered #=> Time
1618
+ # resp.webhook.arn #=> String
1619
+ #
1620
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutWebhook AWS API Documentation
1621
+ #
1622
+ # @overload put_webhook(params = {})
1623
+ # @param [Hash] params ({})
1624
+ def put_webhook(params = {}, options = {})
1625
+ req = build_request(:put_webhook, params)
1626
+ req.send_request(options)
1627
+ end
1628
+
1629
+ # Configures a connection between the webhook that was created and the
1630
+ # external tool with events to be detected.
1631
+ #
1632
+ # @option params [String] :webhook_name
1633
+ # The name of an existing webhook created with PutWebhook to register
1634
+ # with a supported third party.
1635
+ #
1636
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1637
+ #
1638
+ # @example Request syntax with placeholder values
1639
+ #
1640
+ # resp = client.register_webhook_with_third_party({
1641
+ # webhook_name: "WebhookName",
1642
+ # })
1643
+ #
1644
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RegisterWebhookWithThirdParty AWS API Documentation
1645
+ #
1646
+ # @overload register_webhook_with_third_party(params = {})
1647
+ # @param [Hash] params ({})
1648
+ def register_webhook_with_third_party(params = {}, options = {})
1649
+ req = build_request(:register_webhook_with_third_party, params)
1650
+ req.send_request(options)
1651
+ end
1652
+
1451
1653
  # Resumes the pipeline execution by retrying the last failed actions in
1452
1654
  # a stage.
1453
1655
  #
@@ -1640,7 +1842,7 @@ module Aws::CodePipeline
1640
1842
  params: params,
1641
1843
  config: config)
1642
1844
  context[:gem_name] = 'aws-sdk-codepipeline'
1643
- context[:gem_version] = '1.2.0'
1845
+ context[:gem_version] = '1.3.0'
1644
1846
  Seahorse::Client::Request.new(handlers, context)
1645
1847
  end
1646
1848
 
@@ -76,6 +76,10 @@ module Aws::CodePipeline
76
76
  CurrentRevision = Shapes::StructureShape.new(name: 'CurrentRevision')
77
77
  DeleteCustomActionTypeInput = Shapes::StructureShape.new(name: 'DeleteCustomActionTypeInput')
78
78
  DeletePipelineInput = Shapes::StructureShape.new(name: 'DeletePipelineInput')
79
+ DeleteWebhookInput = Shapes::StructureShape.new(name: 'DeleteWebhookInput')
80
+ DeleteWebhookOutput = Shapes::StructureShape.new(name: 'DeleteWebhookOutput')
81
+ DeregisterWebhookWithThirdPartyInput = Shapes::StructureShape.new(name: 'DeregisterWebhookWithThirdPartyInput')
82
+ DeregisterWebhookWithThirdPartyOutput = Shapes::StructureShape.new(name: 'DeregisterWebhookWithThirdPartyOutput')
79
83
  Description = Shapes::StringShape.new(name: 'Description')
80
84
  DisableStageTransitionInput = Shapes::StructureShape.new(name: 'DisableStageTransitionInput')
81
85
  DisabledReason = Shapes::StringShape.new(name: 'DisabledReason')
@@ -112,6 +116,8 @@ module Aws::CodePipeline
112
116
  InvalidNonceException = Shapes::StructureShape.new(name: 'InvalidNonceException')
113
117
  InvalidStageDeclarationException = Shapes::StructureShape.new(name: 'InvalidStageDeclarationException')
114
118
  InvalidStructureException = Shapes::StructureShape.new(name: 'InvalidStructureException')
119
+ InvalidWebhookAuthenticationParametersException = Shapes::StructureShape.new(name: 'InvalidWebhookAuthenticationParametersException')
120
+ InvalidWebhookFilterPatternException = Shapes::StructureShape.new(name: 'InvalidWebhookFilterPatternException')
115
121
  Job = Shapes::StructureShape.new(name: 'Job')
116
122
  JobData = Shapes::StructureShape.new(name: 'JobData')
117
123
  JobDetails = Shapes::StructureShape.new(name: 'JobDetails')
@@ -119,6 +125,7 @@ module Aws::CodePipeline
119
125
  JobList = Shapes::ListShape.new(name: 'JobList')
120
126
  JobNotFoundException = Shapes::StructureShape.new(name: 'JobNotFoundException')
121
127
  JobStatus = Shapes::StringShape.new(name: 'JobStatus')
128
+ JsonPath = Shapes::StringShape.new(name: 'JsonPath')
122
129
  LastChangedAt = Shapes::TimestampShape.new(name: 'LastChangedAt')
123
130
  LastChangedBy = Shapes::StringShape.new(name: 'LastChangedBy')
124
131
  LastUpdatedBy = Shapes::StringShape.new(name: 'LastUpdatedBy')
@@ -129,6 +136,10 @@ module Aws::CodePipeline
129
136
  ListPipelineExecutionsOutput = Shapes::StructureShape.new(name: 'ListPipelineExecutionsOutput')
130
137
  ListPipelinesInput = Shapes::StructureShape.new(name: 'ListPipelinesInput')
131
138
  ListPipelinesOutput = Shapes::StructureShape.new(name: 'ListPipelinesOutput')
139
+ ListWebhookItem = Shapes::StructureShape.new(name: 'ListWebhookItem')
140
+ ListWebhooksInput = Shapes::StructureShape.new(name: 'ListWebhooksInput')
141
+ ListWebhooksOutput = Shapes::StructureShape.new(name: 'ListWebhooksOutput')
142
+ MatchEquals = Shapes::StringShape.new(name: 'MatchEquals')
132
143
  MaxBatchSize = Shapes::IntegerShape.new(name: 'MaxBatchSize')
133
144
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
134
145
  MaximumArtifactCount = Shapes::IntegerShape.new(name: 'MaximumArtifactCount')
@@ -170,7 +181,11 @@ module Aws::CodePipeline
170
181
  PutJobSuccessResultInput = Shapes::StructureShape.new(name: 'PutJobSuccessResultInput')
171
182
  PutThirdPartyJobFailureResultInput = Shapes::StructureShape.new(name: 'PutThirdPartyJobFailureResultInput')
172
183
  PutThirdPartyJobSuccessResultInput = Shapes::StructureShape.new(name: 'PutThirdPartyJobSuccessResultInput')
184
+ PutWebhookInput = Shapes::StructureShape.new(name: 'PutWebhookInput')
185
+ PutWebhookOutput = Shapes::StructureShape.new(name: 'PutWebhookOutput')
173
186
  QueryParamMap = Shapes::MapShape.new(name: 'QueryParamMap')
187
+ RegisterWebhookWithThirdPartyInput = Shapes::StructureShape.new(name: 'RegisterWebhookWithThirdPartyInput')
188
+ RegisterWebhookWithThirdPartyOutput = Shapes::StructureShape.new(name: 'RegisterWebhookWithThirdPartyOutput')
174
189
  RetryStageExecutionInput = Shapes::StructureShape.new(name: 'RetryStageExecutionInput')
175
190
  RetryStageExecutionOutput = Shapes::StructureShape.new(name: 'RetryStageExecutionOutput')
176
191
  Revision = Shapes::StringShape.new(name: 'Revision')
@@ -213,6 +228,21 @@ module Aws::CodePipeline
213
228
  UrlTemplate = Shapes::StringShape.new(name: 'UrlTemplate')
214
229
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
215
230
  Version = Shapes::StringShape.new(name: 'Version')
231
+ WebhookArn = Shapes::StringShape.new(name: 'WebhookArn')
232
+ WebhookAuthConfiguration = Shapes::StructureShape.new(name: 'WebhookAuthConfiguration')
233
+ WebhookAuthConfigurationAllowedIPRange = Shapes::StringShape.new(name: 'WebhookAuthConfigurationAllowedIPRange')
234
+ WebhookAuthConfigurationSecretToken = Shapes::StringShape.new(name: 'WebhookAuthConfigurationSecretToken')
235
+ WebhookAuthenticationType = Shapes::StringShape.new(name: 'WebhookAuthenticationType')
236
+ WebhookDefinition = Shapes::StructureShape.new(name: 'WebhookDefinition')
237
+ WebhookErrorCode = Shapes::StringShape.new(name: 'WebhookErrorCode')
238
+ WebhookErrorMessage = Shapes::StringShape.new(name: 'WebhookErrorMessage')
239
+ WebhookFilterRule = Shapes::StructureShape.new(name: 'WebhookFilterRule')
240
+ WebhookFilters = Shapes::ListShape.new(name: 'WebhookFilters')
241
+ WebhookLastTriggered = Shapes::TimestampShape.new(name: 'WebhookLastTriggered')
242
+ WebhookList = Shapes::ListShape.new(name: 'WebhookList')
243
+ WebhookName = Shapes::StringShape.new(name: 'WebhookName')
244
+ WebhookNotFoundException = Shapes::StructureShape.new(name: 'WebhookNotFoundException')
245
+ WebhookUrl = Shapes::StringShape.new(name: 'WebhookUrl')
216
246
 
217
247
  AWSSessionCredentials.add_member(:access_key_id, Shapes::ShapeRef.new(shape: AccessKeyId, required: true, location_name: "accessKeyId"))
218
248
  AWSSessionCredentials.add_member(:secret_access_key, Shapes::ShapeRef.new(shape: SecretAccessKey, required: true, location_name: "secretAccessKey"))
@@ -379,6 +409,16 @@ module Aws::CodePipeline
379
409
  DeletePipelineInput.add_member(:name, Shapes::ShapeRef.new(shape: PipelineName, required: true, location_name: "name"))
380
410
  DeletePipelineInput.struct_class = Types::DeletePipelineInput
381
411
 
412
+ DeleteWebhookInput.add_member(:name, Shapes::ShapeRef.new(shape: WebhookName, required: true, location_name: "name"))
413
+ DeleteWebhookInput.struct_class = Types::DeleteWebhookInput
414
+
415
+ DeleteWebhookOutput.struct_class = Types::DeleteWebhookOutput
416
+
417
+ DeregisterWebhookWithThirdPartyInput.add_member(:webhook_name, Shapes::ShapeRef.new(shape: WebhookName, location_name: "webhookName"))
418
+ DeregisterWebhookWithThirdPartyInput.struct_class = Types::DeregisterWebhookWithThirdPartyInput
419
+
420
+ DeregisterWebhookWithThirdPartyOutput.struct_class = Types::DeregisterWebhookWithThirdPartyOutput
421
+
382
422
  DisableStageTransitionInput.add_member(:pipeline_name, Shapes::ShapeRef.new(shape: PipelineName, required: true, location_name: "pipelineName"))
383
423
  DisableStageTransitionInput.add_member(:stage_name, Shapes::ShapeRef.new(shape: StageName, required: true, location_name: "stageName"))
384
424
  DisableStageTransitionInput.add_member(:transition_type, Shapes::ShapeRef.new(shape: StageTransitionType, required: true, location_name: "transitionType"))
@@ -498,6 +538,22 @@ module Aws::CodePipeline
498
538
  ListPipelinesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
499
539
  ListPipelinesOutput.struct_class = Types::ListPipelinesOutput
500
540
 
541
+ ListWebhookItem.add_member(:definition, Shapes::ShapeRef.new(shape: WebhookDefinition, required: true, location_name: "definition"))
542
+ ListWebhookItem.add_member(:url, Shapes::ShapeRef.new(shape: WebhookUrl, required: true, location_name: "url"))
543
+ ListWebhookItem.add_member(:error_message, Shapes::ShapeRef.new(shape: WebhookErrorMessage, location_name: "errorMessage"))
544
+ ListWebhookItem.add_member(:error_code, Shapes::ShapeRef.new(shape: WebhookErrorCode, location_name: "errorCode"))
545
+ ListWebhookItem.add_member(:last_triggered, Shapes::ShapeRef.new(shape: WebhookLastTriggered, location_name: "lastTriggered"))
546
+ ListWebhookItem.add_member(:arn, Shapes::ShapeRef.new(shape: WebhookArn, location_name: "arn"))
547
+ ListWebhookItem.struct_class = Types::ListWebhookItem
548
+
549
+ ListWebhooksInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
550
+ ListWebhooksInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
551
+ ListWebhooksInput.struct_class = Types::ListWebhooksInput
552
+
553
+ ListWebhooksOutput.add_member(:webhooks, Shapes::ShapeRef.new(shape: WebhookList, location_name: "webhooks"))
554
+ ListWebhooksOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
555
+ ListWebhooksOutput.struct_class = Types::ListWebhooksOutput
556
+
501
557
  OutputArtifact.add_member(:name, Shapes::ShapeRef.new(shape: ArtifactName, required: true, location_name: "name"))
502
558
  OutputArtifact.struct_class = Types::OutputArtifact
503
559
 
@@ -603,9 +659,20 @@ module Aws::CodePipeline
603
659
  PutThirdPartyJobSuccessResultInput.add_member(:execution_details, Shapes::ShapeRef.new(shape: ExecutionDetails, location_name: "executionDetails"))
604
660
  PutThirdPartyJobSuccessResultInput.struct_class = Types::PutThirdPartyJobSuccessResultInput
605
661
 
662
+ PutWebhookInput.add_member(:webhook, Shapes::ShapeRef.new(shape: WebhookDefinition, required: true, location_name: "webhook"))
663
+ PutWebhookInput.struct_class = Types::PutWebhookInput
664
+
665
+ PutWebhookOutput.add_member(:webhook, Shapes::ShapeRef.new(shape: ListWebhookItem, location_name: "webhook"))
666
+ PutWebhookOutput.struct_class = Types::PutWebhookOutput
667
+
606
668
  QueryParamMap.key = Shapes::ShapeRef.new(shape: ActionConfigurationKey)
607
669
  QueryParamMap.value = Shapes::ShapeRef.new(shape: ActionConfigurationQueryableValue)
608
670
 
671
+ RegisterWebhookWithThirdPartyInput.add_member(:webhook_name, Shapes::ShapeRef.new(shape: WebhookName, location_name: "webhookName"))
672
+ RegisterWebhookWithThirdPartyInput.struct_class = Types::RegisterWebhookWithThirdPartyInput
673
+
674
+ RegisterWebhookWithThirdPartyOutput.struct_class = Types::RegisterWebhookWithThirdPartyOutput
675
+
609
676
  RetryStageExecutionInput.add_member(:pipeline_name, Shapes::ShapeRef.new(shape: PipelineName, required: true, location_name: "pipelineName"))
610
677
  RetryStageExecutionInput.add_member(:stage_name, Shapes::ShapeRef.new(shape: StageName, required: true, location_name: "stageName"))
611
678
  RetryStageExecutionInput.add_member(:pipeline_execution_id, Shapes::ShapeRef.new(shape: PipelineExecutionId, required: true, location_name: "pipelineExecutionId"))
@@ -690,6 +757,26 @@ module Aws::CodePipeline
690
757
  UpdatePipelineOutput.add_member(:pipeline, Shapes::ShapeRef.new(shape: PipelineDeclaration, location_name: "pipeline"))
691
758
  UpdatePipelineOutput.struct_class = Types::UpdatePipelineOutput
692
759
 
760
+ WebhookAuthConfiguration.add_member(:allowed_ip_range, Shapes::ShapeRef.new(shape: WebhookAuthConfigurationAllowedIPRange, location_name: "AllowedIPRange"))
761
+ WebhookAuthConfiguration.add_member(:secret_token, Shapes::ShapeRef.new(shape: WebhookAuthConfigurationSecretToken, location_name: "SecretToken"))
762
+ WebhookAuthConfiguration.struct_class = Types::WebhookAuthConfiguration
763
+
764
+ WebhookDefinition.add_member(:name, Shapes::ShapeRef.new(shape: WebhookName, required: true, location_name: "name"))
765
+ WebhookDefinition.add_member(:target_pipeline, Shapes::ShapeRef.new(shape: PipelineName, required: true, location_name: "targetPipeline"))
766
+ WebhookDefinition.add_member(:target_action, Shapes::ShapeRef.new(shape: ActionName, required: true, location_name: "targetAction"))
767
+ WebhookDefinition.add_member(:filters, Shapes::ShapeRef.new(shape: WebhookFilters, required: true, location_name: "filters"))
768
+ WebhookDefinition.add_member(:authentication, Shapes::ShapeRef.new(shape: WebhookAuthenticationType, required: true, location_name: "authentication"))
769
+ WebhookDefinition.add_member(:authentication_configuration, Shapes::ShapeRef.new(shape: WebhookAuthConfiguration, required: true, location_name: "authenticationConfiguration"))
770
+ WebhookDefinition.struct_class = Types::WebhookDefinition
771
+
772
+ WebhookFilterRule.add_member(:json_path, Shapes::ShapeRef.new(shape: JsonPath, required: true, location_name: "jsonPath"))
773
+ WebhookFilterRule.add_member(:match_equals, Shapes::ShapeRef.new(shape: MatchEquals, location_name: "matchEquals"))
774
+ WebhookFilterRule.struct_class = Types::WebhookFilterRule
775
+
776
+ WebhookFilters.member = Shapes::ShapeRef.new(shape: WebhookFilterRule)
777
+
778
+ WebhookList.member = Shapes::ShapeRef.new(shape: ListWebhookItem)
779
+
693
780
 
694
781
  # @api private
695
782
  API = Seahorse::Model::Api.new.tap do |api|
@@ -771,6 +858,25 @@ module Aws::CodePipeline
771
858
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
772
859
  end)
773
860
 
861
+ api.add_operation(:delete_webhook, Seahorse::Model::Operation.new.tap do |o|
862
+ o.name = "DeleteWebhook"
863
+ o.http_method = "POST"
864
+ o.http_request_uri = "/"
865
+ o.input = Shapes::ShapeRef.new(shape: DeleteWebhookInput)
866
+ o.output = Shapes::ShapeRef.new(shape: DeleteWebhookOutput)
867
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
868
+ end)
869
+
870
+ api.add_operation(:deregister_webhook_with_third_party, Seahorse::Model::Operation.new.tap do |o|
871
+ o.name = "DeregisterWebhookWithThirdParty"
872
+ o.http_method = "POST"
873
+ o.http_request_uri = "/"
874
+ o.input = Shapes::ShapeRef.new(shape: DeregisterWebhookWithThirdPartyInput)
875
+ o.output = Shapes::ShapeRef.new(shape: DeregisterWebhookWithThirdPartyOutput)
876
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
877
+ o.errors << Shapes::ShapeRef.new(shape: WebhookNotFoundException)
878
+ end)
879
+
774
880
  api.add_operation(:disable_stage_transition, Seahorse::Model::Operation.new.tap do |o|
775
881
  o.name = "DisableStageTransition"
776
882
  o.http_method = "POST"
@@ -874,6 +980,17 @@ module Aws::CodePipeline
874
980
  o.http_request_uri = "/"
875
981
  o.input = Shapes::ShapeRef.new(shape: ListPipelinesInput)
876
982
  o.output = Shapes::ShapeRef.new(shape: ListPipelinesOutput)
983
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
984
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
985
+ end)
986
+
987
+ api.add_operation(:list_webhooks, Seahorse::Model::Operation.new.tap do |o|
988
+ o.name = "ListWebhooks"
989
+ o.http_method = "POST"
990
+ o.http_request_uri = "/"
991
+ o.input = Shapes::ShapeRef.new(shape: ListWebhooksInput)
992
+ o.output = Shapes::ShapeRef.new(shape: ListWebhooksOutput)
993
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
877
994
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
878
995
  end)
879
996
 
@@ -969,6 +1086,29 @@ module Aws::CodePipeline
969
1086
  o.errors << Shapes::ShapeRef.new(shape: InvalidClientTokenException)
970
1087
  end)
971
1088
 
1089
+ api.add_operation(:put_webhook, Seahorse::Model::Operation.new.tap do |o|
1090
+ o.name = "PutWebhook"
1091
+ o.http_method = "POST"
1092
+ o.http_request_uri = "/"
1093
+ o.input = Shapes::ShapeRef.new(shape: PutWebhookInput)
1094
+ o.output = Shapes::ShapeRef.new(shape: PutWebhookOutput)
1095
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1096
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1097
+ o.errors << Shapes::ShapeRef.new(shape: InvalidWebhookFilterPatternException)
1098
+ o.errors << Shapes::ShapeRef.new(shape: InvalidWebhookAuthenticationParametersException)
1099
+ o.errors << Shapes::ShapeRef.new(shape: PipelineNotFoundException)
1100
+ end)
1101
+
1102
+ api.add_operation(:register_webhook_with_third_party, Seahorse::Model::Operation.new.tap do |o|
1103
+ o.name = "RegisterWebhookWithThirdParty"
1104
+ o.http_method = "POST"
1105
+ o.http_request_uri = "/"
1106
+ o.input = Shapes::ShapeRef.new(shape: RegisterWebhookWithThirdPartyInput)
1107
+ o.output = Shapes::ShapeRef.new(shape: RegisterWebhookWithThirdPartyOutput)
1108
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1109
+ o.errors << Shapes::ShapeRef.new(shape: WebhookNotFoundException)
1110
+ end)
1111
+
972
1112
  api.add_operation(:retry_stage_execution, Seahorse::Model::Operation.new.tap do |o|
973
1113
  o.name = "RetryStageExecution"
974
1114
  o.http_method = "POST"
@@ -494,7 +494,7 @@ module Aws::CodePipeline
494
494
  # @return [String]
495
495
  #
496
496
  # @!attribute [rw] version
497
- # A string that identifies the action type.
497
+ # A string that describes the action version.
498
498
  # @return [String]
499
499
  #
500
500
  # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ActionTypeId AWS API Documentation
@@ -1057,6 +1057,50 @@ module Aws::CodePipeline
1057
1057
  include Aws::Structure
1058
1058
  end
1059
1059
 
1060
+ # @note When making an API call, you may pass DeleteWebhookInput
1061
+ # data as a hash:
1062
+ #
1063
+ # {
1064
+ # name: "WebhookName", # required
1065
+ # }
1066
+ #
1067
+ # @!attribute [rw] name
1068
+ # The name of the webhook you want to delete.
1069
+ # @return [String]
1070
+ #
1071
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteWebhookInput AWS API Documentation
1072
+ #
1073
+ class DeleteWebhookInput < Struct.new(
1074
+ :name)
1075
+ include Aws::Structure
1076
+ end
1077
+
1078
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteWebhookOutput AWS API Documentation
1079
+ #
1080
+ class DeleteWebhookOutput < Aws::EmptyStructure; end
1081
+
1082
+ # @note When making an API call, you may pass DeregisterWebhookWithThirdPartyInput
1083
+ # data as a hash:
1084
+ #
1085
+ # {
1086
+ # webhook_name: "WebhookName",
1087
+ # }
1088
+ #
1089
+ # @!attribute [rw] webhook_name
1090
+ # The name of the webhook you want to deregister.
1091
+ # @return [String]
1092
+ #
1093
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeregisterWebhookWithThirdPartyInput AWS API Documentation
1094
+ #
1095
+ class DeregisterWebhookWithThirdPartyInput < Struct.new(
1096
+ :webhook_name)
1097
+ include Aws::Structure
1098
+ end
1099
+
1100
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeregisterWebhookWithThirdPartyOutput AWS API Documentation
1101
+ #
1102
+ class DeregisterWebhookWithThirdPartyOutput < Aws::EmptyStructure; end
1103
+
1060
1104
  # Represents the input of a DisableStageTransition action.
1061
1105
  #
1062
1106
  # @note When making an API call, you may pass DisableStageTransitionInput
@@ -1773,6 +1817,97 @@ module Aws::CodePipeline
1773
1817
  include Aws::Structure
1774
1818
  end
1775
1819
 
1820
+ # The detail returned for each webhook after listing webhooks, such as
1821
+ # the webhook URL, the webhook name, and the webhook ARN.
1822
+ #
1823
+ # @!attribute [rw] definition
1824
+ # The detail returned for each webhook, such as the webhook
1825
+ # authentication type and filter rules.
1826
+ # @return [Types::WebhookDefinition]
1827
+ #
1828
+ # @!attribute [rw] url
1829
+ # A unique URL generated by CodePipeline. When a POST request is made
1830
+ # to this URL, the defined pipeline is started as long as the body of
1831
+ # the post request satisfies the defined authentication and filtering
1832
+ # conditions. Deleting and re-creating a webhook will make the old URL
1833
+ # invalid and generate a new URL.
1834
+ # @return [String]
1835
+ #
1836
+ # @!attribute [rw] error_message
1837
+ # The text of the error message about the webhook.
1838
+ # @return [String]
1839
+ #
1840
+ # @!attribute [rw] error_code
1841
+ # The number code of the error.
1842
+ # @return [String]
1843
+ #
1844
+ # @!attribute [rw] last_triggered
1845
+ # The date and time a webhook was last successfully triggered, in
1846
+ # timestamp format.
1847
+ # @return [Time]
1848
+ #
1849
+ # @!attribute [rw] arn
1850
+ # The Amazon Resource Name (ARN) of the webhook.
1851
+ # @return [String]
1852
+ #
1853
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListWebhookItem AWS API Documentation
1854
+ #
1855
+ class ListWebhookItem < Struct.new(
1856
+ :definition,
1857
+ :url,
1858
+ :error_message,
1859
+ :error_code,
1860
+ :last_triggered,
1861
+ :arn)
1862
+ include Aws::Structure
1863
+ end
1864
+
1865
+ # @note When making an API call, you may pass ListWebhooksInput
1866
+ # data as a hash:
1867
+ #
1868
+ # {
1869
+ # next_token: "NextToken",
1870
+ # max_results: 1,
1871
+ # }
1872
+ #
1873
+ # @!attribute [rw] next_token
1874
+ # The token that was returned from the previous ListWebhooks call,
1875
+ # which can be used to return the next set of webhooks in the list.
1876
+ # @return [String]
1877
+ #
1878
+ # @!attribute [rw] max_results
1879
+ # The maximum number of results to return in a single call. To
1880
+ # retrieve the remaining results, make another call with the returned
1881
+ # nextToken value.
1882
+ # @return [Integer]
1883
+ #
1884
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListWebhooksInput AWS API Documentation
1885
+ #
1886
+ class ListWebhooksInput < Struct.new(
1887
+ :next_token,
1888
+ :max_results)
1889
+ include Aws::Structure
1890
+ end
1891
+
1892
+ # @!attribute [rw] webhooks
1893
+ # The JSON detail returned for each webhook in the list output for the
1894
+ # ListWebhooks call.
1895
+ # @return [Array<Types::ListWebhookItem>]
1896
+ #
1897
+ # @!attribute [rw] next_token
1898
+ # If the amount of returned information is significantly large, an
1899
+ # identifier is also returned and can be used in a subsequent
1900
+ # ListWebhooks call to return the next set of webhooks in the list.
1901
+ # @return [String]
1902
+ #
1903
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListWebhooksOutput AWS API Documentation
1904
+ #
1905
+ class ListWebhooksOutput < Struct.new(
1906
+ :webhooks,
1907
+ :next_token)
1908
+ include Aws::Structure
1909
+ end
1910
+
1776
1911
  # Represents information about the output of an action.
1777
1912
  #
1778
1913
  # @note When making an API call, you may pass OutputArtifact
@@ -2476,6 +2611,78 @@ module Aws::CodePipeline
2476
2611
  include Aws::Structure
2477
2612
  end
2478
2613
 
2614
+ # @note When making an API call, you may pass PutWebhookInput
2615
+ # data as a hash:
2616
+ #
2617
+ # {
2618
+ # webhook: { # required
2619
+ # name: "WebhookName", # required
2620
+ # target_pipeline: "PipelineName", # required
2621
+ # target_action: "ActionName", # required
2622
+ # filters: [ # required
2623
+ # {
2624
+ # json_path: "JsonPath", # required
2625
+ # match_equals: "MatchEquals",
2626
+ # },
2627
+ # ],
2628
+ # authentication: "GITHUB_HMAC", # required, accepts GITHUB_HMAC, IP, UNAUTHENTICATED
2629
+ # authentication_configuration: { # required
2630
+ # allowed_ip_range: "WebhookAuthConfigurationAllowedIPRange",
2631
+ # secret_token: "WebhookAuthConfigurationSecretToken",
2632
+ # },
2633
+ # },
2634
+ # }
2635
+ #
2636
+ # @!attribute [rw] webhook
2637
+ # The detail provided in an input file to create the webhook, such as
2638
+ # the webhook name, the pipeline name, and the action name. Give the
2639
+ # webhook a unique name which identifies the webhook being defined.
2640
+ # You may choose to name the webhook after the pipeline and action it
2641
+ # targets so that you can easily recognize what it's used for later.
2642
+ # @return [Types::WebhookDefinition]
2643
+ #
2644
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutWebhookInput AWS API Documentation
2645
+ #
2646
+ class PutWebhookInput < Struct.new(
2647
+ :webhook)
2648
+ include Aws::Structure
2649
+ end
2650
+
2651
+ # @!attribute [rw] webhook
2652
+ # The detail returned from creating the webhook, such as the webhook
2653
+ # name, webhook URL, and webhook ARN.
2654
+ # @return [Types::ListWebhookItem]
2655
+ #
2656
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutWebhookOutput AWS API Documentation
2657
+ #
2658
+ class PutWebhookOutput < Struct.new(
2659
+ :webhook)
2660
+ include Aws::Structure
2661
+ end
2662
+
2663
+ # @note When making an API call, you may pass RegisterWebhookWithThirdPartyInput
2664
+ # data as a hash:
2665
+ #
2666
+ # {
2667
+ # webhook_name: "WebhookName",
2668
+ # }
2669
+ #
2670
+ # @!attribute [rw] webhook_name
2671
+ # The name of an existing webhook created with PutWebhook to register
2672
+ # with a supported third party.
2673
+ # @return [String]
2674
+ #
2675
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RegisterWebhookWithThirdPartyInput AWS API Documentation
2676
+ #
2677
+ class RegisterWebhookWithThirdPartyInput < Struct.new(
2678
+ :webhook_name)
2679
+ include Aws::Structure
2680
+ end
2681
+
2682
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RegisterWebhookWithThirdPartyOutput AWS API Documentation
2683
+ #
2684
+ class RegisterWebhookWithThirdPartyOutput < Aws::EmptyStructure; end
2685
+
2479
2686
  # Represents the input of a RetryStageExecution action.
2480
2687
  #
2481
2688
  # @note When making an API call, you may pass RetryStageExecutionInput
@@ -2951,5 +3158,148 @@ module Aws::CodePipeline
2951
3158
  include Aws::Structure
2952
3159
  end
2953
3160
 
3161
+ # @note When making an API call, you may pass WebhookAuthConfiguration
3162
+ # data as a hash:
3163
+ #
3164
+ # {
3165
+ # allowed_ip_range: "WebhookAuthConfigurationAllowedIPRange",
3166
+ # secret_token: "WebhookAuthConfigurationSecretToken",
3167
+ # }
3168
+ #
3169
+ # @!attribute [rw] allowed_ip_range
3170
+ # @return [String]
3171
+ #
3172
+ # @!attribute [rw] secret_token
3173
+ # @return [String]
3174
+ #
3175
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/WebhookAuthConfiguration AWS API Documentation
3176
+ #
3177
+ class WebhookAuthConfiguration < Struct.new(
3178
+ :allowed_ip_range,
3179
+ :secret_token)
3180
+ include Aws::Structure
3181
+ end
3182
+
3183
+ # Represents information about a webhook and its definition.
3184
+ #
3185
+ # @note When making an API call, you may pass WebhookDefinition
3186
+ # data as a hash:
3187
+ #
3188
+ # {
3189
+ # name: "WebhookName", # required
3190
+ # target_pipeline: "PipelineName", # required
3191
+ # target_action: "ActionName", # required
3192
+ # filters: [ # required
3193
+ # {
3194
+ # json_path: "JsonPath", # required
3195
+ # match_equals: "MatchEquals",
3196
+ # },
3197
+ # ],
3198
+ # authentication: "GITHUB_HMAC", # required, accepts GITHUB_HMAC, IP, UNAUTHENTICATED
3199
+ # authentication_configuration: { # required
3200
+ # allowed_ip_range: "WebhookAuthConfigurationAllowedIPRange",
3201
+ # secret_token: "WebhookAuthConfigurationSecretToken",
3202
+ # },
3203
+ # }
3204
+ #
3205
+ # @!attribute [rw] name
3206
+ # The name of the webhook.
3207
+ # @return [String]
3208
+ #
3209
+ # @!attribute [rw] target_pipeline
3210
+ # The name of the pipeline you want to connect to the webhook.
3211
+ # @return [String]
3212
+ #
3213
+ # @!attribute [rw] target_action
3214
+ # The name of the action in a pipeline you want to connect to the
3215
+ # webhook. The action must be from the source (first) stage of the
3216
+ # pipeline.
3217
+ # @return [String]
3218
+ #
3219
+ # @!attribute [rw] filters
3220
+ # A list of rules applied to the body/payload sent in the POST request
3221
+ # to a webhook URL. All defined rules must pass for the request to be
3222
+ # accepted and the pipeline started.
3223
+ # @return [Array<Types::WebhookFilterRule>]
3224
+ #
3225
+ # @!attribute [rw] authentication
3226
+ # Supported options are GITHUB\_HMAC, IP and UNAUTHENTICATED.
3227
+ #
3228
+ # * GITHUB\_HMAC implements the authentication scheme described here:
3229
+ # https://developer.github.com/webhooks/securing/
3230
+ #
3231
+ # * IP will reject webhooks trigger requests unless they originate
3232
+ # from an IP within the IP range whitelisted in the authentication
3233
+ # configuration.
3234
+ #
3235
+ # * UNAUTHENTICATED will accept all webhook trigger requests
3236
+ # regardless of origin.
3237
+ # @return [String]
3238
+ #
3239
+ # @!attribute [rw] authentication_configuration
3240
+ # Properties that configure the authentication applied to incoming
3241
+ # webhook trigger requests. The required properties depend on the
3242
+ # authentication type. For GITHUB\_HMAC, only the SecretToken property
3243
+ # must be set. For IP, only the AllowedIPRange property must be set to
3244
+ # a valid CIDR range. For UNAUTHENTICATED, no properties can be set.
3245
+ # @return [Types::WebhookAuthConfiguration]
3246
+ #
3247
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/WebhookDefinition AWS API Documentation
3248
+ #
3249
+ class WebhookDefinition < Struct.new(
3250
+ :name,
3251
+ :target_pipeline,
3252
+ :target_action,
3253
+ :filters,
3254
+ :authentication,
3255
+ :authentication_configuration)
3256
+ include Aws::Structure
3257
+ end
3258
+
3259
+ # The event criteria that specify when a webhook notification is sent to
3260
+ # your URL.
3261
+ #
3262
+ # @note When making an API call, you may pass WebhookFilterRule
3263
+ # data as a hash:
3264
+ #
3265
+ # {
3266
+ # json_path: "JsonPath", # required
3267
+ # match_equals: "MatchEquals",
3268
+ # }
3269
+ #
3270
+ # @!attribute [rw] json_path
3271
+ # A JsonPath expression that will be applied to the body/payload of
3272
+ # the webhook. The value selected by JsonPath expression must match
3273
+ # the value specified in the matchEquals field, otherwise the request
3274
+ # will be ignored. More information on JsonPath expressions can be
3275
+ # found here: https://github.com/json-path/JsonPath.
3276
+ # @return [String]
3277
+ #
3278
+ # @!attribute [rw] match_equals
3279
+ # The value selected by the JsonPath expression must match what is
3280
+ # supplied in the MatchEquals field, otherwise the request will be
3281
+ # ignored. Properties from the target action configuration can be
3282
+ # included as placeholders in this value by surrounding the action
3283
+ # configuration key with curly braces. For example, if the value
3284
+ # supplied here is "refs/heads/\\\{Branch\\}" and the target action
3285
+ # has an action configuration property called "Branch" with a value
3286
+ # of "master", the MatchEquals value will be evaluated as
3287
+ # "refs/heads/master". A list of action configuration properties for
3288
+ # built-in action types can be found here: [Pipeline Structure
3289
+ # Reference Action Requirements][1].
3290
+ #
3291
+ #
3292
+ #
3293
+ # [1]: http://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html#action-requirements
3294
+ # @return [String]
3295
+ #
3296
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/WebhookFilterRule AWS API Documentation
3297
+ #
3298
+ class WebhookFilterRule < Struct.new(
3299
+ :json_path,
3300
+ :match_equals)
3301
+ include Aws::Structure
3302
+ end
3303
+
2954
3304
  end
2955
3305
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-codepipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-19 00:00:00.000000000 Z
11
+ date: 2018-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.5.2.2
78
+ rubygems_version: 2.5.2.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: AWS SDK for Ruby - CodePipeline