aws-sdk-aiops 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,404 @@
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::AIOps
12
+ # @api private
13
+ module ClientApi
14
+
15
+ include Seahorse::Model
16
+
17
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
18
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
19
+ ChatConfigurationArn = Shapes::StringShape.new(name: 'ChatConfigurationArn')
20
+ ChatConfigurationArns = Shapes::ListShape.new(name: 'ChatConfigurationArns')
21
+ ChatbotNotificationChannel = Shapes::MapShape.new(name: 'ChatbotNotificationChannel')
22
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
23
+ CreateInvestigationGroupInput = Shapes::StructureShape.new(name: 'CreateInvestigationGroupInput')
24
+ CreateInvestigationGroupOutput = Shapes::StructureShape.new(name: 'CreateInvestigationGroupOutput')
25
+ DeleteInvestigationGroupPolicyOutput = Shapes::StructureShape.new(name: 'DeleteInvestigationGroupPolicyOutput')
26
+ DeleteInvestigationGroupPolicyRequest = Shapes::StructureShape.new(name: 'DeleteInvestigationGroupPolicyRequest')
27
+ DeleteInvestigationGroupRequest = Shapes::StructureShape.new(name: 'DeleteInvestigationGroupRequest')
28
+ EncryptionConfiguration = Shapes::StructureShape.new(name: 'EncryptionConfiguration')
29
+ EncryptionConfigurationType = Shapes::StringShape.new(name: 'EncryptionConfigurationType')
30
+ ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
31
+ GetInvestigationGroupPolicyRequest = Shapes::StructureShape.new(name: 'GetInvestigationGroupPolicyRequest')
32
+ GetInvestigationGroupPolicyResponse = Shapes::StructureShape.new(name: 'GetInvestigationGroupPolicyResponse')
33
+ GetInvestigationGroupRequest = Shapes::StructureShape.new(name: 'GetInvestigationGroupRequest')
34
+ GetInvestigationGroupResponse = Shapes::StructureShape.new(name: 'GetInvestigationGroupResponse')
35
+ IdentifierStringWithPatternAndLengthLimits = Shapes::StringShape.new(name: 'IdentifierStringWithPatternAndLengthLimits')
36
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
37
+ InvestigationGroupArn = Shapes::StringShape.new(name: 'InvestigationGroupArn')
38
+ InvestigationGroupIdentifier = Shapes::StringShape.new(name: 'InvestigationGroupIdentifier')
39
+ InvestigationGroupPolicyDocument = Shapes::StringShape.new(name: 'InvestigationGroupPolicyDocument')
40
+ InvestigationGroups = Shapes::ListShape.new(name: 'InvestigationGroups')
41
+ KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
42
+ ListInvestigationGroupsInput = Shapes::StructureShape.new(name: 'ListInvestigationGroupsInput')
43
+ ListInvestigationGroupsInputMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListInvestigationGroupsInputMaxResultsInteger')
44
+ ListInvestigationGroupsModel = Shapes::StructureShape.new(name: 'ListInvestigationGroupsModel')
45
+ ListInvestigationGroupsOutput = Shapes::StructureShape.new(name: 'ListInvestigationGroupsOutput')
46
+ ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
47
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
48
+ PutInvestigationGroupPolicyRequest = Shapes::StructureShape.new(name: 'PutInvestigationGroupPolicyRequest')
49
+ PutInvestigationGroupPolicyResponse = Shapes::StructureShape.new(name: 'PutInvestigationGroupPolicyResponse')
50
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
51
+ Retention = Shapes::IntegerShape.new(name: 'Retention')
52
+ RoleArn = Shapes::StringShape.new(name: 'RoleArn')
53
+ SNSTopicArn = Shapes::StringShape.new(name: 'SNSTopicArn')
54
+ SensitiveStringWithLengthLimits = Shapes::StringShape.new(name: 'SensitiveStringWithLengthLimits')
55
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
56
+ String = Shapes::StringShape.new(name: 'String')
57
+ StringWithPatternAndLengthLimits = Shapes::StringShape.new(name: 'StringWithPatternAndLengthLimits')
58
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
59
+ TagKeyBoundaries = Shapes::ListShape.new(name: 'TagKeyBoundaries')
60
+ TagKeys = Shapes::ListShape.new(name: 'TagKeys')
61
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
62
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
63
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
64
+ Tags = Shapes::MapShape.new(name: 'Tags')
65
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
66
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
67
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
68
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
69
+ UpdateInvestigationGroupOutput = Shapes::StructureShape.new(name: 'UpdateInvestigationGroupOutput')
70
+ UpdateInvestigationGroupRequest = Shapes::StructureShape.new(name: 'UpdateInvestigationGroupRequest')
71
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
72
+
73
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
74
+ AccessDeniedException.struct_class = Types::AccessDeniedException
75
+
76
+ ChatConfigurationArns.member = Shapes::ShapeRef.new(shape: ChatConfigurationArn)
77
+
78
+ ChatbotNotificationChannel.key = Shapes::ShapeRef.new(shape: SNSTopicArn)
79
+ ChatbotNotificationChannel.value = Shapes::ShapeRef.new(shape: ChatConfigurationArns)
80
+
81
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
82
+ ConflictException.struct_class = Types::ConflictException
83
+
84
+ CreateInvestigationGroupInput.add_member(:name, Shapes::ShapeRef.new(shape: StringWithPatternAndLengthLimits, required: true, location_name: "name"))
85
+ CreateInvestigationGroupInput.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
86
+ CreateInvestigationGroupInput.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfiguration, location_name: "encryptionConfiguration"))
87
+ CreateInvestigationGroupInput.add_member(:retention_in_days, Shapes::ShapeRef.new(shape: Retention, location_name: "retentionInDays"))
88
+ CreateInvestigationGroupInput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
89
+ CreateInvestigationGroupInput.add_member(:tag_key_boundaries, Shapes::ShapeRef.new(shape: TagKeyBoundaries, location_name: "tagKeyBoundaries"))
90
+ CreateInvestigationGroupInput.add_member(:chatbot_notification_channel, Shapes::ShapeRef.new(shape: ChatbotNotificationChannel, location_name: "chatbotNotificationChannel"))
91
+ CreateInvestigationGroupInput.add_member(:is_cloud_trail_event_history_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "isCloudTrailEventHistoryEnabled"))
92
+ CreateInvestigationGroupInput.struct_class = Types::CreateInvestigationGroupInput
93
+
94
+ CreateInvestigationGroupOutput.add_member(:arn, Shapes::ShapeRef.new(shape: InvestigationGroupArn, location_name: "arn"))
95
+ CreateInvestigationGroupOutput.struct_class = Types::CreateInvestigationGroupOutput
96
+
97
+ DeleteInvestigationGroupPolicyOutput.struct_class = Types::DeleteInvestigationGroupPolicyOutput
98
+
99
+ DeleteInvestigationGroupPolicyRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: InvestigationGroupIdentifier, required: true, location: "uri", location_name: "identifier"))
100
+ DeleteInvestigationGroupPolicyRequest.struct_class = Types::DeleteInvestigationGroupPolicyRequest
101
+
102
+ DeleteInvestigationGroupRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: InvestigationGroupIdentifier, required: true, location: "uri", location_name: "identifier"))
103
+ DeleteInvestigationGroupRequest.struct_class = Types::DeleteInvestigationGroupRequest
104
+
105
+ EncryptionConfiguration.add_member(:type, Shapes::ShapeRef.new(shape: EncryptionConfigurationType, location_name: "type"))
106
+ EncryptionConfiguration.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "kmsKeyId"))
107
+ EncryptionConfiguration.struct_class = Types::EncryptionConfiguration
108
+
109
+ ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
110
+ ForbiddenException.struct_class = Types::ForbiddenException
111
+
112
+ GetInvestigationGroupPolicyRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: InvestigationGroupIdentifier, required: true, location: "uri", location_name: "identifier"))
113
+ GetInvestigationGroupPolicyRequest.struct_class = Types::GetInvestigationGroupPolicyRequest
114
+
115
+ GetInvestigationGroupPolicyResponse.add_member(:investigation_group_arn, Shapes::ShapeRef.new(shape: InvestigationGroupArn, location_name: "investigationGroupArn"))
116
+ GetInvestigationGroupPolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: InvestigationGroupPolicyDocument, location_name: "policy"))
117
+ GetInvestigationGroupPolicyResponse.struct_class = Types::GetInvestigationGroupPolicyResponse
118
+
119
+ GetInvestigationGroupRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: InvestigationGroupIdentifier, required: true, location: "uri", location_name: "identifier"))
120
+ GetInvestigationGroupRequest.struct_class = Types::GetInvestigationGroupRequest
121
+
122
+ GetInvestigationGroupResponse.add_member(:created_by, Shapes::ShapeRef.new(shape: IdentifierStringWithPatternAndLengthLimits, location_name: "createdBy"))
123
+ GetInvestigationGroupResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
124
+ GetInvestigationGroupResponse.add_member(:last_modified_by, Shapes::ShapeRef.new(shape: IdentifierStringWithPatternAndLengthLimits, location_name: "lastModifiedBy"))
125
+ GetInvestigationGroupResponse.add_member(:last_modified_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModifiedAt"))
126
+ GetInvestigationGroupResponse.add_member(:name, Shapes::ShapeRef.new(shape: StringWithPatternAndLengthLimits, location_name: "name"))
127
+ GetInvestigationGroupResponse.add_member(:arn, Shapes::ShapeRef.new(shape: InvestigationGroupArn, location_name: "arn"))
128
+ GetInvestigationGroupResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "roleArn"))
129
+ GetInvestigationGroupResponse.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfiguration, location_name: "encryptionConfiguration"))
130
+ GetInvestigationGroupResponse.add_member(:retention_in_days, Shapes::ShapeRef.new(shape: Retention, location_name: "retentionInDays"))
131
+ GetInvestigationGroupResponse.add_member(:chatbot_notification_channel, Shapes::ShapeRef.new(shape: ChatbotNotificationChannel, location_name: "chatbotNotificationChannel"))
132
+ GetInvestigationGroupResponse.add_member(:tag_key_boundaries, Shapes::ShapeRef.new(shape: TagKeyBoundaries, location_name: "tagKeyBoundaries"))
133
+ GetInvestigationGroupResponse.add_member(:is_cloud_trail_event_history_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "isCloudTrailEventHistoryEnabled"))
134
+ GetInvestigationGroupResponse.struct_class = Types::GetInvestigationGroupResponse
135
+
136
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
137
+ InternalServerException.struct_class = Types::InternalServerException
138
+
139
+ InvestigationGroups.member = Shapes::ShapeRef.new(shape: ListInvestigationGroupsModel)
140
+
141
+ ListInvestigationGroupsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: SensitiveStringWithLengthLimits, location: "querystring", location_name: "nextToken"))
142
+ ListInvestigationGroupsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListInvestigationGroupsInputMaxResultsInteger, location: "querystring", location_name: "maxResults"))
143
+ ListInvestigationGroupsInput.struct_class = Types::ListInvestigationGroupsInput
144
+
145
+ ListInvestigationGroupsModel.add_member(:arn, Shapes::ShapeRef.new(shape: InvestigationGroupArn, location_name: "arn"))
146
+ ListInvestigationGroupsModel.add_member(:name, Shapes::ShapeRef.new(shape: StringWithPatternAndLengthLimits, location_name: "name"))
147
+ ListInvestigationGroupsModel.struct_class = Types::ListInvestigationGroupsModel
148
+
149
+ ListInvestigationGroupsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: SensitiveStringWithLengthLimits, location_name: "nextToken"))
150
+ ListInvestigationGroupsOutput.add_member(:investigation_groups, Shapes::ShapeRef.new(shape: InvestigationGroups, location_name: "investigationGroups"))
151
+ ListInvestigationGroupsOutput.struct_class = Types::ListInvestigationGroupsOutput
152
+
153
+ ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
154
+ ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
155
+
156
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
157
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
158
+
159
+ PutInvestigationGroupPolicyRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: InvestigationGroupIdentifier, required: true, location: "uri", location_name: "identifier"))
160
+ PutInvestigationGroupPolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: InvestigationGroupPolicyDocument, required: true, location_name: "policy"))
161
+ PutInvestigationGroupPolicyRequest.struct_class = Types::PutInvestigationGroupPolicyRequest
162
+
163
+ PutInvestigationGroupPolicyResponse.add_member(:investigation_group_arn, Shapes::ShapeRef.new(shape: InvestigationGroupArn, location_name: "investigationGroupArn"))
164
+ PutInvestigationGroupPolicyResponse.struct_class = Types::PutInvestigationGroupPolicyResponse
165
+
166
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
167
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
168
+
169
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
170
+ ServiceQuotaExceededException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, location_name: "resourceId"))
171
+ ServiceQuotaExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "resourceType"))
172
+ ServiceQuotaExceededException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, location_name: "serviceCode"))
173
+ ServiceQuotaExceededException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, location_name: "quotaCode"))
174
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
175
+
176
+ TagKeyBoundaries.member = Shapes::ShapeRef.new(shape: TagKey)
177
+
178
+ TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
179
+
180
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
181
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "tags"))
182
+ TagResourceRequest.struct_class = Types::TagResourceRequest
183
+
184
+ TagResourceResponse.struct_class = Types::TagResourceResponse
185
+
186
+ Tags.key = Shapes::ShapeRef.new(shape: TagKey)
187
+ Tags.value = Shapes::ShapeRef.new(shape: TagValue)
188
+
189
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
190
+ ThrottlingException.struct_class = Types::ThrottlingException
191
+
192
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "resourceArn"))
193
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location: "querystring", location_name: "tagKeys"))
194
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
195
+
196
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
197
+
198
+ UpdateInvestigationGroupOutput.struct_class = Types::UpdateInvestigationGroupOutput
199
+
200
+ UpdateInvestigationGroupRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: InvestigationGroupIdentifier, required: true, location: "uri", location_name: "identifier"))
201
+ UpdateInvestigationGroupRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "roleArn"))
202
+ UpdateInvestigationGroupRequest.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfiguration, location_name: "encryptionConfiguration"))
203
+ UpdateInvestigationGroupRequest.add_member(:tag_key_boundaries, Shapes::ShapeRef.new(shape: TagKeyBoundaries, location_name: "tagKeyBoundaries"))
204
+ UpdateInvestigationGroupRequest.add_member(:chatbot_notification_channel, Shapes::ShapeRef.new(shape: ChatbotNotificationChannel, location_name: "chatbotNotificationChannel"))
205
+ UpdateInvestigationGroupRequest.add_member(:is_cloud_trail_event_history_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "isCloudTrailEventHistoryEnabled"))
206
+ UpdateInvestigationGroupRequest.struct_class = Types::UpdateInvestigationGroupRequest
207
+
208
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
209
+ ValidationException.struct_class = Types::ValidationException
210
+
211
+
212
+ # @api private
213
+ API = Seahorse::Model::Api.new.tap do |api|
214
+
215
+ api.version = "2018-05-10"
216
+
217
+ api.metadata = {
218
+ "apiVersion" => "2018-05-10",
219
+ "auth" => ["aws.auth#sigv4"],
220
+ "endpointPrefix" => "aiops",
221
+ "protocol" => "rest-json",
222
+ "protocols" => ["rest-json"],
223
+ "serviceFullName" => "AWS AI Ops",
224
+ "serviceId" => "AIOps",
225
+ "signatureVersion" => "v4",
226
+ "signingName" => "aiops",
227
+ "uid" => "aiops-2018-05-10",
228
+ }
229
+
230
+ api.add_operation(:create_investigation_group, Seahorse::Model::Operation.new.tap do |o|
231
+ o.name = "CreateInvestigationGroup"
232
+ o.http_method = "POST"
233
+ o.http_request_uri = "/investigationGroups"
234
+ o.input = Shapes::ShapeRef.new(shape: CreateInvestigationGroupInput)
235
+ o.output = Shapes::ShapeRef.new(shape: CreateInvestigationGroupOutput)
236
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
237
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
238
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
239
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
240
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
241
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
242
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
243
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
244
+ end)
245
+
246
+ api.add_operation(:delete_investigation_group, Seahorse::Model::Operation.new.tap do |o|
247
+ o.name = "DeleteInvestigationGroup"
248
+ o.http_method = "DELETE"
249
+ o.http_request_uri = "/investigationGroups/{identifier}"
250
+ o.input = Shapes::ShapeRef.new(shape: DeleteInvestigationGroupRequest)
251
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
252
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
253
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
254
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
255
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
256
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
257
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
258
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
259
+ end)
260
+
261
+ api.add_operation(:delete_investigation_group_policy, Seahorse::Model::Operation.new.tap do |o|
262
+ o.name = "DeleteInvestigationGroupPolicy"
263
+ o.http_method = "DELETE"
264
+ o.http_request_uri = "/investigationGroups/{identifier}/policy"
265
+ o.input = Shapes::ShapeRef.new(shape: DeleteInvestigationGroupPolicyRequest)
266
+ o.output = Shapes::ShapeRef.new(shape: DeleteInvestigationGroupPolicyOutput)
267
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
268
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
269
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
270
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
271
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
272
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
273
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
274
+ end)
275
+
276
+ api.add_operation(:get_investigation_group, Seahorse::Model::Operation.new.tap do |o|
277
+ o.name = "GetInvestigationGroup"
278
+ o.http_method = "GET"
279
+ o.http_request_uri = "/investigationGroups/{identifier}"
280
+ o.input = Shapes::ShapeRef.new(shape: GetInvestigationGroupRequest)
281
+ o.output = Shapes::ShapeRef.new(shape: GetInvestigationGroupResponse)
282
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
283
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
284
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
285
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
286
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
287
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
288
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
289
+ end)
290
+
291
+ api.add_operation(:get_investigation_group_policy, Seahorse::Model::Operation.new.tap do |o|
292
+ o.name = "GetInvestigationGroupPolicy"
293
+ o.http_method = "GET"
294
+ o.http_request_uri = "/investigationGroups/{identifier}/policy"
295
+ o.input = Shapes::ShapeRef.new(shape: GetInvestigationGroupPolicyRequest)
296
+ o.output = Shapes::ShapeRef.new(shape: GetInvestigationGroupPolicyResponse)
297
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
298
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
299
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
300
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
301
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
302
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
303
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
304
+ end)
305
+
306
+ api.add_operation(:list_investigation_groups, Seahorse::Model::Operation.new.tap do |o|
307
+ o.name = "ListInvestigationGroups"
308
+ o.http_method = "GET"
309
+ o.http_request_uri = "/investigationGroups"
310
+ o.input = Shapes::ShapeRef.new(shape: ListInvestigationGroupsInput)
311
+ o.output = Shapes::ShapeRef.new(shape: ListInvestigationGroupsOutput)
312
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
313
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
314
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
315
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
316
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
317
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
318
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
319
+ o[:pager] = Aws::Pager.new(
320
+ limit_key: "max_results",
321
+ tokens: {
322
+ "next_token" => "next_token"
323
+ }
324
+ )
325
+ end)
326
+
327
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
328
+ o.name = "ListTagsForResource"
329
+ o.http_method = "GET"
330
+ o.http_request_uri = "/tags/{resourceArn}"
331
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
332
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceOutput)
333
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
334
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
335
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
336
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
337
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
338
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
339
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
340
+ end)
341
+
342
+ api.add_operation(:put_investigation_group_policy, Seahorse::Model::Operation.new.tap do |o|
343
+ o.name = "PutInvestigationGroupPolicy"
344
+ o.http_method = "POST"
345
+ o.http_request_uri = "/investigationGroups/{identifier}/policy"
346
+ o.input = Shapes::ShapeRef.new(shape: PutInvestigationGroupPolicyRequest)
347
+ o.output = Shapes::ShapeRef.new(shape: PutInvestigationGroupPolicyResponse)
348
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
349
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
350
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
351
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
352
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
353
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
354
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
355
+ end)
356
+
357
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
358
+ o.name = "TagResource"
359
+ o.http_method = "POST"
360
+ o.http_request_uri = "/tags/{resourceArn}"
361
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
362
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
363
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
364
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
365
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
366
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
367
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
368
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
369
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
370
+ end)
371
+
372
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
373
+ o.name = "UntagResource"
374
+ o.http_method = "DELETE"
375
+ o.http_request_uri = "/tags/{resourceArn}"
376
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
377
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
378
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
379
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
380
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
381
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
382
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
383
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
384
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
385
+ end)
386
+
387
+ api.add_operation(:update_investigation_group, Seahorse::Model::Operation.new.tap do |o|
388
+ o.name = "UpdateInvestigationGroup"
389
+ o.http_method = "PATCH"
390
+ o.http_request_uri = "/investigationGroups/{identifier}"
391
+ o.input = Shapes::ShapeRef.new(shape: UpdateInvestigationGroupRequest)
392
+ o.output = Shapes::ShapeRef.new(shape: UpdateInvestigationGroupOutput)
393
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
394
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
395
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
396
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
397
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
398
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
399
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
400
+ end)
401
+ end
402
+
403
+ end
404
+ end
File without changes
@@ -0,0 +1,69 @@
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::AIOps
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
+ self[:use_fips] = options[:use_fips]
56
+ self[:use_fips] = false if self[:use_fips].nil?
57
+ self[:endpoint] = options[:endpoint]
58
+ end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,50 @@
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::AIOps
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ if Aws::Endpoints::Matchers.set?(parameters.endpoint)
14
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
15
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
16
+ end
17
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
18
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
19
+ end
20
+ return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
21
+ end
22
+ if Aws::Endpoints::Matchers.set?(parameters.region)
23
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
24
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
25
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
26
+ return Aws::Endpoints::Endpoint.new(url: "https://aiops-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
27
+ end
28
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
29
+ end
30
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
31
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
32
+ return Aws::Endpoints::Endpoint.new(url: "https://aiops-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
33
+ end
34
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
35
+ end
36
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
37
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
38
+ return Aws::Endpoints::Endpoint.new(url: "https://aiops.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
39
+ end
40
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
41
+ end
42
+ return Aws::Endpoints::Endpoint.new(url: "https://aiops.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ end
45
+ raise ArgumentError, "Invalid Configuration: Missing Region"
46
+ raise ArgumentError, 'No endpoint could be resolved'
47
+
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,20 @@
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::AIOps
12
+ # @api private
13
+ module Endpoints
14
+
15
+
16
+ def self.parameters_for_operation(context)
17
+ Aws::AIOps::EndpointParameters.create(context.config)
18
+ end
19
+ end
20
+ end