@aws-sdk/client-shield 3.427.0 → 3.429.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.
@@ -85,7 +85,7 @@ export interface ApplicationLayerAutomaticResponseConfiguration {
85
85
  * @public
86
86
  * <p>Indicates whether automatic application layer DDoS mitigation is enabled for the protection. </p>
87
87
  */
88
- Status: ApplicationLayerAutomaticResponseStatus | string | undefined;
88
+ Status: ApplicationLayerAutomaticResponseStatus | undefined;
89
89
  /**
90
90
  * @public
91
91
  * <p>Specifies the action setting that Shield Advanced should use in the WAF rules that it creates on behalf of the
@@ -172,7 +172,7 @@ export declare class InvalidParameterException extends __BaseException {
172
172
  * @public
173
173
  * <p>Additional information about the exception.</p>
174
174
  */
175
- reason?: ValidationExceptionReason | string;
175
+ reason?: ValidationExceptionReason;
176
176
  /**
177
177
  * @public
178
178
  * <p>Fields that caused the exception.</p>
@@ -445,14 +445,14 @@ export interface AttackProperty {
445
445
  * For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#set-ddos-alarms">Shield metrics and alarms</a>
446
446
  * in the <i>WAF Developer Guide</i>. </p>
447
447
  */
448
- AttackLayer?: AttackLayer | string;
448
+ AttackLayer?: AttackLayer;
449
449
  /**
450
450
  * @public
451
451
  * <p>Defines the Shield event property information that is provided. The
452
452
  * <code>WORDPRESS_PINGBACK_REFLECTOR</code> and <code>WORDPRESS_PINGBACK_SOURCE</code>
453
453
  * values are valid only for WordPress reflective pingback events.</p>
454
454
  */
455
- AttackPropertyIdentifier?: AttackPropertyIdentifier | string;
455
+ AttackPropertyIdentifier?: AttackPropertyIdentifier;
456
456
  /**
457
457
  * @public
458
458
  * <p>Contributor objects for the top five contributors to a Shield event. A contributor is a source of traffic that Shield Advanced identifies as responsible for some or all of an event.</p>
@@ -463,7 +463,7 @@ export interface AttackProperty {
463
463
  * <p>The unit used for the <code>Contributor</code>
464
464
  * <code>Value</code> property. </p>
465
465
  */
466
- Unit?: Unit | string;
466
+ Unit?: Unit;
467
467
  /**
468
468
  * @public
469
469
  * <p>The total contributions made to this Shield event by all contributors.</p>
@@ -518,7 +518,7 @@ export interface SubResourceSummary {
518
518
  * @public
519
519
  * <p>The <code>SubResource</code> type.</p>
520
520
  */
521
- Type?: SubResourceType | string;
521
+ Type?: SubResourceType;
522
522
  /**
523
523
  * @public
524
524
  * <p>The unique identifier (ID) of the <code>SubResource</code>.</p>
@@ -905,18 +905,18 @@ export interface CreateProtectionGroupRequest {
905
905
  * </li>
906
906
  * </ul>
907
907
  */
908
- Aggregation: ProtectionGroupAggregation | string | undefined;
908
+ Aggregation: ProtectionGroupAggregation | undefined;
909
909
  /**
910
910
  * @public
911
911
  * <p>The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type. </p>
912
912
  */
913
- Pattern: ProtectionGroupPattern | string | undefined;
913
+ Pattern: ProtectionGroupPattern | undefined;
914
914
  /**
915
915
  * @public
916
916
  * <p>The resource type to include in the protection group. All protected resources of this type are included in the protection group. Newly protected resources of this type are automatically added to the group.
917
917
  * You must set this when you set <code>Pattern</code> to <code>BY_RESOURCE_TYPE</code> and you must not set it for any other <code>Pattern</code> setting. </p>
918
918
  */
919
- ResourceType?: ProtectedResourceType | string;
919
+ ResourceType?: ProtectedResourceType;
920
920
  /**
921
921
  * @public
922
922
  * <p>The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set <code>Pattern</code> to <code>ARBITRARY</code> and you must not set it for any other <code>Pattern</code> setting. </p>
@@ -1187,18 +1187,18 @@ export interface ProtectionGroup {
1187
1187
  * </li>
1188
1188
  * </ul>
1189
1189
  */
1190
- Aggregation: ProtectionGroupAggregation | string | undefined;
1190
+ Aggregation: ProtectionGroupAggregation | undefined;
1191
1191
  /**
1192
1192
  * @public
1193
1193
  * <p>The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource ARNs (Amazon Resource Names), or include all resources of a specified resource type.</p>
1194
1194
  */
1195
- Pattern: ProtectionGroupPattern | string | undefined;
1195
+ Pattern: ProtectionGroupPattern | undefined;
1196
1196
  /**
1197
1197
  * @public
1198
1198
  * <p>The resource type to include in the protection group. All protected resources of this type are included in the protection group.
1199
1199
  * You must set this when you set <code>Pattern</code> to <code>BY_RESOURCE_TYPE</code> and you must not set it for any other <code>Pattern</code> setting. </p>
1200
1200
  */
1201
- ResourceType?: ProtectedResourceType | string;
1201
+ ResourceType?: ProtectedResourceType;
1202
1202
  /**
1203
1203
  * @public
1204
1204
  * <p>The ARNs (Amazon Resource Names) of the resources to include in the protection group. You must set this when you set <code>Pattern</code> to <code>ARBITRARY</code> and you must not set it for any other <code>Pattern</code> setting. </p>
@@ -1344,7 +1344,7 @@ export interface Subscription {
1344
1344
  * <p>If <code>ENABLED</code>, the subscription will be automatically renewed at the end of the existing subscription period.</p>
1345
1345
  * <p>When you initally create a subscription, <code>AutoRenew</code> is set to <code>ENABLED</code>. You can change this by submitting an <code>UpdateSubscription</code> request. If the <code>UpdateSubscription</code> request does not included a value for <code>AutoRenew</code>, the existing value for <code>AutoRenew</code> remains unchanged.</p>
1346
1346
  */
1347
- AutoRenew?: AutoRenew | string;
1347
+ AutoRenew?: AutoRenew;
1348
1348
  /**
1349
1349
  * @public
1350
1350
  * <p>Specifies how many protections of a given type you can create.</p>
@@ -1356,7 +1356,7 @@ export interface Subscription {
1356
1356
  * <p>If <code>PENDING</code>, you have requested proactive engagement and the request is pending. The status changes to <code>ENABLED</code> when your request is fully processed.</p>
1357
1357
  * <p>If <code>DISABLED</code>, the SRT will not proactively notify contacts about escalations or to initiate proactive customer support. </p>
1358
1358
  */
1359
- ProactiveEngagementStatus?: ProactiveEngagementStatus | string;
1359
+ ProactiveEngagementStatus?: ProactiveEngagementStatus;
1360
1360
  /**
1361
1361
  * @public
1362
1362
  * <p>Limits settings for your subscription. </p>
@@ -1505,7 +1505,7 @@ export interface GetSubscriptionStateResponse {
1505
1505
  * @public
1506
1506
  * <p>The status of the subscription.</p>
1507
1507
  */
1508
- SubscriptionState: SubscriptionState | string | undefined;
1508
+ SubscriptionState: SubscriptionState | undefined;
1509
1509
  }
