@aws-sdk/client-shield 3.194.0 → 3.196.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 +19 -0
- package/dist-cjs/ShieldClient.js +11 -8
- package/dist-cjs/commands/AssociateDRTLogBucketCommand.js +10 -0
- package/dist-cjs/commands/AssociateDRTRoleCommand.js +10 -0
- package/dist-cjs/commands/AssociateHealthCheckCommand.js +10 -0
- package/dist-cjs/commands/AssociateProactiveEngagementDetailsCommand.js +10 -0
- package/dist-cjs/commands/CreateProtectionCommand.js +10 -0
- package/dist-cjs/commands/CreateProtectionGroupCommand.js +10 -0
- package/dist-cjs/commands/CreateSubscriptionCommand.js +10 -0
- package/dist-cjs/commands/DeleteProtectionCommand.js +10 -0
- package/dist-cjs/commands/DeleteProtectionGroupCommand.js +10 -0
- package/dist-cjs/commands/DeleteSubscriptionCommand.js +10 -0
- package/dist-cjs/commands/DescribeAttackCommand.js +10 -0
- package/dist-cjs/commands/DescribeAttackStatisticsCommand.js +10 -0
- package/dist-cjs/commands/DescribeDRTAccessCommand.js +10 -0
- package/dist-cjs/commands/DescribeEmergencyContactSettingsCommand.js +10 -0
- package/dist-cjs/commands/DescribeProtectionCommand.js +10 -0
- package/dist-cjs/commands/DescribeProtectionGroupCommand.js +10 -0
- package/dist-cjs/commands/DescribeSubscriptionCommand.js +10 -0
- package/dist-cjs/commands/DisableApplicationLayerAutomaticResponseCommand.js +10 -0
- package/dist-cjs/commands/DisableProactiveEngagementCommand.js +10 -0
- package/dist-cjs/commands/DisassociateDRTLogBucketCommand.js +10 -0
- package/dist-cjs/commands/DisassociateDRTRoleCommand.js +10 -0
- package/dist-cjs/commands/DisassociateHealthCheckCommand.js +10 -0
- package/dist-cjs/commands/EnableApplicationLayerAutomaticResponseCommand.js +10 -0
- package/dist-cjs/commands/EnableProactiveEngagementCommand.js +10 -0
- package/dist-cjs/commands/GetSubscriptionStateCommand.js +10 -0
- package/dist-cjs/commands/ListAttacksCommand.js +10 -0
- package/dist-cjs/commands/ListProtectionGroupsCommand.js +10 -0
- package/dist-cjs/commands/ListProtectionsCommand.js +10 -0
- package/dist-cjs/commands/ListResourcesInProtectionGroupCommand.js +10 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
- package/dist-cjs/commands/TagResourceCommand.js +10 -0
- package/dist-cjs/commands/UntagResourceCommand.js +10 -0
- package/dist-cjs/commands/UpdateApplicationLayerAutomaticResponseCommand.js +10 -0
- package/dist-cjs/commands/UpdateEmergencyContactSettingsCommand.js +10 -0
- package/dist-cjs/commands/UpdateProtectionGroupCommand.js +10 -0
- package/dist-cjs/commands/UpdateSubscriptionCommand.js +10 -0
- package/dist-cjs/endpoint/EndpointParameters.js +13 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +613 -0
- package/dist-cjs/runtimeConfig.shared.js +3 -3
- package/dist-es/ShieldClient.js +12 -9
- package/dist-es/commands/AssociateDRTLogBucketCommand.js +10 -0
- package/dist-es/commands/AssociateDRTRoleCommand.js +10 -0
- package/dist-es/commands/AssociateHealthCheckCommand.js +10 -0
- package/dist-es/commands/AssociateProactiveEngagementDetailsCommand.js +10 -0
- package/dist-es/commands/CreateProtectionCommand.js +10 -0
- package/dist-es/commands/CreateProtectionGroupCommand.js +10 -0
- package/dist-es/commands/CreateSubscriptionCommand.js +10 -0
- package/dist-es/commands/DeleteProtectionCommand.js +10 -0
- package/dist-es/commands/DeleteProtectionGroupCommand.js +10 -0
- package/dist-es/commands/DeleteSubscriptionCommand.js +10 -0
- package/dist-es/commands/DescribeAttackCommand.js +10 -0
- package/dist-es/commands/DescribeAttackStatisticsCommand.js +10 -0
- package/dist-es/commands/DescribeDRTAccessCommand.js +10 -0
- package/dist-es/commands/DescribeEmergencyContactSettingsCommand.js +10 -0
- package/dist-es/commands/DescribeProtectionCommand.js +10 -0
- package/dist-es/commands/DescribeProtectionGroupCommand.js +10 -0
- package/dist-es/commands/DescribeSubscriptionCommand.js +10 -0
- package/dist-es/commands/DisableApplicationLayerAutomaticResponseCommand.js +10 -0
- package/dist-es/commands/DisableProactiveEngagementCommand.js +10 -0
- package/dist-es/commands/DisassociateDRTLogBucketCommand.js +10 -0
- package/dist-es/commands/DisassociateDRTRoleCommand.js +10 -0
- package/dist-es/commands/DisassociateHealthCheckCommand.js +10 -0
- package/dist-es/commands/EnableApplicationLayerAutomaticResponseCommand.js +10 -0
- package/dist-es/commands/EnableProactiveEngagementCommand.js +10 -0
- package/dist-es/commands/GetSubscriptionStateCommand.js +10 -0
- package/dist-es/commands/ListAttacksCommand.js +10 -0
- package/dist-es/commands/ListProtectionGroupsCommand.js +10 -0
- package/dist-es/commands/ListProtectionsCommand.js +10 -0
- package/dist-es/commands/ListResourcesInProtectionGroupCommand.js +10 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
- package/dist-es/commands/TagResourceCommand.js +10 -0
- package/dist-es/commands/UntagResourceCommand.js +10 -0
- package/dist-es/commands/UpdateApplicationLayerAutomaticResponseCommand.js +10 -0
- package/dist-es/commands/UpdateEmergencyContactSettingsCommand.js +10 -0
- package/dist-es/commands/UpdateProtectionGroupCommand.js +10 -0
- package/dist-es/commands/UpdateSubscriptionCommand.js +10 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +610 -0
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/ShieldClient.d.ts +6 -9
- package/dist-types/commands/AssociateDRTLogBucketCommand.d.ts +2 -0
- package/dist-types/commands/AssociateDRTRoleCommand.d.ts +2 -0
- package/dist-types/commands/AssociateHealthCheckCommand.d.ts +2 -0
- package/dist-types/commands/AssociateProactiveEngagementDetailsCommand.d.ts +2 -0
- package/dist-types/commands/CreateProtectionCommand.d.ts +2 -0
- package/dist-types/commands/CreateProtectionGroupCommand.d.ts +2 -0
- package/dist-types/commands/CreateSubscriptionCommand.d.ts +2 -0
- package/dist-types/commands/DeleteProtectionCommand.d.ts +2 -0
- package/dist-types/commands/DeleteProtectionGroupCommand.d.ts +2 -0
- package/dist-types/commands/DeleteSubscriptionCommand.d.ts +2 -0
- package/dist-types/commands/DescribeAttackCommand.d.ts +2 -0
- package/dist-types/commands/DescribeAttackStatisticsCommand.d.ts +2 -0
- package/dist-types/commands/DescribeDRTAccessCommand.d.ts +2 -0
- package/dist-types/commands/DescribeEmergencyContactSettingsCommand.d.ts +2 -0
- package/dist-types/commands/DescribeProtectionCommand.d.ts +2 -0
- package/dist-types/commands/DescribeProtectionGroupCommand.d.ts +2 -0
- package/dist-types/commands/DescribeSubscriptionCommand.d.ts +2 -0
- package/dist-types/commands/DisableApplicationLayerAutomaticResponseCommand.d.ts +2 -0
- package/dist-types/commands/DisableProactiveEngagementCommand.d.ts +2 -0
- package/dist-types/commands/DisassociateDRTLogBucketCommand.d.ts +2 -0
- package/dist-types/commands/DisassociateDRTRoleCommand.d.ts +2 -0
- package/dist-types/commands/DisassociateHealthCheckCommand.d.ts +2 -0
- package/dist-types/commands/EnableApplicationLayerAutomaticResponseCommand.d.ts +2 -0
- package/dist-types/commands/EnableProactiveEngagementCommand.d.ts +2 -0
- package/dist-types/commands/GetSubscriptionStateCommand.d.ts +2 -0
- package/dist-types/commands/ListAttacksCommand.d.ts +2 -0
- package/dist-types/commands/ListProtectionGroupsCommand.d.ts +2 -0
- package/dist-types/commands/ListProtectionsCommand.d.ts +2 -0
- package/dist-types/commands/ListResourcesInProtectionGroupCommand.d.ts +2 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
- package/dist-types/commands/TagResourceCommand.d.ts +2 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
- package/dist-types/commands/UpdateApplicationLayerAutomaticResponseCommand.d.ts +2 -0
- package/dist-types/commands/UpdateEmergencyContactSettingsCommand.d.ts +2 -0
- package/dist-types/commands/UpdateProtectionGroupCommand.d.ts +2 -0
- package/dist-types/commands/UpdateSubscriptionCommand.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/runtimeConfig.d.ts +4 -2
- package/dist-types/runtimeConfig.native.d.ts +4 -2
- package/dist-types/runtimeConfig.shared.d.ts +3 -1
- package/dist-types/ts3.4/ShieldClient.d.ts +15 -8
- package/dist-types/ts3.4/commands/AssociateDRTLogBucketCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/AssociateDRTRoleCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/AssociateHealthCheckCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/AssociateProactiveEngagementDetailsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateProtectionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateProtectionGroupCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateSubscriptionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteProtectionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteProtectionGroupCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteSubscriptionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeAttackCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeAttackStatisticsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeDRTAccessCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeEmergencyContactSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeProtectionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeProtectionGroupCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeSubscriptionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DisableApplicationLayerAutomaticResponseCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DisableProactiveEngagementCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DisassociateDRTLogBucketCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DisassociateDRTRoleCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DisassociateHealthCheckCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/EnableApplicationLayerAutomaticResponseCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/EnableProactiveEngagementCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetSubscriptionStateCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListAttacksCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListProtectionGroupsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListProtectionsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListResourcesInProtectionGroupCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateApplicationLayerAutomaticResponseCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateEmergencyContactSettingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateProtectionGroupCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateSubscriptionCommand.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
- package/package.json +5 -3
- package/dist-cjs/endpoints.js +0 -149
- package/dist-es/endpoints.js +0 -145
- package/dist-types/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ListProtectionsRequestFilterSensitiveLog, ListProtectionsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class ListProtectionsCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListProtectionsCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "ShieldClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ListResourcesInProtectionGroupRequestFilterSensitiveLog, ListResourcesInProtectionGroupResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class ListResourcesInProtectionGroupCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListResourcesInProtectionGroupCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "ShieldClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class ListTagsForResourceCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "ShieldClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class TagResourceCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "ShieldClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { UntagResourceRequestFilterSensitiveLog, UntagResourceResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class UntagResourceCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "ShieldClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { UpdateApplicationLayerAutomaticResponseRequestFilterSensitiveLog, UpdateApplicationLayerAutomaticResponseResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class UpdateApplicationLayerAutomaticResponseCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateApplicationLayerAutomaticResponseCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "ShieldClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { UpdateEmergencyContactSettingsRequestFilterSensitiveLog, UpdateEmergencyContactSettingsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class UpdateEmergencyContactSettingsCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateEmergencyContactSettingsCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "ShieldClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { UpdateProtectionGroupRequestFilterSensitiveLog, UpdateProtectionGroupResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class UpdateProtectionGroupCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateProtectionGroupCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "ShieldClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { UpdateSubscriptionRequestFilterSensitiveLog, UpdateSubscriptionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class UpdateSubscriptionCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateSubscriptionCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "ShieldClient";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { resolveEndpoint } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { ruleSet } from "./ruleset";
|
|
3
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
|
+
return resolveEndpoint(ruleSet, {
|
|
5
|
+
endpointParams: endpointParams,
|
|
6
|
+
logger: context.logger,
|
|
7
|
+
});
|
|
8
|
+
};
|