aws-sdk-shield 1.0.0.rc2 → 1.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-shield.rb +2 -2
- data/lib/aws-sdk-shield/client.rb +439 -373
- data/lib/aws-sdk-shield/client_api.rb +306 -308
- data/lib/aws-sdk-shield/errors.rb +4 -13
- data/lib/aws-sdk-shield/resource.rb +12 -14
- data/lib/aws-sdk-shield/types.rb +507 -411
- metadata +2 -2
@@ -1,318 +1,316 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
|
-
module Aws
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
SubResourceSummaryList.member = Shapes::ShapeRef.new(shape: SubResourceSummary)
|
177
|
-
|
178
|
-
Subscription.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartTime"))
|
179
|
-
Subscription.add_member(:time_commitment_in_seconds, Shapes::ShapeRef.new(shape: DurationInSeconds, location_name: "TimeCommitmentInSeconds"))
|
180
|
-
Subscription.struct_class = Types::Subscription
|
181
|
-
|
182
|
-
SummarizedAttackVector.add_member(:vector_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "VectorType"))
|
183
|
-
SummarizedAttackVector.add_member(:vector_counters, Shapes::ShapeRef.new(shape: SummarizedCounterList, location_name: "VectorCounters"))
|
184
|
-
SummarizedAttackVector.struct_class = Types::SummarizedAttackVector
|
185
|
-
|
186
|
-
SummarizedAttackVectorList.member = Shapes::ShapeRef.new(shape: SummarizedAttackVector)
|
187
|
-
|
188
|
-
SummarizedCounter.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
189
|
-
SummarizedCounter.add_member(:max, Shapes::ShapeRef.new(shape: Double, location_name: "Max"))
|
190
|
-
SummarizedCounter.add_member(:average, Shapes::ShapeRef.new(shape: Double, location_name: "Average"))
|
191
|
-
SummarizedCounter.add_member(:sum, Shapes::ShapeRef.new(shape: Double, location_name: "Sum"))
|
192
|
-
SummarizedCounter.add_member(:n, Shapes::ShapeRef.new(shape: Integer, location_name: "N"))
|
193
|
-
SummarizedCounter.add_member(:unit, Shapes::ShapeRef.new(shape: String, location_name: "Unit"))
|
194
|
-
SummarizedCounter.struct_class = Types::SummarizedCounter
|
195
|
-
|
196
|
-
SummarizedCounterList.member = Shapes::ShapeRef.new(shape: SummarizedCounter)
|
197
|
-
|
198
|
-
TimeRange.add_member(:from_inclusive, Shapes::ShapeRef.new(shape: AttackTimestamp, location_name: "FromInclusive"))
|
199
|
-
TimeRange.add_member(:to_exclusive, Shapes::ShapeRef.new(shape: AttackTimestamp, location_name: "ToExclusive"))
|
200
|
-
TimeRange.struct_class = Types::TimeRange
|
201
|
-
|
202
|
-
|
203
|
-
# @api private
|
204
|
-
API = Seahorse::Model::Api.new.tap do |api|
|
205
|
-
|
206
|
-
api.version = "2016-06-02"
|
207
|
-
|
208
|
-
api.metadata = {
|
209
|
-
"endpointPrefix" => "shield",
|
210
|
-
"jsonVersion" => "1.1",
|
211
|
-
"protocol" => "json",
|
212
|
-
"serviceFullName" => "AWS Shield",
|
213
|
-
"signatureVersion" => "v4",
|
214
|
-
"targetPrefix" => "AWSShield_20160616",
|
215
|
-
}
|
216
|
-
|
217
|
-
api.add_operation(:create_protection, Seahorse::Model::Operation.new.tap do |o|
|
218
|
-
o.name = "CreateProtection"
|
219
|
-
o.http_method = "POST"
|
220
|
-
o.http_request_uri = "/"
|
221
|
-
o.input = Shapes::ShapeRef.new(shape: CreateProtectionRequest)
|
222
|
-
o.output = Shapes::ShapeRef.new(shape: CreateProtectionResponse)
|
223
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
224
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidResourceException)
|
225
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
|
226
|
-
o.errors << Shapes::ShapeRef.new(shape: LimitsExceededException)
|
227
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
228
|
-
o.errors << Shapes::ShapeRef.new(shape: OptimisticLockException)
|
229
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
230
|
-
end)
|
231
|
-
|
232
|
-
api.add_operation(:create_subscription, Seahorse::Model::Operation.new.tap do |o|
|
233
|
-
o.name = "CreateSubscription"
|
234
|
-
o.http_method = "POST"
|
235
|
-
o.http_request_uri = "/"
|
236
|
-
o.input = Shapes::ShapeRef.new(shape: CreateSubscriptionRequest)
|
237
|
-
o.output = Shapes::ShapeRef.new(shape: CreateSubscriptionResponse)
|
238
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
239
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
240
|
-
end)
|
241
|
-
|
242
|
-
api.add_operation(:delete_protection, Seahorse::Model::Operation.new.tap do |o|
|
243
|
-
o.name = "DeleteProtection"
|
244
|
-
o.http_method = "POST"
|
245
|
-
o.http_request_uri = "/"
|
246
|
-
o.input = Shapes::ShapeRef.new(shape: DeleteProtectionRequest)
|
247
|
-
o.output = Shapes::ShapeRef.new(shape: DeleteProtectionResponse)
|
248
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
249
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
250
|
-
o.errors << Shapes::ShapeRef.new(shape: OptimisticLockException)
|
251
|
-
end)
|
252
|
-
|
253
|
-
api.add_operation(:delete_subscription, Seahorse::Model::Operation.new.tap do |o|
|
254
|
-
o.name = "DeleteSubscription"
|
255
|
-
o.http_method = "POST"
|
256
|
-
o.http_request_uri = "/"
|
257
|
-
o.input = Shapes::ShapeRef.new(shape: DeleteSubscriptionRequest)
|
258
|
-
o.output = Shapes::ShapeRef.new(shape: DeleteSubscriptionResponse)
|
259
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
260
|
-
o.errors << Shapes::ShapeRef.new(shape: LockedSubscriptionException)
|
261
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
262
|
-
end)
|
263
|
-
|
264
|
-
api.add_operation(:describe_attack, Seahorse::Model::Operation.new.tap do |o|
|
265
|
-
o.name = "DescribeAttack"
|
266
|
-
o.http_method = "POST"
|
267
|
-
o.http_request_uri = "/"
|
268
|
-
o.input = Shapes::ShapeRef.new(shape: DescribeAttackRequest)
|
269
|
-
o.output = Shapes::ShapeRef.new(shape: DescribeAttackResponse)
|
270
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
271
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
272
|
-
end)
|
273
|
-
|
274
|
-
api.add_operation(:describe_protection, Seahorse::Model::Operation.new.tap do |o|
|
275
|
-
o.name = "DescribeProtection"
|
276
|
-
o.http_method = "POST"
|
277
|
-
o.http_request_uri = "/"
|
278
|
-
o.input = Shapes::ShapeRef.new(shape: DescribeProtectionRequest)
|
279
|
-
o.output = Shapes::ShapeRef.new(shape: DescribeProtectionResponse)
|
280
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
281
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
282
|
-
end)
|
283
|
-
|
284
|
-
api.add_operation(:describe_subscription, Seahorse::Model::Operation.new.tap do |o|
|
285
|
-
o.name = "DescribeSubscription"
|
286
|
-
o.http_method = "POST"
|
287
|
-
o.http_request_uri = "/"
|
288
|
-
o.input = Shapes::ShapeRef.new(shape: DescribeSubscriptionRequest)
|
289
|
-
o.output = Shapes::ShapeRef.new(shape: DescribeSubscriptionResponse)
|
290
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
291
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
292
|
-
end)
|
293
|
-
|
294
|
-
api.add_operation(:list_attacks, Seahorse::Model::Operation.new.tap do |o|
|
295
|
-
o.name = "ListAttacks"
|
296
|
-
o.http_method = "POST"
|
297
|
-
o.http_request_uri = "/"
|
298
|
-
o.input = Shapes::ShapeRef.new(shape: ListAttacksRequest)
|
299
|
-
o.output = Shapes::ShapeRef.new(shape: ListAttacksResponse)
|
300
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
301
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
302
|
-
o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
|
303
|
-
end)
|
304
|
-
|
305
|
-
api.add_operation(:list_protections, Seahorse::Model::Operation.new.tap do |o|
|
306
|
-
o.name = "ListProtections"
|
307
|
-
o.http_method = "POST"
|
308
|
-
o.http_request_uri = "/"
|
309
|
-
o.input = Shapes::ShapeRef.new(shape: ListProtectionsRequest)
|
310
|
-
o.output = Shapes::ShapeRef.new(shape: ListProtectionsResponse)
|
311
|
-
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
312
|
-
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
313
|
-
end)
|
314
|
-
end
|
8
|
+
module Aws::Shield
|
9
|
+
# @api private
|
10
|
+
module ClientApi
|
11
|
+
|
12
|
+
include Seahorse::Model
|
13
|
+
|
14
|
+
AttackDetail = Shapes::StructureShape.new(name: 'AttackDetail')
|
15
|
+
AttackId = Shapes::StringShape.new(name: 'AttackId')
|
16
|
+
AttackSummaries = Shapes::ListShape.new(name: 'AttackSummaries')
|
17
|
+
AttackSummary = Shapes::StructureShape.new(name: 'AttackSummary')
|
18
|
+
AttackTimestamp = Shapes::TimestampShape.new(name: 'AttackTimestamp')
|
19
|
+
AttackVectorDescription = Shapes::StructureShape.new(name: 'AttackVectorDescription')
|
20
|
+
AttackVectorDescriptionList = Shapes::ListShape.new(name: 'AttackVectorDescriptionList')
|
21
|
+
CreateProtectionRequest = Shapes::StructureShape.new(name: 'CreateProtectionRequest')
|
22
|
+
CreateProtectionResponse = Shapes::StructureShape.new(name: 'CreateProtectionResponse')
|
23
|
+
CreateSubscriptionRequest = Shapes::StructureShape.new(name: 'CreateSubscriptionRequest')
|
24
|
+
CreateSubscriptionResponse = Shapes::StructureShape.new(name: 'CreateSubscriptionResponse')
|
25
|
+
DeleteProtectionRequest = Shapes::StructureShape.new(name: 'DeleteProtectionRequest')
|
26
|
+
DeleteProtectionResponse = Shapes::StructureShape.new(name: 'DeleteProtectionResponse')
|
27
|
+
DeleteSubscriptionRequest = Shapes::StructureShape.new(name: 'DeleteSubscriptionRequest')
|
28
|
+
DeleteSubscriptionResponse = Shapes::StructureShape.new(name: 'DeleteSubscriptionResponse')
|
29
|
+
DescribeAttackRequest = Shapes::StructureShape.new(name: 'DescribeAttackRequest')
|
30
|
+
DescribeAttackResponse = Shapes::StructureShape.new(name: 'DescribeAttackResponse')
|
31
|
+
DescribeProtectionRequest = Shapes::StructureShape.new(name: 'DescribeProtectionRequest')
|
32
|
+
DescribeProtectionResponse = Shapes::StructureShape.new(name: 'DescribeProtectionResponse')
|
33
|
+
DescribeSubscriptionRequest = Shapes::StructureShape.new(name: 'DescribeSubscriptionRequest')
|
34
|
+
DescribeSubscriptionResponse = Shapes::StructureShape.new(name: 'DescribeSubscriptionResponse')
|
35
|
+
Double = Shapes::FloatShape.new(name: 'Double')
|
36
|
+
DurationInSeconds = Shapes::IntegerShape.new(name: 'DurationInSeconds')
|
37
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
38
|
+
InternalErrorException = Shapes::StructureShape.new(name: 'InternalErrorException')
|
39
|
+
InvalidOperationException = Shapes::StructureShape.new(name: 'InvalidOperationException')
|
40
|
+
InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
|
41
|
+
InvalidResourceException = Shapes::StructureShape.new(name: 'InvalidResourceException')
|
42
|
+
LimitNumber = Shapes::IntegerShape.new(name: 'LimitNumber')
|
43
|
+
LimitType = Shapes::StringShape.new(name: 'LimitType')
|
44
|
+
LimitsExceededException = Shapes::StructureShape.new(name: 'LimitsExceededException')
|
45
|
+
ListAttacksRequest = Shapes::StructureShape.new(name: 'ListAttacksRequest')
|
46
|
+
ListAttacksResponse = Shapes::StructureShape.new(name: 'ListAttacksResponse')
|
47
|
+
ListProtectionsRequest = Shapes::StructureShape.new(name: 'ListProtectionsRequest')
|
48
|
+
ListProtectionsResponse = Shapes::StructureShape.new(name: 'ListProtectionsResponse')
|
49
|
+
LockedSubscriptionException = Shapes::StructureShape.new(name: 'LockedSubscriptionException')
|
50
|
+
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
51
|
+
Mitigation = Shapes::StructureShape.new(name: 'Mitigation')
|
52
|
+
MitigationList = Shapes::ListShape.new(name: 'MitigationList')
|
53
|
+
OptimisticLockException = Shapes::StructureShape.new(name: 'OptimisticLockException')
|
54
|
+
Protection = Shapes::StructureShape.new(name: 'Protection')
|
55
|
+
ProtectionId = Shapes::StringShape.new(name: 'ProtectionId')
|
56
|
+
ProtectionName = Shapes::StringShape.new(name: 'ProtectionName')
|
57
|
+
Protections = Shapes::ListShape.new(name: 'Protections')
|
58
|
+
ResourceAlreadyExistsException = Shapes::StructureShape.new(name: 'ResourceAlreadyExistsException')
|
59
|
+
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
60
|
+
ResourceArnFilterList = Shapes::ListShape.new(name: 'ResourceArnFilterList')
|
61
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
62
|
+
String = Shapes::StringShape.new(name: 'String')
|
63
|
+
SubResourceSummary = Shapes::StructureShape.new(name: 'SubResourceSummary')
|
64
|
+
SubResourceSummaryList = Shapes::ListShape.new(name: 'SubResourceSummaryList')
|
65
|
+
SubResourceType = Shapes::StringShape.new(name: 'SubResourceType')
|
66
|
+
Subscription = Shapes::StructureShape.new(name: 'Subscription')
|
67
|
+
SummarizedAttackVector = Shapes::StructureShape.new(name: 'SummarizedAttackVector')
|
68
|
+
SummarizedAttackVectorList = Shapes::ListShape.new(name: 'SummarizedAttackVectorList')
|
69
|
+
SummarizedCounter = Shapes::StructureShape.new(name: 'SummarizedCounter')
|
70
|
+
SummarizedCounterList = Shapes::ListShape.new(name: 'SummarizedCounterList')
|
71
|
+
TimeRange = Shapes::StructureShape.new(name: 'TimeRange')
|
72
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
73
|
+
Token = Shapes::StringShape.new(name: 'Token')
|
74
|
+
errorMessage = Shapes::StringShape.new(name: 'errorMessage')
|
75
|
+
|
76
|
+
AttackDetail.add_member(:attack_id, Shapes::ShapeRef.new(shape: AttackId, location_name: "AttackId"))
|
77
|
+
AttackDetail.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
|
78
|
+
AttackDetail.add_member(:sub_resources, Shapes::ShapeRef.new(shape: SubResourceSummaryList, location_name: "SubResources"))
|
79
|
+
AttackDetail.add_member(:start_time, Shapes::ShapeRef.new(shape: AttackTimestamp, location_name: "StartTime"))
|
80
|
+
AttackDetail.add_member(:end_time, Shapes::ShapeRef.new(shape: AttackTimestamp, location_name: "EndTime"))
|
81
|
+
AttackDetail.add_member(:attack_counters, Shapes::ShapeRef.new(shape: SummarizedCounterList, location_name: "AttackCounters"))
|
82
|
+
AttackDetail.add_member(:mitigations, Shapes::ShapeRef.new(shape: MitigationList, location_name: "Mitigations"))
|
83
|
+
AttackDetail.struct_class = Types::AttackDetail
|
84
|
+
|
85
|
+
AttackSummaries.member = Shapes::ShapeRef.new(shape: AttackSummary)
|
86
|
+
|
87
|
+
AttackSummary.add_member(:attack_id, Shapes::ShapeRef.new(shape: String, location_name: "AttackId"))
|
88
|
+
AttackSummary.add_member(:resource_arn, Shapes::ShapeRef.new(shape: String, location_name: "ResourceArn"))
|
89
|
+
AttackSummary.add_member(:start_time, Shapes::ShapeRef.new(shape: AttackTimestamp, location_name: "StartTime"))
|
90
|
+
AttackSummary.add_member(:end_time, Shapes::ShapeRef.new(shape: AttackTimestamp, location_name: "EndTime"))
|
91
|
+
AttackSummary.add_member(:attack_vectors, Shapes::ShapeRef.new(shape: AttackVectorDescriptionList, location_name: "AttackVectors"))
|
92
|
+
AttackSummary.struct_class = Types::AttackSummary
|
93
|
+
|
94
|
+
AttackVectorDescription.add_member(:vector_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "VectorType"))
|
95
|
+
AttackVectorDescription.struct_class = Types::AttackVectorDescription
|
96
|
+
|
97
|
+
AttackVectorDescriptionList.member = Shapes::ShapeRef.new(shape: AttackVectorDescription)
|
98
|
+
|
99
|
+
CreateProtectionRequest.add_member(:name, Shapes::ShapeRef.new(shape: ProtectionName, required: true, location_name: "Name"))
|
100
|
+
CreateProtectionRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
|
101
|
+
CreateProtectionRequest.struct_class = Types::CreateProtectionRequest
|
102
|
+
|
103
|
+
CreateProtectionResponse.add_member(:protection_id, Shapes::ShapeRef.new(shape: ProtectionId, location_name: "ProtectionId"))
|
104
|
+
CreateProtectionResponse.struct_class = Types::CreateProtectionResponse
|
105
|
+
|
106
|
+
CreateSubscriptionRequest.struct_class = Types::CreateSubscriptionRequest
|
107
|
+
|
108
|
+
CreateSubscriptionResponse.struct_class = Types::CreateSubscriptionResponse
|
109
|
+
|
110
|
+
DeleteProtectionRequest.add_member(:protection_id, Shapes::ShapeRef.new(shape: ProtectionId, required: true, location_name: "ProtectionId"))
|
111
|
+
DeleteProtectionRequest.struct_class = Types::DeleteProtectionRequest
|
112
|
+
|
113
|
+
DeleteProtectionResponse.struct_class = Types::DeleteProtectionResponse
|
114
|
+
|
115
|
+
DeleteSubscriptionRequest.struct_class = Types::DeleteSubscriptionRequest
|
116
|
+
|
117
|
+
DeleteSubscriptionResponse.struct_class = Types::DeleteSubscriptionResponse
|
118
|
+
|
119
|
+
DescribeAttackRequest.add_member(:attack_id, Shapes::ShapeRef.new(shape: AttackId, required: true, location_name: "AttackId"))
|
120
|
+
DescribeAttackRequest.struct_class = Types::DescribeAttackRequest
|
121
|
+
|
122
|
+
DescribeAttackResponse.add_member(:attack, Shapes::ShapeRef.new(shape: AttackDetail, location_name: "Attack"))
|
123
|
+
DescribeAttackResponse.struct_class = Types::DescribeAttackResponse
|
124
|
+
|
125
|
+
DescribeProtectionRequest.add_member(:protection_id, Shapes::ShapeRef.new(shape: ProtectionId, required: true, location_name: "ProtectionId"))
|
126
|
+
DescribeProtectionRequest.struct_class = Types::DescribeProtectionRequest
|
127
|
+
|
128
|
+
DescribeProtectionResponse.add_member(:protection, Shapes::ShapeRef.new(shape: Protection, location_name: "Protection"))
|
129
|
+
DescribeProtectionResponse.struct_class = Types::DescribeProtectionResponse
|
130
|
+
|
131
|
+
DescribeSubscriptionRequest.struct_class = Types::DescribeSubscriptionRequest
|
132
|
+
|
133
|
+
DescribeSubscriptionResponse.add_member(:subscription, Shapes::ShapeRef.new(shape: Subscription, location_name: "Subscription"))
|
134
|
+
DescribeSubscriptionResponse.struct_class = Types::DescribeSubscriptionResponse
|
135
|
+
|
136
|
+
ListAttacksRequest.add_member(:resource_arns, Shapes::ShapeRef.new(shape: ResourceArnFilterList, location_name: "ResourceArns"))
|
137
|
+
ListAttacksRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: TimeRange, location_name: "StartTime"))
|
138
|
+
ListAttacksRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: TimeRange, location_name: "EndTime"))
|
139
|
+
ListAttacksRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
140
|
+
ListAttacksRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
141
|
+
ListAttacksRequest.struct_class = Types::ListAttacksRequest
|
142
|
+
|
143
|
+
ListAttacksResponse.add_member(:attack_summaries, Shapes::ShapeRef.new(shape: AttackSummaries, location_name: "AttackSummaries"))
|
144
|
+
ListAttacksResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
145
|
+
ListAttacksResponse.struct_class = Types::ListAttacksResponse
|
146
|
+
|
147
|
+
ListProtectionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
148
|
+
ListProtectionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
149
|
+
ListProtectionsRequest.struct_class = Types::ListProtectionsRequest
|
150
|
+
|
151
|
+
ListProtectionsResponse.add_member(:protections, Shapes::ShapeRef.new(shape: Protections, location_name: "Protections"))
|
152
|
+
ListProtectionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
153
|
+
ListProtectionsResponse.struct_class = Types::ListProtectionsResponse
|
154
|
+
|
155
|
+
Mitigation.add_member(:mitigation_name, Shapes::ShapeRef.new(shape: String, location_name: "MitigationName"))
|
156
|
+
Mitigation.struct_class = Types::Mitigation
|
157
|
+
|
158
|
+
MitigationList.member = Shapes::ShapeRef.new(shape: Mitigation)
|
159
|
+
|
160
|
+
Protection.add_member(:id, Shapes::ShapeRef.new(shape: ProtectionId, location_name: "Id"))
|
161
|
+
Protection.add_member(:name, Shapes::ShapeRef.new(shape: ProtectionName, location_name: "Name"))
|
162
|
+
Protection.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
|
163
|
+
Protection.struct_class = Types::Protection
|
164
|
+
|
165
|
+
Protections.member = Shapes::ShapeRef.new(shape: Protection)
|
166
|
+
|
167
|
+
ResourceArnFilterList.member = Shapes::ShapeRef.new(shape: ResourceArn)
|
168
|
+
|
169
|
+
SubResourceSummary.add_member(:type, Shapes::ShapeRef.new(shape: SubResourceType, location_name: "Type"))
|
170
|
+
SubResourceSummary.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
|
171
|
+
SubResourceSummary.add_member(:attack_vectors, Shapes::ShapeRef.new(shape: SummarizedAttackVectorList, location_name: "AttackVectors"))
|
172
|
+
SubResourceSummary.add_member(:counters, Shapes::ShapeRef.new(shape: SummarizedCounterList, location_name: "Counters"))
|
173
|
+
SubResourceSummary.struct_class = Types::SubResourceSummary
|
174
|
+
|
175
|
+
SubResourceSummaryList.member = Shapes::ShapeRef.new(shape: SubResourceSummary)
|
315
176
|
|
177
|
+
Subscription.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartTime"))
|
178
|
+
Subscription.add_member(:time_commitment_in_seconds, Shapes::ShapeRef.new(shape: DurationInSeconds, location_name: "TimeCommitmentInSeconds"))
|
179
|
+
Subscription.struct_class = Types::Subscription
|
180
|
+
|
181
|
+
SummarizedAttackVector.add_member(:vector_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "VectorType"))
|
182
|
+
SummarizedAttackVector.add_member(:vector_counters, Shapes::ShapeRef.new(shape: SummarizedCounterList, location_name: "VectorCounters"))
|
183
|
+
SummarizedAttackVector.struct_class = Types::SummarizedAttackVector
|
184
|
+
|
185
|
+
SummarizedAttackVectorList.member = Shapes::ShapeRef.new(shape: SummarizedAttackVector)
|
186
|
+
|
187
|
+
SummarizedCounter.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
188
|
+
SummarizedCounter.add_member(:max, Shapes::ShapeRef.new(shape: Double, location_name: "Max"))
|
189
|
+
SummarizedCounter.add_member(:average, Shapes::ShapeRef.new(shape: Double, location_name: "Average"))
|
190
|
+
SummarizedCounter.add_member(:sum, Shapes::ShapeRef.new(shape: Double, location_name: "Sum"))
|
191
|
+
SummarizedCounter.add_member(:n, Shapes::ShapeRef.new(shape: Integer, location_name: "N"))
|
192
|
+
SummarizedCounter.add_member(:unit, Shapes::ShapeRef.new(shape: String, location_name: "Unit"))
|
193
|
+
SummarizedCounter.struct_class = Types::SummarizedCounter
|
194
|
+
|
195
|
+
SummarizedCounterList.member = Shapes::ShapeRef.new(shape: SummarizedCounter)
|
196
|
+
|
197
|
+
TimeRange.add_member(:from_inclusive, Shapes::ShapeRef.new(shape: AttackTimestamp, location_name: "FromInclusive"))
|
198
|
+
TimeRange.add_member(:to_exclusive, Shapes::ShapeRef.new(shape: AttackTimestamp, location_name: "ToExclusive"))
|
199
|
+
TimeRange.struct_class = Types::TimeRange
|
200
|
+
|
201
|
+
|
202
|
+
# @api private
|
203
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
204
|
+
|
205
|
+
api.version = "2016-06-02"
|
206
|
+
|
207
|
+
api.metadata = {
|
208
|
+
"endpointPrefix" => "shield",
|
209
|
+
"jsonVersion" => "1.1",
|
210
|
+
"protocol" => "json",
|
211
|
+
"serviceFullName" => "AWS Shield",
|
212
|
+
"signatureVersion" => "v4",
|
213
|
+
"targetPrefix" => "AWSShield_20160616",
|
214
|
+
}
|
215
|
+
|
216
|
+
api.add_operation(:create_protection, Seahorse::Model::Operation.new.tap do |o|
|
217
|
+
o.name = "CreateProtection"
|
218
|
+
o.http_method = "POST"
|
219
|
+
o.http_request_uri = "/"
|
220
|
+
o.input = Shapes::ShapeRef.new(shape: CreateProtectionRequest)
|
221
|
+
o.output = Shapes::ShapeRef.new(shape: CreateProtectionResponse)
|
222
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
223
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidResourceException)
|
224
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
|
225
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitsExceededException)
|
226
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
227
|
+
o.errors << Shapes::ShapeRef.new(shape: OptimisticLockException)
|
228
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
229
|
+
end)
|
230
|
+
|
231
|
+
api.add_operation(:create_subscription, Seahorse::Model::Operation.new.tap do |o|
|
232
|
+
o.name = "CreateSubscription"
|
233
|
+
o.http_method = "POST"
|
234
|
+
o.http_request_uri = "/"
|
235
|
+
o.input = Shapes::ShapeRef.new(shape: CreateSubscriptionRequest)
|
236
|
+
o.output = Shapes::ShapeRef.new(shape: CreateSubscriptionResponse)
|
237
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
238
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
239
|
+
end)
|
240
|
+
|
241
|
+
api.add_operation(:delete_protection, Seahorse::Model::Operation.new.tap do |o|
|
242
|
+
o.name = "DeleteProtection"
|
243
|
+
o.http_method = "POST"
|
244
|
+
o.http_request_uri = "/"
|
245
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteProtectionRequest)
|
246
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteProtectionResponse)
|
247
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
248
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
249
|
+
o.errors << Shapes::ShapeRef.new(shape: OptimisticLockException)
|
250
|
+
end)
|
251
|
+
|
252
|
+
api.add_operation(:delete_subscription, Seahorse::Model::Operation.new.tap do |o|
|
253
|
+
o.name = "DeleteSubscription"
|
254
|
+
o.http_method = "POST"
|
255
|
+
o.http_request_uri = "/"
|
256
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteSubscriptionRequest)
|
257
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteSubscriptionResponse)
|
258
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
259
|
+
o.errors << Shapes::ShapeRef.new(shape: LockedSubscriptionException)
|
260
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
261
|
+
end)
|
262
|
+
|
263
|
+
api.add_operation(:describe_attack, Seahorse::Model::Operation.new.tap do |o|
|
264
|
+
o.name = "DescribeAttack"
|
265
|
+
o.http_method = "POST"
|
266
|
+
o.http_request_uri = "/"
|
267
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeAttackRequest)
|
268
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeAttackResponse)
|
269
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
270
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
271
|
+
end)
|
272
|
+
|
273
|
+
api.add_operation(:describe_protection, Seahorse::Model::Operation.new.tap do |o|
|
274
|
+
o.name = "DescribeProtection"
|
275
|
+
o.http_method = "POST"
|
276
|
+
o.http_request_uri = "/"
|
277
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeProtectionRequest)
|
278
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeProtectionResponse)
|
279
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
280
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
281
|
+
end)
|
282
|
+
|
283
|
+
api.add_operation(:describe_subscription, Seahorse::Model::Operation.new.tap do |o|
|
284
|
+
o.name = "DescribeSubscription"
|
285
|
+
o.http_method = "POST"
|
286
|
+
o.http_request_uri = "/"
|
287
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeSubscriptionRequest)
|
288
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeSubscriptionResponse)
|
289
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
290
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
291
|
+
end)
|
292
|
+
|
293
|
+
api.add_operation(:list_attacks, Seahorse::Model::Operation.new.tap do |o|
|
294
|
+
o.name = "ListAttacks"
|
295
|
+
o.http_method = "POST"
|
296
|
+
o.http_request_uri = "/"
|
297
|
+
o.input = Shapes::ShapeRef.new(shape: ListAttacksRequest)
|
298
|
+
o.output = Shapes::ShapeRef.new(shape: ListAttacksResponse)
|
299
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
300
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
301
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
|
302
|
+
end)
|
303
|
+
|
304
|
+
api.add_operation(:list_protections, Seahorse::Model::Operation.new.tap do |o|
|
305
|
+
o.name = "ListProtections"
|
306
|
+
o.http_method = "POST"
|
307
|
+
o.http_request_uri = "/"
|
308
|
+
o.input = Shapes::ShapeRef.new(shape: ListProtectionsRequest)
|
309
|
+
o.output = Shapes::ShapeRef.new(shape: ListProtectionsResponse)
|
310
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
311
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
312
|
+
end)
|
316
313
|
end
|
314
|
+
|
317
315
|
end
|
318
316
|
end
|