Skip to content

Commit 001e341

Browse files
AWS SDK for RubyNobody
authored andcommitted
Updated API models and rebuilt service gems.
1 parent 8441a26 commit 001e341

File tree

22 files changed

+339
-191
lines changed

22 files changed

+339
-191
lines changed

apis/codestar-notifications/2019-10-15/api-2.json

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@
130130
"output":{"shape":"SubscribeResult"},
131131
"errors":[
132132
{"shape":"ValidationException"},
133-
{"shape":"ResourceNotFoundException"}
133+
{"shape":"ResourceNotFoundException"},
134+
{"shape":"ConfigurationException"}
134135
]
135136
},
136137
"TagResource":{
@@ -143,6 +144,7 @@
143144
"output":{"shape":"TagResourceResult"},
144145
"errors":[
145146
{"shape":"ResourceNotFoundException"},
147+
{"shape":"LimitExceededException"},
146148
{"shape":"ValidationException"},
147149
{"shape":"ConcurrentModificationException"}
148150
]
@@ -163,12 +165,13 @@
163165
"name":"UntagResource",
164166
"http":{
165167
"method":"POST",
166-
"requestUri":"/untagResource"
168+
"requestUri":"/untagResource/{resourceArn}"
167169
},
168170
"input":{"shape":"UntagResourceRequest"},
169171
"output":{"shape":"UntagResourceResult"},
170172
"errors":[
171173
{"shape":"ResourceNotFoundException"},
174+
{"shape":"LimitExceededException"},
172175
{"shape":"ValidationException"},
173176
{"shape":"ConcurrentModificationException"}
174177
]
@@ -183,7 +186,8 @@
183186
"output":{"shape":"UpdateNotificationRuleResult"},
184187
"errors":[
185188
{"shape":"ValidationException"},
186-
{"shape":"ResourceNotFoundException"}
189+
{"shape":"ResourceNotFoundException"},
190+
{"shape":"ConfigurationException"}
187191
]
188192
}
189193
},
@@ -407,7 +411,10 @@
407411
"TARGET_ADDRESS"
408412
]
409413
},
410-
"ListNotificationRulesFilterValue":{"type":"string"},
414+
"ListNotificationRulesFilterValue":{
415+
"type":"string",
416+
"max":2048
417+
},
411418
"ListNotificationRulesFilters":{
412419
"type":"list",
413420
"member":{"shape":"ListNotificationRulesFilter"}
@@ -462,7 +469,10 @@
462469
"TARGET_STATUS"
463470
]
464471
},
465-
"ListTargetsFilterValue":{"type":"string"},
472+
"ListTargetsFilterValue":{
473+
"type":"string",
474+
"max":2048
475+
},
466476
"ListTargetsFilters":{
467477
"type":"list",
468478
"member":{"shape":"ListTargetsFilter"}
@@ -686,8 +696,16 @@
686696
"TagKeys"
687697
],
688698
"members":{
689-
"Arn":{"shape":"NotificationRuleArn"},
690-
"TagKeys":{"shape":"TagKeys"}
699+
"Arn":{
700+
"shape":"NotificationRuleArn",
701+
"location":"uri",
702+
"locationName":"resourceArn"
703+
},
704+
"TagKeys":{
705+
"shape":"TagKeys",
706+
"location":"querystring",
707+
"locationName":"tagKeys"
708+
}
691709
}
692710
},
693711
"UntagResourceResult":{

apis/codestar-notifications/2019-10-15/docs-2.json

Lines changed: 32 additions & 32 deletions
Large diffs are not rendered by default.

apis/ecs/2014-11-13/docs-2.json

Lines changed: 11 additions & 11 deletions
Large diffs are not rendered by default.

gems/aws-sdk-codestarnotifications/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Unreleased Changes
22
------------------
33

4+
1.20.0 (2022-09-16)
5+
------------------
6+
7+
* Feature - This release adds tag based access control for the UntagResource API.
8+
49
1.19.0 (2022-02-24)
510
------------------
611

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.19.0
1+
1.20.0

gems/aws-sdk-codestarnotifications/lib/aws-sdk-codestarnotifications.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
# @!group service
4949
module Aws::CodeStarNotifications
5050

51-
GEM_VERSION = '1.19.0'
51+
GEM_VERSION = '1.20.0'
5252

5353
end

gems/aws-sdk-codestarnotifications/lib/aws-sdk-codestarnotifications/client.rb

Lines changed: 45 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -352,31 +352,33 @@ def initialize(*args)
352352
# @!group API Operations
353353

354354
# Creates a notification rule for a resource. The rule specifies the
355-
# events you want notifications about and the targets (such as SNS
356-
# topics) where you want to receive them.
355+
# events you want notifications about and the targets (such as Chatbot
356+
# topics or Chatbot clients configured for Slack) where you want to
357+
# receive them.
357358
#
358359
# @option params [required, String] :name
359-
# The name for the notification rule. Notifictaion rule names must be
360-
# unique in your AWS account.
360+
# The name for the notification rule. Notification rule names must be
361+
# unique in your Amazon Web Services account.
361362
#
362363
# @option params [required, Array<String>] :event_type_ids
363364
# A list of event types associated with this notification rule. For a
364365
# list of allowed events, see EventTypeSummary.
365366
#
366367
# @option params [required, String] :resource
367368
# The Amazon Resource Name (ARN) of the resource to associate with the
368-
# notification rule. Supported resources include pipelines in AWS
369-
# CodePipeline, repositories in AWS CodeCommit, and build projects in
370-
# AWS CodeBuild.
369+
# notification rule. Supported resources include pipelines in
370+
# CodePipeline, repositories in CodeCommit, and build projects in
371+
# CodeBuild.
371372
#
372373
# @option params [required, Array<Types::Target>] :targets
373-
# A list of Amazon Resource Names (ARNs) of SNS topics to associate with
374-
# the notification rule.
374+
# A list of Amazon Resource Names (ARNs) of Amazon Simple Notification
375+
# Service topics and Chatbot clients to associate with the notification
376+
# rule.
375377
#
376378
# @option params [required, String] :detail_type
377379
# 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 AWS CloudWatch. FULL will include any supplemental information
380+
# `BASIC` will include only the contents of the event as it would appear
381+
# in Amazon CloudWatch. `FULL` will include any supplemental information
380382
# provided by AWS CodeStar Notifications and/or the service for the
381383
# resource for which the notification is created.
382384
#
@@ -387,8 +389,9 @@ def initialize(*args)
387389
# token is included, the request returns information about the initial
388390
# request that used that token.
389391
#
390-
# <note markdown="1"> The AWS SDKs prepopulate client request tokens. If you are using an
391-
# AWS SDK, an idempotency token is created for you.
392+
# <note markdown="1"> The Amazon Web Services SDKs prepopulate client request tokens. If you
393+
# are using an Amazon Web Services SDK, an idempotency token is created
394+
# for you.
392395
#
393396
# </note>
394397
#
@@ -397,11 +400,11 @@ def initialize(*args)
397400
#
398401
# @option params [Hash<String,String>] :tags
399402
# A list of tags to apply to this notification rule. Key names cannot
400-
# start with "aws".
403+
# start with "`aws`".
401404
#
402405
# @option params [String] :status
403-
# The status of the notification rule. The default value is ENABLED. If
404-
# the status is set to DISABLED, notifications aren't sent for the
406+
# The status of the notification rule. The default value is `ENABLED`.
407+
# If the status is set to `DISABLED`, notifications aren't sent for the
405408
# notification rule.
406409
#
407410
# @return [Types::CreateNotificationRuleResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -473,13 +476,14 @@ def delete_notification_rule(params = {}, options = {})
473476
# Deletes a specified target for notifications.
474477
#
475478
# @option params [required, String] :target_address
476-
# The Amazon Resource Name (ARN) of the SNS topic to delete.
479+
# The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot client
480+
# to delete.
477481
#
478482
# @option params [Boolean] :force_unsubscribe_all
479483
# A Boolean value that can be used to delete all associations with this
480-
# SNS topic. The default value is FALSE. If set to TRUE, all
484+
# Chatbot topic. The default value is FALSE. If set to TRUE, all
481485
# associations between that target and every notification rule in your
482-
# AWS account are deleted.
486+
# Amazon Web Services account are deleted.
483487
#
484488
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
485489
#
@@ -608,7 +612,8 @@ def list_event_types(params = {}, options = {})
608612
req.send_request(options)
609613
end
610614

611-
# Returns a list of the notification rules for an AWS account.
615+
# Returns a list of the notification rules for an Amazon Web Services
616+
# account.
612617
#
613618
# @option params [Array<Types::ListNotificationRulesFilter>] :filters
614619
# The filters to use to return information by service or resource type.
@@ -693,7 +698,8 @@ def list_tags_for_resource(params = {}, options = {})
693698
req.send_request(options)
694699
end
695700

696-
# Returns a list of the notification rule targets for an AWS account.
701+
# Returns a list of the notification rule targets for an Amazon Web
702+
# Services account.
697703
#
698704
# @option params [Array<Types::ListTargetsFilter>] :filters
699705
# The filters to use to return information by service or resource type.
@@ -750,16 +756,17 @@ def list_targets(params = {}, options = {})
750756
req.send_request(options)
751757
end
752758

753-
# Creates an association between a notification rule and an SNS topic so
754-
# that the associated target can receive notifications when the events
755-
# described in the rule are triggered.
759+
# Creates an association between a notification rule and an Chatbot
760+
# topic or Chatbot client so that the associated target can receive
761+
# notifications when the events described in the rule are triggered.
756762
#
757763
# @option params [required, String] :arn
758764
# The Amazon Resource Name (ARN) of the notification rule for which you
759765
# want to create the association.
760766
#
761767
# @option params [required, Types::Target] :target
762-
# Information about the SNS topics associated with a notification rule.
768+
# Information about the Chatbot topics or Chatbot clients associated
769+
# with a notification rule.
763770
#
764771
# @option params [String] :client_request_token
765772
# An enumeration token that, when provided in a request, returns the
@@ -800,7 +807,7 @@ def subscribe(params = {}, options = {})
800807
#
801808
# @option params [required, Hash<String,String>] :tags
802809
# The list of tags to associate with the resource. Tag key names cannot
803-
# start with "aws".
810+
# start with "`aws`".
804811
#
805812
# @return [Types::TagResourceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
806813
#
@@ -829,15 +836,16 @@ def tag_resource(params = {}, options = {})
829836
req.send_request(options)
830837
end
831838

832-
# Removes an association between a notification rule and an Amazon SNS
839+
# Removes an association between a notification rule and an Chatbot
833840
# topic so that subscribers to that topic stop receiving notifications
834841
# when the events described in the rule are triggered.
835842
#
836843
# @option params [required, String] :arn
837844
# The Amazon Resource Name (ARN) of the notification rule.
838845
#
839846
# @option params [required, String] :target_address
840-
# The ARN of the SNS topic to unsubscribe from the notification rule.
847+
# The ARN of the Chatbot topic to unsubscribe from the notification
848+
# rule.
841849
#
842850
# @return [Types::UnsubscribeResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
843851
#
@@ -911,7 +919,13 @@ def untag_resource(params = {}, options = {})
911919
# (sending notifications) or disabled (not sending notifications).
912920
#
913921
# @option params [Array<String>] :event_type_ids
914-
# A list of event types associated with this notification rule.
922+
# A list of event types associated with this notification rule. For a
923+
# complete list of event types and IDs, see [Notification concepts][1]
924+
# in the *Developer Tools Console User Guide*.
925+
#
926+
#
927+
#
928+
# [1]: https://docs.aws.amazon.com/codestar-notifications/latest/userguide/concepts.html#concepts-api
915929
#
916930
# @option params [Array<Types::Target>] :targets
917931
# The address and type of the targets to receive notifications from this
@@ -920,7 +934,7 @@ def untag_resource(params = {}, options = {})
920934
# @option params [String] :detail_type
921935
# The level of detail to include in the notifications for this resource.
922936
# BASIC will include only the contents of the event as it would appear
923-
# in AWS CloudWatch. FULL will include any supplemental information
937+
# in Amazon CloudWatch. FULL will include any supplemental information
924938
# provided by AWS CodeStar Notifications and/or the service for the
925939
# resource for which the notification is created.
926940
#
@@ -964,7 +978,7 @@ def build_request(operation_name, params = {})
964978
params: params,
965979
config: config)
966980
context[:gem_name] = 'aws-sdk-codestarnotifications'
967-
context[:gem_version] = '1.19.0'
981+
context[:gem_version] = '1.20.0'
968982
Seahorse::Client::Request.new(handlers, context)
969983
end
970984

