aws-sdk-codestarnotifications 1.19.0 → 1.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-codestarnotifications/client.rb +64 -33
- data/lib/aws-sdk-codestarnotifications/client_api.rb +7 -3
- data/lib/aws-sdk-codestarnotifications/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-codestarnotifications/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-codestarnotifications/endpoints.rb +197 -0
- data/lib/aws-sdk-codestarnotifications/plugins/endpoints.rb +94 -0
- data/lib/aws-sdk-codestarnotifications/types.rb +75 -45
- data/lib/aws-sdk-codestarnotifications.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f62f06552e39f96a4b36f882ddbbe9f53fa133cbb5b6331e906ee6a64d75695
|
4
|
+
data.tar.gz: ffb8d002903d9644bfd77666f4bfa88a9b7a36f59f65d6c46a697876e713673d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56141e5ce6393d80019c3c90a648f2ae262d264679a91bda896db0d2639838dae1e80b2333e2e7d182a9f0e4ceda46d7d280ce522f4edbb09427f8f1c7becb6a
|
7
|
+
data.tar.gz: 70f8c50e3dc177b51ab3e3fb7eb5354ada463cd32bdb251ddea65fd511914e74fe86cb8aa19ed0464df159f91ae148da3b378a5a30586133320d7f90bd786b23
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.21.0 (2022-10-25)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.20.0 (2022-09-16)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release adds tag based access control for the UntagResource API.
|
13
|
+
|
4
14
|
1.19.0 (2022-02-24)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.21.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:codestarnotifications)
|
@@ -79,8 +79,9 @@ module Aws::CodeStarNotifications
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
84
|
+
add_plugin(Aws::CodeStarNotifications::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -287,6 +288,19 @@ module Aws::CodeStarNotifications
|
|
287
288
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
288
289
|
# requests are made, and retries are disabled.
|
289
290
|
#
|
291
|
+
# @option options [Aws::TokenProvider] :token_provider
|
292
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
293
|
+
# following classes:
|
294
|
+
#
|
295
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
296
|
+
# tokens.
|
297
|
+
#
|
298
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
299
|
+
# access token generated from `aws login`.
|
300
|
+
#
|
301
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
302
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
303
|
+
#
|
290
304
|
# @option options [Boolean] :use_dualstack_endpoint
|
291
305
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
292
306
|
# will be used if available.
|
@@ -300,6 +314,9 @@ module Aws::CodeStarNotifications
|
|
300
314
|
# When `true`, request parameters are validated before
|
301
315
|
# sending the request.
|
302
316
|
#
|
317
|
+
# @option options [Aws::CodeStarNotifications::EndpointProvider] :endpoint_provider
|
318
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::CodeStarNotifications::EndpointParameters`
|
319
|
+
#
|
303
320
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
304
321
|
# requests through. Formatted like 'http://proxy.com:123'.
|
305
322
|
#
|
@@ -352,12 +369,13 @@ module Aws::CodeStarNotifications
|
|
352
369
|
# @!group API Operations
|
353
370
|
|
354
371
|
# Creates a notification rule for a resource. The rule specifies the
|
355
|
-
# events you want notifications about and the targets (such as
|
356
|
-
# topics) where you want to
|
372
|
+
# events you want notifications about and the targets (such as Chatbot
|
373
|
+
# topics or Chatbot clients configured for Slack) where you want to
|
374
|
+
# receive them.
|
357
375
|
#
|
358
376
|
# @option params [required, String] :name
|
359
|
-
# The name for the notification rule.
|
360
|
-
# unique in your
|
377
|
+
# The name for the notification rule. Notification rule names must be
|
378
|
+
# unique in your Amazon Web Services account.
|
361
379
|
#
|
362
380
|
# @option params [required, Array<String>] :event_type_ids
|
363
381
|
# A list of event types associated with this notification rule. For a
|
@@ -365,18 +383,19 @@ module Aws::CodeStarNotifications
|
|
365
383
|
#
|
366
384
|
# @option params [required, String] :resource
|
367
385
|
# The Amazon Resource Name (ARN) of the resource to associate with the
|
368
|
-
# notification rule. Supported resources include pipelines in
|
369
|
-
# CodePipeline, repositories in
|
370
|
-
#
|
386
|
+
# notification rule. Supported resources include pipelines in
|
387
|
+
# CodePipeline, repositories in CodeCommit, and build projects in
|
388
|
+
# CodeBuild.
|
371
389
|
#
|
372
390
|
# @option params [required, Array<Types::Target>] :targets
|
373
|
-
# A list of Amazon Resource Names (ARNs) of
|
374
|
-
# the notification
|
391
|
+
# A list of Amazon Resource Names (ARNs) of Amazon Simple Notification
|
392
|
+
# Service topics and Chatbot clients to associate with the notification
|
393
|
+
# rule.
|
375
394
|
#
|
376
395
|
# @option params [required, String] :detail_type
|
377
396
|
# The level of detail to include in the notifications for this resource.
|
378
|
-
# BASIC will include only the contents of the event as it would appear
|
379
|
-
# in
|
397
|
+
# `BASIC` will include only the contents of the event as it would appear
|
398
|
+
# in Amazon CloudWatch. `FULL` will include any supplemental information
|
380
399
|
# provided by AWS CodeStar Notifications and/or the service for the
|
381
400
|
# resource for which the notification is created.
|
382
401
|
#
|
@@ -387,8 +406,9 @@ module Aws::CodeStarNotifications
|
|
387
406
|
# token is included, the request returns information about the initial
|
388
407
|
# request that used that token.
|
389
408
|
#
|
390
|
-
# <note markdown="1"> The
|
391
|
-
#
|
409
|
+
# <note markdown="1"> The Amazon Web Services SDKs prepopulate client request tokens. If you
|
410
|
+
# are using an Amazon Web Services SDK, an idempotency token is created
|
411
|
+
# for you.
|
392
412
|
#
|
393
413
|
# </note>
|
394
414
|
#
|
@@ -397,11 +417,11 @@ module Aws::CodeStarNotifications
|
|
397
417
|
#
|
398
418
|
# @option params [Hash<String,String>] :tags
|
399
419
|
# A list of tags to apply to this notification rule. Key names cannot
|
400
|
-
# start with "aws".
|
420
|
+
# start with "`aws`".
|
401
421
|
#
|
402
422
|
# @option params [String] :status
|
403
|
-
# The status of the notification rule. The default value is ENABLED
|
404
|
-
# the status is set to DISABLED
|
423
|
+
# The status of the notification rule. The default value is `ENABLED`.
|
424
|
+
# If the status is set to `DISABLED`, notifications aren't sent for the
|
405
425
|
# notification rule.
|
406
426
|
#
|
407
427
|
# @return [Types::CreateNotificationRuleResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -473,13 +493,14 @@ module Aws::CodeStarNotifications
|
|
473
493
|
# Deletes a specified target for notifications.
|
474
494
|
#
|
475
495
|
# @option params [required, String] :target_address
|
476
|
-
# The Amazon Resource Name (ARN) of the
|
496
|
+
# The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot client
|
497
|
+
# to delete.
|
477
498
|
#
|
478
499
|
# @option params [Boolean] :force_unsubscribe_all
|
479
500
|
# A Boolean value that can be used to delete all associations with this
|
480
|
-
#
|
501
|
+
# Chatbot topic. The default value is FALSE. If set to TRUE, all
|
481
502
|
# associations between that target and every notification rule in your
|
482
|
-
#
|
503
|
+
# Amazon Web Services account are deleted.
|
483
504
|
#
|
484
505
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
485
506
|
#
|
@@ -608,7 +629,8 @@ module Aws::CodeStarNotifications
|
|
608
629
|
req.send_request(options)
|
609
630
|
end
|
610
631
|
|
611
|
-
# Returns a list of the notification rules for an
|
632
|
+
# Returns a list of the notification rules for an Amazon Web Services
|
633
|
+
# account.
|
612
634
|
#
|
613
635
|
# @option params [Array<Types::ListNotificationRulesFilter>] :filters
|
614
636
|
# The filters to use to return information by service or resource type.
|
@@ -693,7 +715,8 @@ module Aws::CodeStarNotifications
|
|
693
715
|
req.send_request(options)
|
694
716
|
end
|
695
717
|
|
696
|
-
# Returns a list of the notification rule targets for an
|
718
|
+
# Returns a list of the notification rule targets for an Amazon Web
|
719
|
+
# Services account.
|
697
720
|
#
|
698
721
|
# @option params [Array<Types::ListTargetsFilter>] :filters
|
699
722
|
# The filters to use to return information by service or resource type.
|
@@ -750,16 +773,17 @@ module Aws::CodeStarNotifications
|
|
750
773
|
req.send_request(options)
|
751
774
|
end
|
752
775
|
|
753
|
-
# Creates an association between a notification rule and an
|
754
|
-
# that the associated target can receive
|
755
|
-
# described in the rule are triggered.
|
776
|
+
# Creates an association between a notification rule and an Chatbot
|
777
|
+
# topic or Chatbot client so that the associated target can receive
|
778
|
+
# notifications when the events described in the rule are triggered.
|
756
779
|
#
|
757
780
|
# @option params [required, String] :arn
|
758
781
|
# The Amazon Resource Name (ARN) of the notification rule for which you
|
759
782
|
# want to create the association.
|
760
783
|
#
|
761
784
|
# @option params [required, Types::Target] :target
|
762
|
-
# Information about the
|
785
|
+
# Information about the Chatbot topics or Chatbot clients associated
|
786
|
+
# with a notification rule.
|
763
787
|
#
|
764
788
|
# @option params [String] :client_request_token
|
765
789
|
# An enumeration token that, when provided in a request, returns the
|
@@ -800,7 +824,7 @@ module Aws::CodeStarNotifications
|
|
800
824
|
#
|
801
825
|
# @option params [required, Hash<String,String>] :tags
|
802
826
|
# The list of tags to associate with the resource. Tag key names cannot
|
803
|
-
# start with "aws".
|
827
|
+
# start with "`aws`".
|
804
828
|
#
|
805
829
|
# @return [Types::TagResourceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
806
830
|
#
|
@@ -829,7 +853,7 @@ module Aws::CodeStarNotifications
|
|
829
853
|
req.send_request(options)
|
830
854
|
end
|
831
855
|
|
832
|
-
# Removes an association between a notification rule and an
|
856
|
+
# Removes an association between a notification rule and an Chatbot
|
833
857
|
# topic so that subscribers to that topic stop receiving notifications
|
834
858
|
# when the events described in the rule are triggered.
|
835
859
|
#
|
@@ -837,7 +861,8 @@ module Aws::CodeStarNotifications
|
|
837
861
|
# The Amazon Resource Name (ARN) of the notification rule.
|
838
862
|
#
|
839
863
|
# @option params [required, String] :target_address
|
840
|
-
# The ARN of the
|
864
|
+
# The ARN of the Chatbot topic to unsubscribe from the notification
|
865
|
+
# rule.
|
841
866
|
#
|
842
867
|
# @return [Types::UnsubscribeResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
843
868
|
#
|
@@ -911,7 +936,13 @@ module Aws::CodeStarNotifications
|
|
911
936
|
# (sending notifications) or disabled (not sending notifications).
|
912
937
|
#
|
913
938
|
# @option params [Array<String>] :event_type_ids
|
914
|
-
# A list of event types associated with this notification rule.
|
939
|
+
# A list of event types associated with this notification rule. For a
|
940
|
+
# complete list of event types and IDs, see [Notification concepts][1]
|
941
|
+
# in the *Developer Tools Console User Guide*.
|
942
|
+
#
|
943
|
+
#
|
944
|
+
#
|
945
|
+
# [1]: https://docs.aws.amazon.com/codestar-notifications/latest/userguide/concepts.html#concepts-api
|
915
946
|
#
|
916
947
|
# @option params [Array<Types::Target>] :targets
|
917
948
|
# The address and type of the targets to receive notifications from this
|
@@ -920,7 +951,7 @@ module Aws::CodeStarNotifications
|
|
920
951
|
# @option params [String] :detail_type
|
921
952
|
# The level of detail to include in the notifications for this resource.
|
922
953
|
# BASIC will include only the contents of the event as it would appear
|
923
|
-
# in
|
954
|
+
# in Amazon CloudWatch. FULL will include any supplemental information
|
924
955
|
# provided by AWS CodeStar Notifications and/or the service for the
|
925
956
|
# resource for which the notification is created.
|
926
957
|
#
|
@@ -964,7 +995,7 @@ module Aws::CodeStarNotifications
|
|
964
995
|
params: params,
|
965
996
|
config: config)
|
966
997
|
context[:gem_name] = 'aws-sdk-codestarnotifications'
|
967
|
-
context[:gem_version] = '1.
|
998
|
+
context[:gem_version] = '1.21.0'
|
968
999
|
Seahorse::Client::Request.new(handlers, context)
|
969
1000
|
end
|
970
1001
|
|
@@ -263,8 +263,8 @@ module Aws::CodeStarNotifications
|
|
263
263
|
UnsubscribeResult.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, required: true, location_name: "Arn"))
|
264
264
|
UnsubscribeResult.struct_class = Types::UnsubscribeResult
|
265
265
|
|
266
|
-
UntagResourceRequest.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, required: true, location_name: "
|
267
|
-
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location_name: "
|
266
|
+
UntagResourceRequest.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, required: true, location: "uri", location_name: "resourceArn"))
|
267
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location: "querystring", location_name: "tagKeys"))
|
268
268
|
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
269
269
|
|
270
270
|
UntagResourceResult.struct_class = Types::UntagResourceResult
|
@@ -410,6 +410,7 @@ module Aws::CodeStarNotifications
|
|
410
410
|
o.output = Shapes::ShapeRef.new(shape: SubscribeResult)
|
411
411
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
412
412
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
413
|
+
o.errors << Shapes::ShapeRef.new(shape: ConfigurationException)
|
413
414
|
end)
|
414
415
|
|
415
416
|
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
@@ -419,6 +420,7 @@ module Aws::CodeStarNotifications
|
|
419
420
|
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
420
421
|
o.output = Shapes::ShapeRef.new(shape: TagResourceResult)
|
421
422
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
423
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
422
424
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
423
425
|
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
424
426
|
end)
|
@@ -435,10 +437,11 @@ module Aws::CodeStarNotifications
|
|
435
437
|
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
436
438
|
o.name = "UntagResource"
|
437
439
|
o.http_method = "POST"
|
438
|
-
o.http_request_uri = "/untagResource"
|
440
|
+
o.http_request_uri = "/untagResource/{resourceArn}"
|
439
441
|
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
440
442
|
o.output = Shapes::ShapeRef.new(shape: UntagResourceResult)
|
441
443
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
444
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
442
445
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
443
446
|
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
444
447
|
end)
|
@@ -451,6 +454,7 @@ module Aws::CodeStarNotifications
|
|
451
454
|
o.output = Shapes::ShapeRef.new(shape: UpdateNotificationRuleResult)
|
452
455
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
453
456
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
457
|
+
o.errors << Shapes::ShapeRef.new(shape: ConfigurationException)
|
454
458
|
end)
|
455
459
|
end
|
456
460
|
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::CodeStarNotifications
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,112 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::CodeStarNotifications
|
11
|
+
class EndpointProvider
|
12
|
+
def initialize(rule_set = nil)
|
13
|
+
@@rule_set ||= begin
|
14
|
+
endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
|
15
|
+
Aws::Endpoints::RuleSet.new(
|
16
|
+
version: endpoint_rules['version'],
|
17
|
+
service_id: endpoint_rules['serviceId'],
|
18
|
+
parameters: endpoint_rules['parameters'],
|
19
|
+
rules: endpoint_rules['rules']
|
20
|
+
)
|
21
|
+
end
|
22
|
+
@provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
|
23
|
+
end
|
24
|
+
|
25
|
+
def resolve_endpoint(parameters)
|
26
|
+
@provider.resolve_endpoint(parameters)
|
27
|
+
end
|
28
|
+
|
29
|
+
# @api private
|
30
|
+
RULES = <<-JSON
|
31
|
+
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
+
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
|
33
|
+
dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
|
34
|
+
cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
|
35
|
+
dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
|
36
|
+
ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
|
37
|
+
ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
|
38
|
+
ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
|
39
|
+
aGluZyB0aGUgcmVxdWVzdCBNQVkgcmV0dXJuIGFuIGVycm9yLiIsInR5cGUi
|
40
|
+
OiJCb29sZWFuIn0sIlVzZUZJUFMiOnsiYnVpbHRJbiI6IkFXUzo6VXNlRklQ
|
41
|
+
UyIsInJlcXVpcmVkIjp0cnVlLCJkZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRh
|
42
|
+
dGlvbiI6IldoZW4g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qgc3Vw
|
104
|
+
cG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9u
|
105
|
+
cyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vY29kZXN0YXItbm90
|
106
|
+
aWZpY2F0aW9ucy57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1ZmZp
|
107
|
+
eH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5k
|
108
|
+
cG9pbnQifV19XX0=
|
109
|
+
|
110
|
+
JSON
|
111
|
+
end
|
112
|
+
end
|
@@ -0,0 +1,197 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::CodeStarNotifications
|
12
|
+
module Endpoints
|
13
|
+
|
14
|
+
class CreateNotificationRule
|
15
|
+
def self.build(context)
|
16
|
+
unless context.config.regional_endpoint
|
17
|
+
endpoint = context.config.endpoint.to_s
|
18
|
+
end
|
19
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
20
|
+
region: context.config.region,
|
21
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
22
|
+
use_fips: context.config.use_fips_endpoint,
|
23
|
+
endpoint: endpoint,
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class DeleteNotificationRule
|
29
|
+
def self.build(context)
|
30
|
+
unless context.config.regional_endpoint
|
31
|
+
endpoint = context.config.endpoint.to_s
|
32
|
+
end
|
33
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
34
|
+
region: context.config.region,
|
35
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
36
|
+
use_fips: context.config.use_fips_endpoint,
|
37
|
+
endpoint: endpoint,
|
38
|
+
)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class DeleteTarget
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
48
|
+
region: context.config.region,
|
49
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
|
+
use_fips: context.config.use_fips_endpoint,
|
51
|
+
endpoint: endpoint,
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class DescribeNotificationRule
|
57
|
+
def self.build(context)
|
58
|
+
unless context.config.regional_endpoint
|
59
|
+
endpoint = context.config.endpoint.to_s
|
60
|
+
end
|
61
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
62
|
+
region: context.config.region,
|
63
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
+
use_fips: context.config.use_fips_endpoint,
|
65
|
+
endpoint: endpoint,
|
66
|
+
)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
class ListEventTypes
|
71
|
+
def self.build(context)
|
72
|
+
unless context.config.regional_endpoint
|
73
|
+
endpoint = context.config.endpoint.to_s
|
74
|
+
end
|
75
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
76
|
+
region: context.config.region,
|
77
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
78
|
+
use_fips: context.config.use_fips_endpoint,
|
79
|
+
endpoint: endpoint,
|
80
|
+
)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
class ListNotificationRules
|
85
|
+
def self.build(context)
|
86
|
+
unless context.config.regional_endpoint
|
87
|
+
endpoint = context.config.endpoint.to_s
|
88
|
+
end
|
89
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
90
|
+
region: context.config.region,
|
91
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
92
|
+
use_fips: context.config.use_fips_endpoint,
|
93
|
+
endpoint: endpoint,
|
94
|
+
)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
class ListTagsForResource
|
99
|
+
def self.build(context)
|
100
|
+
unless context.config.regional_endpoint
|
101
|
+
endpoint = context.config.endpoint.to_s
|
102
|
+
end
|
103
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
104
|
+
region: context.config.region,
|
105
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
106
|
+
use_fips: context.config.use_fips_endpoint,
|
107
|
+
endpoint: endpoint,
|
108
|
+
)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
class ListTargets
|
113
|
+
def self.build(context)
|
114
|
+
unless context.config.regional_endpoint
|
115
|
+
endpoint = context.config.endpoint.to_s
|
116
|
+
end
|
117
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
118
|
+
region: context.config.region,
|
119
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
120
|
+
use_fips: context.config.use_fips_endpoint,
|
121
|
+
endpoint: endpoint,
|
122
|
+
)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
class Subscribe
|
127
|
+
def self.build(context)
|
128
|
+
unless context.config.regional_endpoint
|
129
|
+
endpoint = context.config.endpoint.to_s
|
130
|
+
end
|
131
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
132
|
+
region: context.config.region,
|
133
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
134
|
+
use_fips: context.config.use_fips_endpoint,
|
135
|
+
endpoint: endpoint,
|
136
|
+
)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
class TagResource
|
141
|
+
def self.build(context)
|
142
|
+
unless context.config.regional_endpoint
|
143
|
+
endpoint = context.config.endpoint.to_s
|
144
|
+
end
|
145
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
146
|
+
region: context.config.region,
|
147
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
148
|
+
use_fips: context.config.use_fips_endpoint,
|
149
|
+
endpoint: endpoint,
|
150
|
+
)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
class Unsubscribe
|
155
|
+
def self.build(context)
|
156
|
+
unless context.config.regional_endpoint
|
157
|
+
endpoint = context.config.endpoint.to_s
|
158
|
+
end
|
159
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
160
|
+
region: context.config.region,
|
161
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
162
|
+
use_fips: context.config.use_fips_endpoint,
|
163
|
+
endpoint: endpoint,
|
164
|
+
)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
class UntagResource
|
169
|
+
def self.build(context)
|
170
|
+
unless context.config.regional_endpoint
|
171
|
+
endpoint = context.config.endpoint.to_s
|
172
|
+
end
|
173
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
174
|
+
region: context.config.region,
|
175
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
176
|
+
use_fips: context.config.use_fips_endpoint,
|
177
|
+
endpoint: endpoint,
|
178
|
+
)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
class UpdateNotificationRule
|
183
|
+
def self.build(context)
|
184
|
+
unless context.config.regional_endpoint
|
185
|
+
endpoint = context.config.endpoint.to_s
|
186
|
+
end
|
187
|
+
Aws::CodeStarNotifications::EndpointParameters.new(
|
188
|
+
region: context.config.region,
|
189
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
190
|
+
use_fips: context.config.use_fips_endpoint,
|
191
|
+
endpoint: endpoint,
|
192
|
+
)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
end
|
197
|
+
end
|
@@ -0,0 +1,94 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::CodeStarNotifications
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::CodeStarNotifications::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::CodeStarNotifications::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::CodeStarNotifications::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :create_notification_rule
|
60
|
+
Aws::CodeStarNotifications::Endpoints::CreateNotificationRule.build(context)
|
61
|
+
when :delete_notification_rule
|
62
|
+
Aws::CodeStarNotifications::Endpoints::DeleteNotificationRule.build(context)
|
63
|
+
when :delete_target
|
64
|
+
Aws::CodeStarNotifications::Endpoints::DeleteTarget.build(context)
|
65
|
+
when :describe_notification_rule
|
66
|
+
Aws::CodeStarNotifications::Endpoints::DescribeNotificationRule.build(context)
|
67
|
+
when :list_event_types
|
68
|
+
Aws::CodeStarNotifications::Endpoints::ListEventTypes.build(context)
|
69
|
+
when :list_notification_rules
|
70
|
+
Aws::CodeStarNotifications::Endpoints::ListNotificationRules.build(context)
|
71
|
+
when :list_tags_for_resource
|
72
|
+
Aws::CodeStarNotifications::Endpoints::ListTagsForResource.build(context)
|
73
|
+
when :list_targets
|
74
|
+
Aws::CodeStarNotifications::Endpoints::ListTargets.build(context)
|
75
|
+
when :subscribe
|
76
|
+
Aws::CodeStarNotifications::Endpoints::Subscribe.build(context)
|
77
|
+
when :tag_resource
|
78
|
+
Aws::CodeStarNotifications::Endpoints::TagResource.build(context)
|
79
|
+
when :unsubscribe
|
80
|
+
Aws::CodeStarNotifications::Endpoints::Unsubscribe.build(context)
|
81
|
+
when :untag_resource
|
82
|
+
Aws::CodeStarNotifications::Endpoints::UntagResource.build(context)
|
83
|
+
when :update_notification_rule
|
84
|
+
Aws::CodeStarNotifications::Endpoints::UpdateNotificationRule.build(context)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
def add_handlers(handlers, _config)
|
90
|
+
handlers.add(Handler, step: :build, priority: 75)
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -74,8 +74,8 @@ module Aws::CodeStarNotifications
|
|
74
74
|
# }
|
75
75
|
#
|
76
76
|
# @!attribute [rw] name
|
77
|
-
# The name for the notification rule.
|
78
|
-
# unique in your
|
77
|
+
# The name for the notification rule. Notification rule names must be
|
78
|
+
# unique in your Amazon Web Services account.
|
79
79
|
# @return [String]
|
80
80
|
#
|
81
81
|
# @!attribute [rw] event_type_ids
|
@@ -85,22 +85,24 @@ module Aws::CodeStarNotifications
|
|
85
85
|
#
|
86
86
|
# @!attribute [rw] resource
|
87
87
|
# The Amazon Resource Name (ARN) of the resource to associate with the
|
88
|
-
# notification rule. Supported resources include pipelines in
|
89
|
-
# CodePipeline, repositories in
|
90
|
-
#
|
88
|
+
# notification rule. Supported resources include pipelines in
|
89
|
+
# CodePipeline, repositories in CodeCommit, and build projects in
|
90
|
+
# CodeBuild.
|
91
91
|
# @return [String]
|
92
92
|
#
|
93
93
|
# @!attribute [rw] targets
|
94
|
-
# A list of Amazon Resource Names (ARNs) of
|
95
|
-
# with the
|
94
|
+
# A list of Amazon Resource Names (ARNs) of Amazon Simple Notification
|
95
|
+
# Service topics and Chatbot clients to associate with the
|
96
|
+
# notification rule.
|
96
97
|
# @return [Array<Types::Target>]
|
97
98
|
#
|
98
99
|
# @!attribute [rw] detail_type
|
99
100
|
# The level of detail to include in the notifications for this
|
100
|
-
# resource. BASIC will include only the contents of the event as it
|
101
|
-
# would appear in
|
102
|
-
# information provided by AWS CodeStar Notifications
|
103
|
-
# service for the resource for which the notification is
|
101
|
+
# resource. `BASIC` will include only the contents of the event as it
|
102
|
+
# would appear in Amazon CloudWatch. `FULL` will include any
|
103
|
+
# supplemental information provided by AWS CodeStar Notifications
|
104
|
+
# and/or the service for the resource for which the notification is
|
105
|
+
# created.
|
104
106
|
# @return [String]
|
105
107
|
#
|
106
108
|
# @!attribute [rw] client_request_token
|
@@ -110,8 +112,9 @@ module Aws::CodeStarNotifications
|
|
110
112
|
# token is included, the request returns information about the initial
|
111
113
|
# request that used that token.
|
112
114
|
#
|
113
|
-
# <note markdown="1"> The
|
114
|
-
#
|
115
|
+
# <note markdown="1"> The Amazon Web Services SDKs prepopulate client request tokens. If
|
116
|
+
# you are using an Amazon Web Services SDK, an idempotency token is
|
117
|
+
# created for you.
|
115
118
|
#
|
116
119
|
# </note>
|
117
120
|
#
|
@@ -121,13 +124,13 @@ module Aws::CodeStarNotifications
|
|
121
124
|
#
|
122
125
|
# @!attribute [rw] tags
|
123
126
|
# A list of tags to apply to this notification rule. Key names cannot
|
124
|
-
# start with "aws".
|
127
|
+
# start with "`aws`".
|
125
128
|
# @return [Hash<String,String>]
|
126
129
|
#
|
127
130
|
# @!attribute [rw] status
|
128
|
-
# The status of the notification rule. The default value is ENABLED
|
129
|
-
# If the status is set to DISABLED
|
130
|
-
# notification rule.
|
131
|
+
# The status of the notification rule. The default value is `ENABLED`.
|
132
|
+
# If the status is set to `DISABLED`, notifications aren't sent for
|
133
|
+
# the notification rule.
|
131
134
|
# @return [String]
|
132
135
|
#
|
133
136
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-notifications-2019-10-15/CreateNotificationRuleRequest AWS API Documentation
|
@@ -198,14 +201,15 @@ module Aws::CodeStarNotifications
|
|
198
201
|
# }
|
199
202
|
#
|
200
203
|
# @!attribute [rw] target_address
|
201
|
-
# The Amazon Resource Name (ARN) of the
|
204
|
+
# The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot
|
205
|
+
# client to delete.
|
202
206
|
# @return [String]
|
203
207
|
#
|
204
208
|
# @!attribute [rw] force_unsubscribe_all
|
205
209
|
# A Boolean value that can be used to delete all associations with
|
206
|
-
# this
|
210
|
+
# this Chatbot topic. The default value is FALSE. If set to TRUE, all
|
207
211
|
# associations between that target and every notification rule in your
|
208
|
-
#
|
212
|
+
# Amazon Web Services account are deleted.
|
209
213
|
# @return [Boolean]
|
210
214
|
#
|
211
215
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-notifications-2019-10-15/DeleteTargetRequest AWS API Documentation
|
@@ -258,13 +262,14 @@ module Aws::CodeStarNotifications
|
|
258
262
|
# @return [String]
|
259
263
|
#
|
260
264
|
# @!attribute [rw] targets
|
261
|
-
# A list of the
|
265
|
+
# A list of the Chatbot topics and Chatbot clients associated with the
|
266
|
+
# notification rule.
|
262
267
|
# @return [Array<Types::TargetSummary>]
|
263
268
|
#
|
264
269
|
# @!attribute [rw] detail_type
|
265
270
|
# The level of detail included in the notifications for this resource.
|
266
271
|
# BASIC will include only the contents of the event as it would appear
|
267
|
-
# in
|
272
|
+
# in Amazon CloudWatch. FULL will include any supplemental information
|
268
273
|
# provided by AWS CodeStar Notifications and/or the service for the
|
269
274
|
# resource for which the notification is created.
|
270
275
|
# @return [String]
|
@@ -315,7 +320,13 @@ module Aws::CodeStarNotifications
|
|
315
320
|
# rule.
|
316
321
|
#
|
317
322
|
# @!attribute [rw] event_type_id
|
318
|
-
# The system-generated ID of the event.
|
323
|
+
# The system-generated ID of the event. For a complete list of event
|
324
|
+
# types and IDs, see [Notification concepts][1] in the *Developer
|
325
|
+
# Tools Console User Guide*.
|
326
|
+
#
|
327
|
+
#
|
328
|
+
#
|
329
|
+
# [1]: https://docs.aws.amazon.com/codestar-notifications/latest/userguide/concepts.html#concepts-api
|
319
330
|
# @return [String]
|
320
331
|
#
|
321
332
|
# @!attribute [rw] service_name
|
@@ -478,7 +489,7 @@ module Aws::CodeStarNotifications
|
|
478
489
|
# @!attribute [rw] value
|
479
490
|
# The value of the attribute you want to use to filter the returned
|
480
491
|
# notification rules. For example, if you specify filtering by
|
481
|
-
# *RESOURCE* in Name, you might specify the ARN of a pipeline in
|
492
|
+
# *RESOURCE* in Name, you might specify the ARN of a pipeline in
|
482
493
|
# CodePipeline for the value.
|
483
494
|
# @return [String]
|
484
495
|
#
|
@@ -542,8 +553,8 @@ module Aws::CodeStarNotifications
|
|
542
553
|
# @return [String]
|
543
554
|
#
|
544
555
|
# @!attribute [rw] notification_rules
|
545
|
-
# The list of notification rules for the
|
546
|
-
# Resource Name (ARN) and ID.
|
556
|
+
# The list of notification rules for the Amazon Web Services account,
|
557
|
+
# by Amazon Resource Name (ARN) and ID.
|
547
558
|
# @return [Array<Types::NotificationRuleSummary>]
|
548
559
|
#
|
549
560
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-notifications-2019-10-15/ListNotificationRulesResult AWS API Documentation
|
@@ -588,10 +599,10 @@ module Aws::CodeStarNotifications
|
|
588
599
|
|
589
600
|
# Information about a filter to apply to the list of returned targets.
|
590
601
|
# You can filter by target type, address, or status. For example, to
|
591
|
-
# filter results to notification rules that have active
|
592
|
-
#
|
593
|
-
#
|
594
|
-
#
|
602
|
+
# filter results to notification rules that have active Chatbot topics
|
603
|
+
# as targets, you could specify a ListTargetsFilter Name as `TargetType`
|
604
|
+
# and a Value of `SNS`, and a Name of `TARGET_STATUS` and a Value of
|
605
|
+
# `ACTIVE`.
|
595
606
|
#
|
596
607
|
# @note When making an API call, you may pass ListTargetsFilter
|
597
608
|
# data as a hash:
|
@@ -608,7 +619,7 @@ module Aws::CodeStarNotifications
|
|
608
619
|
#
|
609
620
|
# @!attribute [rw] value
|
610
621
|
# The value of the attribute you want to use to filter the returned
|
611
|
-
# targets. For example, if you specify
|
622
|
+
# targets. For example, if you specify `SNS` for the Target type, you
|
612
623
|
# could specify an Amazon Resource Name (ARN) for a topic as the
|
613
624
|
# value.
|
614
625
|
# @return [String]
|
@@ -706,7 +717,7 @@ module Aws::CodeStarNotifications
|
|
706
717
|
end
|
707
718
|
|
708
719
|
# A resource with the same name or ID already exists. Notification rule
|
709
|
-
# names must be unique in your
|
720
|
+
# names must be unique in your Amazon Web Services account.
|
710
721
|
#
|
711
722
|
# @!attribute [rw] message
|
712
723
|
# @return [String]
|
@@ -751,8 +762,8 @@ module Aws::CodeStarNotifications
|
|
751
762
|
# @return [String]
|
752
763
|
#
|
753
764
|
# @!attribute [rw] target
|
754
|
-
# Information about the
|
755
|
-
# rule.
|
765
|
+
# Information about the Chatbot topics or Chatbot clients associated
|
766
|
+
# with a notification rule.
|
756
767
|
# @return [Types::Target]
|
757
768
|
#
|
758
769
|
# @!attribute [rw] client_request_token
|
@@ -799,7 +810,7 @@ module Aws::CodeStarNotifications
|
|
799
810
|
#
|
800
811
|
# @!attribute [rw] tags
|
801
812
|
# The list of tags to associate with the resource. Tag key names
|
802
|
-
# cannot start with "aws".
|
813
|
+
# cannot start with "`aws`".
|
803
814
|
# @return [Hash<String,String>]
|
804
815
|
#
|
805
816
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-notifications-2019-10-15/TagResourceRequest AWS API Documentation
|
@@ -823,7 +834,8 @@ module Aws::CodeStarNotifications
|
|
823
834
|
include Aws::Structure
|
824
835
|
end
|
825
836
|
|
826
|
-
# Information about the
|
837
|
+
# Information about the Chatbot topics or Chatbot clients associated
|
838
|
+
# with a notification rule.
|
827
839
|
#
|
828
840
|
# @note When making an API call, you may pass Target
|
829
841
|
# data as a hash:
|
@@ -834,11 +846,16 @@ module Aws::CodeStarNotifications
|
|
834
846
|
# }
|
835
847
|
#
|
836
848
|
# @!attribute [rw] target_type
|
837
|
-
# The target type. Can be an
|
849
|
+
# The target type. Can be an Chatbot topic or Chatbot client.
|
850
|
+
#
|
851
|
+
# * Chatbot topics are specified as `SNS`.
|
852
|
+
#
|
853
|
+
# * Chatbot clients are specified as `AWSChatbotSlack`.
|
838
854
|
# @return [String]
|
839
855
|
#
|
840
856
|
# @!attribute [rw] target_address
|
841
|
-
# The Amazon Resource Name (ARN) of the
|
857
|
+
# The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot
|
858
|
+
# client.
|
842
859
|
# @return [String]
|
843
860
|
#
|
844
861
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-notifications-2019-10-15/Target AWS API Documentation
|
@@ -853,11 +870,16 @@ module Aws::CodeStarNotifications
|
|
853
870
|
# Information about the targets specified for a notification rule.
|
854
871
|
#
|
855
872
|
# @!attribute [rw] target_address
|
856
|
-
# The Amazon Resource Name (ARN) of the
|
873
|
+
# The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot
|
874
|
+
# client.
|
857
875
|
# @return [String]
|
858
876
|
#
|
859
877
|
# @!attribute [rw] target_type
|
860
|
-
# The type of the target (for example, SNS).
|
878
|
+
# The type of the target (for example, `SNS`).
|
879
|
+
#
|
880
|
+
# * Chatbot topics are specified as `SNS`.
|
881
|
+
#
|
882
|
+
# * Chatbot clients are specified as `AWSChatbotSlack`.
|
861
883
|
# @return [String]
|
862
884
|
#
|
863
885
|
# @!attribute [rw] target_status
|
@@ -887,7 +909,8 @@ module Aws::CodeStarNotifications
|
|
887
909
|
# @return [String]
|
888
910
|
#
|
889
911
|
# @!attribute [rw] target_address
|
890
|
-
# The ARN of the
|
912
|
+
# The ARN of the Chatbot topic to unsubscribe from the notification
|
913
|
+
# rule.
|
891
914
|
# @return [String]
|
892
915
|
#
|
893
916
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-notifications-2019-10-15/UnsubscribeRequest AWS API Documentation
|
@@ -973,7 +996,13 @@ module Aws::CodeStarNotifications
|
|
973
996
|
# @return [String]
|
974
997
|
#
|
975
998
|
# @!attribute [rw] event_type_ids
|
976
|
-
# A list of event types associated with this notification rule.
|
999
|
+
# A list of event types associated with this notification rule. For a
|
1000
|
+
# complete list of event types and IDs, see [Notification concepts][1]
|
1001
|
+
# in the *Developer Tools Console User Guide*.
|
1002
|
+
#
|
1003
|
+
#
|
1004
|
+
#
|
1005
|
+
# [1]: https://docs.aws.amazon.com/codestar-notifications/latest/userguide/concepts.html#concepts-api
|
977
1006
|
# @return [Array<String>]
|
978
1007
|
#
|
979
1008
|
# @!attribute [rw] targets
|
@@ -984,9 +1013,10 @@ module Aws::CodeStarNotifications
|
|
984
1013
|
# @!attribute [rw] detail_type
|
985
1014
|
# The level of detail to include in the notifications for this
|
986
1015
|
# resource. BASIC will include only the contents of the event as it
|
987
|
-
# would appear in
|
988
|
-
# information provided by AWS CodeStar Notifications
|
989
|
-
# service for the resource for which the notification is
|
1016
|
+
# would appear in Amazon CloudWatch. FULL will include any
|
1017
|
+
# supplemental information provided by AWS CodeStar Notifications
|
1018
|
+
# and/or the service for the resource for which the notification is
|
1019
|
+
# created.
|
990
1020
|
# @return [String]
|
991
1021
|
#
|
992
1022
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codestar-notifications-2019-10-15/UpdateNotificationRuleRequest AWS API Documentation
|
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-codestarnotifications/types'
|
15
15
|
require_relative 'aws-sdk-codestarnotifications/client_api'
|
16
|
+
require_relative 'aws-sdk-codestarnotifications/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-codestarnotifications/client'
|
17
18
|
require_relative 'aws-sdk-codestarnotifications/errors'
|
18
19
|
require_relative 'aws-sdk-codestarnotifications/resource'
|
20
|
+
require_relative 'aws-sdk-codestarnotifications/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-codestarnotifications/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-codestarnotifications/endpoints'
|
19
23
|
require_relative 'aws-sdk-codestarnotifications/customizations'
|
20
24
|
|
21
25
|
# This module provides support for AWS CodeStar Notifications. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-codestarnotifications/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::CodeStarNotifications
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.21.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-codestarnotifications
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.21.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: 2022-
|
11
|
+
date: 2022-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.165.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-codestarnotifications/client.rb
|
60
60
|
- lib/aws-sdk-codestarnotifications/client_api.rb
|
61
61
|
- lib/aws-sdk-codestarnotifications/customizations.rb
|
62
|
+
- lib/aws-sdk-codestarnotifications/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-codestarnotifications/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-codestarnotifications/endpoints.rb
|
62
65
|
- lib/aws-sdk-codestarnotifications/errors.rb
|
66
|
+
- lib/aws-sdk-codestarnotifications/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-codestarnotifications/resource.rb
|
64
68
|
- lib/aws-sdk-codestarnotifications/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|