1510
1510
  /**
1511
1511
  * @public
@@ -1595,17 +1595,17 @@ export interface InclusionProtectionGroupFilters {
1595
1595
  * @public
1596
1596
  * <p>The pattern specification of the protection groups that you want to retrieve. </p>
1597
1597
  */
1598
- Patterns?: (ProtectionGroupPattern | string)[];
1598
+ Patterns?: ProtectionGroupPattern[];
1599
1599
  /**
1600
1600
  * @public
1601
1601
  * <p>The resource type configuration of the protection groups that you want to retrieve. In the protection group configuration, you specify the resource type when you set the group's <code>Pattern</code> to <code>BY_RESOURCE_TYPE</code>. </p>
1602
1602
  */
1603
- ResourceTypes?: (ProtectedResourceType | string)[];
1603
+ ResourceTypes?: ProtectedResourceType[];
1604
1604
  /**
1605
1605
  * @public
1606
1606
  * <p>The aggregation setting of the protection groups that you want to retrieve. </p>
1607
1607
  */
1608
- Aggregations?: (ProtectionGroupAggregation | string)[];
1608
+ Aggregations?: ProtectionGroupAggregation[];
1609
1609
  }
1610
1610
  /**
1611
1611
  * @public
@@ -1675,7 +1675,7 @@ export interface InclusionProtectionFilters {
1675
1675
  * @public
1676
1676
  * <p>The type of protected resource whose protections you want to retrieve. </p>
1677
1677
  */
1678
- ResourceTypes?: (ProtectedResourceType | string)[];
1678
+ ResourceTypes?: ProtectedResourceType[];
1679
1679
  }
