aws-sdk-codestarnotifications 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,456 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::CodeStarNotifications
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
15
+ ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken')
16
+ ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
17
+ ConfigurationException = Shapes::StructureShape.new(name: 'ConfigurationException')
18
+ CreateNotificationRuleRequest = Shapes::StructureShape.new(name: 'CreateNotificationRuleRequest')
19
+ CreateNotificationRuleResult = Shapes::StructureShape.new(name: 'CreateNotificationRuleResult')
20
+ CreatedTimestamp = Shapes::TimestampShape.new(name: 'CreatedTimestamp')
21
+ DeleteNotificationRuleRequest = Shapes::StructureShape.new(name: 'DeleteNotificationRuleRequest')
22
+ DeleteNotificationRuleResult = Shapes::StructureShape.new(name: 'DeleteNotificationRuleResult')
23
+ DeleteTargetRequest = Shapes::StructureShape.new(name: 'DeleteTargetRequest')
24
+ DeleteTargetResult = Shapes::StructureShape.new(name: 'DeleteTargetResult')
25
+ DescribeNotificationRuleRequest = Shapes::StructureShape.new(name: 'DescribeNotificationRuleRequest')
26
+ DescribeNotificationRuleResult = Shapes::StructureShape.new(name: 'DescribeNotificationRuleResult')
27
+ DetailType = Shapes::StringShape.new(name: 'DetailType')
28
+ EventTypeBatch = Shapes::ListShape.new(name: 'EventTypeBatch')
29
+ EventTypeId = Shapes::StringShape.new(name: 'EventTypeId')
30
+ EventTypeIds = Shapes::ListShape.new(name: 'EventTypeIds')
31
+ EventTypeName = Shapes::StringShape.new(name: 'EventTypeName')
32
+ EventTypeSummary = Shapes::StructureShape.new(name: 'EventTypeSummary')
33
+ ForceUnsubscribeAll = Shapes::BooleanShape.new(name: 'ForceUnsubscribeAll')
34
+ InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
35
+ LastModifiedTimestamp = Shapes::TimestampShape.new(name: 'LastModifiedTimestamp')
36
+ LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
37
+ ListEventTypesFilter = Shapes::StructureShape.new(name: 'ListEventTypesFilter')
38
+ ListEventTypesFilterName = Shapes::StringShape.new(name: 'ListEventTypesFilterName')
39
+ ListEventTypesFilterValue = Shapes::StringShape.new(name: 'ListEventTypesFilterValue')
40
+ ListEventTypesFilters = Shapes::ListShape.new(name: 'ListEventTypesFilters')
41
+ ListEventTypesRequest = Shapes::StructureShape.new(name: 'ListEventTypesRequest')
42
+ ListEventTypesResult = Shapes::StructureShape.new(name: 'ListEventTypesResult')
43
+ ListNotificationRulesFilter = Shapes::StructureShape.new(name: 'ListNotificationRulesFilter')
44
+ ListNotificationRulesFilterName = Shapes::StringShape.new(name: 'ListNotificationRulesFilterName')
45
+ ListNotificationRulesFilterValue = Shapes::StringShape.new(name: 'ListNotificationRulesFilterValue')
46
+ ListNotificationRulesFilters = Shapes::ListShape.new(name: 'ListNotificationRulesFilters')
47
+ ListNotificationRulesRequest = Shapes::StructureShape.new(name: 'ListNotificationRulesRequest')
48
+ ListNotificationRulesResult = Shapes::StructureShape.new(name: 'ListNotificationRulesResult')
49
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
50
+ ListTagsForResourceResult = Shapes::StructureShape.new(name: 'ListTagsForResourceResult')
51
+ ListTargetsFilter = Shapes::StructureShape.new(name: 'ListTargetsFilter')
52
+ ListTargetsFilterName = Shapes::StringShape.new(name: 'ListTargetsFilterName')
53
+ ListTargetsFilterValue = Shapes::StringShape.new(name: 'ListTargetsFilterValue')
54
+ ListTargetsFilters = Shapes::ListShape.new(name: 'ListTargetsFilters')
55
+ ListTargetsRequest = Shapes::StructureShape.new(name: 'ListTargetsRequest')
56
+ ListTargetsResult = Shapes::StructureShape.new(name: 'ListTargetsResult')
57
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
58
+ Message = Shapes::StringShape.new(name: 'Message')
59
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
60
+ NotificationRuleArn = Shapes::StringShape.new(name: 'NotificationRuleArn')
61
+ NotificationRuleBatch = Shapes::ListShape.new(name: 'NotificationRuleBatch')
62
+ NotificationRuleCreatedBy = Shapes::StringShape.new(name: 'NotificationRuleCreatedBy')
63
+ NotificationRuleId = Shapes::StringShape.new(name: 'NotificationRuleId')
64
+ NotificationRuleName = Shapes::StringShape.new(name: 'NotificationRuleName')
65
+ NotificationRuleResource = Shapes::StringShape.new(name: 'NotificationRuleResource')
66
+ NotificationRuleStatus = Shapes::StringShape.new(name: 'NotificationRuleStatus')
67
+ NotificationRuleSummary = Shapes::StructureShape.new(name: 'NotificationRuleSummary')
68
+ ResourceAlreadyExistsException = Shapes::StructureShape.new(name: 'ResourceAlreadyExistsException')
69
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
70
+ ResourceType = Shapes::StringShape.new(name: 'ResourceType')
71
+ ServiceName = Shapes::StringShape.new(name: 'ServiceName')
72
+ SubscribeRequest = Shapes::StructureShape.new(name: 'SubscribeRequest')
73
+ SubscribeResult = Shapes::StructureShape.new(name: 'SubscribeResult')
74
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
75
+ TagKeys = Shapes::ListShape.new(name: 'TagKeys')
76
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
77
+ TagResourceResult = Shapes::StructureShape.new(name: 'TagResourceResult')
78
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
79
+ Tags = Shapes::MapShape.new(name: 'Tags')
80
+ Target = Shapes::StructureShape.new(name: 'Target')
81
+ TargetAddress = Shapes::StringShape.new(name: 'TargetAddress')
82
+ TargetStatus = Shapes::StringShape.new(name: 'TargetStatus')
83
+ TargetSummary = Shapes::StructureShape.new(name: 'TargetSummary')
84
+ TargetType = Shapes::StringShape.new(name: 'TargetType')
85
+ Targets = Shapes::ListShape.new(name: 'Targets')
86
+ TargetsBatch = Shapes::ListShape.new(name: 'TargetsBatch')
87
+ UnsubscribeRequest = Shapes::StructureShape.new(name: 'UnsubscribeRequest')
88
+ UnsubscribeResult = Shapes::StructureShape.new(name: 'UnsubscribeResult')
89
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
90
+ UntagResourceResult = Shapes::StructureShape.new(name: 'UntagResourceResult')
91
+ UpdateNotificationRuleRequest = Shapes::StructureShape.new(name: 'UpdateNotificationRuleRequest')
92
+ UpdateNotificationRuleResult = Shapes::StructureShape.new(name: 'UpdateNotificationRuleResult')
93
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
94
+
95
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
96
+ AccessDeniedException.struct_class = Types::AccessDeniedException
97
+
98
+ ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
99
+ ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
100
+
101
+ ConfigurationException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
102
+ ConfigurationException.struct_class = Types::ConfigurationException
103
+
104
+ CreateNotificationRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: NotificationRuleName, required: true, location_name: "Name"))
105
+ CreateNotificationRuleRequest.add_member(:event_type_ids, Shapes::ShapeRef.new(shape: EventTypeIds, required: true, location_name: "EventTypeIds"))
106
+ CreateNotificationRuleRequest.add_member(:resource, Shapes::ShapeRef.new(shape: NotificationRuleResource, required: true, location_name: "Resource"))
107
+ CreateNotificationRuleRequest.add_member(:targets, Shapes::ShapeRef.new(shape: Targets, required: true, location_name: "Targets"))
108
+ CreateNotificationRuleRequest.add_member(:detail_type, Shapes::ShapeRef.new(shape: DetailType, required: true, location_name: "DetailType"))
109
+ CreateNotificationRuleRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
110
+ CreateNotificationRuleRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
111
+ CreateNotificationRuleRequest.add_member(:status, Shapes::ShapeRef.new(shape: NotificationRuleStatus, location_name: "Status"))
112
+ CreateNotificationRuleRequest.struct_class = Types::CreateNotificationRuleRequest
113
+
114
+ CreateNotificationRuleResult.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, location_name: "Arn"))
115
+ CreateNotificationRuleResult.struct_class = Types::CreateNotificationRuleResult
116
+
117
+ DeleteNotificationRuleRequest.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, required: true, location_name: "Arn"))
118
+ DeleteNotificationRuleRequest.struct_class = Types::DeleteNotificationRuleRequest
119
+
120
+ DeleteNotificationRuleResult.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, location_name: "Arn"))
121
+ DeleteNotificationRuleResult.struct_class = Types::DeleteNotificationRuleResult
122
+
123
+ DeleteTargetRequest.add_member(:target_address, Shapes::ShapeRef.new(shape: TargetAddress, required: true, location_name: "TargetAddress"))
124
+ DeleteTargetRequest.add_member(:force_unsubscribe_all, Shapes::ShapeRef.new(shape: ForceUnsubscribeAll, location_name: "ForceUnsubscribeAll"))
125
+ DeleteTargetRequest.struct_class = Types::DeleteTargetRequest
126
+
127
+ DeleteTargetResult.struct_class = Types::DeleteTargetResult
128
+
129
+ DescribeNotificationRuleRequest.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, required: true, location_name: "Arn"))
130
+ DescribeNotificationRuleRequest.struct_class = Types::DescribeNotificationRuleRequest
131
+
132
+ DescribeNotificationRuleResult.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, required: true, location_name: "Arn"))
133
+ DescribeNotificationRuleResult.add_member(:name, Shapes::ShapeRef.new(shape: NotificationRuleName, location_name: "Name"))
134
+ DescribeNotificationRuleResult.add_member(:event_types, Shapes::ShapeRef.new(shape: EventTypeBatch, location_name: "EventTypes"))
135
+ DescribeNotificationRuleResult.add_member(:resource, Shapes::ShapeRef.new(shape: NotificationRuleResource, location_name: "Resource"))
136
+ DescribeNotificationRuleResult.add_member(:targets, Shapes::ShapeRef.new(shape: TargetsBatch, location_name: "Targets"))
137
+ DescribeNotificationRuleResult.add_member(:detail_type, Shapes::ShapeRef.new(shape: DetailType, location_name: "DetailType"))
138
+ DescribeNotificationRuleResult.add_member(:created_by, Shapes::ShapeRef.new(shape: NotificationRuleCreatedBy, location_name: "CreatedBy"))
139
+ DescribeNotificationRuleResult.add_member(:status, Shapes::ShapeRef.new(shape: NotificationRuleStatus, location_name: "Status"))
140
+ DescribeNotificationRuleResult.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: CreatedTimestamp, location_name: "CreatedTimestamp"))
141
+ DescribeNotificationRuleResult.add_member(:last_modified_timestamp, Shapes::ShapeRef.new(shape: LastModifiedTimestamp, location_name: "LastModifiedTimestamp"))
142
+ DescribeNotificationRuleResult.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
143
+ DescribeNotificationRuleResult.struct_class = Types::DescribeNotificationRuleResult
144
+
145
+ EventTypeBatch.member = Shapes::ShapeRef.new(shape: EventTypeSummary)
146
+
147
+ EventTypeIds.member = Shapes::ShapeRef.new(shape: EventTypeId)
148
+
149
+ EventTypeSummary.add_member(:event_type_id, Shapes::ShapeRef.new(shape: EventTypeId, location_name: "EventTypeId"))
150
+ EventTypeSummary.add_member(:service_name, Shapes::ShapeRef.new(shape: ServiceName, location_name: "ServiceName"))
151
+ EventTypeSummary.add_member(:event_type_name, Shapes::ShapeRef.new(shape: EventTypeName, location_name: "EventTypeName"))
152
+ EventTypeSummary.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "ResourceType"))
153
+ EventTypeSummary.struct_class = Types::EventTypeSummary
154
+
155
+ InvalidNextTokenException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
156
+ InvalidNextTokenException.struct_class = Types::InvalidNextTokenException
157
+
158
+ LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
159
+ LimitExceededException.struct_class = Types::LimitExceededException
160
+
161
+ ListEventTypesFilter.add_member(:name, Shapes::ShapeRef.new(shape: ListEventTypesFilterName, required: true, location_name: "Name"))
162
+ ListEventTypesFilter.add_member(:value, Shapes::ShapeRef.new(shape: ListEventTypesFilterValue, required: true, location_name: "Value"))
163
+ ListEventTypesFilter.struct_class = Types::ListEventTypesFilter
164
+
165
+ ListEventTypesFilters.member = Shapes::ShapeRef.new(shape: ListEventTypesFilter)
166
+
167
+ ListEventTypesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: ListEventTypesFilters, location_name: "Filters"))
168
+ ListEventTypesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
169
+ ListEventTypesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults", metadata: {"box"=>true}))
170
+ ListEventTypesRequest.struct_class = Types::ListEventTypesRequest
171
+
172
+ ListEventTypesResult.add_member(:event_types, Shapes::ShapeRef.new(shape: EventTypeBatch, location_name: "EventTypes"))
173
+ ListEventTypesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
174
+ ListEventTypesResult.struct_class = Types::ListEventTypesResult
175
+
176
+ ListNotificationRulesFilter.add_member(:name, Shapes::ShapeRef.new(shape: ListNotificationRulesFilterName, required: true, location_name: "Name"))
177
+ ListNotificationRulesFilter.add_member(:value, Shapes::ShapeRef.new(shape: ListNotificationRulesFilterValue, required: true, location_name: "Value"))
178
+ ListNotificationRulesFilter.struct_class = Types::ListNotificationRulesFilter
179
+
180
+ ListNotificationRulesFilters.member = Shapes::ShapeRef.new(shape: ListNotificationRulesFilter)
181
+
182
+ ListNotificationRulesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: ListNotificationRulesFilters, location_name: "Filters"))
183
+ ListNotificationRulesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
184
+ ListNotificationRulesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults", metadata: {"box"=>true}))
185
+ ListNotificationRulesRequest.struct_class = Types::ListNotificationRulesRequest
186
+
187
+ ListNotificationRulesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
188
+ ListNotificationRulesResult.add_member(:notification_rules, Shapes::ShapeRef.new(shape: NotificationRuleBatch, location_name: "NotificationRules"))
189
+ ListNotificationRulesResult.struct_class = Types::ListNotificationRulesResult
190
+
191
+ ListTagsForResourceRequest.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, required: true, location_name: "Arn"))
192
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
193
+
194
+ ListTagsForResourceResult.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
195
+ ListTagsForResourceResult.struct_class = Types::ListTagsForResourceResult
196
+
197
+ ListTargetsFilter.add_member(:name, Shapes::ShapeRef.new(shape: ListTargetsFilterName, required: true, location_name: "Name"))
198
+ ListTargetsFilter.add_member(:value, Shapes::ShapeRef.new(shape: ListTargetsFilterValue, required: true, location_name: "Value"))
199
+ ListTargetsFilter.struct_class = Types::ListTargetsFilter
200
+
201
+ ListTargetsFilters.member = Shapes::ShapeRef.new(shape: ListTargetsFilter)
202
+
203
+ ListTargetsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: ListTargetsFilters, location_name: "Filters"))
204
+ ListTargetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
205
+ ListTargetsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults", metadata: {"box"=>true}))
206
+ ListTargetsRequest.struct_class = Types::ListTargetsRequest
207
+
208
+ ListTargetsResult.add_member(:targets, Shapes::ShapeRef.new(shape: TargetsBatch, location_name: "Targets"))
209
+ ListTargetsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
210
+ ListTargetsResult.struct_class = Types::ListTargetsResult
211
+
212
+ NotificationRuleBatch.member = Shapes::ShapeRef.new(shape: NotificationRuleSummary)
213
+
214
+ NotificationRuleSummary.add_member(:id, Shapes::ShapeRef.new(shape: NotificationRuleId, location_name: "Id"))
215
+ NotificationRuleSummary.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, location_name: "Arn"))
216
+ NotificationRuleSummary.struct_class = Types::NotificationRuleSummary
217
+
218
+ ResourceAlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
219
+ ResourceAlreadyExistsException.struct_class = Types::ResourceAlreadyExistsException
220
+
221
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
222
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
223
+
224
+ SubscribeRequest.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, required: true, location_name: "Arn"))
225
+ SubscribeRequest.add_member(:target, Shapes::ShapeRef.new(shape: Target, required: true, location_name: "Target"))
226
+ SubscribeRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken"))
227
+ SubscribeRequest.struct_class = Types::SubscribeRequest
228
+
229
+ SubscribeResult.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, location_name: "Arn"))
230
+ SubscribeResult.struct_class = Types::SubscribeResult
231
+
232
+ TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
233
+
234
+ TagResourceRequest.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, required: true, location_name: "Arn"))
235
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
236
+ TagResourceRequest.struct_class = Types::TagResourceRequest
237
+
238
+ TagResourceResult.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
239
+ TagResourceResult.struct_class = Types::TagResourceResult
240
+
241
+ Tags.key = Shapes::ShapeRef.new(shape: TagKey)
242
+ Tags.value = Shapes::ShapeRef.new(shape: TagValue)
243
+
244
+ Target.add_member(:target_type, Shapes::ShapeRef.new(shape: TargetType, location_name: "TargetType"))
245
+ Target.add_member(:target_address, Shapes::ShapeRef.new(shape: TargetAddress, location_name: "TargetAddress"))
246
+ Target.struct_class = Types::Target
247
+
248
+ TargetSummary.add_member(:target_address, Shapes::ShapeRef.new(shape: TargetAddress, location_name: "TargetAddress"))
249
+ TargetSummary.add_member(:target_type, Shapes::ShapeRef.new(shape: TargetType, location_name: "TargetType"))
250
+ TargetSummary.add_member(:target_status, Shapes::ShapeRef.new(shape: TargetStatus, location_name: "TargetStatus"))
251
+ TargetSummary.struct_class = Types::TargetSummary
252
+
253
+ Targets.member = Shapes::ShapeRef.new(shape: Target)
254
+
255
+ TargetsBatch.member = Shapes::ShapeRef.new(shape: TargetSummary)
256
+
257
+ UnsubscribeRequest.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, required: true, location_name: "Arn"))
258
+ UnsubscribeRequest.add_member(:target_address, Shapes::ShapeRef.new(shape: TargetAddress, required: true, location_name: "TargetAddress"))
259
+ UnsubscribeRequest.struct_class = Types::UnsubscribeRequest
260
+
261
+ UnsubscribeResult.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, required: true, location_name: "Arn"))
262
+ UnsubscribeResult.struct_class = Types::UnsubscribeResult
263
+
264
+ UntagResourceRequest.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, required: true, location_name: "Arn"))
265
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location_name: "TagKeys"))
266
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
267
+
268
+ UntagResourceResult.struct_class = Types::UntagResourceResult
269
+
270
+ UpdateNotificationRuleRequest.add_member(:arn, Shapes::ShapeRef.new(shape: NotificationRuleArn, required: true, location_name: "Arn"))
271
+ UpdateNotificationRuleRequest.add_member(:name, Shapes::ShapeRef.new(shape: NotificationRuleName, location_name: "Name"))
272
+ UpdateNotificationRuleRequest.add_member(:status, Shapes::ShapeRef.new(shape: NotificationRuleStatus, location_name: "Status"))
273
+ UpdateNotificationRuleRequest.add_member(:event_type_ids, Shapes::ShapeRef.new(shape: EventTypeIds, location_name: "EventTypeIds"))
274
+ UpdateNotificationRuleRequest.add_member(:targets, Shapes::ShapeRef.new(shape: Targets, location_name: "Targets"))
275
+ UpdateNotificationRuleRequest.add_member(:detail_type, Shapes::ShapeRef.new(shape: DetailType, location_name: "DetailType"))
276
+ UpdateNotificationRuleRequest.struct_class = Types::UpdateNotificationRuleRequest
277
+
278
+ UpdateNotificationRuleResult.struct_class = Types::UpdateNotificationRuleResult
279
+
280
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
281
+ ValidationException.struct_class = Types::ValidationException
282
+
283
+
284
+ # @api private
285
+ API = Seahorse::Model::Api.new.tap do |api|
286
+
287
+ api.version = "2019-10-15"
288
+
289
+ api.metadata = {
290
+ "apiVersion" => "2019-10-15",
291
+ "endpointPrefix" => "codestar-notifications",
292
+ "jsonVersion" => "1.1",
293
+ "protocol" => "rest-json",
294
+ "serviceFullName" => "AWS CodeStar Notifications",
295
+ "serviceId" => "codestar notifications",
296
+ "signatureVersion" => "v4",
297
+ "signingName" => "codestar-notifications",
298
+ "uid" => "codestar-notifications-2019-10-15",
299
+ }
300
+
301
+ api.add_operation(:create_notification_rule, Seahorse::Model::Operation.new.tap do |o|
302
+ o.name = "CreateNotificationRule"
303
+ o.http_method = "POST"
304
+ o.http_request_uri = "/createNotificationRule"
305
+ o.input = Shapes::ShapeRef.new(shape: CreateNotificationRuleRequest)
306
+ o.output = Shapes::ShapeRef.new(shape: CreateNotificationRuleResult)
307
+ o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
308
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
309
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
310
+ o.errors << Shapes::ShapeRef.new(shape: ConfigurationException)
311
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
312
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
313
+ end)
314
+
315
+ api.add_operation(:delete_notification_rule, Seahorse::Model::Operation.new.tap do |o|
316
+ o.name = "DeleteNotificationRule"
317
+ o.http_method = "POST"
318
+ o.http_request_uri = "/deleteNotificationRule"
319
+ o.input = Shapes::ShapeRef.new(shape: DeleteNotificationRuleRequest)
320
+ o.output = Shapes::ShapeRef.new(shape: DeleteNotificationRuleResult)
321
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
322
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
323
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
324
+ end)
325
+
326
+ api.add_operation(:delete_target, Seahorse::Model::Operation.new.tap do |o|
327
+ o.name = "DeleteTarget"
328
+ o.http_method = "POST"
329
+ o.http_request_uri = "/deleteTarget"
330
+ o.input = Shapes::ShapeRef.new(shape: DeleteTargetRequest)
331
+ o.output = Shapes::ShapeRef.new(shape: DeleteTargetResult)
332
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
333
+ end)
334
+
335
+ api.add_operation(:describe_notification_rule, Seahorse::Model::Operation.new.tap do |o|
336
+ o.name = "DescribeNotificationRule"
337
+ o.http_method = "POST"
338
+ o.http_request_uri = "/describeNotificationRule"
339
+ o.input = Shapes::ShapeRef.new(shape: DescribeNotificationRuleRequest)
340
+ o.output = Shapes::ShapeRef.new(shape: DescribeNotificationRuleResult)
341
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
342
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
343
+ end)
344
+
345
+ api.add_operation(:list_event_types, Seahorse::Model::Operation.new.tap do |o|
346
+ o.name = "ListEventTypes"
347
+ o.http_method = "POST"
348
+ o.http_request_uri = "/listEventTypes"
349
+ o.input = Shapes::ShapeRef.new(shape: ListEventTypesRequest)
350
+ o.output = Shapes::ShapeRef.new(shape: ListEventTypesResult)
351
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
352
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
353
+ o[:pager] = Aws::Pager.new(
354
+ limit_key: "max_results",
355
+ tokens: {
356
+ "next_token" => "next_token"
357
+ }
358
+ )
359
+ end)
360
+
361
+ api.add_operation(:list_notification_rules, Seahorse::Model::Operation.new.tap do |o|
362
+ o.name = "ListNotificationRules"
363
+ o.http_method = "POST"
364
+ o.http_request_uri = "/listNotificationRules"
365
+ o.input = Shapes::ShapeRef.new(shape: ListNotificationRulesRequest)
366
+ o.output = Shapes::ShapeRef.new(shape: ListNotificationRulesResult)
367
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
368
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
369
+ o[:pager] = Aws::Pager.new(
370
+ limit_key: "max_results",
371
+ tokens: {
372
+ "next_token" => "next_token"
373
+ }
374
+ )
375
+ end)
376
+
377
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
378
+ o.name = "ListTagsForResource"
379
+ o.http_method = "POST"
380
+ o.http_request_uri = "/listTagsForResource"
381
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
382
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResult)
383
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
384
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
385
+ end)
386
+
387
+ api.add_operation(:list_targets, Seahorse::Model::Operation.new.tap do |o|
388
+ o.name = "ListTargets"
389
+ o.http_method = "POST"
390
+ o.http_request_uri = "/listTargets"
391
+ o.input = Shapes::ShapeRef.new(shape: ListTargetsRequest)
392
+ o.output = Shapes::ShapeRef.new(shape: ListTargetsResult)
393
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
394
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
395
+ o[:pager] = Aws::Pager.new(
396
+ limit_key: "max_results",
397
+ tokens: {
398
+ "next_token" => "next_token"
399
+ }
400
+ )
401
+ end)
402
+
403
+ api.add_operation(:subscribe, Seahorse::Model::Operation.new.tap do |o|
404
+ o.name = "Subscribe"
405
+ o.http_method = "POST"
406
+ o.http_request_uri = "/subscribe"
407
+ o.input = Shapes::ShapeRef.new(shape: SubscribeRequest)
408
+ o.output = Shapes::ShapeRef.new(shape: SubscribeResult)
409
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
410
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
411
+ end)
412
+
413
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
414
+ o.name = "TagResource"
415
+ o.http_method = "POST"
416
+ o.http_request_uri = "/tagResource"
417
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
418
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResult)
419
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
420
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
421
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
422
+ end)
423
+
424
+ api.add_operation(:unsubscribe, Seahorse::Model::Operation.new.tap do |o|
425
+ o.name = "Unsubscribe"
426
+ o.http_method = "POST"
427
+ o.http_request_uri = "/unsubscribe"
428
+ o.input = Shapes::ShapeRef.new(shape: UnsubscribeRequest)
429
+ o.output = Shapes::ShapeRef.new(shape: UnsubscribeResult)
430
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
431
+ end)
432
+
433
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
434
+ o.name = "UntagResource"
435
+ o.http_method = "POST"
436
+ o.http_request_uri = "/untagResource"
437
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
438
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResult)
439
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
440
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
441
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
442
+ end)
443
+
444
+ api.add_operation(:update_notification_rule, Seahorse::Model::Operation.new.tap do |o|
445
+ o.name = "UpdateNotificationRule"
446
+ o.http_method = "POST"
447
+ o.http_request_uri = "/updateNotificationRule"
448
+ o.input = Shapes::ShapeRef.new(shape: UpdateNotificationRuleRequest)
449
+ o.output = Shapes::ShapeRef.new(shape: UpdateNotificationRuleResult)
450
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
451
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
452
+ end)
453
+ end
454
+
455
+ end
456
+ end