UNPKG

40.1 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class Shield extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
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 AWS WAF 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 AWS WAF 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 * Adds health-based detection to the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your AWS resource to improve responsiveness and accuracy in attack detection and mitigation. You define the health check in Route 53 and then associate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the AWS WAF and AWS Shield Developer Guide.
32 */
33 associateHealthCheck(params: Shield.Types.AssociateHealthCheckRequest, callback?: (err: AWSError, data: Shield.Types.AssociateHealthCheckResponse) => void): Request<Shield.Types.AssociateHealthCheckResponse, AWSError>;
34 /**
35 * Adds health-based detection to the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your AWS resource to improve responsiveness and accuracy in attack detection and mitigation. You define the health check in Route 53 and then associate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the AWS WAF and AWS Shield Developer Guide.
36 */
37 associateHealthCheck(callback?: (err: AWSError, data: Shield.Types.AssociateHealthCheckResponse) => void): Request<Shield.Types.AssociateHealthCheckResponse, AWSError>;
38 /**
39 * 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.
40 */
41 createProtection(params: Shield.Types.CreateProtectionRequest, callback?: (err: AWSError, data: Shield.Types.CreateProtectionResponse) => void): Request<Shield.Types.CreateProtectionResponse, AWSError>;
42 /**
43 * 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.
44 */
45 createProtection(callback?: (err: AWSError, data: Shield.Types.CreateProtectionResponse) => void): Request<Shield.Types.CreateProtectionResponse, AWSError>;
46 /**
47 * 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. To use the services of the DRT, you must be subscribed to the Business Support plan or the Enterprise Support plan. 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.
48 */
49 createSubscription(params: Shield.Types.CreateSubscriptionRequest, callback?: (err: AWSError, data: Shield.Types.CreateSubscriptionResponse) => void): Request<Shield.Types.CreateSubscriptionResponse, AWSError>;
50 /**
51 * 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. To use the services of the DRT, you must be subscribed to the Business Support plan or the Enterprise Support plan. 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.
52 */
53 createSubscription(callback?: (err: AWSError, data: Shield.Types.CreateSubscriptionResponse) => void): Request<Shield.Types.CreateSubscriptionResponse, AWSError>;
54 /**
55 * Deletes an AWS Shield Advanced Protection.
56 */
57 deleteProtection(params: Shield.Types.DeleteProtectionRequest, callback?: (err: AWSError, data: Shield.Types.DeleteProtectionResponse) => void): Request<Shield.Types.DeleteProtectionResponse, AWSError>;
58 /**
59 * Deletes an AWS Shield Advanced Protection.
60 */
61 deleteProtection(callback?: (err: AWSError, data: Shield.Types.DeleteProtectionResponse) => void): Request<Shield.Types.DeleteProtectionResponse, AWSError>;
62 /**
63 * 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.
64 */
65 deleteSubscription(params: Shield.Types.DeleteSubscriptionRequest, callback?: (err: AWSError, data: Shield.Types.DeleteSubscriptionResponse) => void): Request<Shield.Types.DeleteSubscriptionResponse, AWSError>;
66 /**
67 * 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.
68 */
69 deleteSubscription(callback?: (err: AWSError, data: Shield.Types.DeleteSubscriptionResponse) => void): Request<Shield.Types.DeleteSubscriptionResponse, AWSError>;
70 /**
71 * Describes the details of a DDoS attack.
72 */
73 describeAttack(params: Shield.Types.DescribeAttackRequest, callback?: (err: AWSError, data: Shield.Types.DescribeAttackResponse) => void): Request<Shield.Types.DescribeAttackResponse, AWSError>;
74 /**
75 * Describes the details of a DDoS attack.
76 */
77 describeAttack(callback?: (err: AWSError, data: Shield.Types.DescribeAttackResponse) => void): Request<Shield.Types.DescribeAttackResponse, AWSError>;
78 /**
79 * 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.
80 */
81 describeDRTAccess(params: Shield.Types.DescribeDRTAccessRequest, callback?: (err: AWSError, data: Shield.Types.DescribeDRTAccessResponse) => void): Request<Shield.Types.DescribeDRTAccessResponse, AWSError>;
82 /**
83 * 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.
84 */
85 describeDRTAccess(callback?: (err: AWSError, data: Shield.Types.DescribeDRTAccessResponse) => void): Request<Shield.Types.DescribeDRTAccessResponse, AWSError>;
86 /**
87 * Lists the email addresses that the DRT can use to contact you during a suspected attack.
88 */
89 describeEmergencyContactSettings(params: Shield.Types.DescribeEmergencyContactSettingsRequest, callback?: (err: AWSError, data: Shield.Types.DescribeEmergencyContactSettingsResponse) => void): Request<Shield.Types.DescribeEmergencyContactSettingsResponse, AWSError>;
90 /**
91 * Lists the email addresses that the DRT can use to contact you during a suspected attack.
92 */
93 describeEmergencyContactSettings(callback?: (err: AWSError, data: Shield.Types.DescribeEmergencyContactSettingsResponse) => void): Request<Shield.Types.DescribeEmergencyContactSettingsResponse, AWSError>;
94 /**
95 * Lists the details of a Protection object.
96 */
97 describeProtection(params: Shield.Types.DescribeProtectionRequest, callback?: (err: AWSError, data: Shield.Types.DescribeProtectionResponse) => void): Request<Shield.Types.DescribeProtectionResponse, AWSError>;
98 /**
99 * Lists the details of a Protection object.
100 */
101 describeProtection(callback?: (err: AWSError, data: Shield.Types.DescribeProtectionResponse) => void): Request<Shield.Types.DescribeProtectionResponse, AWSError>;
102 /**
103 * Provides details about the AWS Shield Advanced subscription for an account.
104 */
105 describeSubscription(params: Shield.Types.DescribeSubscriptionRequest, callback?: (err: AWSError, data: Shield.Types.DescribeSubscriptionResponse) => void): Request<Shield.Types.DescribeSubscriptionResponse, AWSError>;
106 /**
107 * Provides details about the AWS Shield Advanced subscription for an account.
108 */
109 describeSubscription(callback?: (err: AWSError, data: Shield.Types.DescribeSubscriptionResponse) => void): Request<Shield.Types.DescribeSubscriptionResponse, AWSError>;
110 /**
111 * Removes the DDoS Response team's (DRT) access to the specified Amazon S3 bucket containing your AWS WAF 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.
112 */
113 disassociateDRTLogBucket(params: Shield.Types.DisassociateDRTLogBucketRequest, callback?: (err: AWSError, data: Shield.Types.DisassociateDRTLogBucketResponse) => void): Request<Shield.Types.DisassociateDRTLogBucketResponse, AWSError>;
114 /**
115 * Removes the DDoS Response team's (DRT) access to the specified Amazon S3 bucket containing your AWS WAF 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.
116 */
117 disassociateDRTLogBucket(callback?: (err: AWSError, data: Shield.Types.DisassociateDRTLogBucketResponse) => void): Request<Shield.Types.DisassociateDRTLogBucketResponse, AWSError>;
118 /**
119 * 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.
120 */
121 disassociateDRTRole(params: Shield.Types.DisassociateDRTRoleRequest, callback?: (err: AWSError, data: Shield.Types.DisassociateDRTRoleResponse) => void): Request<Shield.Types.DisassociateDRTRoleResponse, AWSError>;
122 /**
123 * 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.
124 */
125 disassociateDRTRole(callback?: (err: AWSError, data: Shield.Types.DisassociateDRTRoleResponse) => void): Request<Shield.Types.DisassociateDRTRoleResponse, AWSError>;
126 /**
127 * Removes health-based detection from the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your AWS resource to improve responsiveness and accuracy in attack detection and mitigation. You define the health check in Route 53 and then associate or disassociate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the AWS WAF and AWS Shield Developer Guide.
128 */
129 disassociateHealthCheck(params: Shield.Types.DisassociateHealthCheckRequest, callback?: (err: AWSError, data: Shield.Types.DisassociateHealthCheckResponse) => void): Request<Shield.Types.DisassociateHealthCheckResponse, AWSError>;
130 /**
131 * Removes health-based detection from the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your AWS resource to improve responsiveness and accuracy in attack detection and mitigation. You define the health check in Route 53 and then associate or disassociate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the AWS WAF and AWS Shield Developer Guide.
132 */
133 disassociateHealthCheck(callback?: (err: AWSError, data: Shield.Types.DisassociateHealthCheckResponse) => void): Request<Shield.Types.DisassociateHealthCheckResponse, AWSError>;
134 /**
135 * Returns the SubscriptionState, either Active or Inactive.
136 */
137 getSubscriptionState(params: Shield.Types.GetSubscriptionStateRequest, callback?: (err: AWSError, data: Shield.Types.GetSubscriptionStateResponse) => void): Request<Shield.Types.GetSubscriptionStateResponse, AWSError>;
138 /**
139 * Returns the SubscriptionState, either Active or Inactive.
140 */
141 getSubscriptionState(callback?: (err: AWSError, data: Shield.Types.GetSubscriptionStateResponse) => void): Request<Shield.Types.GetSubscriptionStateResponse, AWSError>;
142 /**
143 * Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period.
144 */
145 listAttacks(params: Shield.Types.ListAttacksRequest, callback?: (err: AWSError, data: Shield.Types.ListAttacksResponse) => void): Request<Shield.Types.ListAttacksResponse, AWSError>;
146 /**
147 * Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period.
148 */
149 listAttacks(callback?: (err: AWSError, data: Shield.Types.ListAttacksResponse) => void): Request<Shield.Types.ListAttacksResponse, AWSError>;
150 /**
151 * Lists all Protection objects for the account.
152 */
153 listProtections(params: Shield.Types.ListProtectionsRequest, callback?: (err: AWSError, data: Shield.Types.ListProtectionsResponse) => void): Request<Shield.Types.ListProtectionsResponse, AWSError>;
154 /**
155 * Lists all Protection objects for the account.
156 */
157 listProtections(callback?: (err: AWSError, data: Shield.Types.ListProtectionsResponse) => void): Request<Shield.Types.ListProtectionsResponse, AWSError>;
158 /**
159 * Updates the details of the list of email addresses that the DRT can use to contact you during a suspected attack.
160 */
161 updateEmergencyContactSettings(params: Shield.Types.UpdateEmergencyContactSettingsRequest, callback?: (err: AWSError, data: Shield.Types.UpdateEmergencyContactSettingsResponse) => void): Request<Shield.Types.UpdateEmergencyContactSettingsResponse, AWSError>;
162 /**
163 * Updates the details of the list of email addresses that the DRT can use to contact you during a suspected attack.
164 */
165 updateEmergencyContactSettings(callback?: (err: AWSError, data: Shield.Types.UpdateEmergencyContactSettingsResponse) => void): Request<Shield.Types.UpdateEmergencyContactSettingsResponse, AWSError>;
166 /**
167 * Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated.
168 */
169 updateSubscription(params: Shield.Types.UpdateSubscriptionRequest, callback?: (err: AWSError, data: Shield.Types.UpdateSubscriptionResponse) => void): Request<Shield.Types.UpdateSubscriptionResponse, AWSError>;
170 /**
171 * Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated.
172 */
173 updateSubscription(callback?: (err: AWSError, data: Shield.Types.UpdateSubscriptionResponse) => void): Request<Shield.Types.UpdateSubscriptionResponse, AWSError>;
174}
175declare namespace Shield {
176 export interface AssociateDRTLogBucketRequest {
177 /**
178 * The Amazon S3 bucket that contains your AWS WAF logs.
179 */
180 LogBucket: LogBucket;
181 }
182 export interface AssociateDRTLogBucketResponse {
183 }
184 export interface AssociateDRTRoleRequest {
185 /**
186 * The Amazon Resource Name (ARN) of the role the DRT will use to access your AWS account. Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy managed policy to this role. For more information see Attaching and Detaching IAM Policies.
187 */
188 RoleArn: RoleArn;
189 }
190 export interface AssociateDRTRoleResponse {
191 }
192 export interface AssociateHealthCheckRequest {
193 /**
194 * The unique identifier (ID) for the Protection object to add the health check association to.
195 */
196 ProtectionId: ProtectionId;
197 /**
198 * The Amazon Resource Name (ARN) of the health check to associate with the protection.
199 */
200 HealthCheckArn: HealthCheckArn;
201 }
202 export interface AssociateHealthCheckResponse {
203 }
204 export interface AttackDetail {
205 /**
206 * The unique identifier (ID) of the attack.
207 */
208 AttackId?: AttackId;
209 /**
210 * The ARN (Amazon Resource Name) of the resource that was attacked.
211 */
212 ResourceArn?: ResourceArn;
213 /**
214 * If applicable, additional detail about the resource being attacked, for example, IP address or URL.
215 */
216 SubResources?: SubResourceSummaryList;
217 /**
218 * The time the attack started, in Unix time in seconds. For more information see timestamp.
219 */
220 StartTime?: AttackTimestamp;
221 /**
222 * The time the attack ended, in Unix time in seconds. For more information see timestamp.
223 */
224 EndTime?: AttackTimestamp;
225 /**
226 * List of counters that describe the attack for the specified time period.
227 */
228 AttackCounters?: SummarizedCounterList;
229 /**
230 * The array of AttackProperty objects.
231 */
232 AttackProperties?: AttackProperties;
233 /**
234 * List of mitigation actions taken for the attack.
235 */
236 Mitigations?: MitigationList;
237 }
238 export type AttackId = string;
239 export type AttackLayer = "NETWORK"|"APPLICATION"|string;
240 export type AttackProperties = AttackProperty[];
241 export interface AttackProperty {
242 /**
243 * The type of distributed denial of service (DDoS) event that was observed. NETWORK indicates layer 3 and layer 4 events and APPLICATION indicates layer 7 events.
244 */
245 AttackLayer?: AttackLayer;
246 /**
247 * Defines the DDoS attack property information that is provided. The WORDPRESS_PINGBACK_REFLECTOR and WORDPRESS_PINGBACK_SOURCE values are valid only for WordPress reflective pingback DDoS attacks.
248 */
249 AttackPropertyIdentifier?: AttackPropertyIdentifier;
250 /**
251 * The array of Contributor objects that includes the top five contributors to an attack.
252 */
253 TopContributors?: TopContributors;
254 /**
255 * The unit of the Value of the contributions.
256 */
257 Unit?: Unit;
258 /**
259 * The total contributions made to this attack by all contributors, not just the five listed in the TopContributors list.
260 */
261 Total?: Long;
262 }
263 export type AttackPropertyIdentifier = "DESTINATION_URL"|"REFERRER"|"SOURCE_ASN"|"SOURCE_COUNTRY"|"SOURCE_IP_ADDRESS"|"SOURCE_USER_AGENT"|"WORDPRESS_PINGBACK_REFLECTOR"|"WORDPRESS_PINGBACK_SOURCE"|string;
264 export type AttackSummaries = AttackSummary[];
265 export interface AttackSummary {
266 /**
267 * The unique identifier (ID) of the attack.
268 */
269 AttackId?: String;
270 /**
271 * The ARN (Amazon Resource Name) of the resource that was attacked.
272 */
273 ResourceArn?: String;
274 /**
275 * The start time of the attack, in Unix time in seconds. For more information see timestamp.
276 */
277 StartTime?: AttackTimestamp;
278 /**
279 * The end time of the attack, in Unix time in seconds. For more information see timestamp.
280 */
281 EndTime?: AttackTimestamp;
282 /**
283 * The list of attacks for a specified time period.
284 */
285 AttackVectors?: AttackVectorDescriptionList;
286 }
287 export type AttackTimestamp = Date;
288 export interface AttackVectorDescription {
289 /**
290 * The attack type. Valid values: UDP_TRAFFIC UDP_FRAGMENT GENERIC_UDP_REFLECTION DNS_REFLECTION NTP_REFLECTION CHARGEN_REFLECTION SSDP_REFLECTION PORT_MAPPER RIP_REFLECTION SNMP_REFLECTION MSSQL_REFLECTION NET_BIOS_REFLECTION SYN_FLOOD ACK_FLOOD REQUEST_FLOOD HTTP_REFLECTION UDS_REFLECTION MEMCACHED_REFLECTION
291 */
292 VectorType: String;
293 }
294 export type AttackVectorDescriptionList = AttackVectorDescription[];
295 export type AutoRenew = "ENABLED"|"DISABLED"|string;
296 export interface Contributor {
297 /**
298 * The name of the contributor. This is dependent on the AttackPropertyIdentifier. For example, if the AttackPropertyIdentifier is SOURCE_COUNTRY, the Name could be United States.
299 */
300 Name?: String;
301 /**
302 * The contribution of this contributor expressed in Protection units. For example 10,000.
303 */
304 Value?: Long;
305 }
306 export interface CreateProtectionRequest {
307 /**
308 * Friendly name for the Protection you are creating.
309 */
310 Name: ProtectionName;
311 /**
312 * The ARN (Amazon Resource Name) of the resource to be protected. The ARN should be in one of the following formats: For an Application Load Balancer: arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id For an Elastic Load Balancer (Classic Load Balancer): arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name For an AWS CloudFront distribution: arn:aws:cloudfront::account-id:distribution/distribution-id For an AWS Global Accelerator accelerator: arn:aws:globalaccelerator::account-id:accelerator/accelerator-id For Amazon Route 53: arn:aws:route53:::hostedzone/hosted-zone-id For an Elastic IP address: arn:aws:ec2:region:account-id:eip-allocation/allocation-id
313 */
314 ResourceArn: ResourceArn;
315 }
316 export interface CreateProtectionResponse {
317 /**
318 * The unique identifier (ID) for the Protection object that is created.
319 */
320 ProtectionId?: ProtectionId;
321 }
322 export interface CreateSubscriptionRequest {
323 }
324 export interface CreateSubscriptionResponse {
325 }
326 export interface DeleteProtectionRequest {
327 /**
328 * The unique identifier (ID) for the Protection object to be deleted.
329 */
330 ProtectionId: ProtectionId;
331 }
332 export interface DeleteProtectionResponse {
333 }
334 export interface DeleteSubscriptionRequest {
335 }
336 export interface DeleteSubscriptionResponse {
337 }
338 export interface DescribeAttackRequest {
339 /**
340 * The unique identifier (ID) for the attack that to be described.
341 */
342 AttackId: AttackId;
343 }
344 export interface DescribeAttackResponse {
345 /**
346 * The attack that is described.
347 */
348 Attack?: AttackDetail;
349 }
350 export interface DescribeDRTAccessRequest {
351 }
352 export interface DescribeDRTAccessResponse {
353 /**
354 * The Amazon Resource Name (ARN) of the role the DRT used to access your AWS account.
355 */
356 RoleArn?: RoleArn;
357 /**
358 * The list of Amazon S3 buckets accessed by the DRT.
359 */
360 LogBucketList?: LogBucketList;
361 }
362 export interface DescribeEmergencyContactSettingsRequest {
363 }
364 export interface DescribeEmergencyContactSettingsResponse {
365 /**
366 * A list of email addresses that the DRT can use to contact you during a suspected attack.
367 */
368 EmergencyContactList?: EmergencyContactList;
369 }
370 export interface DescribeProtectionRequest {
371 /**
372 * The unique identifier (ID) for the Protection object that is described. When submitting the DescribeProtection request you must provide either the ResourceArn or the ProtectionID, but not both.
373 */
374 ProtectionId?: ProtectionId;
375 /**
376 * The ARN (Amazon Resource Name) of the AWS resource for the Protection object that is described. When submitting the DescribeProtection request you must provide either the ResourceArn or the ProtectionID, but not both.
377 */
378 ResourceArn?: ResourceArn;
379 }
380 export interface DescribeProtectionResponse {
381 /**
382 * The Protection object that is described.
383 */
384 Protection?: Protection;
385 }
386 export interface DescribeSubscriptionRequest {
387 }
388 export interface DescribeSubscriptionResponse {
389 /**
390 * The AWS Shield Advanced subscription details for an account.
391 */
392 Subscription?: Subscription;
393 }
394 export interface DisassociateDRTLogBucketRequest {
395 /**
396 * The Amazon S3 bucket that contains your AWS WAF logs.
397 */
398 LogBucket: LogBucket;
399 }
400 export interface DisassociateDRTLogBucketResponse {
401 }
402 export interface DisassociateDRTRoleRequest {
403 }
404 export interface DisassociateDRTRoleResponse {
405 }
406 export interface DisassociateHealthCheckRequest {
407 /**
408 * The unique identifier (ID) for the Protection object to remove the health check association from.
409 */
410 ProtectionId: ProtectionId;
411 /**
412 * The Amazon Resource Name (ARN) of the health check that is associated with the protection.
413 */
414 HealthCheckArn: HealthCheckArn;
415 }
416 export interface DisassociateHealthCheckResponse {
417 }
418 export type Double = number;
419 export type DurationInSeconds = number;
420 export type EmailAddress = string;
421 export interface EmergencyContact {
422 /**
423 * An email address that the DRT can use to contact you during a suspected attack.
424 */
425 EmailAddress: EmailAddress;
426 }
427 export type EmergencyContactList = EmergencyContact[];
428 export interface GetSubscriptionStateRequest {
429 }
430 export interface GetSubscriptionStateResponse {
431 /**
432 * The status of the subscription.
433 */
434 SubscriptionState: SubscriptionState;
435 }
436 export type HealthCheckArn = string;
437 export type HealthCheckId = string;
438 export type HealthCheckIds = HealthCheckId[];
439 export type Integer = number;
440 export interface Limit {
441 /**
442 * The type of protection.
443 */
444 Type?: String;
445 /**
446 * The maximum number of protections that can be created for the specified Type.
447 */
448 Max?: Long;
449 }
450 export type Limits = Limit[];
451 export interface ListAttacksRequest {
452 /**
453 * The ARN (Amazon Resource Name) of the resource that was attacked. If this is left blank, all applicable resources for this account will be included.
454 */
455 ResourceArns?: ResourceArnFilterList;
456 /**
457 * The start of the time period for the attacks. This is a timestamp type. The sample request above indicates a number type because the default used by WAF is Unix time in seconds. However any valid timestamp format is allowed.
458 */
459 StartTime?: TimeRange;
460 /**
461 * The end of the time period for the attacks. This is a timestamp type. The sample request above indicates a number type because the default used by WAF is Unix time in seconds. However any valid timestamp format is allowed.
462 */
463 EndTime?: TimeRange;
464 /**
465 * The ListAttacksRequest.NextMarker value from a previous call to ListAttacksRequest. Pass null if this is the first call.
466 */
467 NextToken?: Token;
468 /**
469 * The maximum number of AttackSummary objects to be returned. If this is left blank, the first 20 results will be returned. This is a maximum value; it is possible that AWS WAF will return the results in smaller batches. That is, the number of AttackSummary objects returned could be less than MaxResults, even if there are still more AttackSummary objects yet to return. If there are more AttackSummary objects to return, AWS WAF will always also return a NextToken.
470 */
471 MaxResults?: MaxResults;
472 }
473 export interface ListAttacksResponse {
474 /**
475 * The attack information for the specified time range.
476 */
477 AttackSummaries?: AttackSummaries;
478 /**
479 * The token returned by a previous call to indicate that there is more data available. If not null, more results are available. Pass this value for the NextMarker parameter in a subsequent call to ListAttacks to retrieve the next set of items. AWS WAF might return the list of AttackSummary objects in batches smaller than the number specified by MaxResults. If there are more AttackSummary objects to return, AWS WAF will always also return a NextToken.
480 */
481 NextToken?: Token;
482 }
483 export interface ListProtectionsRequest {
484 /**
485 * The ListProtectionsRequest.NextToken value from a previous call to ListProtections. Pass null if this is the first call.
486 */
487 NextToken?: Token;
488 /**
489 * The maximum number of Protection objects to be returned. If this is left blank the first 20 results will be returned. This is a maximum value; it is possible that AWS WAF will return the results in smaller batches. That is, the number of Protection objects returned could be less than MaxResults, even if there are still more Protection objects yet to return. If there are more Protection objects to return, AWS WAF will always also return a NextToken.
490 */
491 MaxResults?: MaxResults;
492 }
493 export interface ListProtectionsResponse {
494 /**
495 * The array of enabled Protection objects.
496 */
497 Protections?: Protections;
498 /**
499 * If you specify a value for MaxResults and you have more Protections than the value of MaxResults, AWS Shield Advanced returns a NextToken value in the response that allows you to list another group of Protections. For the second and subsequent ListProtections requests, specify the value of NextToken from the previous response to get information about another batch of Protections. AWS WAF might return the list of Protection objects in batches smaller than the number specified by MaxResults. If there are more Protection objects to return, AWS WAF will always also return a NextToken.
500 */
501 NextToken?: Token;
502 }
503 export type LogBucket = string;
504 export type LogBucketList = LogBucket[];
505 export type Long = number;
506 export type MaxResults = number;
507 export interface Mitigation {
508 /**
509 * The name of the mitigation taken for this attack.
510 */
511 MitigationName?: String;
512 }
513 export type MitigationList = Mitigation[];
514 export interface Protection {
515 /**
516 * The unique identifier (ID) of the protection.
517 */
518 Id?: ProtectionId;
519 /**
520 * The friendly name of the protection. For example, My CloudFront distributions.
521 */
522 Name?: ProtectionName;
523 /**
524 * The ARN (Amazon Resource Name) of the AWS resource that is protected.
525 */
526 ResourceArn?: ResourceArn;
527 /**
528 * The unique identifier (ID) for the Route 53 health check that's associated with the protection.
529 */
530 HealthCheckIds?: HealthCheckIds;
531 }
532 export type ProtectionId = string;
533 export type ProtectionName = string;
534 export type Protections = Protection[];
535 export type ResourceArn = string;
536 export type ResourceArnFilterList = ResourceArn[];
537 export type RoleArn = string;
538 export type String = string;
539 export interface SubResourceSummary {
540 /**
541 * The SubResource type.
542 */
543 Type?: SubResourceType;
544 /**
545 * The unique identifier (ID) of the SubResource.
546 */
547 Id?: String;
548 /**
549 * The list of attack types and associated counters.
550 */
551 AttackVectors?: SummarizedAttackVectorList;
552 /**
553 * The counters that describe the details of the attack.
554 */
555 Counters?: SummarizedCounterList;
556 }
557 export type SubResourceSummaryList = SubResourceSummary[];
558 export type SubResourceType = "IP"|"URL"|string;
559 export interface Subscription {
560 /**
561 * The start time of the subscription, in Unix time in seconds. For more information see timestamp.
562 */
563 StartTime?: Timestamp;
564 /**
565 * The date and time your subscription will end.
566 */
567 EndTime?: Timestamp;
568 /**
569 * The length, in seconds, of the AWS Shield Advanced subscription for the account.
570 */
571 TimeCommitmentInSeconds?: DurationInSeconds;
572 /**
573 * If ENABLED, the subscription will be automatically renewed at the end of the existing subscription period. When you initally create a subscription, AutoRenew is set to ENABLED. You can change this by submitting an UpdateSubscription request. If the UpdateSubscription request does not included a value for AutoRenew, the existing value for AutoRenew remains unchanged.
574 */
575 AutoRenew?: AutoRenew;
576 /**
577 * Specifies how many protections of a given type you can create.
578 */
579 Limits?: Limits;
580 }
581 export type SubscriptionState = "ACTIVE"|"INACTIVE"|string;
582 export interface SummarizedAttackVector {
583 /**
584 * The attack type, for example, SNMP reflection or SYN flood.
585 */
586 VectorType: String;
587 /**
588 * The list of counters that describe the details of the attack.
589 */
590 VectorCounters?: SummarizedCounterList;
591 }
592 export type SummarizedAttackVectorList = SummarizedAttackVector[];
593 export interface SummarizedCounter {
594 /**
595 * The counter name.
596 */
597 Name?: String;
598 /**
599 * The maximum value of the counter for a specified time period.
600 */
601 Max?: Double;
602 /**
603 * The average value of the counter for a specified time period.
604 */
605 Average?: Double;
606 /**
607 * The total of counter values for a specified time period.
608 */
609 Sum?: Double;
610 /**
611 * The number of counters for a specified time period.
612 */
613 N?: Integer;
614 /**
615 * The unit of the counters.
616 */
617 Unit?: String;
618 }
619 export type SummarizedCounterList = SummarizedCounter[];
620 export interface TimeRange {
621 /**
622 * The start time, in Unix time in seconds. For more information see timestamp.
623 */
624 FromInclusive?: AttackTimestamp;
625 /**
626 * The end time, in Unix time in seconds. For more information see timestamp.
627 */
628 ToExclusive?: AttackTimestamp;
629 }
630 export type Timestamp = Date;
631 export type Token = string;
632 export type TopContributors = Contributor[];
633 export type Unit = "BITS"|"BYTES"|"PACKETS"|"REQUESTS"|string;
634 export interface UpdateEmergencyContactSettingsRequest {
635 /**
636 * A list of email addresses that the DRT can use to contact you during a suspected attack.
637 */
638 EmergencyContactList?: EmergencyContactList;
639 }
640 export interface UpdateEmergencyContactSettingsResponse {
641 }
642 export interface UpdateSubscriptionRequest {
643 /**
644 * When you initally create a subscription, AutoRenew is set to ENABLED. If ENABLED, the subscription will be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request. If the UpdateSubscription request does not included a value for AutoRenew, the existing value for AutoRenew remains unchanged.
645 */
646 AutoRenew?: AutoRenew;
647 }
648 export interface UpdateSubscriptionResponse {
649 }
650 /**
651 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
652 */
653 export type apiVersion = "2016-06-02"|"latest"|string;
654 export interface ClientApiVersions {
655 /**
656 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
657 */
658 apiVersion?: apiVersion;
659 }
660 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
661 /**
662 * Contains interfaces for use with the Shield client.
663 */
664 export import Types = Shield;
665}
666export = Shield;