1680
1680
  /**
1681
1681
  * @public
@@ -1897,18 +1897,18 @@ export interface UpdateProtectionGroupRequest {
1897
1897
  * </li>
1898
1898
  * </ul>
1899
1899
  */
1900
- Aggregation: ProtectionGroupAggregation | string | undefined;
1900
+ Aggregation: ProtectionGroupAggregation | undefined;
1901
1901
  /**
1902
1902
  * @public
1903
1903
  * <p>The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.</p>
1904
1904
  */
1905
- Pattern: ProtectionGroupPattern | string | undefined;
1905
+ Pattern: ProtectionGroupPattern | undefined;
1906
1906
  /**
1907
1907
  * @public
1908
1908
  * <p>The resource type to include in the protection group. All protected resources of this type are included in the protection group.
1909
1909
  * You must set this when you set <code>Pattern</code> to <code>BY_RESOURCE_TYPE</code> and you must not set it for any other <code>Pattern</code> setting. </p>
1910
1910
  */
1911
- ResourceType?: ProtectedResourceType | string;
1911
+ ResourceType?: ProtectedResourceType;
1912
1912
  /**
1913
1913
  * @public
1914
1914
  * <p>The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set <code>Pattern</code> to <code>ARBITRARY</code> and you must not set it for any other <code>Pattern</code> setting. </p>
@@ -1928,7 +1928,7 @@ export interface UpdateSubscriptionRequest {
1928
1928
  * @public
1929
1929
  * <p>When you initally create a subscription, <code>AutoRenew</code> is set to <code>ENABLED</code>. If <code>ENABLED</code>, the subscription will be automatically renewed at the end of the existing subscription period. You can change this by submitting an <code>UpdateSubscription</code> request. If the <code>UpdateSubscription</code> request does not included a value for <code>AutoRenew</code>, the existing value for <code>AutoRenew</code> remains unchanged.</p>
1930
1930
  */
1931
- AutoRenew?: AutoRenew | string;
1931
+ AutoRenew?: AutoRenew;
1932
1932
  }
