@aws-sdk/client-shield 3.137.0 → 3.140.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.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/models/models_0.js +9 -1
- package/dist-cjs/protocols/Aws_json1_1.js +95 -0
- package/dist-es/models/models_0.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +86 -2
- package/dist-types/Shield.d.ts +23 -13
- package/dist-types/commands/AssociateDRTLogBucketCommand.d.ts +1 -1
- package/dist-types/commands/AssociateDRTRoleCommand.d.ts +1 -1
- package/dist-types/commands/CreateProtectionCommand.d.ts +1 -1
- package/dist-types/commands/CreateSubscriptionCommand.d.ts +5 -2
- package/dist-types/commands/DisableApplicationLayerAutomaticResponseCommand.d.ts +1 -1
- package/dist-types/commands/EnableApplicationLayerAutomaticResponseCommand.d.ts +6 -5
- package/dist-types/commands/ListProtectionGroupsCommand.d.ts +2 -1
- package/dist-types/commands/ListProtectionsCommand.d.ts +2 -1
- package/dist-types/commands/UpdateSubscriptionCommand.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +67 -13
- package/dist-types/ts3.4/models/models_0.d.ts +28 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.140.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.139.0...v3.140.0) (2022-07-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-shield:** AWS Shield Advanced now supports filtering for ListProtections and ListProtectionGroups. ([d907155](https://github.com/aws/aws-sdk-js-v3/commit/d90715521b9611358ee22647ccb24588174e6964))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.137.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.136.1...v3.137.0) (2022-07-26)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AttackVectorDescriptionFilterSensitiveLog = exports.AttackStatisticsDataItemFilterSensitiveLog = exports.AttackVolumeFilterSensitiveLog = exports.AttackVolumeStatisticsFilterSensitiveLog = exports.AttackDetailFilterSensitiveLog = exports.SubResourceSummaryFilterSensitiveLog = exports.SummarizedAttackVectorFilterSensitiveLog = exports.MitigationFilterSensitiveLog = exports.AttackPropertyFilterSensitiveLog = exports.ContributorFilterSensitiveLog = exports.SummarizedCounterFilterSensitiveLog = exports.AssociateProactiveEngagementDetailsResponseFilterSensitiveLog = exports.AssociateProactiveEngagementDetailsRequestFilterSensitiveLog = exports.EmergencyContactFilterSensitiveLog = exports.AssociateHealthCheckResponseFilterSensitiveLog = exports.AssociateHealthCheckRequestFilterSensitiveLog = exports.AssociateDRTRoleResponseFilterSensitiveLog = exports.AssociateDRTRoleRequestFilterSensitiveLog = exports.ValidationExceptionFieldFilterSensitiveLog = exports.AssociateDRTLogBucketResponseFilterSensitiveLog = exports.AssociateDRTLogBucketRequestFilterSensitiveLog = exports.ApplicationLayerAutomaticResponseConfigurationFilterSensitiveLog = exports.ResponseActionFilterSensitiveLog = exports.CountActionFilterSensitiveLog = exports.BlockActionFilterSensitiveLog = exports.InvalidPaginationTokenException = exports.SubscriptionState = exports.ProactiveEngagementStatus = exports.LockedSubscriptionException = exports.ProtectedResourceType = exports.ProtectionGroupPattern = exports.ProtectionGroupAggregation = exports.ResourceAlreadyExistsException = exports.AutoRenew = exports.SubResourceType = exports.Unit = exports.AttackPropertyIdentifier = exports.AttackLayer = exports.InvalidResourceException = exports.ResourceNotFoundException = exports.OptimisticLockException = exports.NoAssociatedRoleException = exports.LimitsExceededException = exports.InvalidParameterException = exports.ValidationExceptionReason = exports.InvalidOperationException = exports.InternalErrorException = exports.ApplicationLayerAutomaticResponseStatus = exports.AccessDeniedForDependencyException = exports.AccessDeniedException = void 0;
|
|
4
4
|
exports.EnableApplicationLayerAutomaticResponseResponseFilterSensitiveLog = exports.EnableApplicationLayerAutomaticResponseRequestFilterSensitiveLog = exports.DisassociateHealthCheckResponseFilterSensitiveLog = exports.DisassociateHealthCheckRequestFilterSensitiveLog = exports.DisassociateDRTRoleResponseFilterSensitiveLog = exports.DisassociateDRTRoleRequestFilterSensitiveLog = exports.DisassociateDRTLogBucketResponseFilterSensitiveLog = exports.DisassociateDRTLogBucketRequestFilterSensitiveLog = exports.DisableProactiveEngagementResponseFilterSensitiveLog = exports.DisableProactiveEngagementRequestFilterSensitiveLog = exports.DisableApplicationLayerAutomaticResponseResponseFilterSensitiveLog = exports.DisableApplicationLayerAutomaticResponseRequestFilterSensitiveLog = exports.DescribeSubscriptionResponseFilterSensitiveLog = exports.SubscriptionFilterSensitiveLog = exports.SubscriptionLimitsFilterSensitiveLog = exports.ProtectionLimitsFilterSensitiveLog = exports.ProtectionGroupLimitsFilterSensitiveLog = exports.ProtectionGroupPatternTypeLimitsFilterSensitiveLog = exports.ProtectionGroupArbitraryPatternLimitsFilterSensitiveLog = exports.LimitFilterSensitiveLog = exports.DescribeSubscriptionRequestFilterSensitiveLog = exports.DescribeProtectionGroupResponseFilterSensitiveLog = exports.ProtectionGroupFilterSensitiveLog = exports.DescribeProtectionGroupRequestFilterSensitiveLog = exports.DescribeProtectionResponseFilterSensitiveLog = exports.ProtectionFilterSensitiveLog = exports.DescribeProtectionRequestFilterSensitiveLog = exports.DescribeEmergencyContactSettingsResponseFilterSensitiveLog = exports.DescribeEmergencyContactSettingsRequestFilterSensitiveLog = exports.DescribeDRTAccessResponseFilterSensitiveLog = exports.DescribeDRTAccessRequestFilterSensitiveLog = exports.DescribeAttackStatisticsResponseFilterSensitiveLog = exports.TimeRangeFilterSensitiveLog = exports.DescribeAttackStatisticsRequestFilterSensitiveLog = exports.DescribeAttackResponseFilterSensitiveLog = exports.DescribeAttackRequestFilterSensitiveLog = exports.DeleteSubscriptionResponseFilterSensitiveLog = exports.DeleteSubscriptionRequestFilterSensitiveLog = exports.DeleteProtectionGroupResponseFilterSensitiveLog = exports.DeleteProtectionGroupRequestFilterSensitiveLog = exports.DeleteProtectionResponseFilterSensitiveLog = exports.DeleteProtectionRequestFilterSensitiveLog = exports.CreateSubscriptionResponseFilterSensitiveLog = exports.CreateSubscriptionRequestFilterSensitiveLog = exports.CreateProtectionGroupResponseFilterSensitiveLog = exports.CreateProtectionGroupRequestFilterSensitiveLog = exports.CreateProtectionResponseFilterSensitiveLog = exports.CreateProtectionRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.AttackSummaryFilterSensitiveLog = void 0;
|
|
5
|
-
exports.UpdateSubscriptionResponseFilterSensitiveLog = exports.UpdateSubscriptionRequestFilterSensitiveLog = exports.UpdateProtectionGroupResponseFilterSensitiveLog = exports.UpdateProtectionGroupRequestFilterSensitiveLog = exports.UpdateEmergencyContactSettingsResponseFilterSensitiveLog = exports.UpdateEmergencyContactSettingsRequestFilterSensitiveLog = exports.UpdateApplicationLayerAutomaticResponseResponseFilterSensitiveLog = exports.UpdateApplicationLayerAutomaticResponseRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListResourcesInProtectionGroupResponseFilterSensitiveLog = exports.ListResourcesInProtectionGroupRequestFilterSensitiveLog = exports.ListProtectionsResponseFilterSensitiveLog = exports.ListProtectionsRequestFilterSensitiveLog = exports.ListProtectionGroupsResponseFilterSensitiveLog = exports.ListProtectionGroupsRequestFilterSensitiveLog = exports.ListAttacksResponseFilterSensitiveLog = exports.ListAttacksRequestFilterSensitiveLog = exports.GetSubscriptionStateResponseFilterSensitiveLog = exports.GetSubscriptionStateRequestFilterSensitiveLog = exports.EnableProactiveEngagementResponseFilterSensitiveLog = exports.EnableProactiveEngagementRequestFilterSensitiveLog = void 0;
|
|
5
|
+
exports.UpdateSubscriptionResponseFilterSensitiveLog = exports.UpdateSubscriptionRequestFilterSensitiveLog = exports.UpdateProtectionGroupResponseFilterSensitiveLog = exports.UpdateProtectionGroupRequestFilterSensitiveLog = exports.UpdateEmergencyContactSettingsResponseFilterSensitiveLog = exports.UpdateEmergencyContactSettingsRequestFilterSensitiveLog = exports.UpdateApplicationLayerAutomaticResponseResponseFilterSensitiveLog = exports.UpdateApplicationLayerAutomaticResponseRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListResourcesInProtectionGroupResponseFilterSensitiveLog = exports.ListResourcesInProtectionGroupRequestFilterSensitiveLog = exports.ListProtectionsResponseFilterSensitiveLog = exports.ListProtectionsRequestFilterSensitiveLog = exports.InclusionProtectionFiltersFilterSensitiveLog = exports.ListProtectionGroupsResponseFilterSensitiveLog = exports.ListProtectionGroupsRequestFilterSensitiveLog = exports.InclusionProtectionGroupFiltersFilterSensitiveLog = exports.ListAttacksResponseFilterSensitiveLog = exports.ListAttacksRequestFilterSensitiveLog = exports.GetSubscriptionStateResponseFilterSensitiveLog = exports.GetSubscriptionStateRequestFilterSensitiveLog = exports.EnableProactiveEngagementResponseFilterSensitiveLog = exports.EnableProactiveEngagementRequestFilterSensitiveLog = void 0;
|
|
6
6
|
const ShieldServiceException_1 = require("./ShieldServiceException");
|
|
7
7
|
class AccessDeniedException extends ShieldServiceException_1.ShieldServiceException {
|
|
8
8
|
constructor(opts) {
|
|
@@ -578,6 +578,10 @@ const ListAttacksResponseFilterSensitiveLog = (obj) => ({
|
|
|
578
578
|
...obj,
|
|
579
579
|
});
|
|
580
580
|
exports.ListAttacksResponseFilterSensitiveLog = ListAttacksResponseFilterSensitiveLog;
|
|
581
|
+
const InclusionProtectionGroupFiltersFilterSensitiveLog = (obj) => ({
|
|
582
|
+
...obj,
|
|
583
|
+
});
|
|
584
|
+
exports.InclusionProtectionGroupFiltersFilterSensitiveLog = InclusionProtectionGroupFiltersFilterSensitiveLog;
|
|
581
585
|
const ListProtectionGroupsRequestFilterSensitiveLog = (obj) => ({
|
|
582
586
|
...obj,
|
|
583
587
|
});
|
|
@@ -586,6 +590,10 @@ const ListProtectionGroupsResponseFilterSensitiveLog = (obj) => ({
|
|
|
586
590
|
...obj,
|
|
587
591
|
});
|
|
588
592
|
exports.ListProtectionGroupsResponseFilterSensitiveLog = ListProtectionGroupsResponseFilterSensitiveLog;
|
|
593
|
+
const InclusionProtectionFiltersFilterSensitiveLog = (obj) => ({
|
|
594
|
+
...obj,
|
|
595
|
+
});
|
|
596
|
+
exports.InclusionProtectionFiltersFilterSensitiveLog = InclusionProtectionFiltersFilterSensitiveLog;
|
|
589
597
|
const ListProtectionsRequestFilterSensitiveLog = (obj) => ({
|
|
590
598
|
...obj,
|
|
591
599
|
});
|
|
@@ -2274,6 +2274,35 @@ const serializeAws_json1_1EnableProactiveEngagementRequest = (input, context) =>
|
|
|
2274
2274
|
const serializeAws_json1_1GetSubscriptionStateRequest = (input, context) => {
|
|
2275
2275
|
return {};
|
|
2276
2276
|
};
|
|
2277
|
+
const serializeAws_json1_1InclusionProtectionFilters = (input, context) => {
|
|
2278
|
+
return {
|
|
2279
|
+
...(input.ProtectionNames != null && {
|
|
2280
|
+
ProtectionNames: serializeAws_json1_1ProtectionNameFilters(input.ProtectionNames, context),
|
|
2281
|
+
}),
|
|
2282
|
+
...(input.ResourceArns != null && {
|
|
2283
|
+
ResourceArns: serializeAws_json1_1ResourceArnFilters(input.ResourceArns, context),
|
|
2284
|
+
}),
|
|
2285
|
+
...(input.ResourceTypes != null && {
|
|
2286
|
+
ResourceTypes: serializeAws_json1_1ProtectedResourceTypeFilters(input.ResourceTypes, context),
|
|
2287
|
+
}),
|
|
2288
|
+
};
|
|
2289
|
+
};
|
|
2290
|
+
const serializeAws_json1_1InclusionProtectionGroupFilters = (input, context) => {
|
|
2291
|
+
return {
|
|
2292
|
+
...(input.Aggregations != null && {
|
|
2293
|
+
Aggregations: serializeAws_json1_1ProtectionGroupAggregationFilters(input.Aggregations, context),
|
|
2294
|
+
}),
|
|
2295
|
+
...(input.Patterns != null && {
|
|
2296
|
+
Patterns: serializeAws_json1_1ProtectionGroupPatternFilters(input.Patterns, context),
|
|
2297
|
+
}),
|
|
2298
|
+
...(input.ProtectionGroupIds != null && {
|
|
2299
|
+
ProtectionGroupIds: serializeAws_json1_1ProtectionGroupIdFilters(input.ProtectionGroupIds, context),
|
|
2300
|
+
}),
|
|
2301
|
+
...(input.ResourceTypes != null && {
|
|
2302
|
+
ResourceTypes: serializeAws_json1_1ProtectedResourceTypeFilters(input.ResourceTypes, context),
|
|
2303
|
+
}),
|
|
2304
|
+
};
|
|
2305
|
+
};
|
|
2277
2306
|
const serializeAws_json1_1ListAttacksRequest = (input, context) => {
|
|
2278
2307
|
return {
|
|
2279
2308
|
...(input.EndTime != null && { EndTime: serializeAws_json1_1TimeRange(input.EndTime, context) }),
|
|
@@ -2287,12 +2316,18 @@ const serializeAws_json1_1ListAttacksRequest = (input, context) => {
|
|
|
2287
2316
|
};
|
|
2288
2317
|
const serializeAws_json1_1ListProtectionGroupsRequest = (input, context) => {
|
|
2289
2318
|
return {
|
|
2319
|
+
...(input.InclusionFilters != null && {
|
|
2320
|
+
InclusionFilters: serializeAws_json1_1InclusionProtectionGroupFilters(input.InclusionFilters, context),
|
|
2321
|
+
}),
|
|
2290
2322
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2291
2323
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2292
2324
|
};
|
|
2293
2325
|
};
|
|
2294
2326
|
const serializeAws_json1_1ListProtectionsRequest = (input, context) => {
|
|
2295
2327
|
return {
|
|
2328
|
+
...(input.InclusionFilters != null && {
|
|
2329
|
+
InclusionFilters: serializeAws_json1_1InclusionProtectionFilters(input.InclusionFilters, context),
|
|
2330
|
+
}),
|
|
2296
2331
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2297
2332
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2298
2333
|
};
|
|
@@ -2309,6 +2344,36 @@ const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
|
2309
2344
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
2310
2345
|
};
|
|
2311
2346
|
};
|
|
2347
|
+
const serializeAws_json1_1ProtectedResourceTypeFilters = (input, context) => {
|
|
2348
|
+
return input
|
|
2349
|
+
.filter((e) => e != null)
|
|
2350
|
+
.map((entry) => {
|
|
2351
|
+
if (entry === null) {
|
|
2352
|
+
return null;
|
|
2353
|
+
}
|
|
2354
|
+
return entry;
|
|
2355
|
+
});
|
|
2356
|
+
};
|
|
2357
|
+
const serializeAws_json1_1ProtectionGroupAggregationFilters = (input, context) => {
|
|
2358
|
+
return input
|
|
2359
|
+
.filter((e) => e != null)
|
|
2360
|
+
.map((entry) => {
|
|
2361
|
+
if (entry === null) {
|
|
2362
|
+
return null;
|
|
2363
|
+
}
|
|
2364
|
+
return entry;
|
|
2365
|
+
});
|
|
2366
|
+
};
|
|
2367
|
+
const serializeAws_json1_1ProtectionGroupIdFilters = (input, context) => {
|
|
2368
|
+
return input
|
|
2369
|
+
.filter((e) => e != null)
|
|
2370
|
+
.map((entry) => {
|
|
2371
|
+
if (entry === null) {
|
|
2372
|
+
return null;
|
|
2373
|
+
}
|
|
2374
|
+
return entry;
|
|
2375
|
+
});
|
|
2376
|
+
};
|
|
2312
2377
|
const serializeAws_json1_1ProtectionGroupMembers = (input, context) => {
|
|
2313
2378
|
return input
|
|
2314
2379
|
.filter((e) => e != null)
|
|
@@ -2319,6 +2384,26 @@ const serializeAws_json1_1ProtectionGroupMembers = (input, context) => {
|
|
|
2319
2384
|
return entry;
|
|
2320
2385
|
});
|
|
2321
2386
|
};
|
|
2387
|
+
const serializeAws_json1_1ProtectionGroupPatternFilters = (input, context) => {
|
|
2388
|
+
return input
|
|
2389
|
+
.filter((e) => e != null)
|
|
2390
|
+
.map((entry) => {
|
|
2391
|
+
if (entry === null) {
|
|
2392
|
+
return null;
|
|
2393
|
+
}
|
|
2394
|
+
return entry;
|
|
2395
|
+
});
|
|
2396
|
+
};
|
|
2397
|
+
const serializeAws_json1_1ProtectionNameFilters = (input, context) => {
|
|
2398
|
+
return input
|
|
2399
|
+
.filter((e) => e != null)
|
|
2400
|
+
.map((entry) => {
|
|
2401
|
+
if (entry === null) {
|
|
2402
|
+
return null;
|
|
2403
|
+
}
|
|
2404
|
+
return entry;
|
|
2405
|
+
});
|
|
2406
|
+
};
|
|
2322
2407
|
const serializeAws_json1_1ResourceArnFilterList = (input, context) => {
|
|
2323
2408
|
return input
|
|
2324
2409
|
.filter((e) => e != null)
|
|
@@ -2329,6 +2414,16 @@ const serializeAws_json1_1ResourceArnFilterList = (input, context) => {
|
|
|
2329
2414
|
return entry;
|
|
2330
2415
|
});
|
|
2331
2416
|
};
|
|
2417
|
+
const serializeAws_json1_1ResourceArnFilters = (input, context) => {
|
|
2418
|
+
return input
|
|
2419
|
+
.filter((e) => e != null)
|
|
2420
|
+
.map((entry) => {
|
|
2421
|
+
if (entry === null) {
|
|
2422
|
+
return null;
|
|
2423
|
+
}
|
|
2424
|
+
return entry;
|
|
2425
|
+
});
|
|
2426
|
+
};
|
|
2332
2427
|
const serializeAws_json1_1ResponseAction = (input, context) => {
|
|
2333
2428
|
return {
|
|
2334
2429
|
...(input.Block != null && { Block: serializeAws_json1_1BlockAction(input.Block, context) }),
|
|
@@ -318,8 +318,10 @@ export var GetSubscriptionStateRequestFilterSensitiveLog = function (obj) { retu
|
|
|
318
318
|
export var GetSubscriptionStateResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
319
319
|
export var ListAttacksRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
320
320
|
export var ListAttacksResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
321
|
+
export var InclusionProtectionGroupFiltersFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
321
322
|
export var ListProtectionGroupsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
322
323
|
export var ListProtectionGroupsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
324
|
+
export var InclusionProtectionFiltersFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
323
325
|
export var ListProtectionsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
324
326
|
export var ListProtectionsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
325
327
|
export var ListResourcesInProtectionGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -2872,16 +2872,40 @@ var serializeAws_json1_1EnableProactiveEngagementRequest = function (input, cont
|
|
|
2872
2872
|
var serializeAws_json1_1GetSubscriptionStateRequest = function (input, context) {
|
|
2873
2873
|
return {};
|
|
2874
2874
|
};
|
|
2875
|
+
var serializeAws_json1_1InclusionProtectionFilters = function (input, context) {
|
|
2876
|
+
return __assign(__assign(__assign({}, (input.ProtectionNames != null && {
|
|
2877
|
+
ProtectionNames: serializeAws_json1_1ProtectionNameFilters(input.ProtectionNames, context),
|
|
2878
|
+
})), (input.ResourceArns != null && {
|
|
2879
|
+
ResourceArns: serializeAws_json1_1ResourceArnFilters(input.ResourceArns, context),
|
|
2880
|
+
})), (input.ResourceTypes != null && {
|
|
2881
|
+
ResourceTypes: serializeAws_json1_1ProtectedResourceTypeFilters(input.ResourceTypes, context),
|
|
2882
|
+
}));
|
|
2883
|
+
};
|
|
2884
|
+
var serializeAws_json1_1InclusionProtectionGroupFilters = function (input, context) {
|
|
2885
|
+
return __assign(__assign(__assign(__assign({}, (input.Aggregations != null && {
|
|
2886
|
+
Aggregations: serializeAws_json1_1ProtectionGroupAggregationFilters(input.Aggregations, context),
|
|
2887
|
+
})), (input.Patterns != null && {
|
|
2888
|
+
Patterns: serializeAws_json1_1ProtectionGroupPatternFilters(input.Patterns, context),
|
|
2889
|
+
})), (input.ProtectionGroupIds != null && {
|
|
2890
|
+
ProtectionGroupIds: serializeAws_json1_1ProtectionGroupIdFilters(input.ProtectionGroupIds, context),
|
|
2891
|
+
})), (input.ResourceTypes != null && {
|
|
2892
|
+
ResourceTypes: serializeAws_json1_1ProtectedResourceTypeFilters(input.ResourceTypes, context),
|
|
2893
|
+
}));
|
|
2894
|
+
};
|
|
2875
2895
|
var serializeAws_json1_1ListAttacksRequest = function (input, context) {
|
|
2876
2896
|
return __assign(__assign(__assign(__assign(__assign({}, (input.EndTime != null && { EndTime: serializeAws_json1_1TimeRange(input.EndTime, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceArns != null && {
|
|
2877
2897
|
ResourceArns: serializeAws_json1_1ResourceArnFilterList(input.ResourceArns, context),
|
|
2878
2898
|
})), (input.StartTime != null && { StartTime: serializeAws_json1_1TimeRange(input.StartTime, context) }));
|
|
2879
2899
|
};
|
|
2880
2900
|
var serializeAws_json1_1ListProtectionGroupsRequest = function (input, context) {
|
|
2881
|
-
return __assign(__assign(
|
|
2901
|
+
return __assign(__assign(__assign({}, (input.InclusionFilters != null && {
|
|
2902
|
+
InclusionFilters: serializeAws_json1_1InclusionProtectionGroupFilters(input.InclusionFilters, context),
|
|
2903
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2882
2904
|
};
|
|
2883
2905
|
var serializeAws_json1_1ListProtectionsRequest = function (input, context) {
|
|
2884
|
-
return __assign(__assign(
|
|
2906
|
+
return __assign(__assign(__assign({}, (input.InclusionFilters != null && {
|
|
2907
|
+
InclusionFilters: serializeAws_json1_1InclusionProtectionFilters(input.InclusionFilters, context),
|
|
2908
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2885
2909
|
};
|
|
2886
2910
|
var serializeAws_json1_1ListResourcesInProtectionGroupRequest = function (input, context) {
|
|
2887
2911
|
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ProtectionGroupId != null && { ProtectionGroupId: input.ProtectionGroupId }));
|
|
@@ -2889,6 +2913,36 @@ var serializeAws_json1_1ListResourcesInProtectionGroupRequest = function (input,
|
|
|
2889
2913
|
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
2890
2914
|
return __assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN }));
|
|
2891
2915
|
};
|
|
2916
|
+
var serializeAws_json1_1ProtectedResourceTypeFilters = function (input, context) {
|
|
2917
|
+
return input
|
|
2918
|
+
.filter(function (e) { return e != null; })
|
|
2919
|
+
.map(function (entry) {
|
|
2920
|
+
if (entry === null) {
|
|
2921
|
+
return null;
|
|
2922
|
+
}
|
|
2923
|
+
return entry;
|
|
2924
|
+
});
|
|
2925
|
+
};
|
|
2926
|
+
var serializeAws_json1_1ProtectionGroupAggregationFilters = function (input, context) {
|
|
2927
|
+
return input
|
|
2928
|
+
.filter(function (e) { return e != null; })
|
|
2929
|
+
.map(function (entry) {
|
|
2930
|
+
if (entry === null) {
|
|
2931
|
+
return null;
|
|
2932
|
+
}
|
|
2933
|
+
return entry;
|
|
2934
|
+
});
|
|
2935
|
+
};
|
|
2936
|
+
var serializeAws_json1_1ProtectionGroupIdFilters = function (input, context) {
|
|
2937
|
+
return input
|
|
2938
|
+
.filter(function (e) { return e != null; })
|
|
2939
|
+
.map(function (entry) {
|
|
2940
|
+
if (entry === null) {
|
|
2941
|
+
return null;
|
|
2942
|
+
}
|
|
2943
|
+
return entry;
|
|
2944
|
+
});
|
|
2945
|
+
};
|
|
2892
2946
|
var serializeAws_json1_1ProtectionGroupMembers = function (input, context) {
|
|
2893
2947
|
return input
|
|
2894
2948
|
.filter(function (e) { return e != null; })
|
|
@@ -2899,6 +2953,26 @@ var serializeAws_json1_1ProtectionGroupMembers = function (input, context) {
|
|
|
2899
2953
|
return entry;
|
|
2900
2954
|
});
|
|
2901
2955
|
};
|
|
2956
|
+
var serializeAws_json1_1ProtectionGroupPatternFilters = function (input, context) {
|
|
2957
|
+
return input
|
|
2958
|
+
.filter(function (e) { return e != null; })
|
|
2959
|
+
.map(function (entry) {
|
|
2960
|
+
if (entry === null) {
|
|
2961
|
+
return null;
|
|
2962
|
+
}
|
|
2963
|
+
return entry;
|
|
2964
|
+
});
|
|
2965
|
+
};
|
|
2966
|
+
var serializeAws_json1_1ProtectionNameFilters = function (input, context) {
|
|
2967
|
+
return input
|
|
2968
|
+
.filter(function (e) { return e != null; })
|
|
2969
|
+
.map(function (entry) {
|
|
2970
|
+
if (entry === null) {
|
|
2971
|
+
return null;
|
|
2972
|
+
}
|
|
2973
|
+
return entry;
|
|
2974
|
+
});
|
|
2975
|
+
};
|
|
2902
2976
|
var serializeAws_json1_1ResourceArnFilterList = function (input, context) {
|
|
2903
2977
|
return input
|
|
2904
2978
|
.filter(function (e) { return e != null; })
|
|
@@ -2909,6 +2983,16 @@ var serializeAws_json1_1ResourceArnFilterList = function (input, context) {
|
|
|
2909
2983
|
return entry;
|
|
2910
2984
|
});
|
|
2911
2985
|
};
|
|
2986
|
+
var serializeAws_json1_1ResourceArnFilters = function (input, context) {
|
|
2987
|
+
return input
|
|
2988
|
+
.filter(function (e) { return e != null; })
|
|
2989
|
+
.map(function (entry) {
|
|
2990
|
+
if (entry === null) {
|
|
2991
|
+
return null;
|
|
2992
|
+
}
|
|
2993
|
+
return entry;
|
|
2994
|
+
});
|
|
2995
|
+
};
|
|
2912
2996
|
var serializeAws_json1_1ResponseAction = function (input, context) {
|
|
2913
2997
|
return __assign(__assign({}, (input.Block != null && { Block: serializeAws_json1_1BlockAction(input.Block, context) })), (input.Count != null && { Count: serializeAws_json1_1CountAction(input.Count, context) }));
|
|
2914
2998
|
};
|
package/dist-types/Shield.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ import { ShieldClient } from "./ShieldClient";
|
|
|
45
45
|
export declare class Shield extends ShieldClient {
|
|
46
46
|
/**
|
|
47
47
|
* <p>Authorizes the Shield Response Team (SRT) to access the specified Amazon S3 bucket containing log data such as Application Load Balancer access logs, CloudFront logs, or logs from third party sources. You can associate up to 10 Amazon S3 buckets with your subscription.</p>
|
|
48
|
-
* <p>To use the services of the SRT and make an <code>AssociateDRTLogBucket</code> request, you must be subscribed to the <a href="
|
|
48
|
+
* <p>To use the services of the SRT and make an <code>AssociateDRTLogBucket</code> request, you must be subscribed to the <a href="http://aws.amazon.com/premiumsupport/business-support/">Business Support plan</a> or the <a href="http://aws.amazon.com/premiumsupport/enterprise-support/">Enterprise Support plan</a>.</p>
|
|
49
49
|
*/
|
|
50
50
|
associateDRTLogBucket(args: AssociateDRTLogBucketCommandInput, options?: __HttpHandlerOptions): Promise<AssociateDRTLogBucketCommandOutput>;
|
|
51
51
|
associateDRTLogBucket(args: AssociateDRTLogBucketCommandInput, cb: (err: any, data?: AssociateDRTLogBucketCommandOutput) => void): void;
|
|
@@ -58,7 +58,7 @@ export declare class Shield extends ShieldClient {
|
|
|
58
58
|
*
|
|
59
59
|
* <p>The SRT will have access only to your WAF and Shield resources. By submitting this request, you authorize the SRT to inspect your WAF and Shield configuration and create and update WAF rules and web ACLs on your behalf. The SRT takes these actions only if explicitly authorized by you.</p>
|
|
60
60
|
* <p>You must have the <code>iam:PassRole</code> permission to make an <code>AssociateDRTRole</code> request. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html">Granting a user permissions to pass a role to an Amazon Web Services service</a>. </p>
|
|
61
|
-
* <p>To use the services of the SRT and make an <code>AssociateDRTRole</code> request, you must be subscribed to the <a href="
|
|
61
|
+
* <p>To use the services of the SRT and make an <code>AssociateDRTRole</code> request, you must be subscribed to the <a href="http://aws.amazon.com/premiumsupport/business-support/">Business Support plan</a> or the <a href="http://aws.amazon.com/premiumsupport/enterprise-support/">Enterprise Support plan</a>.</p>
|
|
62
62
|
*/
|
|
63
63
|
associateDRTRole(args: AssociateDRTRoleCommandInput, options?: __HttpHandlerOptions): Promise<AssociateDRTRoleCommandOutput>;
|
|
64
64
|
associateDRTRole(args: AssociateDRTRoleCommandInput, cb: (err: any, data?: AssociateDRTRoleCommandOutput) => void): void;
|
|
@@ -82,7 +82,7 @@ export declare class Shield extends ShieldClient {
|
|
|
82
82
|
associateProactiveEngagementDetails(args: AssociateProactiveEngagementDetailsCommandInput, cb: (err: any, data?: AssociateProactiveEngagementDetailsCommandOutput) => void): void;
|
|
83
83
|
associateProactiveEngagementDetails(args: AssociateProactiveEngagementDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateProactiveEngagementDetailsCommandOutput) => void): void;
|
|
84
84
|
/**
|
|
85
|
-
* <p>Enables Shield Advanced for a specific Amazon Web Services resource. The resource can be an Amazon CloudFront distribution,
|
|
85
|
+
* <p>Enables Shield Advanced for a specific Amazon Web Services resource. The resource can be an Amazon CloudFront distribution, Amazon Route 53 hosted zone, Global Accelerator standard accelerator, Elastic IP Address, Application Load Balancer, or a Classic Load Balancer. You can protect Amazon EC2 instances and Network Load Balancers by association with protected Amazon EC2 Elastic IP addresses.</p>
|
|
86
86
|
* <p>You can add protection to only a single resource with each <code>CreateProtection</code> request. You can add protection to multiple resources
|
|
87
87
|
* at once through the Shield Advanced console at <a href="https://console.aws.amazon.com/wafv2/shieldv2#/">https://console.aws.amazon.com/wafv2/shieldv2#/</a>.
|
|
88
88
|
* For more information see
|
|
@@ -100,8 +100,11 @@ export declare class Shield extends ShieldClient {
|
|
|
100
100
|
createProtectionGroup(args: CreateProtectionGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProtectionGroupCommandOutput) => void): void;
|
|
101
101
|
/**
|
|
102
102
|
* <p>Activates Shield Advanced for an account.</p>
|
|
103
|
-
*
|
|
104
|
-
*
|
|
103
|
+
* <note>
|
|
104
|
+
* <p>For accounts that are members of an Organizations organization, Shield Advanced subscriptions are billed against the organization's payer account,
|
|
105
|
+
* regardless of whether the payer account itself is subscribed. </p>
|
|
106
|
+
* </note>
|
|
107
|
+
* <p>When you initially 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 <code>UpdateSubscription</code> request. </p>
|
|
105
108
|
*/
|
|
106
109
|
createSubscription(args: CreateSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<CreateSubscriptionCommandOutput>;
|
|
107
110
|
createSubscription(args: CreateSubscriptionCommandInput, cb: (err: any, data?: CreateSubscriptionCommandOutput) => void): void;
|
|
@@ -171,7 +174,7 @@ export declare class Shield extends ShieldClient {
|
|
|
171
174
|
describeSubscription(args: DescribeSubscriptionCommandInput, cb: (err: any, data?: DescribeSubscriptionCommandOutput) => void): void;
|
|
172
175
|
describeSubscription(args: DescribeSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSubscriptionCommandOutput) => void): void;
|
|
173
176
|
/**
|
|
174
|
-
* <p>Disable the Shield Advanced automatic application layer DDoS mitigation feature for the resource. This
|
|
177
|
+
* <p>Disable the Shield Advanced automatic application layer DDoS mitigation feature for the protected resource. This
|
|
175
178
|
* stops Shield Advanced from creating, verifying, and applying WAF rules for attacks that it detects for the resource. </p>
|
|
176
179
|
*/
|
|
177
180
|
disableApplicationLayerAutomaticResponse(args: DisableApplicationLayerAutomaticResponseCommandInput, options?: __HttpHandlerOptions): Promise<DisableApplicationLayerAutomaticResponseCommandOutput>;
|
|
@@ -203,19 +206,20 @@ export declare class Shield extends ShieldClient {
|
|
|
203
206
|
disassociateHealthCheck(args: DisassociateHealthCheckCommandInput, cb: (err: any, data?: DisassociateHealthCheckCommandOutput) => void): void;
|
|
204
207
|
disassociateHealthCheck(args: DisassociateHealthCheckCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateHealthCheckCommandOutput) => void): void;
|
|
205
208
|
/**
|
|
206
|
-
* <p>Enable the Shield Advanced automatic application layer DDoS mitigation for the resource. </p>
|
|
209
|
+
* <p>Enable the Shield Advanced automatic application layer DDoS mitigation for the protected resource. </p>
|
|
207
210
|
* <note>
|
|
208
|
-
* <p>This feature is available for Amazon CloudFront distributions only.</p>
|
|
211
|
+
* <p>This feature is available for Amazon CloudFront distributions and Application Load Balancers only.</p>
|
|
209
212
|
* </note>
|
|
210
213
|
* <p>This causes Shield Advanced to create, verify, and apply WAF rules for DDoS attacks that it detects for the
|
|
211
214
|
* resource. Shield Advanced applies the rules in a Shield rule group inside the web ACL that you've associated
|
|
212
215
|
* with the resource. For information about how automatic mitigation works and the requirements for using it, see
|
|
213
216
|
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/ddos-advanced-automatic-app-layer-response.html">Shield Advanced automatic application layer DDoS mitigation</a>.</p>
|
|
214
|
-
* <
|
|
217
|
+
* <note>
|
|
218
|
+
* <p>Don't use this action to make changes to automatic mitigation settings when it's already enabled for a resource. Instead, use <a>UpdateApplicationLayerAutomaticResponse</a>.</p>
|
|
219
|
+
* </note>
|
|
215
220
|
* <p>To use this feature, you must associate a web ACL with the protected resource. The web ACL must be created using the latest version of WAF (v2). You can associate the web ACL through the Shield Advanced console
|
|
216
221
|
* at <a href="https://console.aws.amazon.com/wafv2/shieldv2#/">https://console.aws.amazon.com/wafv2/shieldv2#/</a>. For more information,
|
|
217
|
-
* see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html">Getting Started with Shield Advanced</a
|
|
218
|
-
* <p>You can also do this through the WAF console or the WAF API, but you must manage Shield Advanced automatic mitigation through Shield Advanced. For information about WAF, see
|
|
222
|
+
* see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html">Getting Started with Shield Advanced</a>. You can also associate the web ACL to the resource through the WAF console or the WAF API, but you must manage Shield Advanced automatic mitigation through Shield Advanced. For information about WAF, see
|
|
219
223
|
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">WAF Developer Guide</a>.</p>
|
|
220
224
|
*/
|
|
221
225
|
enableApplicationLayerAutomaticResponse(args: EnableApplicationLayerAutomaticResponseCommandInput, options?: __HttpHandlerOptions): Promise<EnableApplicationLayerAutomaticResponseCommandOutput>;
|
|
@@ -241,13 +245,15 @@ export declare class Shield extends ShieldClient {
|
|
|
241
245
|
listAttacks(args: ListAttacksCommandInput, cb: (err: any, data?: ListAttacksCommandOutput) => void): void;
|
|
242
246
|
listAttacks(args: ListAttacksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAttacksCommandOutput) => void): void;
|
|
243
247
|
/**
|
|
244
|
-
* <p>Retrieves
|
|
248
|
+
* <p>Retrieves <a>ProtectionGroup</a> objects for the account. You can retrieve all protection groups or you can provide
|
|
249
|
+
* filtering criteria and retrieve just the subset of protection groups that match the criteria. </p>
|
|
245
250
|
*/
|
|
246
251
|
listProtectionGroups(args: ListProtectionGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListProtectionGroupsCommandOutput>;
|
|
247
252
|
listProtectionGroups(args: ListProtectionGroupsCommandInput, cb: (err: any, data?: ListProtectionGroupsCommandOutput) => void): void;
|
|
248
253
|
listProtectionGroups(args: ListProtectionGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProtectionGroupsCommandOutput) => void): void;
|
|
249
254
|
/**
|
|
250
|
-
* <p>
|
|
255
|
+
* <p>Retrieves <a>Protection</a> objects for the account. You can retrieve all protections or you can provide
|
|
256
|
+
* filtering criteria and retrieve just the subset of protections that match the criteria. </p>
|
|
251
257
|
*/
|
|
252
258
|
listProtections(args: ListProtectionsCommandInput, options?: __HttpHandlerOptions): Promise<ListProtectionsCommandOutput>;
|
|
253
259
|
listProtections(args: ListProtectionsCommandInput, cb: (err: any, data?: ListProtectionsCommandOutput) => void): void;
|
|
@@ -296,6 +302,10 @@ export declare class Shield extends ShieldClient {
|
|
|
296
302
|
updateProtectionGroup(args: UpdateProtectionGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateProtectionGroupCommandOutput) => void): void;
|
|
297
303
|
/**
|
|
298
304
|
* <p>Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated.</p>
|
|
305
|
+
* <note>
|
|
306
|
+
* <p>For accounts that are members of an Organizations organization, Shield Advanced subscriptions are billed against the organization's payer account,
|
|
307
|
+
* regardless of whether the payer account itself is subscribed. </p>
|
|
308
|
+
* </note>
|
|
299
309
|
*/
|
|
300
310
|
updateSubscription(args: UpdateSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSubscriptionCommandOutput>;
|
|
301
311
|
updateSubscription(args: UpdateSubscriptionCommandInput, cb: (err: any, data?: UpdateSubscriptionCommandOutput) => void): void;
|
|
@@ -8,7 +8,7 @@ export interface AssociateDRTLogBucketCommandOutput extends AssociateDRTLogBucke
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Authorizes the Shield Response Team (SRT) to access the specified Amazon S3 bucket containing log data such as Application Load Balancer access logs, CloudFront logs, or logs from third party sources. You can associate up to 10 Amazon S3 buckets with your subscription.</p>
|
|
11
|
-
* <p>To use the services of the SRT and make an <code>AssociateDRTLogBucket</code> request, you must be subscribed to the <a href="
|
|
11
|
+
* <p>To use the services of the SRT and make an <code>AssociateDRTLogBucket</code> request, you must be subscribed to the <a href="http://aws.amazon.com/premiumsupport/business-support/">Business Support plan</a> or the <a href="http://aws.amazon.com/premiumsupport/enterprise-support/">Enterprise Support plan</a>.</p>
|
|
12
12
|
* @example
|
|
13
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
14
|
* ```javascript
|
|
@@ -14,7 +14,7 @@ export interface AssociateDRTRoleCommandOutput extends AssociateDRTRoleResponse,
|
|
|
14
14
|
*
|
|
15
15
|
* <p>The SRT will have access only to your WAF and Shield resources. By submitting this request, you authorize the SRT to inspect your WAF and Shield configuration and create and update WAF rules and web ACLs on your behalf. The SRT takes these actions only if explicitly authorized by you.</p>
|
|
16
16
|
* <p>You must have the <code>iam:PassRole</code> permission to make an <code>AssociateDRTRole</code> request. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html">Granting a user permissions to pass a role to an Amazon Web Services service</a>. </p>
|
|
17
|
-
* <p>To use the services of the SRT and make an <code>AssociateDRTRole</code> request, you must be subscribed to the <a href="
|
|
17
|
+
* <p>To use the services of the SRT and make an <code>AssociateDRTRole</code> request, you must be subscribed to the <a href="http://aws.amazon.com/premiumsupport/business-support/">Business Support plan</a> or the <a href="http://aws.amazon.com/premiumsupport/enterprise-support/">Enterprise Support plan</a>.</p>
|
|
18
18
|
* @example
|
|
19
19
|
* Use a bare-bones client and the command you need to make an API call.
|
|
20
20
|
* ```javascript
|
|
@@ -7,7 +7,7 @@ export interface CreateProtectionCommandInput extends CreateProtectionRequest {
|
|
|
7
7
|
export interface CreateProtectionCommandOutput extends CreateProtectionResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Enables Shield Advanced for a specific Amazon Web Services resource. The resource can be an Amazon CloudFront distribution,
|
|
10
|
+
* <p>Enables Shield Advanced for a specific Amazon Web Services resource. The resource can be an Amazon CloudFront distribution, Amazon Route 53 hosted zone, Global Accelerator standard accelerator, Elastic IP Address, Application Load Balancer, or a Classic Load Balancer. You can protect Amazon EC2 instances and Network Load Balancers by association with protected Amazon EC2 Elastic IP addresses.</p>
|
|
11
11
|
* <p>You can add protection to only a single resource with each <code>CreateProtection</code> request. You can add protection to multiple resources
|
|
12
12
|
* at once through the Shield Advanced console at <a href="https://console.aws.amazon.com/wafv2/shieldv2#/">https://console.aws.amazon.com/wafv2/shieldv2#/</a>.
|
|
13
13
|
* For more information see
|
|
@@ -8,8 +8,11 @@ export interface CreateSubscriptionCommandOutput extends CreateSubscriptionRespo
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Activates Shield Advanced for an account.</p>
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* <note>
|
|
12
|
+
* <p>For accounts that are members of an Organizations organization, Shield Advanced subscriptions are billed against the organization's payer account,
|
|
13
|
+
* regardless of whether the payer account itself is subscribed. </p>
|
|
14
|
+
* </note>
|
|
15
|
+
* <p>When you initially 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 <code>UpdateSubscription</code> request. </p>
|
|
13
16
|
* @example
|
|
14
17
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
18
|
* ```javascript
|
|
@@ -7,7 +7,7 @@ export interface DisableApplicationLayerAutomaticResponseCommandInput extends Di
|
|
|
7
7
|
export interface DisableApplicationLayerAutomaticResponseCommandOutput extends DisableApplicationLayerAutomaticResponseResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Disable the Shield Advanced automatic application layer DDoS mitigation feature for the resource. This
|
|
10
|
+
* <p>Disable the Shield Advanced automatic application layer DDoS mitigation feature for the protected resource. This
|
|
11
11
|
* stops Shield Advanced from creating, verifying, and applying WAF rules for attacks that it detects for the resource. </p>
|
|
12
12
|
* @example
|
|
13
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -7,19 +7,20 @@ export interface EnableApplicationLayerAutomaticResponseCommandInput extends Ena
|
|
|
7
7
|
export interface EnableApplicationLayerAutomaticResponseCommandOutput extends EnableApplicationLayerAutomaticResponseResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Enable the Shield Advanced automatic application layer DDoS mitigation for the resource. </p>
|
|
10
|
+
* <p>Enable the Shield Advanced automatic application layer DDoS mitigation for the protected resource. </p>
|
|
11
11
|
* <note>
|
|
12
|
-
* <p>This feature is available for Amazon CloudFront distributions only.</p>
|
|
12
|
+
* <p>This feature is available for Amazon CloudFront distributions and Application Load Balancers only.</p>
|
|
13
13
|
* </note>
|
|
14
14
|
* <p>This causes Shield Advanced to create, verify, and apply WAF rules for DDoS attacks that it detects for the
|
|
15
15
|
* resource. Shield Advanced applies the rules in a Shield rule group inside the web ACL that you've associated
|
|
16
16
|
* with the resource. For information about how automatic mitigation works and the requirements for using it, see
|
|
17
17
|
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/ddos-advanced-automatic-app-layer-response.html">Shield Advanced automatic application layer DDoS mitigation</a>.</p>
|
|
18
|
-
* <
|
|
18
|
+
* <note>
|
|
19
|
+
* <p>Don't use this action to make changes to automatic mitigation settings when it's already enabled for a resource. Instead, use <a>UpdateApplicationLayerAutomaticResponse</a>.</p>
|
|
20
|
+
* </note>
|
|
19
21
|
* <p>To use this feature, you must associate a web ACL with the protected resource. The web ACL must be created using the latest version of WAF (v2). You can associate the web ACL through the Shield Advanced console
|
|
20
22
|
* at <a href="https://console.aws.amazon.com/wafv2/shieldv2#/">https://console.aws.amazon.com/wafv2/shieldv2#/</a>. For more information,
|
|
21
|
-
* see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html">Getting Started with Shield Advanced</a
|
|
22
|
-
* <p>You can also do this through the WAF console or the WAF API, but you must manage Shield Advanced automatic mitigation through Shield Advanced. For information about WAF, see
|
|
23
|
+
* see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html">Getting Started with Shield Advanced</a>. You can also associate the web ACL to the resource through the WAF console or the WAF API, but you must manage Shield Advanced automatic mitigation through Shield Advanced. For information about WAF, see
|
|
23
24
|
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">WAF Developer Guide</a>.</p>
|
|
24
25
|
* @example
|
|
25
26
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -7,7 +7,8 @@ export interface ListProtectionGroupsCommandInput extends ListProtectionGroupsRe
|
|
|
7
7
|
export interface ListProtectionGroupsCommandOutput extends ListProtectionGroupsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Retrieves
|
|
10
|
+
* <p>Retrieves <a>ProtectionGroup</a> objects for the account. You can retrieve all protection groups or you can provide
|
|
11
|
+
* filtering criteria and retrieve just the subset of protection groups that match the criteria. </p>
|
|
11
12
|
* @example
|
|
12
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
14
|
* ```javascript
|
|
@@ -7,7 +7,8 @@ export interface ListProtectionsCommandInput extends ListProtectionsRequest {
|
|
|
7
7
|
export interface ListProtectionsCommandOutput extends ListProtectionsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>
|
|
10
|
+
* <p>Retrieves <a>Protection</a> objects for the account. You can retrieve all protections or you can provide
|
|
11
|
+
* filtering criteria and retrieve just the subset of protections that match the criteria. </p>
|
|
11
12
|
* @example
|
|
12
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
14
|
* ```javascript
|
|
@@ -8,6 +8,10 @@ export interface UpdateSubscriptionCommandOutput extends UpdateSubscriptionRespo
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated.</p>
|
|
11
|
+
* <note>
|
|
12
|
+
* <p>For accounts that are members of an Organizations organization, Shield Advanced subscriptions are billed against the organization's payer account,
|
|
13
|
+
* regardless of whether the payer account itself is subscribed. </p>
|
|
14
|
+
* </note>
|
|
11
15
|
* @example
|
|
12
16
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
17
|
* ```javascript
|
|
@@ -162,7 +162,7 @@ export declare class LimitsExceededException extends __BaseException {
|
|
|
162
162
|
constructor(opts: __ExceptionOptionType<LimitsExceededException, __BaseException>);
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
165
|
-
* <p>The ARN of the role that you
|
|
165
|
+
* <p>The ARN of the role that you specified does not exist.</p>
|
|
166
166
|
*/
|
|
167
167
|
export declare class NoAssociatedRoleException extends __BaseException {
|
|
168
168
|
readonly name: "NoAssociatedRoleException";
|
|
@@ -614,7 +614,7 @@ export interface CreateProtectionRequest {
|
|
|
614
614
|
* </p>
|
|
615
615
|
* </li>
|
|
616
616
|
* <li>
|
|
617
|
-
* <p>For an Global Accelerator accelerator: <code>arn:aws:globalaccelerator::<i>account-id</i>:accelerator/<i>accelerator-id</i>
|
|
617
|
+
* <p>For an Global Accelerator standard accelerator: <code>arn:aws:globalaccelerator::<i>account-id</i>:accelerator/<i>accelerator-id</i>
|
|
618
618
|
* </code>
|
|
619
619
|
* </p>
|
|
620
620
|
* </li>
|
|
@@ -759,7 +759,7 @@ export interface DescribeAttackRequest {
|
|
|
759
759
|
}
|
|
760
760
|
export interface DescribeAttackResponse {
|
|
761
761
|
/**
|
|
762
|
-
* <p>The attack that
|
|
762
|
+
* <p>The attack that you requested. </p>
|
|
763
763
|
*/
|
|
764
764
|
Attack?: AttackDetail;
|
|
765
765
|
}
|
|
@@ -780,7 +780,7 @@ export interface TimeRange {
|
|
|
780
780
|
}
|
|
781
781
|
export interface DescribeAttackStatisticsResponse {
|
|
782
782
|
/**
|
|
783
|
-
* <p>The time range
|
|
783
|
+
* <p>The time range of the attack.</p>
|
|
784
784
|
*/
|
|
785
785
|
TimeRange: TimeRange | undefined;
|
|
786
786
|
/**
|
|
@@ -810,13 +810,13 @@ export interface DescribeEmergencyContactSettingsResponse {
|
|
|
810
810
|
}
|
|
811
811
|
export interface DescribeProtectionRequest {
|
|
812
812
|
/**
|
|
813
|
-
* <p>The unique identifier (ID) for the <a>Protection</a> object
|
|
814
|
-
*
|
|
813
|
+
* <p>The unique identifier (ID) for the <a>Protection</a> object to describe.
|
|
814
|
+
* You must provide either the <code>ResourceArn</code> of the protected resource or the <code>ProtectionID</code> of the protection, but not both.</p>
|
|
815
815
|
*/
|
|
816
816
|
ProtectionId?: string;
|
|
817
817
|
/**
|
|
818
|
-
* <p>The ARN (Amazon Resource Name) of the Amazon Web Services resource
|
|
819
|
-
*
|
|
818
|
+
* <p>The ARN (Amazon Resource Name) of the protected Amazon Web Services resource.
|
|
819
|
+
* You must provide either the <code>ResourceArn</code> of the protected resource or the <code>ProtectionID</code> of the protection, but not both.</p>
|
|
820
820
|
*/
|
|
821
821
|
ResourceArn?: string;
|
|
822
822
|
}
|
|
@@ -853,7 +853,7 @@ export interface Protection {
|
|
|
853
853
|
}
|
|
854
854
|
export interface DescribeProtectionResponse {
|
|
855
855
|
/**
|
|
856
|
-
* <p>The <a>Protection</a>
|
|
856
|
+
* <p>The <a>Protection</a> that you requested. </p>
|
|
857
857
|
*/
|
|
858
858
|
Protection?: Protection;
|
|
859
859
|
}
|
|
@@ -887,7 +887,7 @@ export interface ProtectionGroup {
|
|
|
887
887
|
*/
|
|
888
888
|
Aggregation: ProtectionGroupAggregation | string | undefined;
|
|
889
889
|
/**
|
|
890
|
-
* <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
|
|
890
|
+
* <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>
|
|
891
891
|
*/
|
|
892
892
|
Pattern: ProtectionGroupPattern | string | undefined;
|
|
893
893
|
/**
|
|
@@ -896,7 +896,7 @@ export interface ProtectionGroup {
|
|
|
896
896
|
*/
|
|
897
897
|
ResourceType?: ProtectedResourceType | string;
|
|
898
898
|
/**
|
|
899
|
-
* <p>The Amazon Resource Names
|
|
899
|
+
* <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>
|
|
900
900
|
*/
|
|
901
901
|
Members: string[] | undefined;
|
|
902
902
|
/**
|
|
@@ -1031,7 +1031,7 @@ export interface DescribeSubscriptionResponse {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
export interface DisableApplicationLayerAutomaticResponseRequest {
|
|
1033
1033
|
/**
|
|
1034
|
-
* <p>The ARN (Amazon Resource Name) of the resource.</p>
|
|
1034
|
+
* <p>The ARN (Amazon Resource Name) of the protected resource.</p>
|
|
1035
1035
|
*/
|
|
1036
1036
|
ResourceArn: string | undefined;
|
|
1037
1037
|
}
|
|
@@ -1067,7 +1067,7 @@ export interface DisassociateHealthCheckResponse {
|
|
|
1067
1067
|
}
|
|
1068
1068
|
export interface EnableApplicationLayerAutomaticResponseRequest {
|
|
1069
1069
|
/**
|
|
1070
|
-
* <p>The ARN (Amazon Resource Name) of the resource.</p>
|
|
1070
|
+
* <p>The ARN (Amazon Resource Name) of the protected resource.</p>
|
|
1071
1071
|
*/
|
|
1072
1072
|
ResourceArn: string | undefined;
|
|
1073
1073
|
/**
|
|
@@ -1155,6 +1155,27 @@ export declare class InvalidPaginationTokenException extends __BaseException {
|
|
|
1155
1155
|
*/
|
|
1156
1156
|
constructor(opts: __ExceptionOptionType<InvalidPaginationTokenException, __BaseException>);
|
|
1157
1157
|
}
|
|
1158
|
+
/**
|
|
1159
|
+
* <p>Narrows the set of protection groups that the call retrieves. You can retrieve a single protection group by its name and you can retrieve all protection groups that are configured with a specific pattern, aggregation, or resource type. You can provide up to one criteria per filter type. Shield Advanced returns the protection groups that exactly match all of the search criteria that you provide.</p>
|
|
1160
|
+
*/
|
|
1161
|
+
export interface InclusionProtectionGroupFilters {
|
|
1162
|
+
/**
|
|
1163
|
+
* <p>The ID of the protection group that you want to retrieve. </p>
|
|
1164
|
+
*/
|
|
1165
|
+
ProtectionGroupIds?: string[];
|
|
1166
|
+
/**
|
|
1167
|
+
* <p>The pattern specification of the protection groups that you want to retrieve. </p>
|
|
1168
|
+
*/
|
|
1169
|
+
Patterns?: (ProtectionGroupPattern | string)[];
|
|
1170
|
+
/**
|
|
1171
|
+
* <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>
|
|
1172
|
+
*/
|
|
1173
|
+
ResourceTypes?: (ProtectedResourceType | string)[];
|
|
1174
|
+
/**
|
|
1175
|
+
* <p>The aggregation setting of the protection groups that you want to retrieve. </p>
|
|
1176
|
+
*/
|
|
1177
|
+
Aggregations?: (ProtectionGroupAggregation | string)[];
|
|
1178
|
+
}
|
|
1158
1179
|
export interface ListProtectionGroupsRequest {
|
|
1159
1180
|
/**
|
|
1160
1181
|
* <p>When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects,
|
|
@@ -1173,6 +1194,10 @@ export interface ListProtectionGroupsRequest {
|
|
|
1173
1194
|
* <p>The default setting is 20.</p>
|
|
1174
1195
|
*/
|
|
1175
1196
|
MaxResults?: number;
|
|
1197
|
+
/**
|
|
1198
|
+
* <p>Narrows the set of protection groups that the call retrieves. You can retrieve a single protection group by its name and you can retrieve all protection groups that are configured with specific pattern or aggregation settings. You can provide up to one criteria per filter type. Shield Advanced returns the protection groups that exactly match all of the search criteria that you provide.</p>
|
|
1199
|
+
*/
|
|
1200
|
+
InclusionFilters?: InclusionProtectionGroupFilters;
|
|
1176
1201
|
}
|
|
1177
1202
|
export interface ListProtectionGroupsResponse {
|
|
1178
1203
|
/**
|
|
@@ -1189,6 +1214,23 @@ export interface ListProtectionGroupsResponse {
|
|
|
1189
1214
|
*/
|
|
1190
1215
|
NextToken?: string;
|
|
1191
1216
|
}
|
|
1217
|
+
/**
|
|
1218
|
+
* <p>Narrows the set of protections that the call retrieves. You can retrieve a single protection by providing its name or the ARN (Amazon Resource Name) of its protected resource. You can also retrieve all protections for a specific resource type. You can provide up to one criteria per filter type. Shield Advanced returns protections that exactly match all of the filter criteria that you provide.</p>
|
|
1219
|
+
*/
|
|
1220
|
+
export interface InclusionProtectionFilters {
|
|
1221
|
+
/**
|
|
1222
|
+
* <p>The ARN (Amazon Resource Name) of the resource whose protection you want to retrieve. </p>
|
|
1223
|
+
*/
|
|
1224
|
+
ResourceArns?: string[];
|
|
1225
|
+
/**
|
|
1226
|
+
* <p>The name of the protection that you want to retrieve. </p>
|
|
1227
|
+
*/
|
|
1228
|
+
ProtectionNames?: string[];
|
|
1229
|
+
/**
|
|
1230
|
+
* <p>The type of protected resource whose protections you want to retrieve. </p>
|
|
1231
|
+
*/
|
|
1232
|
+
ResourceTypes?: (ProtectedResourceType | string)[];
|
|
1233
|
+
}
|
|
1192
1234
|
export interface ListProtectionsRequest {
|
|
1193
1235
|
/**
|
|
1194
1236
|
* <p>When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects,
|
|
@@ -1207,6 +1249,10 @@ export interface ListProtectionsRequest {
|
|
|
1207
1249
|
* <p>The default setting is 20.</p>
|
|
1208
1250
|
*/
|
|
1209
1251
|
MaxResults?: number;
|
|
1252
|
+
/**
|
|
1253
|
+
* <p>Narrows the set of protections that the call retrieves. You can retrieve a single protection by providing its name or the ARN (Amazon Resource Name) of its protected resource. You can also retrieve all protections for a specific resource type. You can provide up to one criteria per filter type. Shield Advanced returns protections that exactly match all of the filter criteria that you provide.</p>
|
|
1254
|
+
*/
|
|
1255
|
+
InclusionFilters?: InclusionProtectionFilters;
|
|
1210
1256
|
}
|
|
1211
1257
|
export interface ListProtectionsResponse {
|
|
1212
1258
|
/**
|
|
@@ -1688,6 +1734,10 @@ export declare const ListAttacksRequestFilterSensitiveLog: (obj: ListAttacksRequ
|
|
|
1688
1734
|
* @internal
|
|
1689
1735
|
*/
|
|
1690
1736
|
export declare const ListAttacksResponseFilterSensitiveLog: (obj: ListAttacksResponse) => any;
|
|
1737
|
+
/**
|
|
1738
|
+
* @internal
|
|
1739
|
+
*/
|
|
1740
|
+
export declare const InclusionProtectionGroupFiltersFilterSensitiveLog: (obj: InclusionProtectionGroupFilters) => any;
|
|
1691
1741
|
/**
|
|
1692
1742
|
* @internal
|
|
1693
1743
|
*/
|
|
@@ -1696,6 +1746,10 @@ export declare const ListProtectionGroupsRequestFilterSensitiveLog: (obj: ListPr
|
|
|
1696
1746
|
* @internal
|
|
1697
1747
|
*/
|
|
1698
1748
|
export declare const ListProtectionGroupsResponseFilterSensitiveLog: (obj: ListProtectionGroupsResponse) => any;
|
|
1749
|
+
/**
|
|
1750
|
+
* @internal
|
|
1751
|
+
*/
|
|
1752
|
+
export declare const InclusionProtectionFiltersFilterSensitiveLog: (obj: InclusionProtectionFilters) => any;
|
|
1699
1753
|
/**
|
|
1700
1754
|
* @internal
|
|
1701
1755
|
*/
|
|
@@ -609,11 +609,24 @@ export declare class InvalidPaginationTokenException extends __BaseException {
|
|
|
609
609
|
|
|
610
610
|
constructor(opts: __ExceptionOptionType<InvalidPaginationTokenException, __BaseException>);
|
|
611
611
|
}
|
|
612
|
+
|
|
613
|
+
export interface InclusionProtectionGroupFilters {
|
|
614
|
+
|
|
615
|
+
ProtectionGroupIds?: string[];
|
|
616
|
+
|
|
617
|
+
Patterns?: (ProtectionGroupPattern | string)[];
|
|
618
|
+
|
|
619
|
+
ResourceTypes?: (ProtectedResourceType | string)[];
|
|
620
|
+
|
|
621
|
+
Aggregations?: (ProtectionGroupAggregation | string)[];
|
|
622
|
+
}
|
|
612
623
|
export interface ListProtectionGroupsRequest {
|
|
613
624
|
|
|
614
625
|
NextToken?: string;
|
|
615
626
|
|
|
616
627
|
MaxResults?: number;
|
|
628
|
+
|
|
629
|
+
InclusionFilters?: InclusionProtectionGroupFilters;
|
|
617
630
|
}
|
|
618
631
|
export interface ListProtectionGroupsResponse {
|
|
619
632
|
|
|
@@ -621,11 +634,22 @@ export interface ListProtectionGroupsResponse {
|
|
|
621
634
|
|
|
622
635
|
NextToken?: string;
|
|
623
636
|
}
|
|
637
|
+
|
|
638
|
+
export interface InclusionProtectionFilters {
|
|
639
|
+
|
|
640
|
+
ResourceArns?: string[];
|
|
641
|
+
|
|
642
|
+
ProtectionNames?: string[];
|
|
643
|
+
|
|
644
|
+
ResourceTypes?: (ProtectedResourceType | string)[];
|
|
645
|
+
}
|
|
624
646
|
export interface ListProtectionsRequest {
|
|
625
647
|
|
|
626
648
|
NextToken?: string;
|
|
627
649
|
|
|
628
650
|
MaxResults?: number;
|
|
651
|
+
|
|
652
|
+
InclusionFilters?: InclusionProtectionFilters;
|
|
629
653
|
}
|
|
630
654
|
export interface ListProtectionsResponse {
|
|
631
655
|
|
|
@@ -868,10 +892,14 @@ export declare const ListAttacksRequestFilterSensitiveLog: (obj: ListAttacksRequ
|
|
|
868
892
|
|
|
869
893
|
export declare const ListAttacksResponseFilterSensitiveLog: (obj: ListAttacksResponse) => any;
|
|
870
894
|
|
|
895
|
+
export declare const InclusionProtectionGroupFiltersFilterSensitiveLog: (obj: InclusionProtectionGroupFilters) => any;
|
|
896
|
+
|
|
871
897
|
export declare const ListProtectionGroupsRequestFilterSensitiveLog: (obj: ListProtectionGroupsRequest) => any;
|
|
872
898
|
|
|
873
899
|
export declare const ListProtectionGroupsResponseFilterSensitiveLog: (obj: ListProtectionGroupsResponse) => any;
|
|
874
900
|
|
|
901
|
+
export declare const InclusionProtectionFiltersFilterSensitiveLog: (obj: InclusionProtectionFilters) => any;
|
|
902
|
+
|
|
875
903
|
export declare const ListProtectionsRequestFilterSensitiveLog: (obj: ListProtectionsRequest) => any;
|
|
876
904
|
|
|
877
905
|
export declare const ListProtectionsResponseFilterSensitiveLog: (obj: ListProtectionsResponse) => any;
|
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.
|
|
4
|
+
"version": "3.140.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",
|