@aws-sdk/client-shield 3.301.0 → 3.303.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,11 +28,10 @@ class AccessDeniedForDependencyException extends ShieldServiceException_1.Shield
28
28
  }
29
29
  }
30
30
  exports.AccessDeniedForDependencyException = AccessDeniedForDependencyException;
31
- var ApplicationLayerAutomaticResponseStatus;
32
- (function (ApplicationLayerAutomaticResponseStatus) {
33
- ApplicationLayerAutomaticResponseStatus["DISABLED"] = "DISABLED";
34
- ApplicationLayerAutomaticResponseStatus["ENABLED"] = "ENABLED";
35
- })(ApplicationLayerAutomaticResponseStatus = exports.ApplicationLayerAutomaticResponseStatus || (exports.ApplicationLayerAutomaticResponseStatus = {}));
31
+ exports.ApplicationLayerAutomaticResponseStatus = {
32
+ DISABLED: "DISABLED",
33
+ ENABLED: "ENABLED",
34
+ };
36
35
  class InternalErrorException extends ShieldServiceException_1.ShieldServiceException {
37
36
  constructor(opts) {
38
37
  super({
@@ -59,11 +58,10 @@ class InvalidOperationException extends ShieldServiceException_1.ShieldServiceEx
59
58
  }
60
59
  }
61
60
  exports.InvalidOperationException = InvalidOperationException;
62
- var ValidationExceptionReason;
63
- (function (ValidationExceptionReason) {
64
- ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "FIELD_VALIDATION_FAILED";
65
- ValidationExceptionReason["OTHER"] = "OTHER";
66
- })(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
61
+ exports.ValidationExceptionReason = {
62
+ FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
63
+ OTHER: "OTHER",
64
+ };
67
65
  class InvalidParameterException extends ShieldServiceException_1.ShieldServiceException {
68
66
  constructor(opts) {
69
67
  super({
@@ -147,39 +145,34 @@ class InvalidResourceException extends ShieldServiceException_1.ShieldServiceExc
147
145
  }
148
146
  }
149
147
  exports.InvalidResourceException = InvalidResourceException;
150
- var AttackLayer;
151
- (function (AttackLayer) {
152
- AttackLayer["APPLICATION"] = "APPLICATION";
153
- AttackLayer["NETWORK"] = "NETWORK";
154
- })(AttackLayer = exports.AttackLayer || (exports.AttackLayer = {}));
155
- var AttackPropertyIdentifier;
156
- (function (AttackPropertyIdentifier) {
157
- AttackPropertyIdentifier["DESTINATION_URL"] = "DESTINATION_URL";
158
- AttackPropertyIdentifier["REFERRER"] = "REFERRER";
159
- AttackPropertyIdentifier["SOURCE_ASN"] = "SOURCE_ASN";
160
- AttackPropertyIdentifier["SOURCE_COUNTRY"] = "SOURCE_COUNTRY";
161
- AttackPropertyIdentifier["SOURCE_IP_ADDRESS"] = "SOURCE_IP_ADDRESS";
162
- AttackPropertyIdentifier["SOURCE_USER_AGENT"] = "SOURCE_USER_AGENT";
163
- AttackPropertyIdentifier["WORDPRESS_PINGBACK_REFLECTOR"] = "WORDPRESS_PINGBACK_REFLECTOR";
164
- AttackPropertyIdentifier["WORDPRESS_PINGBACK_SOURCE"] = "WORDPRESS_PINGBACK_SOURCE";
165
- })(AttackPropertyIdentifier = exports.AttackPropertyIdentifier || (exports.AttackPropertyIdentifier = {}));
166
- var Unit;
167
- (function (Unit) {
168
- Unit["BITS"] = "BITS";
169
- Unit["BYTES"] = "BYTES";
170
- Unit["PACKETS"] = "PACKETS";
171
- Unit["REQUESTS"] = "REQUESTS";
172
- })(Unit = exports.Unit || (exports.Unit = {}));
173
- var SubResourceType;
174
- (function (SubResourceType) {
175
- SubResourceType["IP"] = "IP";
176
- SubResourceType["URL"] = "URL";
177
- })(SubResourceType = exports.SubResourceType || (exports.SubResourceType = {}));
178
- var AutoRenew;
179
- (function (AutoRenew) {
180
- AutoRenew["DISABLED"] = "DISABLED";
181
- AutoRenew["ENABLED"] = "ENABLED";
182
- })(AutoRenew = exports.AutoRenew || (exports.AutoRenew = {}));
148
+ exports.AttackLayer = {
149
+ APPLICATION: "APPLICATION",
150
+ NETWORK: "NETWORK",
151
+ };
152
+ exports.AttackPropertyIdentifier = {
153
+ DESTINATION_URL: "DESTINATION_URL",
154
+ REFERRER: "REFERRER",
155
+ SOURCE_ASN: "SOURCE_ASN",
156
+ SOURCE_COUNTRY: "SOURCE_COUNTRY",
157
+ SOURCE_IP_ADDRESS: "SOURCE_IP_ADDRESS",
158
+ SOURCE_USER_AGENT: "SOURCE_USER_AGENT",
159
+ WORDPRESS_PINGBACK_REFLECTOR: "WORDPRESS_PINGBACK_REFLECTOR",
160
+ WORDPRESS_PINGBACK_SOURCE: "WORDPRESS_PINGBACK_SOURCE",
161
+ };
162
+ exports.Unit = {
163
+ BITS: "BITS",
164
+ BYTES: "BYTES",
165
+ PACKETS: "PACKETS",
166
+ REQUESTS: "REQUESTS",
167
+ };
168
+ exports.SubResourceType = {
169
+ IP: "IP",
170
+ URL: "URL",
171
+ };
172
+ exports.AutoRenew = {
173
+ DISABLED: "DISABLED",
174
+ ENABLED: "ENABLED",
175
+ };
183
176
  class ResourceAlreadyExistsException extends ShieldServiceException_1.ShieldServiceException {
184
177
  constructor(opts) {
185
178
  super({
@@ -194,27 +187,24 @@ class ResourceAlreadyExistsException extends ShieldServiceException_1.ShieldServ
194
187
  }
195
188
  }
196
189
  exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
197
- var ProtectionGroupAggregation;
198
- (function (ProtectionGroupAggregation) {
199
- ProtectionGroupAggregation["MAX"] = "MAX";
200
- ProtectionGroupAggregation["MEAN"] = "MEAN";
201
- ProtectionGroupAggregation["SUM"] = "SUM";
202
- })(ProtectionGroupAggregation = exports.ProtectionGroupAggregation || (exports.ProtectionGroupAggregation = {}));
203
- var ProtectionGroupPattern;
204
- (function (ProtectionGroupPattern) {
205
- ProtectionGroupPattern["ALL"] = "ALL";
206
- ProtectionGroupPattern["ARBITRARY"] = "ARBITRARY";
207
- ProtectionGroupPattern["BY_RESOURCE_TYPE"] = "BY_RESOURCE_TYPE";
208
- })(ProtectionGroupPattern = exports.ProtectionGroupPattern || (exports.ProtectionGroupPattern = {}));
209
- var ProtectedResourceType;
210
- (function (ProtectedResourceType) {
211
- ProtectedResourceType["APPLICATION_LOAD_BALANCER"] = "APPLICATION_LOAD_BALANCER";
212
- ProtectedResourceType["CLASSIC_LOAD_BALANCER"] = "CLASSIC_LOAD_BALANCER";
213
- ProtectedResourceType["CLOUDFRONT_DISTRIBUTION"] = "CLOUDFRONT_DISTRIBUTION";
214
- ProtectedResourceType["ELASTIC_IP_ALLOCATION"] = "ELASTIC_IP_ALLOCATION";
215
- ProtectedResourceType["GLOBAL_ACCELERATOR"] = "GLOBAL_ACCELERATOR";
216
- ProtectedResourceType["ROUTE_53_HOSTED_ZONE"] = "ROUTE_53_HOSTED_ZONE";
217
- })(ProtectedResourceType = exports.ProtectedResourceType || (exports.ProtectedResourceType = {}));
190
+ exports.ProtectionGroupAggregation = {
191
+ MAX: "MAX",
192
+ MEAN: "MEAN",
193
+ SUM: "SUM",
194
+ };
195
+ exports.ProtectionGroupPattern = {
196
+ ALL: "ALL",
197
+ ARBITRARY: "ARBITRARY",
198
+ BY_RESOURCE_TYPE: "BY_RESOURCE_TYPE",
199
+ };
200
+ exports.ProtectedResourceType = {
201
+ APPLICATION_LOAD_BALANCER: "APPLICATION_LOAD_BALANCER",
202
+ CLASSIC_LOAD_BALANCER: "CLASSIC_LOAD_BALANCER",
203
+ CLOUDFRONT_DISTRIBUTION: "CLOUDFRONT_DISTRIBUTION",
204
+ ELASTIC_IP_ALLOCATION: "ELASTIC_IP_ALLOCATION",
205
+ GLOBAL_ACCELERATOR: "GLOBAL_ACCELERATOR",
206
+ ROUTE_53_HOSTED_ZONE: "ROUTE_53_HOSTED_ZONE",
207
+ };
218
208
  class LockedSubscriptionException extends ShieldServiceException_1.ShieldServiceException {
219
209
  constructor(opts) {
220
210
  super({
@@ -228,17 +218,15 @@ class LockedSubscriptionException extends ShieldServiceException_1.ShieldService
228
218
  }
229
219
  }
230
220
  exports.LockedSubscriptionException = LockedSubscriptionException;
231
- var ProactiveEngagementStatus;
232
- (function (ProactiveEngagementStatus) {
233
- ProactiveEngagementStatus["DISABLED"] = "DISABLED";
234
- ProactiveEngagementStatus["ENABLED"] = "ENABLED";
235
- ProactiveEngagementStatus["PENDING"] = "PENDING";
236
- })(ProactiveEngagementStatus = exports.ProactiveEngagementStatus || (exports.ProactiveEngagementStatus = {}));
237
- var SubscriptionState;
238
- (function (SubscriptionState) {
239
- SubscriptionState["ACTIVE"] = "ACTIVE";
240
- SubscriptionState["INACTIVE"] = "INACTIVE";
241
- })(SubscriptionState = exports.SubscriptionState || (exports.SubscriptionState = {}));
221
+ exports.ProactiveEngagementStatus = {
222
+ DISABLED: "DISABLED",
223
+ ENABLED: "ENABLED",
224
+ PENDING: "PENDING",
225
+ };
226
+ exports.SubscriptionState = {
227
+ ACTIVE: "ACTIVE",
228
+ INACTIVE: "INACTIVE",
229
+ };
242
230
  class InvalidPaginationTokenException extends ShieldServiceException_1.ShieldServiceException {
243
231
  constructor(opts) {
244
232
  super({
@@ -23,11 +23,10 @@ export class AccessDeniedForDependencyException extends __BaseException {
23
23
  Object.setPrototypeOf(this, AccessDeniedForDependencyException.prototype);
24
24
  }
25
25
  }
26
- export var ApplicationLayerAutomaticResponseStatus;
27
- (function (ApplicationLayerAutomaticResponseStatus) {
28
- ApplicationLayerAutomaticResponseStatus["DISABLED"] = "DISABLED";
29
- ApplicationLayerAutomaticResponseStatus["ENABLED"] = "ENABLED";
30
- })(ApplicationLayerAutomaticResponseStatus || (ApplicationLayerAutomaticResponseStatus = {}));
26
+ export const ApplicationLayerAutomaticResponseStatus = {
27
+ DISABLED: "DISABLED",
28
+ ENABLED: "ENABLED",
29
+ };
31
30
  export class InternalErrorException extends __BaseException {
32
31
  constructor(opts) {
33
32
  super({
@@ -52,11 +51,10 @@ export class InvalidOperationException extends __BaseException {
52
51
  Object.setPrototypeOf(this, InvalidOperationException.prototype);
53
52
  }
54
53
  }
55
- export var ValidationExceptionReason;
56
- (function (ValidationExceptionReason) {
57
- ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "FIELD_VALIDATION_FAILED";
58
- ValidationExceptionReason["OTHER"] = "OTHER";
59
- })(ValidationExceptionReason || (ValidationExceptionReason = {}));
54
+ export const ValidationExceptionReason = {
55
+ FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
56
+ OTHER: "OTHER",
57
+ };
60
58
  export class InvalidParameterException extends __BaseException {
61
59
  constructor(opts) {
62
60
  super({
@@ -134,39 +132,34 @@ export class InvalidResourceException extends __BaseException {
134
132
  Object.setPrototypeOf(this, InvalidResourceException.prototype);
135
133
  }
136
134
  }
137
- export var AttackLayer;
138
- (function (AttackLayer) {
139
- AttackLayer["APPLICATION"] = "APPLICATION";
140
- AttackLayer["NETWORK"] = "NETWORK";
141
- })(AttackLayer || (AttackLayer = {}));
142
- export var AttackPropertyIdentifier;
143
- (function (AttackPropertyIdentifier) {
144
- AttackPropertyIdentifier["DESTINATION_URL"] = "DESTINATION_URL";
145
- AttackPropertyIdentifier["REFERRER"] = "REFERRER";
146
- AttackPropertyIdentifier["SOURCE_ASN"] = "SOURCE_ASN";
147
- AttackPropertyIdentifier["SOURCE_COUNTRY"] = "SOURCE_COUNTRY";
148
- AttackPropertyIdentifier["SOURCE_IP_ADDRESS"] = "SOURCE_IP_ADDRESS";
149
- AttackPropertyIdentifier["SOURCE_USER_AGENT"] = "SOURCE_USER_AGENT";
150
- AttackPropertyIdentifier["WORDPRESS_PINGBACK_REFLECTOR"] = "WORDPRESS_PINGBACK_REFLECTOR";
151
- AttackPropertyIdentifier["WORDPRESS_PINGBACK_SOURCE"] = "WORDPRESS_PINGBACK_SOURCE";
152
- })(AttackPropertyIdentifier || (AttackPropertyIdentifier = {}));
153
- export var Unit;
154
- (function (Unit) {
155
- Unit["BITS"] = "BITS";
156
- Unit["BYTES"] = "BYTES";
157
- Unit["PACKETS"] = "PACKETS";
158
- Unit["REQUESTS"] = "REQUESTS";
159
- })(Unit || (Unit = {}));
160
- export var SubResourceType;
161
- (function (SubResourceType) {
162
- SubResourceType["IP"] = "IP";
163
- SubResourceType["URL"] = "URL";
164
- })(SubResourceType || (SubResourceType = {}));
165
- export var AutoRenew;
166
- (function (AutoRenew) {
167
- AutoRenew["DISABLED"] = "DISABLED";
168
- AutoRenew["ENABLED"] = "ENABLED";
169
- })(AutoRenew || (AutoRenew = {}));
135
+ export const AttackLayer = {
136
+ APPLICATION: "APPLICATION",
137
+ NETWORK: "NETWORK",
138
+ };
139
+ export const AttackPropertyIdentifier = {
140
+ DESTINATION_URL: "DESTINATION_URL",
141
+ REFERRER: "REFERRER",
142
+ SOURCE_ASN: "SOURCE_ASN",
143
+ SOURCE_COUNTRY: "SOURCE_COUNTRY",
144
+ SOURCE_IP_ADDRESS: "SOURCE_IP_ADDRESS",
145
+ SOURCE_USER_AGENT: "SOURCE_USER_AGENT",
146
+ WORDPRESS_PINGBACK_REFLECTOR: "WORDPRESS_PINGBACK_REFLECTOR",
147
+ WORDPRESS_PINGBACK_SOURCE: "WORDPRESS_PINGBACK_SOURCE",
148
+ };
149
+ export const Unit = {
150
+ BITS: "BITS",
151
+ BYTES: "BYTES",
152
+ PACKETS: "PACKETS",
153
+ REQUESTS: "REQUESTS",
154
+ };
155
+ export const SubResourceType = {
156
+ IP: "IP",
157
+ URL: "URL",
158
+ };
159
+ export const AutoRenew = {
160
+ DISABLED: "DISABLED",
161
+ ENABLED: "ENABLED",
162
+ };
170
163
  export class ResourceAlreadyExistsException extends __BaseException {
171
164
  constructor(opts) {
172
165
  super({
@@ -180,27 +173,24 @@ export class ResourceAlreadyExistsException extends __BaseException {
180
173
  this.resourceType = opts.resourceType;
181
174
  }
182
175
  }
183
- export var ProtectionGroupAggregation;
184
- (function (ProtectionGroupAggregation) {
185
- ProtectionGroupAggregation["MAX"] = "MAX";
186
- ProtectionGroupAggregation["MEAN"] = "MEAN";
187
- ProtectionGroupAggregation["SUM"] = "SUM";
188
- })(ProtectionGroupAggregation || (ProtectionGroupAggregation = {}));
189
- export var ProtectionGroupPattern;
190
- (function (ProtectionGroupPattern) {
191
- ProtectionGroupPattern["ALL"] = "ALL";
192
- ProtectionGroupPattern["ARBITRARY"] = "ARBITRARY";
193
- ProtectionGroupPattern["BY_RESOURCE_TYPE"] = "BY_RESOURCE_TYPE";
194
- })(ProtectionGroupPattern || (ProtectionGroupPattern = {}));
195
- export var ProtectedResourceType;
196
- (function (ProtectedResourceType) {
197
- ProtectedResourceType["APPLICATION_LOAD_BALANCER"] = "APPLICATION_LOAD_BALANCER";
198
- ProtectedResourceType["CLASSIC_LOAD_BALANCER"] = "CLASSIC_LOAD_BALANCER";
199
- ProtectedResourceType["CLOUDFRONT_DISTRIBUTION"] = "CLOUDFRONT_DISTRIBUTION";
200
- ProtectedResourceType["ELASTIC_IP_ALLOCATION"] = "ELASTIC_IP_ALLOCATION";
201
- ProtectedResourceType["GLOBAL_ACCELERATOR"] = "GLOBAL_ACCELERATOR";
202
- ProtectedResourceType["ROUTE_53_HOSTED_ZONE"] = "ROUTE_53_HOSTED_ZONE";
203
- })(ProtectedResourceType || (ProtectedResourceType = {}));
176
+ export const ProtectionGroupAggregation = {
177
+ MAX: "MAX",
178
+ MEAN: "MEAN",
179
+ SUM: "SUM",
180
+ };
181
+ export const ProtectionGroupPattern = {
182
+ ALL: "ALL",
183
+ ARBITRARY: "ARBITRARY",
184
+ BY_RESOURCE_TYPE: "BY_RESOURCE_TYPE",
185
+ };
186
+ export const ProtectedResourceType = {
187
+ APPLICATION_LOAD_BALANCER: "APPLICATION_LOAD_BALANCER",
188
+ CLASSIC_LOAD_BALANCER: "CLASSIC_LOAD_BALANCER",
189
+ CLOUDFRONT_DISTRIBUTION: "CLOUDFRONT_DISTRIBUTION",
190
+ ELASTIC_IP_ALLOCATION: "ELASTIC_IP_ALLOCATION",
191
+ GLOBAL_ACCELERATOR: "GLOBAL_ACCELERATOR",
192
+ ROUTE_53_HOSTED_ZONE: "ROUTE_53_HOSTED_ZONE",
193
+ };
204
194
  export class LockedSubscriptionException extends __BaseException {
205
195
  constructor(opts) {
206
196
  super({
@@ -213,17 +203,15 @@ export class LockedSubscriptionException extends __BaseException {
213
203
  Object.setPrototypeOf(this, LockedSubscriptionException.prototype);
214
204
  }
215
205
  }
216
- export var ProactiveEngagementStatus;
217
- (function (ProactiveEngagementStatus) {
218
- ProactiveEngagementStatus["DISABLED"] = "DISABLED";
219
- ProactiveEngagementStatus["ENABLED"] = "ENABLED";
220
- ProactiveEngagementStatus["PENDING"] = "PENDING";
221
- })(ProactiveEngagementStatus || (ProactiveEngagementStatus = {}));
222
- export var SubscriptionState;
223
- (function (SubscriptionState) {
224
- SubscriptionState["ACTIVE"] = "ACTIVE";
225
- SubscriptionState["INACTIVE"] = "INACTIVE";
226
- })(SubscriptionState || (SubscriptionState = {}));
206
+ export const ProactiveEngagementStatus = {
207
+ DISABLED: "DISABLED",
208
+ ENABLED: "ENABLED",
209
+ PENDING: "PENDING",
210
+ };
211
+ export const SubscriptionState = {
212
+ ACTIVE: "ACTIVE",
213
+ INACTIVE: "INACTIVE",
214
+ };
227
215
  export class InvalidPaginationTokenException extends __BaseException {
228
216
  constructor(opts) {
229
217
  super({
@@ -62,11 +62,16 @@ export interface ResponseAction {
62
62
  }
63
63
  /**
64
64
  * @public
65
+ * @enum
65
66
  */
66
- export declare enum ApplicationLayerAutomaticResponseStatus {
67
- DISABLED = "DISABLED",
68
- ENABLED = "ENABLED"
69
- }
67
+ export declare const ApplicationLayerAutomaticResponseStatus: {
68
+ readonly DISABLED: "DISABLED";
69
+ readonly ENABLED: "ENABLED";
70
+ };
71
+ /**
72
+ * @public
73
+ */
74
+ export type ApplicationLayerAutomaticResponseStatus = (typeof ApplicationLayerAutomaticResponseStatus)[keyof typeof ApplicationLayerAutomaticResponseStatus];
70
75
  /**
71
76
  * @public
72
77
  * <p>The automatic application layer DDoS mitigation settings for a <a>Protection</a>.
@@ -139,11 +144,16 @@ export interface ValidationExceptionField {
139
144
  }
140
145
  /**
141
146
  * @public
147
+ * @enum
142
148
  */
143
- export declare enum ValidationExceptionReason {
144
- FIELD_VALIDATION_FAILED = "FIELD_VALIDATION_FAILED",
145
- OTHER = "OTHER"
146
- }
149
+ export declare const ValidationExceptionReason: {
150
+ readonly FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED";
151
+ readonly OTHER: "OTHER";
152
+ };
153
+ /**
154
+ * @public
155
+ */
156
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
147
157
  /**
148
158
  * @public
149
159
  * <p>Exception that indicates that the parameters passed to the API are invalid. If available, this exception includes details in additional properties. </p>
@@ -338,24 +348,34 @@ export interface SummarizedCounter {
338
348
  }
339
349
  /**
340
350
  * @public
351
+ * @enum
341
352
  */
342
- export declare enum AttackLayer {
343
- APPLICATION = "APPLICATION",
344
- NETWORK = "NETWORK"
345
- }
353
+ export declare const AttackLayer: {
354
+ readonly APPLICATION: "APPLICATION";
355
+ readonly NETWORK: "NETWORK";
356
+ };
346
357
  /**
347
358
  * @public
348
359
  */
349
- export declare enum AttackPropertyIdentifier {
350
- DESTINATION_URL = "DESTINATION_URL",
351
- REFERRER = "REFERRER",
352
- SOURCE_ASN = "SOURCE_ASN",
353
- SOURCE_COUNTRY = "SOURCE_COUNTRY",
354
- SOURCE_IP_ADDRESS = "SOURCE_IP_ADDRESS",
355
- SOURCE_USER_AGENT = "SOURCE_USER_AGENT",
356
- WORDPRESS_PINGBACK_REFLECTOR = "WORDPRESS_PINGBACK_REFLECTOR",
357
- WORDPRESS_PINGBACK_SOURCE = "WORDPRESS_PINGBACK_SOURCE"
358
- }
360
+ export type AttackLayer = (typeof AttackLayer)[keyof typeof AttackLayer];
361
+ /**
362
+ * @public
363
+ * @enum
364
+ */
365
+ export declare const AttackPropertyIdentifier: {
366
+ readonly DESTINATION_URL: "DESTINATION_URL";
367
+ readonly REFERRER: "REFERRER";
368
+ readonly SOURCE_ASN: "SOURCE_ASN";
369
+ readonly SOURCE_COUNTRY: "SOURCE_COUNTRY";
370
+ readonly SOURCE_IP_ADDRESS: "SOURCE_IP_ADDRESS";
371
+ readonly SOURCE_USER_AGENT: "SOURCE_USER_AGENT";
372
+ readonly WORDPRESS_PINGBACK_REFLECTOR: "WORDPRESS_PINGBACK_REFLECTOR";
373
+ readonly WORDPRESS_PINGBACK_SOURCE: "WORDPRESS_PINGBACK_SOURCE";
374
+ };
375
+ /**
376
+ * @public
377
+ */
378
+ export type AttackPropertyIdentifier = (typeof AttackPropertyIdentifier)[keyof typeof AttackPropertyIdentifier];
359
379
  /**
360
380
  * @public
361
381
  * <p>A contributor to the attack and their contribution. </p>
@@ -372,13 +392,18 @@ export interface Contributor {
372
392
  }
373
393
  /**
374
394
  * @public
395
+ * @enum
375
396
  */
376
- export declare enum Unit {
377
- BITS = "BITS",
378
- BYTES = "BYTES",
379
- PACKETS = "PACKETS",
380
- REQUESTS = "REQUESTS"
381
- }
397
+ export declare const Unit: {
398
+ readonly BITS: "BITS";
399
+ readonly BYTES: "BYTES";
400
+ readonly PACKETS: "PACKETS";
401
+ readonly REQUESTS: "REQUESTS";
402
+ };
403
+ /**
404
+ * @public
405
+ */
406
+ export type Unit = (typeof Unit)[keyof typeof Unit];
382
407
  /**
383
408
  * @public
384
409
  * <p>Details of a Shield event. This is provided as part of an <a>AttackDetail</a>.</p>
@@ -439,11 +464,16 @@ export interface SummarizedAttackVector {
439
464
  }
440
465
  /**
441
466
  * @public
467
+ * @enum
442
468
  */
443
- export declare enum SubResourceType {
444
- IP = "IP",
445
- URL = "URL"
446
- }
469
+ export declare const SubResourceType: {
470
+ readonly IP: "IP";
471
+ readonly URL: "URL";
472
+ };
473
+ /**
474
+ * @public
475
+ */
476
+ export type SubResourceType = (typeof SubResourceType)[keyof typeof SubResourceType];
447
477
  /**
448
478
  * @public
449
479
  * <p>The attack information for the specified SubResource.</p>
@@ -644,11 +674,16 @@ export interface AttackSummary {
644
674
  }
645
675
  /**
646
676
  * @public
677
+ * @enum
647
678
  */
648
- export declare enum AutoRenew {
649
- DISABLED = "DISABLED",
650
- ENABLED = "ENABLED"
651
- }
679
+ export declare const AutoRenew: {
680
+ readonly DISABLED: "DISABLED";
681
+ readonly ENABLED: "ENABLED";
682
+ };
683
+ /**
684
+ * @public
685
+ */
686
+ export type AutoRenew = (typeof AutoRenew)[keyof typeof AutoRenew];
652
687
  /**
653
688
  * @public
654
689
  * <p>A tag associated with an Amazon Web Services resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing or other management. Typically, the tag key represents a category, such as "environment", and the tag value represents a specific value within that category, such as "test," "development," or "production". Or you might set the tag key to "customer" and the value to the customer name or ID. You can specify one or more tags to add to each Amazon Web Services resource, up to 50 tags for a resource.</p>
@@ -740,31 +775,46 @@ export declare class ResourceAlreadyExistsException extends __BaseException {
740
775
  }
741
776
  /**
742
777
  * @public
778
+ * @enum
743
779
  */
744
- export declare enum ProtectionGroupAggregation {
745
- MAX = "MAX",
746
- MEAN = "MEAN",
747
- SUM = "SUM"
748
- }
780
+ export declare const ProtectionGroupAggregation: {
781
+ readonly MAX: "MAX";
782
+ readonly MEAN: "MEAN";
783
+ readonly SUM: "SUM";
784
+ };
749
785
  /**
750
786
  * @public
751
787
  */
752
- export declare enum ProtectionGroupPattern {
753
- ALL = "ALL",
754
- ARBITRARY = "ARBITRARY",
755
- BY_RESOURCE_TYPE = "BY_RESOURCE_TYPE"
756
- }
788
+ export type ProtectionGroupAggregation = (typeof ProtectionGroupAggregation)[keyof typeof ProtectionGroupAggregation];
757
789
  /**
758
790
  * @public
791
+ * @enum
759
792
  */
760
- export declare enum ProtectedResourceType {
761
- APPLICATION_LOAD_BALANCER = "APPLICATION_LOAD_BALANCER",
762
- CLASSIC_LOAD_BALANCER = "CLASSIC_LOAD_BALANCER",
763
- CLOUDFRONT_DISTRIBUTION = "CLOUDFRONT_DISTRIBUTION",
764
- ELASTIC_IP_ALLOCATION = "ELASTIC_IP_ALLOCATION",
765
- GLOBAL_ACCELERATOR = "GLOBAL_ACCELERATOR",
766
- ROUTE_53_HOSTED_ZONE = "ROUTE_53_HOSTED_ZONE"
767
- }
793
+ export declare const ProtectionGroupPattern: {
794
+ readonly ALL: "ALL";
795
+ readonly ARBITRARY: "ARBITRARY";
796
+ readonly BY_RESOURCE_TYPE: "BY_RESOURCE_TYPE";
797
+ };
798
+ /**
799
+ * @public
800
+ */
801
+ export type ProtectionGroupPattern = (typeof ProtectionGroupPattern)[keyof typeof ProtectionGroupPattern];
802
+ /**
803
+ * @public
804
+ * @enum
805
+ */
806
+ export declare const ProtectedResourceType: {
807
+ readonly APPLICATION_LOAD_BALANCER: "APPLICATION_LOAD_BALANCER";
808
+ readonly CLASSIC_LOAD_BALANCER: "CLASSIC_LOAD_BALANCER";
809
+ readonly CLOUDFRONT_DISTRIBUTION: "CLOUDFRONT_DISTRIBUTION";
810
+ readonly ELASTIC_IP_ALLOCATION: "ELASTIC_IP_ALLOCATION";
811
+ readonly GLOBAL_ACCELERATOR: "GLOBAL_ACCELERATOR";
812
+ readonly ROUTE_53_HOSTED_ZONE: "ROUTE_53_HOSTED_ZONE";
813
+ };
814
+ /**
815
+ * @public
816
+ */
817
+ export type ProtectedResourceType = (typeof ProtectedResourceType)[keyof typeof ProtectedResourceType];
768
818
  /**
769
819
  * @public
770
820
  */
@@ -1091,12 +1141,17 @@ export interface Limit {
1091
1141
  }
1092
1142
  /**
1093
1143
  * @public
1144
+ * @enum
1094
1145
  */
1095
- export declare enum ProactiveEngagementStatus {
1096
- DISABLED = "DISABLED",
1097
- ENABLED = "ENABLED",
1098
- PENDING = "PENDING"
1099
- }
1146
+ export declare const ProactiveEngagementStatus: {
1147
+ readonly DISABLED: "DISABLED";
1148
+ readonly ENABLED: "ENABLED";
1149
+ readonly PENDING: "PENDING";
1150
+ };
1151
+ /**
1152
+ * @public
1153
+ */
1154
+ export type ProactiveEngagementStatus = (typeof ProactiveEngagementStatus)[keyof typeof ProactiveEngagementStatus];
1100
1155
  /**
1101
1156
  * @public
1102
1157
  * <p>Limits settings on protection groups with arbitrary pattern type. </p>
@@ -1308,11 +1363,16 @@ export interface GetSubscriptionStateRequest {
1308
1363
  }
1309
1364
  /**
1310
1365
  * @public
1366
+ * @enum
1311
1367
  */
1312
- export declare enum SubscriptionState {
1313
- ACTIVE = "ACTIVE",
1314
- INACTIVE = "INACTIVE"
1315
- }
1368
+ export declare const SubscriptionState: {
1369
+ readonly ACTIVE: "ACTIVE";
1370
+ readonly INACTIVE: "INACTIVE";
1371
+ };
1372
+ /**
1373
+ * @public
1374
+ */
1375
+ export type SubscriptionState = (typeof SubscriptionState)[keyof typeof SubscriptionState];
1316
1376
  /**
1317
1377
  * @public
1318
1378
  */
@@ -23,10 +23,12 @@ export interface ResponseAction {
23
23
  Block?: BlockAction;
24
24
  Count?: CountAction;
25
25
  }
26
- export declare enum ApplicationLayerAutomaticResponseStatus {
27
- DISABLED = "DISABLED",
28
- ENABLED = "ENABLED",
29
- }
26
+ export declare const ApplicationLayerAutomaticResponseStatus: {
27
+ readonly DISABLED: "DISABLED";
28
+ readonly ENABLED: "ENABLED";
29
+ };
30
+ export type ApplicationLayerAutomaticResponseStatus =
31
+ (typeof ApplicationLayerAutomaticResponseStatus)[keyof typeof ApplicationLayerAutomaticResponseStatus];
30
32
  export interface ApplicationLayerAutomaticResponseConfiguration {
31
33
  Status: ApplicationLayerAutomaticResponseStatus | string | undefined;
32
34
  Action: ResponseAction | undefined;
@@ -53,10 +55,12 @@ export interface ValidationExceptionField {
53
55
  name: string | undefined;
54
56
  message: string | undefined;
55
57
  }
56
- export declare enum ValidationExceptionReason {
57
- FIELD_VALIDATION_FAILED = "FIELD_VALIDATION_FAILED",
58
- OTHER = "OTHER",
59
- }
58
+ export declare const ValidationExceptionReason: {
59
+ readonly FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED";
60
+ readonly OTHER: "OTHER";
61
+ };
62
+ export type ValidationExceptionReason =
63
+ (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
60
64
  export declare class InvalidParameterException extends __BaseException {
61
65
  readonly name: "InvalidParameterException";
62
66
  readonly $fault: "client";
@@ -130,30 +134,34 @@ export interface SummarizedCounter {
130
134
  N?: number;
131
135
  Unit?: string;
132
136
  }
133
- export declare enum AttackLayer {
134
- APPLICATION = "APPLICATION",
135
- NETWORK = "NETWORK",
136
- }
137
- export declare enum AttackPropertyIdentifier {
138
- DESTINATION_URL = "DESTINATION_URL",
139
- REFERRER = "REFERRER",
140
- SOURCE_ASN = "SOURCE_ASN",
141
- SOURCE_COUNTRY = "SOURCE_COUNTRY",
142
- SOURCE_IP_ADDRESS = "SOURCE_IP_ADDRESS",
143
- SOURCE_USER_AGENT = "SOURCE_USER_AGENT",
144
- WORDPRESS_PINGBACK_REFLECTOR = "WORDPRESS_PINGBACK_REFLECTOR",
145
- WORDPRESS_PINGBACK_SOURCE = "WORDPRESS_PINGBACK_SOURCE",
146
- }
137
+ export declare const AttackLayer: {
138
+ readonly APPLICATION: "APPLICATION";
139
+ readonly NETWORK: "NETWORK";
140
+ };
141
+ export type AttackLayer = (typeof AttackLayer)[keyof typeof AttackLayer];
142
+ export declare const AttackPropertyIdentifier: {
143
+ readonly DESTINATION_URL: "DESTINATION_URL";
144
+ readonly REFERRER: "REFERRER";
145
+ readonly SOURCE_ASN: "SOURCE_ASN";
146
+ readonly SOURCE_COUNTRY: "SOURCE_COUNTRY";
147
+ readonly SOURCE_IP_ADDRESS: "SOURCE_IP_ADDRESS";
148
+ readonly SOURCE_USER_AGENT: "SOURCE_USER_AGENT";
149
+ readonly WORDPRESS_PINGBACK_REFLECTOR: "WORDPRESS_PINGBACK_REFLECTOR";
150
+ readonly WORDPRESS_PINGBACK_SOURCE: "WORDPRESS_PINGBACK_SOURCE";
151
+ };
152
+ export type AttackPropertyIdentifier =
153
+ (typeof AttackPropertyIdentifier)[keyof typeof AttackPropertyIdentifier];
147
154
  export interface Contributor {
148
155
  Name?: string;
149
156
  Value?: number;
150
157
  }
151
- export declare enum Unit {
152
- BITS = "BITS",
153
- BYTES = "BYTES",
154
- PACKETS = "PACKETS",
155
- REQUESTS = "REQUESTS",
156
- }
158
+ export declare const Unit: {
159
+ readonly BITS: "BITS";
160
+ readonly BYTES: "BYTES";
161
+ readonly PACKETS: "PACKETS";
162
+ readonly REQUESTS: "REQUESTS";
163
+ };
164
+ export type Unit = (typeof Unit)[keyof typeof Unit];
157
165
  export interface AttackProperty {
158
166
  AttackLayer?: AttackLayer | string;
159
167
  AttackPropertyIdentifier?: AttackPropertyIdentifier | string;
@@ -168,10 +176,12 @@ export interface SummarizedAttackVector {
168
176
  VectorType: string | undefined;
169
177
  VectorCounters?: SummarizedCounter[];
170
178
  }
171
- export declare enum SubResourceType {
172
- IP = "IP",
173
- URL = "URL",
174
- }
179
+ export declare const SubResourceType: {
180
+ readonly IP: "IP";
181
+ readonly URL: "URL";
182
+ };
183
+ export type SubResourceType =
184
+ (typeof SubResourceType)[keyof typeof SubResourceType];
175
185
  export interface SubResourceSummary {
176
186
  Type?: SubResourceType | string;
177
187
  Id?: string;
@@ -210,10 +220,11 @@ export interface AttackSummary {
210
220
  EndTime?: Date;
211
221
  AttackVectors?: AttackVectorDescription[];
212
222
  }
213
- export declare enum AutoRenew {
214
- DISABLED = "DISABLED",
215
- ENABLED = "ENABLED",
216
- }
223
+ export declare const AutoRenew: {
224
+ readonly DISABLED: "DISABLED";
225
+ readonly ENABLED: "ENABLED";
226
+ };
227
+ export type AutoRenew = (typeof AutoRenew)[keyof typeof AutoRenew];
217
228
  export interface Tag {
218
229
  Key?: string;
219
230
  Value?: string;
@@ -234,24 +245,30 @@ export declare class ResourceAlreadyExistsException extends __BaseException {
234
245
  opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>
235
246
  );
236
247
  }
237
- export declare enum ProtectionGroupAggregation {
238
- MAX = "MAX",
239
- MEAN = "MEAN",
240
- SUM = "SUM",
241
- }
242
- export declare enum ProtectionGroupPattern {
243
- ALL = "ALL",
244
- ARBITRARY = "ARBITRARY",
245
- BY_RESOURCE_TYPE = "BY_RESOURCE_TYPE",
246
- }
247
- export declare enum ProtectedResourceType {
248
- APPLICATION_LOAD_BALANCER = "APPLICATION_LOAD_BALANCER",
249
- CLASSIC_LOAD_BALANCER = "CLASSIC_LOAD_BALANCER",
250
- CLOUDFRONT_DISTRIBUTION = "CLOUDFRONT_DISTRIBUTION",
251
- ELASTIC_IP_ALLOCATION = "ELASTIC_IP_ALLOCATION",
252
- GLOBAL_ACCELERATOR = "GLOBAL_ACCELERATOR",
253
- ROUTE_53_HOSTED_ZONE = "ROUTE_53_HOSTED_ZONE",
254
- }
248
+ export declare const ProtectionGroupAggregation: {
249
+ readonly MAX: "MAX";
250
+ readonly MEAN: "MEAN";
251
+ readonly SUM: "SUM";
252
+ };
253
+ export type ProtectionGroupAggregation =
254
+ (typeof ProtectionGroupAggregation)[keyof typeof ProtectionGroupAggregation];
255
+ export declare const ProtectionGroupPattern: {
256
+ readonly ALL: "ALL";
257
+ readonly ARBITRARY: "ARBITRARY";
258
+ readonly BY_RESOURCE_TYPE: "BY_RESOURCE_TYPE";
259
+ };
260
+ export type ProtectionGroupPattern =
261
+ (typeof ProtectionGroupPattern)[keyof typeof ProtectionGroupPattern];
262
+ export declare const ProtectedResourceType: {
263
+ readonly APPLICATION_LOAD_BALANCER: "APPLICATION_LOAD_BALANCER";
264
+ readonly CLASSIC_LOAD_BALANCER: "CLASSIC_LOAD_BALANCER";
265
+ readonly CLOUDFRONT_DISTRIBUTION: "CLOUDFRONT_DISTRIBUTION";
266
+ readonly ELASTIC_IP_ALLOCATION: "ELASTIC_IP_ALLOCATION";
267
+ readonly GLOBAL_ACCELERATOR: "GLOBAL_ACCELERATOR";
268
+ readonly ROUTE_53_HOSTED_ZONE: "ROUTE_53_HOSTED_ZONE";
269
+ };
270
+ export type ProtectedResourceType =
271
+ (typeof ProtectedResourceType)[keyof typeof ProtectedResourceType];
255
272
  export interface CreateProtectionGroupRequest {
256
273
  ProtectionGroupId: string | undefined;
257
274
  Aggregation: ProtectionGroupAggregation | string | undefined;
@@ -338,11 +355,13 @@ export interface Limit {
338
355
  Type?: string;
339
356
  Max?: number;
340
357
  }
341
- export declare enum ProactiveEngagementStatus {
342
- DISABLED = "DISABLED",
343
- ENABLED = "ENABLED",
344
- PENDING = "PENDING",
345
- }
358
+ export declare const ProactiveEngagementStatus: {
359
+ readonly DISABLED: "DISABLED";
360
+ readonly ENABLED: "ENABLED";
361
+ readonly PENDING: "PENDING";
362
+ };
363
+ export type ProactiveEngagementStatus =
364
+ (typeof ProactiveEngagementStatus)[keyof typeof ProactiveEngagementStatus];
346
365
  export interface ProtectionGroupArbitraryPatternLimits {
347
366
  MaxMembers: number | undefined;
348
367
  }
@@ -398,10 +417,12 @@ export interface EnableApplicationLayerAutomaticResponseResponse {}
398
417
  export interface EnableProactiveEngagementRequest {}
399
418
  export interface EnableProactiveEngagementResponse {}
400
419
  export interface GetSubscriptionStateRequest {}
401
- export declare enum SubscriptionState {
402
- ACTIVE = "ACTIVE",
403
- INACTIVE = "INACTIVE",
404
- }
420
+ export declare const SubscriptionState: {
421
+ readonly ACTIVE: "ACTIVE";
422
+ readonly INACTIVE: "INACTIVE";
423
+ };
424
+ export type SubscriptionState =
425
+ (typeof SubscriptionState)[keyof typeof SubscriptionState];
405
426
  export interface GetSubscriptionStateResponse {
406
427
  SubscriptionState: SubscriptionState | string | undefined;
407
428
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-shield",
3
3
  "description": "AWS SDK for JavaScript Shield Client for Node.js, Browser and React Native",
4
- "version": "3.301.0",
4
+ "version": "3.303.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",