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,23 +1,14 @@
|
|
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
|
-
module
|
10
|
-
module Errors
|
8
|
+
module Aws::Shield
|
9
|
+
module Errors
|
11
10
|
|
12
|
-
|
11
|
+
extend Aws::Errors::DynamicErrors
|
13
12
|
|
14
|
-
# Raised when calling #load or #data on a resource class that can not be
|
15
|
-
# loaded. This can happen when:
|
16
|
-
#
|
17
|
-
# * A resource class has identifiers, but no data attributes.
|
18
|
-
# * Resource data is only available when making an API call that
|
19
|
-
# enumerates all resources of that type.
|
20
|
-
class ResourceNotLoadable < RuntimeError; end
|
21
|
-
end
|
22
13
|
end
|
23
14
|
end
|
@@ -1,25 +1,23 @@
|
|
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
|
-
class Resource
|
8
|
+
module Aws::Shield
|
9
|
+
class Resource
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
# @return [Client]
|
19
|
-
def client
|
20
|
-
@client
|
21
|
-
end
|
11
|
+
# @param options ({})
|
12
|
+
# @option options [Client] :client
|
13
|
+
def initialize(options = {})
|
14
|
+
@client = options[:client] || Client.new(options)
|
15
|
+
end
|
22
16
|
|
17
|
+
# @return [Client]
|
18
|
+
def client
|
19
|
+
@client
|
23
20
|
end
|
21
|
+
|
24
22
|
end
|
25
23
|
end
|
data/lib/aws-sdk-shield/types.rb
CHANGED
@@ -1,448 +1,544 @@
|
|
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
|
-
module
|
10
|
-
module Types
|
8
|
+
module Aws::Shield
|
9
|
+
module Types
|
11
10
|
|
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
|
-
# @return [String]
|
57
|
-
#
|
58
|
-
# @!attribute [rw] resource_arn
|
59
|
-
# The ARN (Amazon Resource Name) of the resource that was attacked.
|
60
|
-
# @return [String]
|
61
|
-
#
|
62
|
-
# @!attribute [rw] start_time
|
63
|
-
# The start time of the attack, in the format 2016-12-16T13:50Z.
|
64
|
-
# @return [Time]
|
65
|
-
#
|
66
|
-
# @!attribute [rw] end_time
|
67
|
-
# The end time of the attack, in the format 2016-12-16T13:50Z.
|
68
|
-
# @return [Time]
|
69
|
-
#
|
70
|
-
# @!attribute [rw] attack_vectors
|
71
|
-
# The list of attacks for a specified time period.
|
72
|
-
# @return [Array<Types::AttackVectorDescription>]
|
73
|
-
class AttackSummary < Struct.new(
|
74
|
-
:attack_id,
|
75
|
-
:resource_arn,
|
76
|
-
:start_time,
|
77
|
-
:end_time,
|
78
|
-
:attack_vectors)
|
79
|
-
include Aws::Structure
|
80
|
-
end
|
11
|
+
# The details of a DDoS attack.
|
12
|
+
#
|
13
|
+
# @!attribute [rw] attack_id
|
14
|
+
# The unique identifier (ID) of the attack.
|
15
|
+
# @return [String]
|
16
|
+
#
|
17
|
+
# @!attribute [rw] resource_arn
|
18
|
+
# The ARN (Amazon Resource Name) of the resource that was attacked.
|
19
|
+
# @return [String]
|
20
|
+
#
|
21
|
+
# @!attribute [rw] sub_resources
|
22
|
+
# If applicable, additional detail about the resource being attacked,
|
23
|
+
# for example, IP address or URL.
|
24
|
+
# @return [Array<Types::SubResourceSummary>]
|
25
|
+
#
|
26
|
+
# @!attribute [rw] start_time
|
27
|
+
# The time the attack started, in the format 2016-12-16T13:50Z.
|
28
|
+
# @return [Time]
|
29
|
+
#
|
30
|
+
# @!attribute [rw] end_time
|
31
|
+
# The time the attack ended, in the format 2016-12-16T13:50Z.
|
32
|
+
# @return [Time]
|
33
|
+
#
|
34
|
+
# @!attribute [rw] attack_counters
|
35
|
+
# List of counters that describe the attack for the specified time
|
36
|
+
# period.
|
37
|
+
# @return [Array<Types::SummarizedCounter>]
|
38
|
+
#
|
39
|
+
# @!attribute [rw] mitigations
|
40
|
+
# List of mitigation actions taken for the attack.
|
41
|
+
# @return [Array<Types::Mitigation>]
|
42
|
+
#
|
43
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/AttackDetail AWS API Documentation
|
44
|
+
#
|
45
|
+
class AttackDetail < Struct.new(
|
46
|
+
:attack_id,
|
47
|
+
:resource_arn,
|
48
|
+
:sub_resources,
|
49
|
+
:start_time,
|
50
|
+
:end_time,
|
51
|
+
:attack_counters,
|
52
|
+
:mitigations)
|
53
|
+
include Aws::Structure
|
54
|
+
end
|
81
55
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
56
|
+
# Summarizes all DDoS attacks for a specified time period.
|
57
|
+
#
|
58
|
+
# @!attribute [rw] attack_id
|
59
|
+
# The unique identifier (ID) of the attack.
|
60
|
+
# @return [String]
|
61
|
+
#
|
62
|
+
# @!attribute [rw] resource_arn
|
63
|
+
# The ARN (Amazon Resource Name) of the resource that was attacked.
|
64
|
+
# @return [String]
|
65
|
+
#
|
66
|
+
# @!attribute [rw] start_time
|
67
|
+
# The start time of the attack, in the format 2016-12-16T13:50Z.
|
68
|
+
# @return [Time]
|
69
|
+
#
|
70
|
+
# @!attribute [rw] end_time
|
71
|
+
# The end time of the attack, in the format 2016-12-16T13:50Z.
|
72
|
+
# @return [Time]
|
73
|
+
#
|
74
|
+
# @!attribute [rw] attack_vectors
|
75
|
+
# The list of attacks for a specified time period.
|
76
|
+
# @return [Array<Types::AttackVectorDescription>]
|
77
|
+
#
|
78
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/AttackSummary AWS API Documentation
|
79
|
+
#
|
80
|
+
class AttackSummary < Struct.new(
|
81
|
+
:attack_id,
|
82
|
+
:resource_arn,
|
83
|
+
:start_time,
|
84
|
+
:end_time,
|
85
|
+
:attack_vectors)
|
86
|
+
include Aws::Structure
|
87
|
+
end
|
90
88
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
# The ARN (Amazon Resource Name) of the resource to be protected.
|
104
|
-
# @return [String]
|
105
|
-
class CreateProtectionRequest < Struct.new(
|
106
|
-
:name,
|
107
|
-
:resource_arn)
|
108
|
-
include Aws::Structure
|
109
|
-
end
|
89
|
+
# Describes the attack.
|
90
|
+
#
|
91
|
+
# @!attribute [rw] vector_type
|
92
|
+
# The attack type, for example, SNMP reflection or SYN flood.
|
93
|
+
# @return [String]
|
94
|
+
#
|
95
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/AttackVectorDescription AWS API Documentation
|
96
|
+
#
|
97
|
+
class AttackVectorDescription < Struct.new(
|
98
|
+
:vector_type)
|
99
|
+
include Aws::Structure
|
100
|
+
end
|
110
101
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
102
|
+
# @note When making an API call, you may pass CreateProtectionRequest
|
103
|
+
# data as a hash:
|
104
|
+
#
|
105
|
+
# {
|
106
|
+
# name: "ProtectionName", # required
|
107
|
+
# resource_arn: "ResourceArn", # required
|
108
|
+
# }
|
109
|
+
#
|
110
|
+
# @!attribute [rw] name
|
111
|
+
# Friendly name for the `Protection` you are creating.
|
112
|
+
# @return [String]
|
113
|
+
#
|
114
|
+
# @!attribute [rw] resource_arn
|
115
|
+
# The ARN (Amazon Resource Name) of the resource to be protected.
|
116
|
+
# @return [String]
|
117
|
+
#
|
118
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateProtectionRequest AWS API Documentation
|
119
|
+
#
|
120
|
+
class CreateProtectionRequest < Struct.new(
|
121
|
+
:name,
|
122
|
+
:resource_arn)
|
123
|
+
include Aws::Structure
|
124
|
+
end
|
119
125
|
|
120
|
-
|
121
|
-
|
126
|
+
# @!attribute [rw] protection_id
|
127
|
+
# The unique identifier (ID) for the Protection object that is
|
128
|
+
# created.
|
129
|
+
# @return [String]
|
130
|
+
#
|
131
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateProtectionResponse AWS API Documentation
|
132
|
+
#
|
133
|
+
class CreateProtectionResponse < Struct.new(
|
134
|
+
:protection_id)
|
135
|
+
include Aws::Structure
|
136
|
+
end
|
122
137
|
|
123
|
-
|
138
|
+
# @api private
|
139
|
+
#
|
140
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateSubscriptionRequest AWS API Documentation
|
141
|
+
#
|
142
|
+
class CreateSubscriptionRequest < Aws::EmptyStructure; end
|
124
143
|
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
# {
|
129
|
-
# protection_id: "ProtectionId", # required
|
130
|
-
# }
|
131
|
-
# @!attribute [rw] protection_id
|
132
|
-
# The unique identifier (ID) for the Protection object to be deleted.
|
133
|
-
# @return [String]
|
134
|
-
class DeleteProtectionRequest < Struct.new(
|
135
|
-
:protection_id)
|
136
|
-
include Aws::Structure
|
137
|
-
end
|
144
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateSubscriptionResponse AWS API Documentation
|
145
|
+
#
|
146
|
+
class CreateSubscriptionResponse < Aws::EmptyStructure; end
|
138
147
|
|
139
|
-
|
148
|
+
# @note When making an API call, you may pass DeleteProtectionRequest
|
149
|
+
# data as a hash:
|
150
|
+
#
|
151
|
+
# {
|
152
|
+
# protection_id: "ProtectionId", # required
|
153
|
+
# }
|
154
|
+
#
|
155
|
+
# @!attribute [rw] protection_id
|
156
|
+
# The unique identifier (ID) for the Protection object to be deleted.
|
157
|
+
# @return [String]
|
158
|
+
#
|
159
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteProtectionRequest AWS API Documentation
|
160
|
+
#
|
161
|
+
class DeleteProtectionRequest < Struct.new(
|
162
|
+
:protection_id)
|
163
|
+
include Aws::Structure
|
164
|
+
end
|
140
165
|
|
141
|
-
|
142
|
-
|
166
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteProtectionResponse AWS API Documentation
|
167
|
+
#
|
168
|
+
class DeleteProtectionResponse < Aws::EmptyStructure; end
|
143
169
|
|
144
|
-
|
170
|
+
# @api private
|
171
|
+
#
|
172
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteSubscriptionRequest AWS API Documentation
|
173
|
+
#
|
174
|
+
class DeleteSubscriptionRequest < Aws::EmptyStructure; end
|
145
175
|
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
# {
|
150
|
-
# attack_id: "AttackId", # required
|
151
|
-
# }
|
152
|
-
# @!attribute [rw] attack_id
|
153
|
-
# The unique identifier (ID) for the attack that to be described.
|
154
|
-
# @return [String]
|
155
|
-
class DescribeAttackRequest < Struct.new(
|
156
|
-
:attack_id)
|
157
|
-
include Aws::Structure
|
158
|
-
end
|
176
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteSubscriptionResponse AWS API Documentation
|
177
|
+
#
|
178
|
+
class DeleteSubscriptionResponse < Aws::EmptyStructure; end
|
159
179
|
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
180
|
+
# @note When making an API call, you may pass DescribeAttackRequest
|
181
|
+
# data as a hash:
|
182
|
+
#
|
183
|
+
# {
|
184
|
+
# attack_id: "AttackId", # required
|
185
|
+
# }
|
186
|
+
#
|
187
|
+
# @!attribute [rw] attack_id
|
188
|
+
# The unique identifier (ID) for the attack that to be described.
|
189
|
+
# @return [String]
|
190
|
+
#
|
191
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeAttackRequest AWS API Documentation
|
192
|
+
#
|
193
|
+
class DescribeAttackRequest < Struct.new(
|
194
|
+
:attack_id)
|
195
|
+
include Aws::Structure
|
196
|
+
end
|
167
197
|
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
class DescribeProtectionRequest < Struct.new(
|
179
|
-
:protection_id)
|
180
|
-
include Aws::Structure
|
181
|
-
end
|
198
|
+
# @!attribute [rw] attack
|
199
|
+
# The attack that is described.
|
200
|
+
# @return [Types::AttackDetail]
|
201
|
+
#
|
202
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeAttackResponse AWS API Documentation
|
203
|
+
#
|
204
|
+
class DescribeAttackResponse < Struct.new(
|
205
|
+
:attack)
|
206
|
+
include Aws::Structure
|
207
|
+
end
|
182
208
|
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
209
|
+
# @note When making an API call, you may pass DescribeProtectionRequest
|
210
|
+
# data as a hash:
|
211
|
+
#
|
212
|
+
# {
|
213
|
+
# protection_id: "ProtectionId", # required
|
214
|
+
# }
|
215
|
+
#
|
216
|
+
# @!attribute [rw] protection_id
|
217
|
+
# The unique identifier (ID) for the Protection object that is
|
218
|
+
# described.
|
219
|
+
# @return [String]
|
220
|
+
#
|
221
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeProtectionRequest AWS API Documentation
|
222
|
+
#
|
223
|
+
class DescribeProtectionRequest < Struct.new(
|
224
|
+
:protection_id)
|
225
|
+
include Aws::Structure
|
226
|
+
end
|
190
227
|
|
191
|
-
|
192
|
-
|
228
|
+
# @!attribute [rw] protection
|
229
|
+
# The Protection object that is described.
|
230
|
+
# @return [Types::Protection]
|
231
|
+
#
|
232
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeProtectionResponse AWS API Documentation
|
233
|
+
#
|
234
|
+
class DescribeProtectionResponse < Struct.new(
|
235
|
+
:protection)
|
236
|
+
include Aws::Structure
|
237
|
+
end
|
193
238
|
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
include Aws::Structure
|
200
|
-
end
|
239
|
+
# @api private
|
240
|
+
#
|
241
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeSubscriptionRequest AWS API Documentation
|
242
|
+
#
|
243
|
+
class DescribeSubscriptionRequest < Aws::EmptyStructure; end
|
201
244
|
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
# from_inclusive: Time.now,
|
213
|
-
# to_exclusive: Time.now,
|
214
|
-
# },
|
215
|
-
# next_token: "Token",
|
216
|
-
# max_results: 1,
|
217
|
-
# }
|
218
|
-
# @!attribute [rw] resource_arns
|
219
|
-
# The ARN (Amazon Resource Name) of the resource that was attacked. If
|
220
|
-
# this is left blank, all applicable resources for this account will
|
221
|
-
# be included.
|
222
|
-
# @return [Array<String>]
|
223
|
-
#
|
224
|
-
# @!attribute [rw] start_time
|
225
|
-
# The time period for the attacks.
|
226
|
-
# @return [Types::TimeRange]
|
227
|
-
#
|
228
|
-
# @!attribute [rw] end_time
|
229
|
-
# The end of the time period for the attacks.
|
230
|
-
# @return [Types::TimeRange]
|
231
|
-
#
|
232
|
-
# @!attribute [rw] next_token
|
233
|
-
# The `ListAttacksRequest.NextMarker` value from a previous call to
|
234
|
-
# `ListAttacksRequest`. Pass null if this is the first call.
|
235
|
-
# @return [String]
|
236
|
-
#
|
237
|
-
# @!attribute [rw] max_results
|
238
|
-
# The maximum number of AttackSummary objects to be returned. If this
|
239
|
-
# is left blank, the first 20 results will be returned.
|
240
|
-
# @return [Integer]
|
241
|
-
class ListAttacksRequest < Struct.new(
|
242
|
-
:resource_arns,
|
243
|
-
:start_time,
|
244
|
-
:end_time,
|
245
|
-
:next_token,
|
246
|
-
:max_results)
|
247
|
-
include Aws::Structure
|
248
|
-
end
|
245
|
+
# @!attribute [rw] subscription
|
246
|
+
# The AWS Shield Advanced subscription details for an account.
|
247
|
+
# @return [Types::Subscription]
|
248
|
+
#
|
249
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeSubscriptionResponse AWS API Documentation
|
250
|
+
#
|
251
|
+
class DescribeSubscriptionResponse < Struct.new(
|
252
|
+
:subscription)
|
253
|
+
include Aws::Structure
|
254
|
+
end
|
249
255
|
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
256
|
+
# @note When making an API call, you may pass ListAttacksRequest
|
257
|
+
# data as a hash:
|
258
|
+
#
|
259
|
+
# {
|
260
|
+
# resource_arns: ["ResourceArn"],
|
261
|
+
# start_time: {
|
262
|
+
# from_inclusive: Time.now,
|
263
|
+
# to_exclusive: Time.now,
|
264
|
+
# },
|
265
|
+
# end_time: {
|
266
|
+
# from_inclusive: Time.now,
|
267
|
+
# to_exclusive: Time.now,
|
268
|
+
# },
|
269
|
+
# next_token: "Token",
|
270
|
+
# max_results: 1,
|
271
|
+
# }
|
272
|
+
#
|
273
|
+
# @!attribute [rw] resource_arns
|
274
|
+
# The ARN (Amazon Resource Name) of the resource that was attacked. If
|
275
|
+
# this is left blank, all applicable resources for this account will
|
276
|
+
# be included.
|
277
|
+
# @return [Array<String>]
|
278
|
+
#
|
279
|
+
# @!attribute [rw] start_time
|
280
|
+
# The time period for the attacks.
|
281
|
+
# @return [Types::TimeRange]
|
282
|
+
#
|
283
|
+
# @!attribute [rw] end_time
|
284
|
+
# The end of the time period for the attacks.
|
285
|
+
# @return [Types::TimeRange]
|
286
|
+
#
|
287
|
+
# @!attribute [rw] next_token
|
288
|
+
# The `ListAttacksRequest.NextMarker` value from a previous call to
|
289
|
+
# `ListAttacksRequest`. Pass null if this is the first call.
|
290
|
+
# @return [String]
|
291
|
+
#
|
292
|
+
# @!attribute [rw] max_results
|
293
|
+
# The maximum number of AttackSummary objects to be returned. If this
|
294
|
+
# is left blank, the first 20 results will be returned.
|
295
|
+
# @return [Integer]
|
296
|
+
#
|
297
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListAttacksRequest AWS API Documentation
|
298
|
+
#
|
299
|
+
class ListAttacksRequest < Struct.new(
|
300
|
+
:resource_arns,
|
301
|
+
:start_time,
|
302
|
+
:end_time,
|
303
|
+
:next_token,
|
304
|
+
:max_results)
|
305
|
+
include Aws::Structure
|
306
|
+
end
|
265
307
|
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
:max_results)
|
285
|
-
include Aws::Structure
|
286
|
-
end
|
308
|
+
# @!attribute [rw] attack_summaries
|
309
|
+
# The attack information for the specified time range.
|
310
|
+
# @return [Array<Types::AttackSummary>]
|
311
|
+
#
|
312
|
+
# @!attribute [rw] next_token
|
313
|
+
# The token returned by a previous call to indicate that there is more
|
314
|
+
# data available. If not null, more results are available. Pass this
|
315
|
+
# value for the `NextMarker` parameter in a subsequent call to
|
316
|
+
# `ListAttacks` to retrieve the next set of items.
|
317
|
+
# @return [String]
|
318
|
+
#
|
319
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListAttacksResponse AWS API Documentation
|
320
|
+
#
|
321
|
+
class ListAttacksResponse < Struct.new(
|
322
|
+
:attack_summaries,
|
323
|
+
:next_token)
|
324
|
+
include Aws::Structure
|
325
|
+
end
|
287
326
|
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
327
|
+
# @note When making an API call, you may pass ListProtectionsRequest
|
328
|
+
# data as a hash:
|
329
|
+
#
|
330
|
+
# {
|
331
|
+
# next_token: "Token",
|
332
|
+
# max_results: 1,
|
333
|
+
# }
|
334
|
+
#
|
335
|
+
# @!attribute [rw] next_token
|
336
|
+
# The `ListProtectionsRequest.NextToken` value from a previous call to
|
337
|
+
# `ListProtections`. Pass null if this is the first call.
|
338
|
+
# @return [String]
|
339
|
+
#
|
340
|
+
# @!attribute [rw] max_results
|
341
|
+
# The maximum number of Protection objects to be returned. If this is
|
342
|
+
# left blank the first 20 results will be returned.
|
343
|
+
# @return [Integer]
|
344
|
+
#
|
345
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListProtectionsRequest AWS API Documentation
|
346
|
+
#
|
347
|
+
class ListProtectionsRequest < Struct.new(
|
348
|
+
:next_token,
|
349
|
+
:max_results)
|
350
|
+
include Aws::Structure
|
351
|
+
end
|
306
352
|
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
353
|
+
# @!attribute [rw] protections
|
354
|
+
# The array of enabled Protection objects.
|
355
|
+
# @return [Array<Types::Protection>]
|
356
|
+
#
|
357
|
+
# @!attribute [rw] next_token
|
358
|
+
# If you specify a value for `MaxResults` and you have more
|
359
|
+
# Protections than the value of MaxResults, AWS Shield Advanced
|
360
|
+
# returns a NextToken value in the response that allows you to list
|
361
|
+
# another group of Protections. For the second and subsequent
|
362
|
+
# ListProtections requests, specify the value of NextToken from the
|
363
|
+
# previous response to get information about another batch of
|
364
|
+
# Protections.
|
365
|
+
# @return [String]
|
366
|
+
#
|
367
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListProtectionsResponse AWS API Documentation
|
368
|
+
#
|
369
|
+
class ListProtectionsResponse < Struct.new(
|
370
|
+
:protections,
|
371
|
+
:next_token)
|
372
|
+
include Aws::Structure
|
373
|
+
end
|
315
374
|
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
# protected.
|
329
|
-
# @return [String]
|
330
|
-
class Protection < Struct.new(
|
331
|
-
:id,
|
332
|
-
:name,
|
333
|
-
:resource_arn)
|
334
|
-
include Aws::Structure
|
335
|
-
end
|
375
|
+
# The mitigation applied to a DDoS attack.
|
376
|
+
#
|
377
|
+
# @!attribute [rw] mitigation_name
|
378
|
+
# The name of the mitigation taken for this attack.
|
379
|
+
# @return [String]
|
380
|
+
#
|
381
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/Mitigation AWS API Documentation
|
382
|
+
#
|
383
|
+
class Mitigation < Struct.new(
|
384
|
+
:mitigation_name)
|
385
|
+
include Aws::Structure
|
386
|
+
end
|
336
387
|
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
388
|
+
# An object that represents a resource that is under DDoS protection.
|
389
|
+
#
|
390
|
+
# @!attribute [rw] id
|
391
|
+
# The unique identifier (ID) of the protection.
|
392
|
+
# @return [String]
|
393
|
+
#
|
394
|
+
# @!attribute [rw] name
|
395
|
+
# The friendly name of the protection. For example, `My CloudFront
|
396
|
+
# distributions`.
|
397
|
+
# @return [String]
|
398
|
+
#
|
399
|
+
# @!attribute [rw] resource_arn
|
400
|
+
# The ARN (Amazon Resource Name) of the AWS resource that is
|
401
|
+
# protected.
|
402
|
+
# @return [String]
|
403
|
+
#
|
404
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/Protection AWS API Documentation
|
405
|
+
#
|
406
|
+
class Protection < Struct.new(
|
407
|
+
:id,
|
408
|
+
:name,
|
409
|
+
:resource_arn)
|
410
|
+
include Aws::Structure
|
411
|
+
end
|
360
412
|
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
413
|
+
# The attack information for the specified SubResource.
|
414
|
+
#
|
415
|
+
# @!attribute [rw] type
|
416
|
+
# The `SubResource` type.
|
417
|
+
# @return [String]
|
418
|
+
#
|
419
|
+
# @!attribute [rw] id
|
420
|
+
# The unique identifier (ID) of the `SubResource`.
|
421
|
+
# @return [String]
|
422
|
+
#
|
423
|
+
# @!attribute [rw] attack_vectors
|
424
|
+
# The list of attack types and associated counters.
|
425
|
+
# @return [Array<Types::SummarizedAttackVector>]
|
426
|
+
#
|
427
|
+
# @!attribute [rw] counters
|
428
|
+
# The counters that describe the details of the attack.
|
429
|
+
# @return [Array<Types::SummarizedCounter>]
|
430
|
+
#
|
431
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/SubResourceSummary AWS API Documentation
|
432
|
+
#
|
433
|
+
class SubResourceSummary < Struct.new(
|
434
|
+
:type,
|
435
|
+
:id,
|
436
|
+
:attack_vectors,
|
437
|
+
:counters)
|
438
|
+
include Aws::Structure
|
439
|
+
end
|
376
440
|
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
441
|
+
# Information about the AWS Shield Advanced subscription for an account.
|
442
|
+
#
|
443
|
+
# @!attribute [rw] start_time
|
444
|
+
# The start time of the subscription, in the format
|
445
|
+
# "2016-12-16T13:50Z".
|
446
|
+
# @return [Time]
|
447
|
+
#
|
448
|
+
# @!attribute [rw] time_commitment_in_seconds
|
449
|
+
# The length, in seconds, of the AWS Shield Advanced subscription for
|
450
|
+
# the account.
|
451
|
+
# @return [Integer]
|
452
|
+
#
|
453
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/Subscription AWS API Documentation
|
454
|
+
#
|
455
|
+
class Subscription < Struct.new(
|
456
|
+
:start_time,
|
457
|
+
:time_commitment_in_seconds)
|
458
|
+
include Aws::Structure
|
459
|
+
end
|
390
460
|
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
# @!attribute [rw] n
|
409
|
-
# The number of counters for a specified time period.
|
410
|
-
# @return [Integer]
|
411
|
-
#
|
412
|
-
# @!attribute [rw] unit
|
413
|
-
# The unit of the counters.
|
414
|
-
# @return [String]
|
415
|
-
class SummarizedCounter < Struct.new(
|
416
|
-
:name,
|
417
|
-
:max,
|
418
|
-
:average,
|
419
|
-
:sum,
|
420
|
-
:n,
|
421
|
-
:unit)
|
422
|
-
include Aws::Structure
|
423
|
-
end
|
461
|
+
# A summary of information about the attack.
|
462
|
+
#
|
463
|
+
# @!attribute [rw] vector_type
|
464
|
+
# The attack type, for example, SNMP reflection or SYN flood.
|
465
|
+
# @return [String]
|
466
|
+
#
|
467
|
+
# @!attribute [rw] vector_counters
|
468
|
+
# The list of counters that describe the details of the attack.
|
469
|
+
# @return [Array<Types::SummarizedCounter>]
|
470
|
+
#
|
471
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/SummarizedAttackVector AWS API Documentation
|
472
|
+
#
|
473
|
+
class SummarizedAttackVector < Struct.new(
|
474
|
+
:vector_type,
|
475
|
+
:vector_counters)
|
476
|
+
include Aws::Structure
|
477
|
+
end
|
424
478
|
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
479
|
+
# The counter that describes a DDoS attack.
|
480
|
+
#
|
481
|
+
# @!attribute [rw] name
|
482
|
+
# The counter name.
|
483
|
+
# @return [String]
|
484
|
+
#
|
485
|
+
# @!attribute [rw] max
|
486
|
+
# The maximum value of the counter for a specified time period.
|
487
|
+
# @return [Float]
|
488
|
+
#
|
489
|
+
# @!attribute [rw] average
|
490
|
+
# The average value of the counter for a specified time period.
|
491
|
+
# @return [Float]
|
492
|
+
#
|
493
|
+
# @!attribute [rw] sum
|
494
|
+
# The total of counter values for a specified time period.
|
495
|
+
# @return [Float]
|
496
|
+
#
|
497
|
+
# @!attribute [rw] n
|
498
|
+
# The number of counters for a specified time period.
|
499
|
+
# @return [Integer]
|
500
|
+
#
|
501
|
+
# @!attribute [rw] unit
|
502
|
+
# The unit of the counters.
|
503
|
+
# @return [String]
|
504
|
+
#
|
505
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/SummarizedCounter AWS API Documentation
|
506
|
+
#
|
507
|
+
class SummarizedCounter < Struct.new(
|
508
|
+
:name,
|
509
|
+
:max,
|
510
|
+
:average,
|
511
|
+
:sum,
|
512
|
+
:n,
|
513
|
+
:unit)
|
514
|
+
include Aws::Structure
|
515
|
+
end
|
445
516
|
|
517
|
+
# The time range.
|
518
|
+
#
|
519
|
+
# @note When making an API call, you may pass TimeRange
|
520
|
+
# data as a hash:
|
521
|
+
#
|
522
|
+
# {
|
523
|
+
# from_inclusive: Time.now,
|
524
|
+
# to_exclusive: Time.now,
|
525
|
+
# }
|
526
|
+
#
|
527
|
+
# @!attribute [rw] from_inclusive
|
528
|
+
# The start time, in the format 2016-12-16T13:50Z.
|
529
|
+
# @return [Time]
|
530
|
+
#
|
531
|
+
# @!attribute [rw] to_exclusive
|
532
|
+
# The end time, in the format 2016-12-16T15:50Z.
|
533
|
+
# @return [Time]
|
534
|
+
#
|
535
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/TimeRange AWS API Documentation
|
536
|
+
#
|
537
|
+
class TimeRange < Struct.new(
|
538
|
+
:from_inclusive,
|
539
|
+
:to_exclusive)
|
540
|
+
include Aws::Structure
|
446
541
|
end
|
542
|
+
|
447
543
|
end
|
448
544
|
end
|