gems/aws-sdk-codestarnotifications/lib/aws-sdk-codestarnotifications/client_api.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ module ClientApi
263263
UnsubscribeResult.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, required: true, location_name: "Arn"))
264264
UnsubscribeResult.struct_class = Types::UnsubscribeResult
265265

266-
UntagResourceRequest.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, required: true, location_name: "Arn"))
267-
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location_name: "TagKeys"))
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"))
268268
UntagResourceRequest.struct_class = Types::UntagResourceRequest
269269

270270
UntagResourceResult.struct_class = Types::UntagResourceResult
@@ -410,6 +410,7 @@ module ClientApi
410410
o.output = Shapes::ShapeRef.new(shape: SubscribeResult)
411411
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
412412
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
413+
o.errors << Shapes::ShapeRef.new(shape: ConfigurationException)
413414
end)
414415

415416
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -419,6 +420,7 @@ module ClientApi
419420
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
420421
o.output = Shapes::ShapeRef.new(shape: TagResourceResult)
421422
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
423+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
422424
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
423425
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
424426
end)
@@ -435,10 +437,11 @@ module ClientApi
435437
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
436438
o.name = "UntagResource"
437439
o.http_method = "POST"
438-
o.http_request_uri = "/untagResource"
440+
o.http_request_uri = "/untagResource/{resourceArn}"
439441
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
440442
o.output = Shapes::ShapeRef.new(shape: UntagResourceResult)
441443
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
444+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
442445
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
443446
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
444447
end)
@@ -451,6 +454,7 @@ module ClientApi
451454
o.output = Shapes::ShapeRef.new(shape: UpdateNotificationRuleResult)
452455
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
453456
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
457+
o.errors << Shapes::ShapeRef.new(shape: ConfigurationException)
454458
end)
455459
end
456460

0 commit comments

Comments
 (0)