@aws-sdk/client-shield 3.35.0 → 3.38.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 +47 -0
- package/dist-cjs/Shield.js +0 -7
- package/dist-cjs/ShieldClient.js +0 -12
- package/dist-cjs/commands/AssociateDRTLogBucketCommand.js +0 -26
- package/dist-cjs/commands/AssociateDRTRoleCommand.js +0 -31
- package/dist-cjs/commands/AssociateHealthCheckCommand.js +0 -26
- package/dist-cjs/commands/AssociateProactiveEngagementDetailsCommand.js +0 -30
- package/dist-cjs/commands/CreateProtectionCommand.js +0 -26
- package/dist-cjs/commands/CreateProtectionGroupCommand.js +0 -25
- package/dist-cjs/commands/CreateSubscriptionCommand.js +0 -27
- package/dist-cjs/commands/DeleteProtectionCommand.js +0 -25
- package/dist-cjs/commands/DeleteProtectionGroupCommand.js +0 -25
- package/dist-cjs/commands/DeleteSubscriptionCommand.js +0 -27
- package/dist-cjs/commands/DescribeAttackCommand.js +0 -25
- package/dist-cjs/commands/DescribeAttackStatisticsCommand.js +0 -27
- package/dist-cjs/commands/DescribeDRTAccessCommand.js +0 -25
- package/dist-cjs/commands/DescribeEmergencyContactSettingsCommand.js +0 -25
- package/dist-cjs/commands/DescribeProtectionCommand.js +0 -25
- package/dist-cjs/commands/DescribeProtectionGroupCommand.js +0 -25
- package/dist-cjs/commands/DescribeSubscriptionCommand.js +0 -25
- package/dist-cjs/commands/DisableProactiveEngagementCommand.js +0 -25
- package/dist-cjs/commands/DisassociateDRTLogBucketCommand.js +0 -26
- package/dist-cjs/commands/DisassociateDRTRoleCommand.js +0 -26
- package/dist-cjs/commands/DisassociateHealthCheckCommand.js +0 -26
- package/dist-cjs/commands/EnableProactiveEngagementCommand.js +0 -25
- package/dist-cjs/commands/GetSubscriptionStateCommand.js +0 -25
- package/dist-cjs/commands/ListAttacksCommand.js +0 -26
- package/dist-cjs/commands/ListProtectionGroupsCommand.js +0 -25
- package/dist-cjs/commands/ListProtectionsCommand.js +0 -25
- package/dist-cjs/commands/ListResourcesInProtectionGroupCommand.js +0 -25
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/TagResourceCommand.js +0 -25
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UpdateEmergencyContactSettingsCommand.js +0 -25
- package/dist-cjs/commands/UpdateProtectionGroupCommand.js +0 -25
- package/dist-cjs/commands/UpdateSubscriptionCommand.js +0 -25
- package/dist-cjs/commands/index.js +36 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -41
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -313
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListAttacksPaginator.js +0 -11
- package/dist-cjs/pagination/ListProtectionGroupsPaginator.js +0 -11
- package/dist-cjs/pagination/ListProtectionsPaginator.js +0 -11
- package/dist-cjs/pagination/ListResourcesInProtectionGroupPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/Shield.js +0 -1
- package/dist-es/ShieldClient.js +0 -1
- package/dist-es/commands/AssociateDRTLogBucketCommand.js +0 -1
- package/dist-es/commands/AssociateDRTRoleCommand.js +0 -1
- package/dist-es/commands/AssociateHealthCheckCommand.js +0 -1
- package/dist-es/commands/AssociateProactiveEngagementDetailsCommand.js +0 -1
- package/dist-es/commands/CreateProtectionCommand.js +0 -1
- package/dist-es/commands/CreateProtectionGroupCommand.js +0 -1
- package/dist-es/commands/CreateSubscriptionCommand.js +0 -1
- package/dist-es/commands/DeleteProtectionCommand.js +0 -1
- package/dist-es/commands/DeleteProtectionGroupCommand.js +0 -1
- package/dist-es/commands/DeleteSubscriptionCommand.js +0 -1
- package/dist-es/commands/DescribeAttackCommand.js +0 -1
- package/dist-es/commands/DescribeAttackStatisticsCommand.js +0 -1
- package/dist-es/commands/DescribeDRTAccessCommand.js +0 -1
- package/dist-es/commands/DescribeEmergencyContactSettingsCommand.js +0 -1
- package/dist-es/commands/DescribeProtectionCommand.js +0 -1
- package/dist-es/commands/DescribeProtectionGroupCommand.js +0 -1
- package/dist-es/commands/DescribeSubscriptionCommand.js +0 -1
- package/dist-es/commands/DisableProactiveEngagementCommand.js +0 -1
- package/dist-es/commands/DisassociateDRTLogBucketCommand.js +0 -1
- package/dist-es/commands/DisassociateDRTRoleCommand.js +0 -1
- package/dist-es/commands/DisassociateHealthCheckCommand.js +0 -1
- package/dist-es/commands/EnableProactiveEngagementCommand.js +0 -1
- package/dist-es/commands/GetSubscriptionStateCommand.js +0 -1
- package/dist-es/commands/ListAttacksCommand.js +0 -1
- package/dist-es/commands/ListProtectionGroupsCommand.js +0 -1
- package/dist-es/commands/ListProtectionsCommand.js +0 -1
- package/dist-es/commands/ListResourcesInProtectionGroupCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateEmergencyContactSettingsCommand.js +0 -1
- package/dist-es/commands/UpdateProtectionGroupCommand.js +0 -1
- package/dist-es/commands/UpdateSubscriptionCommand.js +0 -1
- package/dist-es/commands/index.js +33 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -41
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListAttacksPaginator.js +0 -1
- package/dist-es/pagination/ListProtectionGroupsPaginator.js +0 -1
- package/dist-es/pagination/ListProtectionsPaginator.js +0 -1
- package/dist-es/pagination/ListResourcesInProtectionGroupPaginator.js +0 -1
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +33 -0
- package/dist-types/index.d.ts +4 -40
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/Shield.d.ts +34 -129
- package/dist-types/ts3.4/ShieldClient.d.ts +24 -92
- package/dist-types/ts3.4/commands/AssociateDRTLogBucketCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/AssociateDRTRoleCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/AssociateHealthCheckCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/AssociateProactiveEngagementDetailsCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/CreateProtectionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/CreateProtectionGroupCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CreateSubscriptionCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteProtectionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteProtectionGroupCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteSubscriptionCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeAttackCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeAttackStatisticsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeDRTAccessCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeEmergencyContactSettingsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeProtectionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeProtectionGroupCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeSubscriptionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DisableProactiveEngagementCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DisassociateDRTLogBucketCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DisassociateDRTRoleCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DisassociateHealthCheckCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/EnableProactiveEngagementCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetSubscriptionStateCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListAttacksCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListProtectionGroupsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListProtectionsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListResourcesInProtectionGroupCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateEmergencyContactSettingsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateProtectionGroupCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateSubscriptionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +33 -0
- package/dist-types/ts3.4/index.d.ts +4 -40
- package/dist-types/ts3.4/models/models_0.d.ts +292 -1041
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/Shield.js.map +0 -1
- package/dist-cjs/ShieldClient.js.map +0 -1
- package/dist-cjs/commands/AssociateDRTLogBucketCommand.js.map +0 -1
- package/dist-cjs/commands/AssociateDRTRoleCommand.js.map +0 -1
- package/dist-cjs/commands/AssociateHealthCheckCommand.js.map +0 -1
- package/dist-cjs/commands/AssociateProactiveEngagementDetailsCommand.js.map +0 -1
- package/dist-cjs/commands/CreateProtectionCommand.js.map +0 -1
- package/dist-cjs/commands/CreateProtectionGroupCommand.js.map +0 -1
- package/dist-cjs/commands/CreateSubscriptionCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteProtectionCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteProtectionGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteSubscriptionCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeAttackCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeAttackStatisticsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeDRTAccessCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeEmergencyContactSettingsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeProtectionCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeProtectionGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeSubscriptionCommand.js.map +0 -1
- package/dist-cjs/commands/DisableProactiveEngagementCommand.js.map +0 -1
- package/dist-cjs/commands/DisassociateDRTLogBucketCommand.js.map +0 -1
- package/dist-cjs/commands/DisassociateDRTRoleCommand.js.map +0 -1
- package/dist-cjs/commands/DisassociateHealthCheckCommand.js.map +0 -1
- package/dist-cjs/commands/EnableProactiveEngagementCommand.js.map +0 -1
- package/dist-cjs/commands/GetSubscriptionStateCommand.js.map +0 -1
- package/dist-cjs/commands/ListAttacksCommand.js.map +0 -1
- package/dist-cjs/commands/ListProtectionGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/ListProtectionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListResourcesInProtectionGroupCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateEmergencyContactSettingsCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateProtectionGroupCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateSubscriptionCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListAttacksPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListProtectionGroupsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListProtectionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListResourcesInProtectionGroupPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/Shield.js.map +0 -1
- package/dist-es/ShieldClient.js.map +0 -1
- package/dist-es/commands/AssociateDRTLogBucketCommand.js.map +0 -1
- package/dist-es/commands/AssociateDRTRoleCommand.js.map +0 -1
- package/dist-es/commands/AssociateHealthCheckCommand.js.map +0 -1
- package/dist-es/commands/AssociateProactiveEngagementDetailsCommand.js.map +0 -1
- package/dist-es/commands/CreateProtectionCommand.js.map +0 -1
- package/dist-es/commands/CreateProtectionGroupCommand.js.map +0 -1
- package/dist-es/commands/CreateSubscriptionCommand.js.map +0 -1
- package/dist-es/commands/DeleteProtectionCommand.js.map +0 -1
- package/dist-es/commands/DeleteProtectionGroupCommand.js.map +0 -1
- package/dist-es/commands/DeleteSubscriptionCommand.js.map +0 -1
- package/dist-es/commands/DescribeAttackCommand.js.map +0 -1
- package/dist-es/commands/DescribeAttackStatisticsCommand.js.map +0 -1
- package/dist-es/commands/DescribeDRTAccessCommand.js.map +0 -1
- package/dist-es/commands/DescribeEmergencyContactSettingsCommand.js.map +0 -1
- package/dist-es/commands/DescribeProtectionCommand.js.map +0 -1
- package/dist-es/commands/DescribeProtectionGroupCommand.js.map +0 -1
- package/dist-es/commands/DescribeSubscriptionCommand.js.map +0 -1
- package/dist-es/commands/DisableProactiveEngagementCommand.js.map +0 -1
- package/dist-es/commands/DisassociateDRTLogBucketCommand.js.map +0 -1
- package/dist-es/commands/DisassociateDRTRoleCommand.js.map +0 -1
- package/dist-es/commands/DisassociateHealthCheckCommand.js.map +0 -1
- package/dist-es/commands/EnableProactiveEngagementCommand.js.map +0 -1
- package/dist-es/commands/GetSubscriptionStateCommand.js.map +0 -1
- package/dist-es/commands/ListAttacksCommand.js.map +0 -1
- package/dist-es/commands/ListProtectionGroupsCommand.js.map +0 -1
- package/dist-es/commands/ListProtectionsCommand.js.map +0 -1
- package/dist-es/commands/ListResourcesInProtectionGroupCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateEmergencyContactSettingsCommand.js.map +0 -1
- package/dist-es/commands/UpdateProtectionGroupCommand.js.map +0 -1
- package/dist-es/commands/UpdateSubscriptionCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListAttacksPaginator.js.map +0 -1
- package/dist-es/pagination/ListProtectionGroupsPaginator.js.map +0 -1
- package/dist-es/pagination/ListProtectionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListResourcesInProtectionGroupPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/Shield.ts +0 -1236
- package/src/ShieldClient.ts +0 -398
- package/src/commands/AssociateDRTLogBucketCommand.ts +0 -96
- package/src/commands/AssociateDRTRoleCommand.ts +0 -101
- package/src/commands/AssociateHealthCheckCommand.ts +0 -96
- package/src/commands/AssociateProactiveEngagementDetailsCommand.ts +0 -111
- package/src/commands/CreateProtectionCommand.ts +0 -96
- package/src/commands/CreateProtectionGroupCommand.ts +0 -95
- package/src/commands/CreateSubscriptionCommand.ts +0 -97
- package/src/commands/DeleteProtectionCommand.ts +0 -95
- package/src/commands/DeleteProtectionGroupCommand.ts +0 -95
- package/src/commands/DeleteSubscriptionCommand.ts +0 -97
- package/src/commands/DescribeAttackCommand.ts +0 -95
- package/src/commands/DescribeAttackStatisticsCommand.ts +0 -97
- package/src/commands/DescribeDRTAccessCommand.ts +0 -95
- package/src/commands/DescribeEmergencyContactSettingsCommand.ts +0 -103
- package/src/commands/DescribeProtectionCommand.ts +0 -95
- package/src/commands/DescribeProtectionGroupCommand.ts +0 -95
- package/src/commands/DescribeSubscriptionCommand.ts +0 -95
- package/src/commands/DisableProactiveEngagementCommand.ts +0 -98
- package/src/commands/DisassociateDRTLogBucketCommand.ts +0 -96
- package/src/commands/DisassociateDRTRoleCommand.ts +0 -96
- package/src/commands/DisassociateHealthCheckCommand.ts +0 -96
- package/src/commands/EnableProactiveEngagementCommand.ts +0 -98
- package/src/commands/GetSubscriptionStateCommand.ts +0 -95
- package/src/commands/ListAttacksCommand.ts +0 -96
- package/src/commands/ListProtectionGroupsCommand.ts +0 -95
- package/src/commands/ListProtectionsCommand.ts +0 -95
- package/src/commands/ListResourcesInProtectionGroupCommand.ts +0 -103
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateEmergencyContactSettingsCommand.ts +0 -103
- package/src/commands/UpdateProtectionGroupCommand.ts +0 -95
- package/src/commands/UpdateSubscriptionCommand.ts +0 -95
- package/src/endpoints.ts +0 -68
- package/src/index.ts +0 -41
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2292
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListAttacksPaginator.ts +0 -55
- package/src/pagination/ListProtectionGroupsPaginator.ts +0 -59
- package/src/pagination/ListProtectionsPaginator.ts +0 -59
- package/src/pagination/ListResourcesInProtectionGroupPaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -4754
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/src/ShieldClient.ts
DELETED
|
@@ -1,398 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EndpointsInputConfig,
|
|
3
|
-
EndpointsResolvedConfig,
|
|
4
|
-
RegionInputConfig,
|
|
5
|
-
RegionResolvedConfig,
|
|
6
|
-
resolveEndpointsConfig,
|
|
7
|
-
resolveRegionConfig,
|
|
8
|
-
} from "@aws-sdk/config-resolver";
|
|
9
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
10
|
-
import {
|
|
11
|
-
getHostHeaderPlugin,
|
|
12
|
-
HostHeaderInputConfig,
|
|
13
|
-
HostHeaderResolvedConfig,
|
|
14
|
-
resolveHostHeaderConfig,
|
|
15
|
-
} from "@aws-sdk/middleware-host-header";
|
|
16
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
17
|
-
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
18
|
-
import {
|
|
19
|
-
AwsAuthInputConfig,
|
|
20
|
-
AwsAuthResolvedConfig,
|
|
21
|
-
getAwsAuthPlugin,
|
|
22
|
-
resolveAwsAuthConfig,
|
|
23
|
-
} from "@aws-sdk/middleware-signing";
|
|
24
|
-
import {
|
|
25
|
-
getUserAgentPlugin,
|
|
26
|
-
resolveUserAgentConfig,
|
|
27
|
-
UserAgentInputConfig,
|
|
28
|
-
UserAgentResolvedConfig,
|
|
29
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
30
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
31
|
-
import {
|
|
32
|
-
Client as __Client,
|
|
33
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
34
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
35
|
-
} from "@aws-sdk/smithy-client";
|
|
36
|
-
import {
|
|
37
|
-
Credentials as __Credentials,
|
|
38
|
-
Decoder as __Decoder,
|
|
39
|
-
Encoder as __Encoder,
|
|
40
|
-
Hash as __Hash,
|
|
41
|
-
HashConstructor as __HashConstructor,
|
|
42
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
43
|
-
Logger as __Logger,
|
|
44
|
-
Provider as __Provider,
|
|
45
|
-
Provider,
|
|
46
|
-
RegionInfoProvider,
|
|
47
|
-
StreamCollector as __StreamCollector,
|
|
48
|
-
UrlParser as __UrlParser,
|
|
49
|
-
UserAgent as __UserAgent,
|
|
50
|
-
} from "@aws-sdk/types";
|
|
51
|
-
|
|
52
|
-
import {
|
|
53
|
-
AssociateDRTLogBucketCommandInput,
|
|
54
|
-
AssociateDRTLogBucketCommandOutput,
|
|
55
|
-
} from "./commands/AssociateDRTLogBucketCommand";
|
|
56
|
-
import { AssociateDRTRoleCommandInput, AssociateDRTRoleCommandOutput } from "./commands/AssociateDRTRoleCommand";
|
|
57
|
-
import {
|
|
58
|
-
AssociateHealthCheckCommandInput,
|
|
59
|
-
AssociateHealthCheckCommandOutput,
|
|
60
|
-
} from "./commands/AssociateHealthCheckCommand";
|
|
61
|
-
import {
|
|
62
|
-
AssociateProactiveEngagementDetailsCommandInput,
|
|
63
|
-
AssociateProactiveEngagementDetailsCommandOutput,
|
|
64
|
-
} from "./commands/AssociateProactiveEngagementDetailsCommand";
|
|
65
|
-
import { CreateProtectionCommandInput, CreateProtectionCommandOutput } from "./commands/CreateProtectionCommand";
|
|
66
|
-
import {
|
|
67
|
-
CreateProtectionGroupCommandInput,
|
|
68
|
-
CreateProtectionGroupCommandOutput,
|
|
69
|
-
} from "./commands/CreateProtectionGroupCommand";
|
|
70
|
-
import { CreateSubscriptionCommandInput, CreateSubscriptionCommandOutput } from "./commands/CreateSubscriptionCommand";
|
|
71
|
-
import { DeleteProtectionCommandInput, DeleteProtectionCommandOutput } from "./commands/DeleteProtectionCommand";
|
|
72
|
-
import {
|
|
73
|
-
DeleteProtectionGroupCommandInput,
|
|
74
|
-
DeleteProtectionGroupCommandOutput,
|
|
75
|
-
} from "./commands/DeleteProtectionGroupCommand";
|
|
76
|
-
import { DeleteSubscriptionCommandInput, DeleteSubscriptionCommandOutput } from "./commands/DeleteSubscriptionCommand";
|
|
77
|
-
import { DescribeAttackCommandInput, DescribeAttackCommandOutput } from "./commands/DescribeAttackCommand";
|
|
78
|
-
import {
|
|
79
|
-
DescribeAttackStatisticsCommandInput,
|
|
80
|
-
DescribeAttackStatisticsCommandOutput,
|
|
81
|
-
} from "./commands/DescribeAttackStatisticsCommand";
|
|
82
|
-
import { DescribeDRTAccessCommandInput, DescribeDRTAccessCommandOutput } from "./commands/DescribeDRTAccessCommand";
|
|
83
|
-
import {
|
|
84
|
-
DescribeEmergencyContactSettingsCommandInput,
|
|
85
|
-
DescribeEmergencyContactSettingsCommandOutput,
|
|
86
|
-
} from "./commands/DescribeEmergencyContactSettingsCommand";
|
|
87
|
-
import { DescribeProtectionCommandInput, DescribeProtectionCommandOutput } from "./commands/DescribeProtectionCommand";
|
|
88
|
-
import {
|
|
89
|
-
DescribeProtectionGroupCommandInput,
|
|
90
|
-
DescribeProtectionGroupCommandOutput,
|
|
91
|
-
} from "./commands/DescribeProtectionGroupCommand";
|
|
92
|
-
import {
|
|
93
|
-
DescribeSubscriptionCommandInput,
|
|
94
|
-
DescribeSubscriptionCommandOutput,
|
|
95
|
-
} from "./commands/DescribeSubscriptionCommand";
|
|
96
|
-
import {
|
|
97
|
-
DisableProactiveEngagementCommandInput,
|
|
98
|
-
DisableProactiveEngagementCommandOutput,
|
|
99
|
-
} from "./commands/DisableProactiveEngagementCommand";
|
|
100
|
-
import {
|
|
101
|
-
DisassociateDRTLogBucketCommandInput,
|
|
102
|
-
DisassociateDRTLogBucketCommandOutput,
|
|
103
|
-
} from "./commands/DisassociateDRTLogBucketCommand";
|
|
104
|
-
import {
|
|
105
|
-
DisassociateDRTRoleCommandInput,
|
|
106
|
-
DisassociateDRTRoleCommandOutput,
|
|
107
|
-
} from "./commands/DisassociateDRTRoleCommand";
|
|
108
|
-
import {
|
|
109
|
-
DisassociateHealthCheckCommandInput,
|
|
110
|
-
DisassociateHealthCheckCommandOutput,
|
|
111
|
-
} from "./commands/DisassociateHealthCheckCommand";
|
|
112
|
-
import {
|
|
113
|
-
EnableProactiveEngagementCommandInput,
|
|
114
|
-
EnableProactiveEngagementCommandOutput,
|
|
115
|
-
} from "./commands/EnableProactiveEngagementCommand";
|
|
116
|
-
import {
|
|
117
|
-
GetSubscriptionStateCommandInput,
|
|
118
|
-
GetSubscriptionStateCommandOutput,
|
|
119
|
-
} from "./commands/GetSubscriptionStateCommand";
|
|
120
|
-
import { ListAttacksCommandInput, ListAttacksCommandOutput } from "./commands/ListAttacksCommand";
|
|
121
|
-
import {
|
|
122
|
-
ListProtectionGroupsCommandInput,
|
|
123
|
-
ListProtectionGroupsCommandOutput,
|
|
124
|
-
} from "./commands/ListProtectionGroupsCommand";
|
|
125
|
-
import { ListProtectionsCommandInput, ListProtectionsCommandOutput } from "./commands/ListProtectionsCommand";
|
|
126
|
-
import {
|
|
127
|
-
ListResourcesInProtectionGroupCommandInput,
|
|
128
|
-
ListResourcesInProtectionGroupCommandOutput,
|
|
129
|
-
} from "./commands/ListResourcesInProtectionGroupCommand";
|
|
130
|
-
import {
|
|
131
|
-
ListTagsForResourceCommandInput,
|
|
132
|
-
ListTagsForResourceCommandOutput,
|
|
133
|
-
} from "./commands/ListTagsForResourceCommand";
|
|
134
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
135
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
136
|
-
import {
|
|
137
|
-
UpdateEmergencyContactSettingsCommandInput,
|
|
138
|
-
UpdateEmergencyContactSettingsCommandOutput,
|
|
139
|
-
} from "./commands/UpdateEmergencyContactSettingsCommand";
|
|
140
|
-
import {
|
|
141
|
-
UpdateProtectionGroupCommandInput,
|
|
142
|
-
UpdateProtectionGroupCommandOutput,
|
|
143
|
-
} from "./commands/UpdateProtectionGroupCommand";
|
|
144
|
-
import { UpdateSubscriptionCommandInput, UpdateSubscriptionCommandOutput } from "./commands/UpdateSubscriptionCommand";
|
|
145
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
146
|
-
|
|
147
|
-
export type ServiceInputTypes =
|
|
148
|
-
| AssociateDRTLogBucketCommandInput
|
|
149
|
-
| AssociateDRTRoleCommandInput
|
|
150
|
-
| AssociateHealthCheckCommandInput
|
|
151
|
-
| AssociateProactiveEngagementDetailsCommandInput
|
|
152
|
-
| CreateProtectionCommandInput
|
|
153
|
-
| CreateProtectionGroupCommandInput
|
|
154
|
-
| CreateSubscriptionCommandInput
|
|
155
|
-
| DeleteProtectionCommandInput
|
|
156
|
-
| DeleteProtectionGroupCommandInput
|
|
157
|
-
| DeleteSubscriptionCommandInput
|
|
158
|
-
| DescribeAttackCommandInput
|
|
159
|
-
| DescribeAttackStatisticsCommandInput
|
|
160
|
-
| DescribeDRTAccessCommandInput
|
|
161
|
-
| DescribeEmergencyContactSettingsCommandInput
|
|
162
|
-
| DescribeProtectionCommandInput
|
|
163
|
-
| DescribeProtectionGroupCommandInput
|
|
164
|
-
| DescribeSubscriptionCommandInput
|
|
165
|
-
| DisableProactiveEngagementCommandInput
|
|
166
|
-
| DisassociateDRTLogBucketCommandInput
|
|
167
|
-
| DisassociateDRTRoleCommandInput
|
|
168
|
-
| DisassociateHealthCheckCommandInput
|
|
169
|
-
| EnableProactiveEngagementCommandInput
|
|
170
|
-
| GetSubscriptionStateCommandInput
|
|
171
|
-
| ListAttacksCommandInput
|
|
172
|
-
| ListProtectionGroupsCommandInput
|
|
173
|
-
| ListProtectionsCommandInput
|
|
174
|
-
| ListResourcesInProtectionGroupCommandInput
|
|
175
|
-
| ListTagsForResourceCommandInput
|
|
176
|
-
| TagResourceCommandInput
|
|
177
|
-
| UntagResourceCommandInput
|
|
178
|
-
| UpdateEmergencyContactSettingsCommandInput
|
|
179
|
-
| UpdateProtectionGroupCommandInput
|
|
180
|
-
| UpdateSubscriptionCommandInput;
|
|
181
|
-
|
|
182
|
-
export type ServiceOutputTypes =
|
|
183
|
-
| AssociateDRTLogBucketCommandOutput
|
|
184
|
-
| AssociateDRTRoleCommandOutput
|
|
185
|
-
| AssociateHealthCheckCommandOutput
|
|
186
|
-
| AssociateProactiveEngagementDetailsCommandOutput
|
|
187
|
-
| CreateProtectionCommandOutput
|
|
188
|
-
| CreateProtectionGroupCommandOutput
|
|
189
|
-
| CreateSubscriptionCommandOutput
|
|
190
|
-
| DeleteProtectionCommandOutput
|
|
191
|
-
| DeleteProtectionGroupCommandOutput
|
|
192
|
-
| DeleteSubscriptionCommandOutput
|
|
193
|
-
| DescribeAttackCommandOutput
|
|
194
|
-
| DescribeAttackStatisticsCommandOutput
|
|
195
|
-
| DescribeDRTAccessCommandOutput
|
|
196
|
-
| DescribeEmergencyContactSettingsCommandOutput
|
|
197
|
-
| DescribeProtectionCommandOutput
|
|
198
|
-
| DescribeProtectionGroupCommandOutput
|
|
199
|
-
| DescribeSubscriptionCommandOutput
|
|
200
|
-
| DisableProactiveEngagementCommandOutput
|
|
201
|
-
| DisassociateDRTLogBucketCommandOutput
|
|
202
|
-
| DisassociateDRTRoleCommandOutput
|
|
203
|
-
| DisassociateHealthCheckCommandOutput
|
|
204
|
-
| EnableProactiveEngagementCommandOutput
|
|
205
|
-
| GetSubscriptionStateCommandOutput
|
|
206
|
-
| ListAttacksCommandOutput
|
|
207
|
-
| ListProtectionGroupsCommandOutput
|
|
208
|
-
| ListProtectionsCommandOutput
|
|
209
|
-
| ListResourcesInProtectionGroupCommandOutput
|
|
210
|
-
| ListTagsForResourceCommandOutput
|
|
211
|
-
| TagResourceCommandOutput
|
|
212
|
-
| UntagResourceCommandOutput
|
|
213
|
-
| UpdateEmergencyContactSettingsCommandOutput
|
|
214
|
-
| UpdateProtectionGroupCommandOutput
|
|
215
|
-
| UpdateSubscriptionCommandOutput;
|
|
216
|
-
|
|
217
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
218
|
-
/**
|
|
219
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
220
|
-
*/
|
|
221
|
-
requestHandler?: __HttpHandler;
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
225
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
226
|
-
* @internal
|
|
227
|
-
*/
|
|
228
|
-
sha256?: __HashConstructor;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
232
|
-
* @internal
|
|
233
|
-
*/
|
|
234
|
-
urlParser?: __UrlParser;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* A function that can calculate the length of a request body.
|
|
238
|
-
* @internal
|
|
239
|
-
*/
|
|
240
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* A function that converts a stream into an array of bytes.
|
|
244
|
-
* @internal
|
|
245
|
-
*/
|
|
246
|
-
streamCollector?: __StreamCollector;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
250
|
-
* @internal
|
|
251
|
-
*/
|
|
252
|
-
base64Decoder?: __Decoder;
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
256
|
-
* @internal
|
|
257
|
-
*/
|
|
258
|
-
base64Encoder?: __Encoder;
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
262
|
-
* @internal
|
|
263
|
-
*/
|
|
264
|
-
utf8Decoder?: __Decoder;
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
268
|
-
* @internal
|
|
269
|
-
*/
|
|
270
|
-
utf8Encoder?: __Encoder;
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* The runtime environment.
|
|
274
|
-
* @internal
|
|
275
|
-
*/
|
|
276
|
-
runtime?: string;
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
280
|
-
* trait of an operation.
|
|
281
|
-
*/
|
|
282
|
-
disableHostPrefix?: boolean;
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
286
|
-
*/
|
|
287
|
-
maxAttempts?: number | __Provider<number>;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Specifies which retry algorithm to use.
|
|
291
|
-
*/
|
|
292
|
-
retryMode?: string | __Provider<string>;
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Optional logger for logging debug/info/warn/error.
|
|
296
|
-
*/
|
|
297
|
-
logger?: __Logger;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Unique service identifier.
|
|
301
|
-
* @internal
|
|
302
|
-
*/
|
|
303
|
-
serviceId?: string;
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* The AWS region to which this client will send requests
|
|
307
|
-
*/
|
|
308
|
-
region?: string | __Provider<string>;
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* Default credentials provider; Not available in browser runtime.
|
|
312
|
-
* @internal
|
|
313
|
-
*/
|
|
314
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
318
|
-
* @internal
|
|
319
|
-
*/
|
|
320
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
324
|
-
* @internal
|
|
325
|
-
*/
|
|
326
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
type ShieldClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
330
|
-
ClientDefaults &
|
|
331
|
-
RegionInputConfig &
|
|
332
|
-
EndpointsInputConfig &
|
|
333
|
-
RetryInputConfig &
|
|
334
|
-
HostHeaderInputConfig &
|
|
335
|
-
AwsAuthInputConfig &
|
|
336
|
-
UserAgentInputConfig;
|
|
337
|
-
/**
|
|
338
|
-
* The configuration interface of ShieldClient class constructor that set the region, credentials and other options.
|
|
339
|
-
*/
|
|
340
|
-
export interface ShieldClientConfig extends ShieldClientConfigType {}
|
|
341
|
-
|
|
342
|
-
type ShieldClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
343
|
-
Required<ClientDefaults> &
|
|
344
|
-
RegionResolvedConfig &
|
|
345
|
-
EndpointsResolvedConfig &
|
|
346
|
-
RetryResolvedConfig &
|
|
347
|
-
HostHeaderResolvedConfig &
|
|
348
|
-
AwsAuthResolvedConfig &
|
|
349
|
-
UserAgentResolvedConfig;
|
|
350
|
-
/**
|
|
351
|
-
* The resolved configuration interface of ShieldClient class. This is resolved and normalized from the {@link ShieldClientConfig | constructor configuration interface}.
|
|
352
|
-
*/
|
|
353
|
-
export interface ShieldClientResolvedConfig extends ShieldClientResolvedConfigType {}
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* <fullname>Shield Advanced</fullname>
|
|
357
|
-
* <p>This is the <i>Shield Advanced API Reference</i>. This guide is for developers who need detailed information about the Shield Advanced API actions,
|
|
358
|
-
* data types, and errors. For detailed information about WAF and Shield Advanced features and an overview of how to use the WAF and Shield Advanced APIs, see the
|
|
359
|
-
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/">WAF and Shield Developer Guide</a>.</p>
|
|
360
|
-
*/
|
|
361
|
-
export class ShieldClient extends __Client<
|
|
362
|
-
__HttpHandlerOptions,
|
|
363
|
-
ServiceInputTypes,
|
|
364
|
-
ServiceOutputTypes,
|
|
365
|
-
ShieldClientResolvedConfig
|
|
366
|
-
> {
|
|
367
|
-
/**
|
|
368
|
-
* The resolved configuration of ShieldClient class. This is resolved and normalized from the {@link ShieldClientConfig | constructor configuration interface}.
|
|
369
|
-
*/
|
|
370
|
-
readonly config: ShieldClientResolvedConfig;
|
|
371
|
-
|
|
372
|
-
constructor(configuration: ShieldClientConfig) {
|
|
373
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
374
|
-
const _config_1 = resolveRegionConfig(_config_0);
|
|
375
|
-
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
376
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
377
|
-
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
378
|
-
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
379
|
-
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
380
|
-
super(_config_6);
|
|
381
|
-
this.config = _config_6;
|
|
382
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
383
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
384
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
385
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
386
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
387
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
392
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
393
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
394
|
-
*/
|
|
395
|
-
destroy(): void {
|
|
396
|
-
super.destroy();
|
|
397
|
-
}
|
|
398
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { AssociateDRTLogBucketRequest, AssociateDRTLogBucketResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_1AssociateDRTLogBucketCommand,
|
|
17
|
-
serializeAws_json1_1AssociateDRTLogBucketCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, ShieldClientResolvedConfig } from "../ShieldClient";
|
|
20
|
-
|
|
21
|
-
export interface AssociateDRTLogBucketCommandInput extends AssociateDRTLogBucketRequest {}
|
|
22
|
-
export interface AssociateDRTLogBucketCommandOutput extends AssociateDRTLogBucketResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <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>
|
|
26
|
-
* <p>To use the services of the SRT and make an <code>AssociateDRTLogBucket</code> request, you must be subscribed to the <a href="https://aws.amazon.com/premiumsupport/business-support/">Business Support plan</a> or the <a href="https://aws.amazon.com/premiumsupport/enterprise-support/">Enterprise Support plan</a>.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { ShieldClient, AssociateDRTLogBucketCommand } from "@aws-sdk/client-shield"; // ES Modules import
|
|
31
|
-
* // const { ShieldClient, AssociateDRTLogBucketCommand } = require("@aws-sdk/client-shield"); // CommonJS import
|
|
32
|
-
* const client = new ShieldClient(config);
|
|
33
|
-
* const command = new AssociateDRTLogBucketCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link AssociateDRTLogBucketCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link AssociateDRTLogBucketCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link ShieldClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class AssociateDRTLogBucketCommand extends $Command<
|
|
43
|
-
AssociateDRTLogBucketCommandInput,
|
|
44
|
-
AssociateDRTLogBucketCommandOutput,
|
|
45
|
-
ShieldClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: AssociateDRTLogBucketCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: ShieldClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<AssociateDRTLogBucketCommandInput, AssociateDRTLogBucketCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "ShieldClient";
|
|
70
|
-
const commandName = "AssociateDRTLogBucketCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: AssociateDRTLogBucketRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: AssociateDRTLogBucketResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: AssociateDRTLogBucketCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1AssociateDRTLogBucketCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<AssociateDRTLogBucketCommandOutput> {
|
|
91
|
-
return deserializeAws_json1_1AssociateDRTLogBucketCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { AssociateDRTRoleRequest, AssociateDRTRoleResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_1AssociateDRTRoleCommand,
|
|
17
|
-
serializeAws_json1_1AssociateDRTRoleCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_1";
|
|
19
|
-
import { ServiceInputTypes, ServiceOutputTypes, ShieldClientResolvedConfig } from "../ShieldClient";
|
|
20
|
-
|
|
21
|
-
export interface AssociateDRTRoleCommandInput extends AssociateDRTRoleRequest {}
|
|
22
|
-
export interface AssociateDRTRoleCommandOutput extends AssociateDRTRoleResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Authorizes the Shield Response Team (SRT) using the specified role, to access your Amazon Web Services account to assist with DDoS attack mitigation during potential attacks. This enables the SRT to inspect your WAF configuration and create or update WAF rules and web ACLs.</p>
|
|
26
|
-
* <p>You can associate only one <code>RoleArn</code> with your subscription. If you submit an <code>AssociateDRTRole</code> request for an account that already has an associated role, the new <code>RoleArn</code> will replace the existing <code>RoleArn</code>. </p>
|
|
27
|
-
* <p>Prior to making the <code>AssociateDRTRole</code> request, you must attach the <a href="https://console.aws.amazon.com/iam/home?#/policies/arn:aws:iam::aws:policy/service-role/AWSShieldDRTAccessPolicy">AWSShieldDRTAccessPolicy</a> managed policy to the role you will specify in the request. For more information see <a href=" https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-attach-detach.html">Attaching and Detaching IAM Policies</a>. The role must also trust the service principal <code> drt.shield.amazonaws.com</code>. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html">IAM JSON Policy Elements: Principal</a>.</p>
|
|
28
|
-
*
|
|
29
|
-
* <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>
|
|
30
|
-
* <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>
|
|
31
|
-
* <p>To use the services of the SRT and make an <code>AssociateDRTRole</code> request, you must be subscribed to the <a href="https://aws.amazon.com/premiumsupport/business-support/">Business Support plan</a> or the <a href="https://aws.amazon.com/premiumsupport/enterprise-support/">Enterprise Support plan</a>.</p>
|
|
32
|
-
* @example
|
|
33
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
-
* ```javascript
|
|
35
|
-
* import { ShieldClient, AssociateDRTRoleCommand } from "@aws-sdk/client-shield"; // ES Modules import
|
|
36
|
-
* // const { ShieldClient, AssociateDRTRoleCommand } = require("@aws-sdk/client-shield"); // CommonJS import
|
|
37
|
-
* const client = new ShieldClient(config);
|
|
38
|
-
* const command = new AssociateDRTRoleCommand(input);
|
|
39
|
-
* const response = await client.send(command);
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link AssociateDRTRoleCommandInput} for command's `input` shape.
|
|
43
|
-
* @see {@link AssociateDRTRoleCommandOutput} for command's `response` shape.
|
|
44
|
-
* @see {@link ShieldClientResolvedConfig | config} for command's `input` shape.
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
export class AssociateDRTRoleCommand extends $Command<
|
|
48
|
-
AssociateDRTRoleCommandInput,
|
|
49
|
-
AssociateDRTRoleCommandOutput,
|
|
50
|
-
ShieldClientResolvedConfig
|
|
51
|
-
> {
|
|
52
|
-
// Start section: command_properties
|
|
53
|
-
// End section: command_properties
|
|
54
|
-
|
|
55
|
-
constructor(readonly input: AssociateDRTRoleCommandInput) {
|
|
56
|
-
// Start section: command_constructor
|
|
57
|
-
super();
|
|
58
|
-
// End section: command_constructor
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
|
-
resolveMiddleware(
|
|
65
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
66
|
-
configuration: ShieldClientResolvedConfig,
|
|
67
|
-
options?: __HttpHandlerOptions
|
|
68
|
-
): Handler<AssociateDRTRoleCommandInput, AssociateDRTRoleCommandOutput> {
|
|
69
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
70
|
-
|
|
71
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
72
|
-
|
|
73
|
-
const { logger } = configuration;
|
|
74
|
-
const clientName = "ShieldClient";
|
|
75
|
-
const commandName = "AssociateDRTRoleCommand";
|
|
76
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
77
|
-
logger,
|
|
78
|
-
clientName,
|
|
79
|
-
commandName,
|
|
80
|
-
inputFilterSensitiveLog: AssociateDRTRoleRequest.filterSensitiveLog,
|
|
81
|
-
outputFilterSensitiveLog: AssociateDRTRoleResponse.filterSensitiveLog,
|
|
82
|
-
};
|
|
83
|
-
const { requestHandler } = configuration;
|
|
84
|
-
return stack.resolve(
|
|
85
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
86
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
87
|
-
handlerExecutionContext
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private serialize(input: AssociateDRTRoleCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
92
|
-
return serializeAws_json1_1AssociateDRTRoleCommand(input, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<AssociateDRTRoleCommandOutput> {
|
|
96
|
-
return deserializeAws_json1_1AssociateDRTRoleCommand(output, context);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Start section: command_body_extra
|
|
100
|
-
// End section: command_body_extra
|
|
101
|
-
}
|