1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | interface Blob {}
|
8 | declare class Shield extends Service {
|
9 | |
10 |
|
11 |
|
12 | constructor(options?: Shield.Types.ClientConfiguration)
|
13 | config: Config & Shield.Types.ClientConfiguration;
|
14 | /**
|
15 | * Authorizes the DDoS Response team (DRT) to access the specified Amazon S3 bucket containing your flow logs. You can associate up to 10 Amazon S3 buckets with your subscription. To use the services of the DRT and make an AssociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan.
|
16 | */
|
17 | associateDRTLogBucket(params: Shield.Types.AssociateDRTLogBucketRequest, callback?: (err: AWSError, data: Shield.Types.AssociateDRTLogBucketResponse) => void): Request<Shield.Types.AssociateDRTLogBucketResponse, AWSError>;
|
18 | /**
|
19 | * Authorizes the DDoS Response team (DRT) to access the specified Amazon S3 bucket containing your flow logs. You can associate up to 10 Amazon S3 buckets with your subscription. To use the services of the DRT and make an AssociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan.
|
20 | */
|
21 | associateDRTLogBucket(callback?: (err: AWSError, data: Shield.Types.AssociateDRTLogBucketResponse) => void): Request<Shield.Types.AssociateDRTLogBucketResponse, AWSError>;
|
22 | /**
|
23 | * Authorizes the DDoS Response team (DRT), using the specified role, to access your AWS account to assist with DDoS attack mitigation during potential attacks. This enables the DRT to inspect your AWS WAF configuration and create or update AWS WAF rules and web ACLs. You can associate only one RoleArn with your subscription. If you submit an AssociateDRTRole request for an account that already has an associated role, the new RoleArn will replace the existing RoleArn. Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to the role you will specify in the request. For more information see Attaching and Detaching IAM Policies. The role must also trust the service principal drt.shield.amazonaws.com. For more information, see IAM JSON Policy Elements: Principal. The DRT will have access only to your AWS WAF and Shield resources. By submitting this request, you authorize the DRT to inspect your AWS WAF and Shield configuration and create and update AWS WAF rules and web ACLs on your behalf. The DRT takes these actions only if explicitly authorized by you. You must have the iam:PassRole permission to make an AssociateDRTRole request. For more information, see Granting a User Permissions to Pass a Role to an AWS Service. To use the services of the DRT and make an AssociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan.
|
24 | */
|
25 | associateDRTRole(params: Shield.Types.AssociateDRTRoleRequest, callback?: (err: AWSError, data: Shield.Types.AssociateDRTRoleResponse) => void): Request<Shield.Types.AssociateDRTRoleResponse, AWSError>;
|
26 | /**
|
27 | * Authorizes the DDoS Response team (DRT), using the specified role, to access your AWS account to assist with DDoS attack mitigation during potential attacks. This enables the DRT to inspect your AWS WAF configuration and create or update AWS WAF rules and web ACLs. You can associate only one RoleArn with your subscription. If you submit an AssociateDRTRole request for an account that already has an associated role, the new RoleArn will replace the existing RoleArn. Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to the role you will specify in the request. For more information see Attaching and Detaching IAM Policies. The role must also trust the service principal drt.shield.amazonaws.com. For more information, see IAM JSON Policy Elements: Principal. The DRT will have access only to your AWS WAF and Shield resources. By submitting this request, you authorize the DRT to inspect your AWS WAF and Shield configuration and create and update AWS WAF rules and web ACLs on your behalf. The DRT takes these actions only if explicitly authorized by you. You must have the iam:PassRole permission to make an AssociateDRTRole request. For more information, see Granting a User Permissions to Pass a Role to an AWS Service. To use the services of the DRT and make an AssociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan.
|
28 | */
|
29 | associateDRTRole(callback?: (err: AWSError, data: Shield.Types.AssociateDRTRoleResponse) => void): Request<Shield.Types.AssociateDRTRoleResponse, AWSError>;
|
30 | /**
|
31 | * Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, AWS Global Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone. You can add protection to only a single resource with each CreateProtection request. If you want to add protection to multiple resources at once, use the AWS WAF console. For more information see Getting Started with AWS Shield Advanced and Add AWS Shield Advanced Protection to more AWS Resources.
|
32 | */
|
33 | createProtection(params: Shield.Types.CreateProtectionRequest, callback?: (err: AWSError, data: Shield.Types.CreateProtectionResponse) => void): Request<Shield.Types.CreateProtectionResponse, AWSError>;
|
34 | /**
|
35 | * Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, AWS Global Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone. You can add protection to only a single resource with each CreateProtection request. If you want to add protection to multiple resources at once, use the AWS WAF console. For more information see Getting Started with AWS Shield Advanced and Add AWS Shield Advanced Protection to more AWS Resources.
|
36 | */
|
37 | createProtection(callback?: (err: AWSError, data: Shield.Types.CreateProtectionResponse) => void): Request<Shield.Types.CreateProtectionResponse, AWSError>;
|
38 | /**
|
39 | * Activates AWS Shield Advanced for an account. As part of this request you can specify EmergencySettings that automaticaly grant the DDoS response team (DRT) needed permissions to assist you during a suspected DDoS attack. For more information see Authorize the DDoS Response Team to Create Rules and Web ACLs on Your Behalf. When you initally create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request.
|
40 | */
|
41 | createSubscription(params: Shield.Types.CreateSubscriptionRequest, callback?: (err: AWSError, data: Shield.Types.CreateSubscriptionResponse) => void): Request<Shield.Types.CreateSubscriptionResponse, AWSError>;
|
42 | /**
|
43 | * Activates AWS Shield Advanced for an account. As part of this request you can specify EmergencySettings that automaticaly grant the DDoS response team (DRT) needed permissions to assist you during a suspected DDoS attack. For more information see Authorize the DDoS Response Team to Create Rules and Web ACLs on Your Behalf. When you initally create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request.
|
44 | */
|
45 | createSubscription(callback?: (err: AWSError, data: Shield.Types.CreateSubscriptionResponse) => void): Request<Shield.Types.CreateSubscriptionResponse, AWSError>;
|
46 | /**
|
47 | * Deletes an AWS Shield Advanced Protection.
|
48 | */
|
49 | deleteProtection(params: Shield.Types.DeleteProtectionRequest, callback?: (err: AWSError, data: Shield.Types.DeleteProtectionResponse) => void): Request<Shield.Types.DeleteProtectionResponse, AWSError>;
|
50 | /**
|
51 | * Deletes an AWS Shield Advanced Protection.
|
52 | */
|
53 | deleteProtection(callback?: (err: AWSError, data: Shield.Types.DeleteProtectionResponse) => void): Request<Shield.Types.DeleteProtectionResponse, AWSError>;
|
54 | /**
|
55 | * Removes AWS Shield Advanced from an account. AWS Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment.
|
56 | */
|
57 | deleteSubscription(params: Shield.Types.DeleteSubscriptionRequest, callback?: (err: AWSError, data: Shield.Types.DeleteSubscriptionResponse) => void): Request<Shield.Types.DeleteSubscriptionResponse, AWSError>;
|
58 | /**
|
59 | * Removes AWS Shield Advanced from an account. AWS Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment.
|
60 | */
|
61 | deleteSubscription(callback?: (err: AWSError, data: Shield.Types.DeleteSubscriptionResponse) => void): Request<Shield.Types.DeleteSubscriptionResponse, AWSError>;
|
62 | /**
|
63 | * Describes the details of a DDoS attack.
|
64 | */
|
65 | describeAttack(params: Shield.Types.DescribeAttackRequest, callback?: (err: AWSError, data: Shield.Types.DescribeAttackResponse) => void): Request<Shield.Types.DescribeAttackResponse, AWSError>;
|
66 | /**
|
67 | * Describes the details of a DDoS attack.
|
68 | */
|
69 | describeAttack(callback?: (err: AWSError, data: Shield.Types.DescribeAttackResponse) => void): Request<Shield.Types.DescribeAttackResponse, AWSError>;
|
70 | /**
|
71 | * Returns the current role and list of Amazon S3 log buckets used by the DDoS Response team (DRT) to access your AWS account while assisting with attack mitigation.
|
72 | */
|
73 | describeDRTAccess(params: Shield.Types.DescribeDRTAccessRequest, callback?: (err: AWSError, data: Shield.Types.DescribeDRTAccessResponse) => void): Request<Shield.Types.DescribeDRTAccessResponse, AWSError>;
|
74 | /**
|
75 | * Returns the current role and list of Amazon S3 log buckets used by the DDoS Response team (DRT) to access your AWS account while assisting with attack mitigation.
|
76 | */
|
77 | describeDRTAccess(callback?: (err: AWSError, data: Shield.Types.DescribeDRTAccessResponse) => void): Request<Shield.Types.DescribeDRTAccessResponse, AWSError>;
|
78 | /**
|
79 | * Lists the email addresses that the DRT can use to contact you during a suspected attack.
|
80 | */
|
81 | describeEmergencyContactSettings(params: Shield.Types.DescribeEmergencyContactSettingsRequest, callback?: (err: AWSError, data: Shield.Types.DescribeEmergencyContactSettingsResponse) => void): Request<Shield.Types.DescribeEmergencyContactSettingsResponse, AWSError>;
|
82 | /**
|
83 | * Lists the email addresses that the DRT can use to contact you during a suspected attack.
|
84 | */
|
85 | describeEmergencyContactSettings(callback?: (err: AWSError, data: Shield.Types.DescribeEmergencyContactSettingsResponse) => void): Request<Shield.Types.DescribeEmergencyContactSettingsResponse, AWSError>;
|
86 | /**
|
87 | * Lists the details of a Protection object.
|
88 | */
|
89 | describeProtection(params: Shield.Types.DescribeProtectionRequest, callback?: (err: AWSError, data: Shield.Types.DescribeProtectionResponse) => void): Request<Shield.Types.DescribeProtectionResponse, AWSError>;
|
90 | /**
|
91 | * Lists the details of a Protection object.
|
92 | */
|
93 | describeProtection(callback?: (err: AWSError, data: Shield.Types.DescribeProtectionResponse) => void): Request<Shield.Types.DescribeProtectionResponse, AWSError>;
|
94 | /**
|
95 | * Provides details about the AWS Shield Advanced subscription for an account.
|
96 | */
|
97 | describeSubscription(params: Shield.Types.DescribeSubscriptionRequest, callback?: (err: AWSError, data: Shield.Types.DescribeSubscriptionResponse) => void): Request<Shield.Types.DescribeSubscriptionResponse, AWSError>;
|
98 | /**
|
99 | * Provides details about the AWS Shield Advanced subscription for an account.
|
100 | */
|
101 | describeSubscription(callback?: (err: AWSError, data: Shield.Types.DescribeSubscriptionResponse) => void): Request<Shield.Types.DescribeSubscriptionResponse, AWSError>;
|
102 | /**
|
103 | * Removes the DDoS Response team's (DRT) access to the specified Amazon S3 bucket containing your flow logs. To make a DisassociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the DRT access to your account, you can submit a DisassociateDRTLogBucket request to remove this access.
|
104 | */
|
105 | disassociateDRTLogBucket(params: Shield.Types.DisassociateDRTLogBucketRequest, callback?: (err: AWSError, data: Shield.Types.DisassociateDRTLogBucketResponse) => void): Request<Shield.Types.DisassociateDRTLogBucketResponse, AWSError>;
|
106 | /**
|
107 | * Removes the DDoS Response team's (DRT) access to the specified Amazon S3 bucket containing your flow logs. To make a DisassociateDRTLogBucket request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the DRT access to your account, you can submit a DisassociateDRTLogBucket request to remove this access.
|
108 | */
|
109 | disassociateDRTLogBucket(callback?: (err: AWSError, data: Shield.Types.DisassociateDRTLogBucketResponse) => void): Request<Shield.Types.DisassociateDRTLogBucketResponse, AWSError>;
|
110 | /**
|
111 | * Removes the DDoS Response team's (DRT) access to your AWS account. To make a DisassociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the DRT access to your account, you can submit a DisassociateDRTRole request to remove this access.
|
112 | */
|
113 | disassociateDRTRole(params: Shield.Types.DisassociateDRTRoleRequest, callback?: (err: AWSError, data: Shield.Types.DisassociateDRTRoleResponse) => void): Request<Shield.Types.DisassociateDRTRoleResponse, AWSError>;
|
114 | /**
|
115 | * Removes the DDoS Response team's (DRT) access to your AWS account. To make a DisassociateDRTRole request, you must be subscribed to the Business Support plan or the Enterprise Support plan. However, if you are not subscribed to one of these support plans, but had been previously and had granted the DRT access to your account, you can submit a DisassociateDRTRole request to remove this access.
|
116 | */
|
117 | disassociateDRTRole(callback?: (err: AWSError, data: Shield.Types.DisassociateDRTRoleResponse) => void): Request<Shield.Types.DisassociateDRTRoleResponse, AWSError>;
|
118 | /**
|
119 | * Returns the SubscriptionState, either Active or Inactive.
|
120 | */
|
121 | getSubscriptionState(params: Shield.Types.GetSubscriptionStateRequest, callback?: (err: AWSError, data: Shield.Types.GetSubscriptionStateResponse) => void): Request<Shield.Types.GetSubscriptionStateResponse, AWSError>;
|
122 | /**
|
123 | * Returns the SubscriptionState, either Active or Inactive.
|
124 | */
|
125 | getSubscriptionState(callback?: (err: AWSError, data: Shield.Types.GetSubscriptionStateResponse) => void): Request<Shield.Types.GetSubscriptionStateResponse, AWSError>;
|
126 | /**
|
127 | * Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period.
|
128 | */
|
129 | listAttacks(params: Shield.Types.ListAttacksRequest, callback?: (err: AWSError, data: Shield.Types.ListAttacksResponse) => void): Request<Shield.Types.ListAttacksResponse, AWSError>;
|
130 | /**
|
131 | * Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period.
|
132 | */
|
133 | listAttacks(callback?: (err: AWSError, data: Shield.Types.ListAttacksResponse) => void): Request<Shield.Types.ListAttacksResponse, AWSError>;
|
134 | /**
|
135 | * Lists all Protection objects for the account.
|
136 | */
|
137 | listProtections(params: Shield.Types.ListProtectionsRequest, callback?: (err: AWSError, data: Shield.Types.ListProtectionsResponse) => void): Request<Shield.Types.ListProtectionsResponse, AWSError>;
|
138 | /**
|
139 | * Lists all Protection objects for the account.
|
140 | */
|
141 | listProtections(callback?: (err: AWSError, data: Shield.Types.ListProtectionsResponse) => void): Request<Shield.Types.ListProtectionsResponse, AWSError>;
|
142 | /**
|
143 | * Updates the details of the list of email addresses that the DRT can use to contact you during a suspected attack.
|
144 | */
|
145 | updateEmergencyContactSettings(params: Shield.Types.UpdateEmergencyContactSettingsRequest, callback?: (err: AWSError, data: Shield.Types.UpdateEmergencyContactSettingsResponse) => void): Request<Shield.Types.UpdateEmergencyContactSettingsResponse, AWSError>;
|
146 | /**
|
147 | * Updates the details of the list of email addresses that the DRT can use to contact you during a suspected attack.
|
148 | */
|
149 | updateEmergencyContactSettings(callback?: (err: AWSError, data: Shield.Types.UpdateEmergencyContactSettingsResponse) => void): Request<Shield.Types.UpdateEmergencyContactSettingsResponse, AWSError>;
|
150 | /**
|
151 | * Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated.
|
152 | */
|
153 | updateSubscription(params: Shield.Types.UpdateSubscriptionRequest, callback?: (err: AWSError, data: Shield.Types.UpdateSubscriptionResponse) => void): Request<Shield.Types.UpdateSubscriptionResponse, AWSError>;
|
154 | /**
|
155 | * Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated.
|
156 | */
|
157 | updateSubscription(callback?: (err: AWSError, data: Shield.Types.UpdateSubscriptionResponse) => void): Request<Shield.Types.UpdateSubscriptionResponse, AWSError>;
|
158 | }
|
159 | declare namespace Shield {
|
160 | export interface AssociateDRTLogBucketRequest {
|
161 | |
162 |
|
163 |
|
164 | LogBucket: LogBucket;
|
165 | }
|
166 | export interface AssociateDRTLogBucketResponse {
|
167 | }
|
168 | export interface AssociateDRTRoleRequest {
|
169 | |
170 |
|
171 |
|
172 | RoleArn: RoleArn;
|
173 | }
|
174 | export interface AssociateDRTRoleResponse {
|
175 | }
|
176 | export interface AttackDetail {
|
177 | |
178 |
|
179 |
|
180 | AttackId?: AttackId;
|
181 | |
182 |
|
183 |
|
184 | ResourceArn?: ResourceArn;
|
185 | |
186 |
|
187 |
|
188 | SubResources?: SubResourceSummaryList;
|
189 | |
190 |
|
191 |
|
192 | StartTime?: AttackTimestamp;
|
193 | |
194 |
|
195 |
|
196 | EndTime?: AttackTimestamp;
|
197 | |
198 |
|
199 |
|
200 | AttackCounters?: SummarizedCounterList;
|
201 | |
202 |
|
203 |
|
204 | AttackProperties?: AttackProperties;
|
205 | |
206 |
|
207 |
|
208 | Mitigations?: MitigationList;
|
209 | }
|
210 | export type AttackId = string;
|
211 | export type AttackLayer = "NETWORK"|"APPLICATION"|string;
|
212 | export type AttackProperties = AttackProperty[];
|
213 | export interface AttackProperty {
|
214 | |
215 |
|
216 |
|
217 | AttackLayer?: AttackLayer;
|
218 | |
219 |
|
220 |
|
221 | AttackPropertyIdentifier?: AttackPropertyIdentifier;
|
222 | |
223 |
|
224 |
|
225 | TopContributors?: TopContributors;
|
226 | |
227 |
|
228 |
|
229 | Unit?: Unit;
|
230 | |
231 |
|
232 |
|
233 | Total?: Long;
|
234 | }
|
235 | export type AttackPropertyIdentifier = "DESTINATION_URL"|"REFERRER"|"SOURCE_ASN"|"SOURCE_COUNTRY"|"SOURCE_IP_ADDRESS"|"SOURCE_USER_AGENT"|string;
|
236 | export type AttackSummaries = AttackSummary[];
|
237 | export interface AttackSummary {
|
238 | |
239 |
|
240 |
|
241 | AttackId?: String;
|
242 | |
243 |
|
244 |
|
245 | ResourceArn?: String;
|
246 | |
247 |
|
248 |
|
249 | StartTime?: AttackTimestamp;
|
250 | |
251 |
|
252 |
|
253 | EndTime?: AttackTimestamp;
|
254 | |
255 |
|
256 |
|
257 | AttackVectors?: AttackVectorDescriptionList;
|
258 | }
|
259 | export type AttackTimestamp = Date;
|
260 | export interface AttackVectorDescription {
|
261 | |
262 |
|
263 |
|
264 | VectorType: String;
|
265 | }
|
266 | export type AttackVectorDescriptionList = AttackVectorDescription[];
|
267 | export type AutoRenew = "ENABLED"|"DISABLED"|string;
|
268 | export interface Contributor {
|
269 | |
270 |
|
271 |
|
272 | Name?: String;
|
273 | |
274 |
|
275 |
|
276 | Value?: Long;
|
277 | }
|
278 | export interface CreateProtectionRequest {
|
279 | |
280 |
|
281 |
|
282 | Name: ProtectionName;
|
283 | |
284 |
|
285 |
|
286 | ResourceArn: ResourceArn;
|
287 | }
|
288 | export interface CreateProtectionResponse {
|
289 | |
290 |
|
291 |
|
292 | ProtectionId?: ProtectionId;
|
293 | }
|
294 | export interface CreateSubscriptionRequest {
|
295 | }
|
296 | export interface CreateSubscriptionResponse {
|
297 | }
|
298 | export interface DeleteProtectionRequest {
|
299 | |
300 |
|
301 |
|
302 | ProtectionId: ProtectionId;
|
303 | }
|
304 | export interface DeleteProtectionResponse {
|
305 | }
|
306 | export interface DeleteSubscriptionRequest {
|
307 | }
|
308 | export interface DeleteSubscriptionResponse {
|
309 | }
|
310 | export interface DescribeAttackRequest {
|
311 | |
312 |
|
313 |
|
314 | AttackId: AttackId;
|
315 | }
|
316 | export interface DescribeAttackResponse {
|
317 | |
318 |
|
319 |
|
320 | Attack?: AttackDetail;
|
321 | }
|
322 | export interface DescribeDRTAccessRequest {
|
323 | }
|
324 | export interface DescribeDRTAccessResponse {
|
325 | |
326 |
|
327 |
|
328 | RoleArn?: RoleArn;
|
329 | |
330 |
|
331 |
|
332 | LogBucketList?: LogBucketList;
|
333 | }
|
334 | export interface DescribeEmergencyContactSettingsRequest {
|
335 | }
|
336 | export interface DescribeEmergencyContactSettingsResponse {
|
337 | |
338 |
|
339 |
|
340 | EmergencyContactList?: EmergencyContactList;
|
341 | }
|
342 | export interface DescribeProtectionRequest {
|
343 | |
344 |
|
345 |
|
346 | ProtectionId?: ProtectionId;
|
347 | |
348 |
|
349 |
|
350 | ResourceArn?: ResourceArn;
|
351 | }
|
352 | export interface DescribeProtectionResponse {
|
353 | |
354 |
|
355 |
|
356 | Protection?: Protection;
|
357 | }
|
358 | export interface DescribeSubscriptionRequest {
|
359 | }
|
360 | export interface DescribeSubscriptionResponse {
|
361 | |
362 |
|
363 |
|
364 | Subscription?: Subscription;
|
365 | }
|
366 | export interface DisassociateDRTLogBucketRequest {
|
367 | |
368 |
|
369 |
|
370 | LogBucket: LogBucket;
|
371 | }
|
372 | export interface DisassociateDRTLogBucketResponse {
|
373 | }
|
374 | export interface DisassociateDRTRoleRequest {
|
375 | }
|
376 | export interface DisassociateDRTRoleResponse {
|
377 | }
|
378 | export type Double = number;
|
379 | export type DurationInSeconds = number;
|
380 | export type EmailAddress = string;
|
381 | export interface EmergencyContact {
|
382 | |
383 |
|
384 |
|
385 | EmailAddress: EmailAddress;
|
386 | }
|
387 | export type EmergencyContactList = EmergencyContact[];
|
388 | export interface GetSubscriptionStateRequest {
|
389 | }
|
390 | export interface GetSubscriptionStateResponse {
|
391 | |
392 |
|
393 |
|
394 | SubscriptionState: SubscriptionState;
|
395 | }
|
396 | export type Integer = number;
|
397 | export interface Limit {
|
398 | |
399 |
|
400 |
|
401 | Type?: String;
|
402 | |
403 |
|
404 |
|
405 | Max?: Long;
|
406 | }
|
407 | export type Limits = Limit[];
|
408 | export interface ListAttacksRequest {
|
409 | |
410 |
|
411 |
|
412 | ResourceArns?: ResourceArnFilterList;
|
413 | |
414 |
|
415 |
|
416 | StartTime?: TimeRange;
|
417 | |
418 |
|
419 |
|
420 | EndTime?: TimeRange;
|
421 | |
422 |
|
423 |
|
424 | NextToken?: Token;
|
425 | |
426 |
|
427 |
|
428 | MaxResults?: MaxResults;
|
429 | }
|
430 | export interface ListAttacksResponse {
|
431 | |
432 |
|
433 |
|
434 | AttackSummaries?: AttackSummaries;
|
435 | |
436 |
|
437 |
|
438 | NextToken?: Token;
|
439 | }
|
440 | export interface ListProtectionsRequest {
|
441 | |
442 |
|
443 |
|
444 | NextToken?: Token;
|
445 | |
446 |
|
447 |
|
448 | MaxResults?: MaxResults;
|
449 | }
|
450 | export interface ListProtectionsResponse {
|
451 | |
452 |
|
453 |
|
454 | Protections?: Protections;
|
455 | |
456 |
|
457 |
|
458 | NextToken?: Token;
|
459 | }
|
460 | export type LogBucket = string;
|
461 | export type LogBucketList = LogBucket[];
|
462 | export type Long = number;
|
463 | export type MaxResults = number;
|
464 | export interface Mitigation {
|
465 | |
466 |
|
467 |
|
468 | MitigationName?: String;
|
469 | }
|
470 | export type MitigationList = Mitigation[];
|
471 | export interface Protection {
|
472 | |
473 |
|
474 |
|
475 | Id?: ProtectionId;
|
476 | |
477 |
|
478 |
|
479 | Name?: ProtectionName;
|
480 | |
481 |
|
482 |
|
483 | ResourceArn?: ResourceArn;
|
484 | }
|
485 | export type ProtectionId = string;
|
486 | export type ProtectionName = string;
|
487 | export type Protections = Protection[];
|
488 | export type ResourceArn = string;
|
489 | export type ResourceArnFilterList = ResourceArn[];
|
490 | export type RoleArn = string;
|
491 | export type String = string;
|
492 | export interface SubResourceSummary {
|
493 | |
494 |
|
495 |
|
496 | Type?: SubResourceType;
|
497 | |
498 |
|
499 |
|
500 | Id?: String;
|
501 | |
502 |
|
503 |
|
504 | AttackVectors?: SummarizedAttackVectorList;
|
505 | |
506 |
|
507 |
|
508 | Counters?: SummarizedCounterList;
|
509 | }
|
510 | export type SubResourceSummaryList = SubResourceSummary[];
|
511 | export type SubResourceType = "IP"|"URL"|string;
|
512 | export interface Subscription {
|
513 | |
514 |
|
515 |
|
516 | StartTime?: Timestamp;
|
517 | |
518 |
|
519 |
|
520 | EndTime?: Timestamp;
|
521 | |
522 |
|
523 |
|
524 | TimeCommitmentInSeconds?: DurationInSeconds;
|
525 | |
526 |
|
527 |
|
528 | AutoRenew?: AutoRenew;
|
529 | |
530 |
|
531 |
|
532 | Limits?: Limits;
|
533 | }
|
534 | export type SubscriptionState = "ACTIVE"|"INACTIVE"|string;
|
535 | export interface SummarizedAttackVector {
|
536 | |
537 |
|
538 |
|
539 | VectorType: String;
|
540 | |
541 |
|
542 |
|
543 | VectorCounters?: SummarizedCounterList;
|
544 | }
|
545 | export type SummarizedAttackVectorList = SummarizedAttackVector[];
|
546 | export interface SummarizedCounter {
|
547 | |
548 |
|
549 |
|
550 | Name?: String;
|
551 | |
552 |
|
553 |
|
554 | Max?: Double;
|
555 | |
556 |
|
557 |
|
558 | Average?: Double;
|
559 | |
560 |
|
561 |
|
562 | Sum?: Double;
|
563 | |
564 |
|
565 |
|
566 | N?: Integer;
|
567 | |
568 |
|
569 |
|
570 | Unit?: String;
|
571 | }
|
572 | export type SummarizedCounterList = SummarizedCounter[];
|
573 | export interface TimeRange {
|
574 | |
575 |
|
576 |
|
577 | FromInclusive?: AttackTimestamp;
|
578 | |
579 |
|
580 |
|
581 | ToExclusive?: AttackTimestamp;
|
582 | }
|
583 | export type Timestamp = Date;
|
584 | export type Token = string;
|
585 | export type TopContributors = Contributor[];
|
586 | export type Unit = "BITS"|"BYTES"|"PACKETS"|"REQUESTS"|string;
|
587 | export interface UpdateEmergencyContactSettingsRequest {
|
588 | |
589 |
|
590 |
|
591 | EmergencyContactList?: EmergencyContactList;
|
592 | }
|
593 | export interface UpdateEmergencyContactSettingsResponse {
|
594 | }
|
595 | export interface UpdateSubscriptionRequest {
|
596 | |
597 |
|
598 |
|
599 | AutoRenew?: AutoRenew;
|
600 | }
|
601 | export interface UpdateSubscriptionResponse {
|
602 | }
|
603 | |
604 |
|
605 |
|
606 | export type apiVersion = "2016-06-02"|"latest"|string;
|
607 | export interface ClientApiVersions {
|
608 | |
609 |
|
610 |
|
611 | apiVersion?: apiVersion;
|
612 | }
|
613 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
614 | |
615 |
|
616 |
|
617 | export import Types = Shield;
|
618 | }
|
619 | export = Shield;
|