1933
1933
  /**
1934
1934
  * @public
@@ -30,7 +30,7 @@ export declare const ApplicationLayerAutomaticResponseStatus: {
30
30
  export type ApplicationLayerAutomaticResponseStatus =
31
31
  (typeof ApplicationLayerAutomaticResponseStatus)[keyof typeof ApplicationLayerAutomaticResponseStatus];
32
32
  export interface ApplicationLayerAutomaticResponseConfiguration {
33
- Status: ApplicationLayerAutomaticResponseStatus | string | undefined;
33
+ Status: ApplicationLayerAutomaticResponseStatus | undefined;
34
34
  Action: ResponseAction | undefined;
35
35
  }
36
36
  export interface AssociateDRTLogBucketRequest {
@@ -64,7 +64,7 @@ export type ValidationExceptionReason =
64
64
  export declare class InvalidParameterException extends __BaseException {
65
65
  readonly name: "InvalidParameterException";
66
66
  readonly $fault: "client";
67
- reason?: ValidationExceptionReason | string;
67
+ reason?: ValidationExceptionReason;
68
68
  fields?: ValidationExceptionField[];
69
69
  constructor(
70
70
  opts: __ExceptionOptionType<InvalidParameterException, __BaseException>
@@ -163,10 +163,10 @@ export declare const Unit: {
163
163
  };
164
164
  export type Unit = (typeof Unit)[keyof typeof Unit];
165
165
  export interface AttackProperty {
166
- AttackLayer?: AttackLayer | string;
167
- AttackPropertyIdentifier?: AttackPropertyIdentifier | string;
166
+ AttackLayer?: AttackLayer;
167
+ AttackPropertyIdentifier?: AttackPropertyIdentifier;
168
168
  TopContributors?: Contributor[];
169
- Unit?: Unit | string;
169
+ Unit?: Unit;
170
170
  Total?: number;
171
171
  }
172
172
  export interface Mitigation {
@@ -183,7 +183,7 @@ export declare const SubResourceType: {
183
183
  export type SubResourceType =
184
184
  (typeof SubResourceType)[keyof typeof SubResourceType];
185
185
  export interface SubResourceSummary {
186
- Type?: SubResourceType | string;
186
+ Type?: SubResourceType;
187
187
  Id?: string;
188
188
  AttackVectors?: SummarizedAttackVector[];
189
189
  Counters?: SummarizedCounter[];
@@ -271,9 +271,9 @@ export type ProtectedResourceType =
271
271
  (typeof ProtectedResourceType)[keyof typeof ProtectedResourceType];
272
272
  export interface CreateProtectionGroupRequest {
273
273
  ProtectionGroupId: string | undefined;
274
- Aggregation: ProtectionGroupAggregation | string | undefined;
275
- Pattern: ProtectionGroupPattern | string | undefined;
276
- ResourceType?: ProtectedResourceType | string;
274
+ Aggregation: ProtectionGroupAggregation | undefined;
275
+ Pattern: ProtectionGroupPattern | undefined;
276
+ ResourceType?: ProtectedResourceType;
277
277
  Members?: string[];
278
278
  Tags?: Tag[];
279
279
  }
@@ -341,9 +341,9 @@ export interface DescribeProtectionGroupRequest {
341
341
  }
342
342
  export interface ProtectionGroup {
343
343
  ProtectionGroupId: string | undefined;
344
- Aggregation: ProtectionGroupAggregation | string | undefined;
345
- Pattern: ProtectionGroupPattern | string | undefined;
346
- ResourceType?: ProtectedResourceType | string;
344
+ Aggregation: ProtectionGroupAggregation | undefined;
345
+ Pattern: ProtectionGroupPattern | undefined;
346
+ ResourceType?: ProtectedResourceType;
347
347
  Members: string[] | undefined;
348
348
  ProtectionGroupArn?: string;
349
349
  }
@@ -383,9 +383,9 @@ export interface Subscription {
383
383
  StartTime?: Date;
384
384
  EndTime?: Date;
385
385
  TimeCommitmentInSeconds?: number;
386
- AutoRenew?: AutoRenew | string;
386
+ AutoRenew?: AutoRenew;
387
387
  Limits?: Limit[];
388
- ProactiveEngagementStatus?: ProactiveEngagementStatus | string;
388
+ ProactiveEngagementStatus?: ProactiveEngagementStatus;
389
389
  SubscriptionLimits: SubscriptionLimits | undefined;
390
390
  SubscriptionArn?: string;
391
391
  }
@@ -424,7 +424,7 @@ export declare const SubscriptionState: {
424
424
  export type SubscriptionState =
425
425
  (typeof SubscriptionState)[keyof typeof SubscriptionState];
426
426
  export interface GetSubscriptionStateResponse {
427
- SubscriptionState: SubscriptionState | string | undefined;
427
+ SubscriptionState: SubscriptionState | undefined;
428
428
  }
429
429
  export interface ListAttacksRequest {
430
430
  ResourceArns?: string[];
@@ -449,9 +449,9 @@ export declare class InvalidPaginationTokenException extends __BaseException {
449
449
  }
450
450
  export interface InclusionProtectionGroupFilters {
451
451
  ProtectionGroupIds?: string[];
452
- Patterns?: (ProtectionGroupPattern | string)[];
453
- ResourceTypes?: (ProtectedResourceType | string)[];
454
- Aggregations?: (ProtectionGroupAggregation | string)[];
452
+ Patterns?: ProtectionGroupPattern[];
453
+ ResourceTypes?: ProtectedResourceType[];
454
+ Aggregations?: ProtectionGroupAggregation[];
455
455
  }
456
456
  export interface ListProtectionGroupsRequest {
457
457
  NextToken?: string;
@@ -465,7 +465,7 @@ export interface ListProtectionGroupsResponse {
465
465
  export interface InclusionProtectionFilters {
466
466
  ResourceArns?: string[];
467
467
  ProtectionNames?: string[];
468
- ResourceTypes?: (ProtectedResourceType | string)[];
468
+ ResourceTypes?: ProtectedResourceType[];
469
469
  }
470
470
  export interface ListProtectionsRequest {
471
471
  NextToken?: string;
@@ -512,13 +512,13 @@ export interface UpdateEmergencyContactSettingsRequest {
512
512
  export interface UpdateEmergencyContactSettingsResponse {}
513
513
  export interface UpdateProtectionGroupRequest {
514
514
  ProtectionGroupId: string | undefined;
515
- Aggregation: ProtectionGroupAggregation | string | undefined;
516
- Pattern: ProtectionGroupPattern | string | undefined;
517
- ResourceType?: ProtectedResourceType | string;
515
+ Aggregation: ProtectionGroupAggregation | undefined;
516
+ Pattern: ProtectionGroupPattern | undefined;
517
+ ResourceType?: ProtectedResourceType;
518
518
  Members?: string[];
519
519
  }
520
520
  export interface UpdateProtectionGroupResponse {}
521
521
  export interface UpdateSubscriptionRequest {
522
- AutoRenew?: AutoRenew | string;
522
+ AutoRenew?: AutoRenew;
523
523
  }
524
524
  export interface UpdateSubscriptionResponse {}
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.427.0",
4
+ "version": "3.429.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,39 +21,39 @@
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.427.0",
25
- "@aws-sdk/credential-provider-node": "3.427.0",
26
- "@aws-sdk/middleware-host-header": "3.425.0",
27
- "@aws-sdk/middleware-logger": "3.425.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.425.0",
29
- "@aws-sdk/middleware-signing": "3.425.0",
30
- "@aws-sdk/middleware-user-agent": "3.427.0",
31
- "@aws-sdk/region-config-resolver": "3.425.0",
32
- "@aws-sdk/types": "3.425.0",
33
- "@aws-sdk/util-endpoints": "3.427.0",
34
- "@aws-sdk/util-user-agent-browser": "3.425.0",
35
- "@aws-sdk/util-user-agent-node": "3.425.0",
36
- "@smithy/config-resolver": "^2.0.11",
37
- "@smithy/fetch-http-handler": "^2.2.1",
38
- "@smithy/hash-node": "^2.0.10",
39
- "@smithy/invalid-dependency": "^2.0.10",
40
- "@smithy/middleware-content-length": "^2.0.12",
41
- "@smithy/middleware-endpoint": "^2.0.10",
42
- "@smithy/middleware-retry": "^2.0.13",
43
- "@smithy/middleware-serde": "^2.0.10",
44
- "@smithy/middleware-stack": "^2.0.4",
45
- "@smithy/node-config-provider": "^2.0.13",
46
- "@smithy/node-http-handler": "^2.1.6",
47
- "@smithy/protocol-http": "^3.0.6",
48
- "@smithy/smithy-client": "^2.1.9",
49
- "@smithy/types": "^2.3.4",
50
- "@smithy/url-parser": "^2.0.10",
24
+ "@aws-sdk/client-sts": "3.429.0",
25
+ "@aws-sdk/credential-provider-node": "3.429.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
+ "@aws-sdk/middleware-logger": "3.428.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
+ "@aws-sdk/middleware-signing": "3.428.0",
30
+ "@aws-sdk/middleware-user-agent": "3.428.0",
31
+ "@aws-sdk/region-config-resolver": "3.428.0",
32
+ "@aws-sdk/types": "3.428.0",
33
+ "@aws-sdk/util-endpoints": "3.428.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.428.0",
35
+ "@aws-sdk/util-user-agent-node": "3.428.0",
36
+ "@smithy/config-resolver": "^2.0.14",
37
+ "@smithy/fetch-http-handler": "^2.2.3",
38
+ "@smithy/hash-node": "^2.0.11",
39
+ "@smithy/invalid-dependency": "^2.0.11",
40
+ "@smithy/middleware-content-length": "^2.0.13",
41
+ "@smithy/middleware-endpoint": "^2.1.1",
42
+ "@smithy/middleware-retry": "^2.0.16",
43
+ "@smithy/middleware-serde": "^2.0.11",
44
+ "@smithy/middleware-stack": "^2.0.5",
45
+ "@smithy/node-config-provider": "^2.1.1",
46
+ "@smithy/node-http-handler": "^2.1.7",
47
+ "@smithy/protocol-http": "^3.0.7",
48
+ "@smithy/smithy-client": "^2.1.11",
49
+ "@smithy/types": "^2.3.5",
50
+ "@smithy/url-parser": "^2.0.11",
51
51
  "@smithy/util-base64": "^2.0.0",
52
52
  "@smithy/util-body-length-browser": "^2.0.0",
53
53
  "@smithy/util-body-length-node": "^2.1.0",
54
- "@smithy/util-defaults-mode-browser": "^2.0.13",
55
- "@smithy/util-defaults-mode-node": "^2.0.15",
56
- "@smithy/util-retry": "^2.0.3",
54
+ "@smithy/util-defaults-mode-browser": "^2.0.15",
55
+ "@smithy/util-defaults-mode-node": "^2.0.19",
56
+ "@smithy/util-retry": "^2.0.4",
57
57
  "@smithy/util-utf8": "^2.0.0",
58
58
  "tslib": "^2.5.0"
59
59
  },