@aws-sdk/client-fms 3.35.0 → 3.36.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 +13 -0
- package/dist-cjs/FMS.js +0 -1
- package/dist-cjs/FMSClient.js +0 -1
- package/dist-cjs/commands/AssociateAdminAccountCommand.js +0 -1
- package/dist-cjs/commands/DeleteAppsListCommand.js +0 -1
- package/dist-cjs/commands/DeleteNotificationChannelCommand.js +0 -1
- package/dist-cjs/commands/DeletePolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteProtocolsListCommand.js +0 -1
- package/dist-cjs/commands/DisassociateAdminAccountCommand.js +0 -1
- package/dist-cjs/commands/GetAdminAccountCommand.js +0 -1
- package/dist-cjs/commands/GetAppsListCommand.js +0 -1
- package/dist-cjs/commands/GetComplianceDetailCommand.js +0 -1
- package/dist-cjs/commands/GetNotificationChannelCommand.js +0 -1
- package/dist-cjs/commands/GetPolicyCommand.js +0 -1
- package/dist-cjs/commands/GetProtectionStatusCommand.js +0 -1
- package/dist-cjs/commands/GetProtocolsListCommand.js +0 -1
- package/dist-cjs/commands/GetViolationDetailsCommand.js +0 -1
- package/dist-cjs/commands/ListAppsListsCommand.js +0 -1
- package/dist-cjs/commands/ListComplianceStatusCommand.js +0 -1
- package/dist-cjs/commands/ListMemberAccountsCommand.js +0 -1
- package/dist-cjs/commands/ListPoliciesCommand.js +0 -1
- package/dist-cjs/commands/ListProtocolsListsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/PutAppsListCommand.js +0 -1
- package/dist-cjs/commands/PutNotificationChannelCommand.js +0 -1
- package/dist-cjs/commands/PutPolicyCommand.js +0 -1
- package/dist-cjs/commands/PutProtocolsListCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListAppsListsPaginator.js +0 -1
- package/dist-cjs/pagination/ListComplianceStatusPaginator.js +0 -1
- package/dist-cjs/pagination/ListMemberAccountsPaginator.js +0 -1
- package/dist-cjs/pagination/ListPoliciesPaginator.js +0 -1
- package/dist-cjs/pagination/ListProtocolsListsPaginator.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-es/FMS.js +0 -1
- package/dist-es/FMSClient.js +0 -1
- package/dist-es/commands/AssociateAdminAccountCommand.js +0 -1
- package/dist-es/commands/DeleteAppsListCommand.js +0 -1
- package/dist-es/commands/DeleteNotificationChannelCommand.js +0 -1
- package/dist-es/commands/DeletePolicyCommand.js +0 -1
- package/dist-es/commands/DeleteProtocolsListCommand.js +0 -1
- package/dist-es/commands/DisassociateAdminAccountCommand.js +0 -1
- package/dist-es/commands/GetAdminAccountCommand.js +0 -1
- package/dist-es/commands/GetAppsListCommand.js +0 -1
- package/dist-es/commands/GetComplianceDetailCommand.js +0 -1
- package/dist-es/commands/GetNotificationChannelCommand.js +0 -1
- package/dist-es/commands/GetPolicyCommand.js +0 -1
- package/dist-es/commands/GetProtectionStatusCommand.js +0 -1
- package/dist-es/commands/GetProtocolsListCommand.js +0 -1
- package/dist-es/commands/GetViolationDetailsCommand.js +0 -1
- package/dist-es/commands/ListAppsListsCommand.js +0 -1
- package/dist-es/commands/ListComplianceStatusCommand.js +0 -1
- package/dist-es/commands/ListMemberAccountsCommand.js +0 -1
- package/dist-es/commands/ListPoliciesCommand.js +0 -1
- package/dist-es/commands/ListProtocolsListsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/PutAppsListCommand.js +0 -1
- package/dist-es/commands/PutNotificationChannelCommand.js +0 -1
- package/dist-es/commands/PutPolicyCommand.js +0 -1
- package/dist-es/commands/PutProtocolsListCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- 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/ListAppsListsPaginator.js +0 -1
- package/dist-es/pagination/ListComplianceStatusPaginator.js +0 -1
- package/dist-es/pagination/ListMemberAccountsPaginator.js +0 -1
- package/dist-es/pagination/ListPoliciesPaginator.js +0 -1
- package/dist-es/pagination/ListProtocolsListsPaginator.js +0 -1
- 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/package.json +33 -30
- package/dist-cjs/FMS.js.map +0 -1
- package/dist-cjs/FMSClient.js.map +0 -1
- package/dist-cjs/commands/AssociateAdminAccountCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteAppsListCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteNotificationChannelCommand.js.map +0 -1
- package/dist-cjs/commands/DeletePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteProtocolsListCommand.js.map +0 -1
- package/dist-cjs/commands/DisassociateAdminAccountCommand.js.map +0 -1
- package/dist-cjs/commands/GetAdminAccountCommand.js.map +0 -1
- package/dist-cjs/commands/GetAppsListCommand.js.map +0 -1
- package/dist-cjs/commands/GetComplianceDetailCommand.js.map +0 -1
- package/dist-cjs/commands/GetNotificationChannelCommand.js.map +0 -1
- package/dist-cjs/commands/GetPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/GetProtectionStatusCommand.js.map +0 -1
- package/dist-cjs/commands/GetProtocolsListCommand.js.map +0 -1
- package/dist-cjs/commands/GetViolationDetailsCommand.js.map +0 -1
- package/dist-cjs/commands/ListAppsListsCommand.js.map +0 -1
- package/dist-cjs/commands/ListComplianceStatusCommand.js.map +0 -1
- package/dist-cjs/commands/ListMemberAccountsCommand.js.map +0 -1
- package/dist-cjs/commands/ListPoliciesCommand.js.map +0 -1
- package/dist-cjs/commands/ListProtocolsListsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/PutAppsListCommand.js.map +0 -1
- package/dist-cjs/commands/PutNotificationChannelCommand.js.map +0 -1
- package/dist-cjs/commands/PutPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/PutProtocolsListCommand.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/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/ListAppsListsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListComplianceStatusPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListMemberAccountsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListPoliciesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListProtocolsListsPaginator.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/FMS.js.map +0 -1
- package/dist-es/FMSClient.js.map +0 -1
- package/dist-es/commands/AssociateAdminAccountCommand.js.map +0 -1
- package/dist-es/commands/DeleteAppsListCommand.js.map +0 -1
- package/dist-es/commands/DeleteNotificationChannelCommand.js.map +0 -1
- package/dist-es/commands/DeletePolicyCommand.js.map +0 -1
- package/dist-es/commands/DeleteProtocolsListCommand.js.map +0 -1
- package/dist-es/commands/DisassociateAdminAccountCommand.js.map +0 -1
- package/dist-es/commands/GetAdminAccountCommand.js.map +0 -1
- package/dist-es/commands/GetAppsListCommand.js.map +0 -1
- package/dist-es/commands/GetComplianceDetailCommand.js.map +0 -1
- package/dist-es/commands/GetNotificationChannelCommand.js.map +0 -1
- package/dist-es/commands/GetPolicyCommand.js.map +0 -1
- package/dist-es/commands/GetProtectionStatusCommand.js.map +0 -1
- package/dist-es/commands/GetProtocolsListCommand.js.map +0 -1
- package/dist-es/commands/GetViolationDetailsCommand.js.map +0 -1
- package/dist-es/commands/ListAppsListsCommand.js.map +0 -1
- package/dist-es/commands/ListComplianceStatusCommand.js.map +0 -1
- package/dist-es/commands/ListMemberAccountsCommand.js.map +0 -1
- package/dist-es/commands/ListPoliciesCommand.js.map +0 -1
- package/dist-es/commands/ListProtocolsListsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/PutAppsListCommand.js.map +0 -1
- package/dist-es/commands/PutNotificationChannelCommand.js.map +0 -1
- package/dist-es/commands/PutPolicyCommand.js.map +0 -1
- package/dist-es/commands/PutProtocolsListCommand.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/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/ListAppsListsPaginator.js.map +0 -1
- package/dist-es/pagination/ListComplianceStatusPaginator.js.map +0 -1
- package/dist-es/pagination/ListMemberAccountsPaginator.js.map +0 -1
- package/dist-es/pagination/ListPoliciesPaginator.js.map +0 -1
- package/dist-es/pagination/ListProtocolsListsPaginator.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/FMS.ts +0 -994
- package/src/FMSClient.ts +0 -353
- package/src/commands/AssociateAdminAccountCommand.ts +0 -98
- package/src/commands/DeleteAppsListCommand.ts +0 -95
- package/src/commands/DeleteNotificationChannelCommand.ts +0 -99
- package/src/commands/DeletePolicyCommand.ts +0 -95
- package/src/commands/DeleteProtocolsListCommand.ts +0 -95
- package/src/commands/DisassociateAdminAccountCommand.ts +0 -97
- package/src/commands/GetAdminAccountCommand.ts +0 -96
- package/src/commands/GetAppsListCommand.ts +0 -95
- package/src/commands/GetComplianceDetailCommand.ts +0 -118
- package/src/commands/GetNotificationChannelCommand.ts +0 -97
- package/src/commands/GetPolicyCommand.ts +0 -88
- package/src/commands/GetProtectionStatusCommand.ts +0 -96
- package/src/commands/GetProtocolsListCommand.ts +0 -95
- package/src/commands/GetViolationDetailsCommand.ts +0 -95
- package/src/commands/ListAppsListsCommand.ts +0 -95
- package/src/commands/ListComplianceStatusCommand.ts +0 -97
- package/src/commands/ListMemberAccountsCommand.ts +0 -98
- package/src/commands/ListPoliciesCommand.ts +0 -95
- package/src/commands/ListProtocolsListsCommand.ts +0 -95
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/PutAppsListCommand.ts +0 -95
- package/src/commands/PutNotificationChannelCommand.ts +0 -99
- package/src/commands/PutPolicyCommand.ts +0 -120
- package/src/commands/PutProtocolsListCommand.ts +0 -95
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/endpoints.ts +0 -161
- package/src/index.ts +0 -35
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -3424
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListAppsListsPaginator.ts +0 -59
- package/src/pagination/ListComplianceStatusPaginator.ts +0 -59
- package/src/pagination/ListMemberAccountsPaginator.ts +0 -59
- package/src/pagination/ListPoliciesPaginator.ts +0 -59
- package/src/pagination/ListProtocolsListsPaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -4652
- 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
|
@@ -1,97 +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 { FMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FMSClient";
|
|
15
|
-
import { GetNotificationChannelRequest, GetNotificationChannelResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1GetNotificationChannelCommand,
|
|
18
|
-
serializeAws_json1_1GetNotificationChannelCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface GetNotificationChannelCommandInput extends GetNotificationChannelRequest {}
|
|
22
|
-
export interface GetNotificationChannelCommandOutput extends GetNotificationChannelResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Information
|
|
26
|
-
* about the Amazon Simple Notification Service (SNS) topic that is used to
|
|
27
|
-
* record Firewall Manager SNS logs.</p>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { FMSClient, GetNotificationChannelCommand } from "@aws-sdk/client-fms"; // ES Modules import
|
|
32
|
-
* // const { FMSClient, GetNotificationChannelCommand } = require("@aws-sdk/client-fms"); // CommonJS import
|
|
33
|
-
* const client = new FMSClient(config);
|
|
34
|
-
* const command = new GetNotificationChannelCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link GetNotificationChannelCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link GetNotificationChannelCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link FMSClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
export class GetNotificationChannelCommand extends $Command<
|
|
44
|
-
GetNotificationChannelCommandInput,
|
|
45
|
-
GetNotificationChannelCommandOutput,
|
|
46
|
-
FMSClientResolvedConfig
|
|
47
|
-
> {
|
|
48
|
-
// Start section: command_properties
|
|
49
|
-
// End section: command_properties
|
|
50
|
-
|
|
51
|
-
constructor(readonly input: GetNotificationChannelCommandInput) {
|
|
52
|
-
// Start section: command_constructor
|
|
53
|
-
super();
|
|
54
|
-
// End section: command_constructor
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
resolveMiddleware(
|
|
61
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
62
|
-
configuration: FMSClientResolvedConfig,
|
|
63
|
-
options?: __HttpHandlerOptions
|
|
64
|
-
): Handler<GetNotificationChannelCommandInput, GetNotificationChannelCommandOutput> {
|
|
65
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
-
|
|
67
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
68
|
-
|
|
69
|
-
const { logger } = configuration;
|
|
70
|
-
const clientName = "FMSClient";
|
|
71
|
-
const commandName = "GetNotificationChannelCommand";
|
|
72
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
-
logger,
|
|
74
|
-
clientName,
|
|
75
|
-
commandName,
|
|
76
|
-
inputFilterSensitiveLog: GetNotificationChannelRequest.filterSensitiveLog,
|
|
77
|
-
outputFilterSensitiveLog: GetNotificationChannelResponse.filterSensitiveLog,
|
|
78
|
-
};
|
|
79
|
-
const { requestHandler } = configuration;
|
|
80
|
-
return stack.resolve(
|
|
81
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
82
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
83
|
-
handlerExecutionContext
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
private serialize(input: GetNotificationChannelCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
88
|
-
return serializeAws_json1_1GetNotificationChannelCommand(input, context);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetNotificationChannelCommandOutput> {
|
|
92
|
-
return deserializeAws_json1_1GetNotificationChannelCommand(output, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// Start section: command_body_extra
|
|
96
|
-
// End section: command_body_extra
|
|
97
|
-
}
|
|
@@ -1,88 +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 { FMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FMSClient";
|
|
15
|
-
import { GetPolicyRequest, GetPolicyResponse } from "../models/models_0";
|
|
16
|
-
import { deserializeAws_json1_1GetPolicyCommand, serializeAws_json1_1GetPolicyCommand } from "../protocols/Aws_json1_1";
|
|
17
|
-
|
|
18
|
-
export interface GetPolicyCommandInput extends GetPolicyRequest {}
|
|
19
|
-
export interface GetPolicyCommandOutput extends GetPolicyResponse, __MetadataBearer {}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* <p>Returns information about the specified Firewall Manager policy.</p>
|
|
23
|
-
* @example
|
|
24
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
25
|
-
* ```javascript
|
|
26
|
-
* import { FMSClient, GetPolicyCommand } from "@aws-sdk/client-fms"; // ES Modules import
|
|
27
|
-
* // const { FMSClient, GetPolicyCommand } = require("@aws-sdk/client-fms"); // CommonJS import
|
|
28
|
-
* const client = new FMSClient(config);
|
|
29
|
-
* const command = new GetPolicyCommand(input);
|
|
30
|
-
* const response = await client.send(command);
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @see {@link GetPolicyCommandInput} for command's `input` shape.
|
|
34
|
-
* @see {@link GetPolicyCommandOutput} for command's `response` shape.
|
|
35
|
-
* @see {@link FMSClientResolvedConfig | config} for command's `input` shape.
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
|
-
export class GetPolicyCommand extends $Command<GetPolicyCommandInput, GetPolicyCommandOutput, FMSClientResolvedConfig> {
|
|
39
|
-
// Start section: command_properties
|
|
40
|
-
// End section: command_properties
|
|
41
|
-
|
|
42
|
-
constructor(readonly input: GetPolicyCommandInput) {
|
|
43
|
-
// Start section: command_constructor
|
|
44
|
-
super();
|
|
45
|
-
// End section: command_constructor
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
*/
|
|
51
|
-
resolveMiddleware(
|
|
52
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
53
|
-
configuration: FMSClientResolvedConfig,
|
|
54
|
-
options?: __HttpHandlerOptions
|
|
55
|
-
): Handler<GetPolicyCommandInput, GetPolicyCommandOutput> {
|
|
56
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
57
|
-
|
|
58
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
59
|
-
|
|
60
|
-
const { logger } = configuration;
|
|
61
|
-
const clientName = "FMSClient";
|
|
62
|
-
const commandName = "GetPolicyCommand";
|
|
63
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
64
|
-
logger,
|
|
65
|
-
clientName,
|
|
66
|
-
commandName,
|
|
67
|
-
inputFilterSensitiveLog: GetPolicyRequest.filterSensitiveLog,
|
|
68
|
-
outputFilterSensitiveLog: GetPolicyResponse.filterSensitiveLog,
|
|
69
|
-
};
|
|
70
|
-
const { requestHandler } = configuration;
|
|
71
|
-
return stack.resolve(
|
|
72
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
73
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
74
|
-
handlerExecutionContext
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
private serialize(input: GetPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
79
|
-
return serializeAws_json1_1GetPolicyCommand(input, context);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetPolicyCommandOutput> {
|
|
83
|
-
return deserializeAws_json1_1GetPolicyCommand(output, context);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// Start section: command_body_extra
|
|
87
|
-
// End section: command_body_extra
|
|
88
|
-
}
|
|
@@ -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 { FMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FMSClient";
|
|
15
|
-
import { GetProtectionStatusRequest, GetProtectionStatusResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1GetProtectionStatusCommand,
|
|
18
|
-
serializeAws_json1_1GetProtectionStatusCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface GetProtectionStatusCommandInput extends GetProtectionStatusRequest {}
|
|
22
|
-
export interface GetProtectionStatusCommandOutput extends GetProtectionStatusResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>If you created a Shield Advanced policy, returns policy-level attack summary information
|
|
26
|
-
* in the event of a potential DDoS attack. Other policy types are currently unsupported.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { FMSClient, GetProtectionStatusCommand } from "@aws-sdk/client-fms"; // ES Modules import
|
|
31
|
-
* // const { FMSClient, GetProtectionStatusCommand } = require("@aws-sdk/client-fms"); // CommonJS import
|
|
32
|
-
* const client = new FMSClient(config);
|
|
33
|
-
* const command = new GetProtectionStatusCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link GetProtectionStatusCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link GetProtectionStatusCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link FMSClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class GetProtectionStatusCommand extends $Command<
|
|
43
|
-
GetProtectionStatusCommandInput,
|
|
44
|
-
GetProtectionStatusCommandOutput,
|
|
45
|
-
FMSClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: GetProtectionStatusCommandInput) {
|
|
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: FMSClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<GetProtectionStatusCommandInput, GetProtectionStatusCommandOutput> {
|
|
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 = "FMSClient";
|
|
70
|
-
const commandName = "GetProtectionStatusCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: GetProtectionStatusRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: GetProtectionStatusResponse.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: GetProtectionStatusCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1GetProtectionStatusCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetProtectionStatusCommandOutput> {
|
|
91
|
-
return deserializeAws_json1_1GetProtectionStatusCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,95 +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 { FMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FMSClient";
|
|
15
|
-
import { GetProtocolsListRequest, GetProtocolsListResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1GetProtocolsListCommand,
|
|
18
|
-
serializeAws_json1_1GetProtocolsListCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface GetProtocolsListCommandInput extends GetProtocolsListRequest {}
|
|
22
|
-
export interface GetProtocolsListCommandOutput extends GetProtocolsListResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns information about the specified Firewall Manager protocols list.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { FMSClient, GetProtocolsListCommand } from "@aws-sdk/client-fms"; // ES Modules import
|
|
30
|
-
* // const { FMSClient, GetProtocolsListCommand } = require("@aws-sdk/client-fms"); // CommonJS import
|
|
31
|
-
* const client = new FMSClient(config);
|
|
32
|
-
* const command = new GetProtocolsListCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link GetProtocolsListCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link GetProtocolsListCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link FMSClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class GetProtocolsListCommand extends $Command<
|
|
42
|
-
GetProtocolsListCommandInput,
|
|
43
|
-
GetProtocolsListCommandOutput,
|
|
44
|
-
FMSClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: GetProtocolsListCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: FMSClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<GetProtocolsListCommandInput, GetProtocolsListCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "FMSClient";
|
|
69
|
-
const commandName = "GetProtocolsListCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: GetProtocolsListRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: GetProtocolsListResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: GetProtocolsListCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1GetProtocolsListCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetProtocolsListCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1GetProtocolsListCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,95 +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 { FMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FMSClient";
|
|
15
|
-
import { GetViolationDetailsRequest, GetViolationDetailsResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1GetViolationDetailsCommand,
|
|
18
|
-
serializeAws_json1_1GetViolationDetailsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface GetViolationDetailsCommandInput extends GetViolationDetailsRequest {}
|
|
22
|
-
export interface GetViolationDetailsCommandOutput extends GetViolationDetailsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves violations for a resource based on the specified Firewall Manager policy and Amazon Web Services account.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { FMSClient, GetViolationDetailsCommand } from "@aws-sdk/client-fms"; // ES Modules import
|
|
30
|
-
* // const { FMSClient, GetViolationDetailsCommand } = require("@aws-sdk/client-fms"); // CommonJS import
|
|
31
|
-
* const client = new FMSClient(config);
|
|
32
|
-
* const command = new GetViolationDetailsCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link GetViolationDetailsCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link GetViolationDetailsCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link FMSClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class GetViolationDetailsCommand extends $Command<
|
|
42
|
-
GetViolationDetailsCommandInput,
|
|
43
|
-
GetViolationDetailsCommandOutput,
|
|
44
|
-
FMSClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: GetViolationDetailsCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: FMSClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<GetViolationDetailsCommandInput, GetViolationDetailsCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "FMSClient";
|
|
69
|
-
const commandName = "GetViolationDetailsCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: GetViolationDetailsRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: GetViolationDetailsResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: GetViolationDetailsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1GetViolationDetailsCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetViolationDetailsCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1GetViolationDetailsCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,95 +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 { FMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FMSClient";
|
|
15
|
-
import { ListAppsListsRequest, ListAppsListsResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1ListAppsListsCommand,
|
|
18
|
-
serializeAws_json1_1ListAppsListsCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface ListAppsListsCommandInput extends ListAppsListsRequest {}
|
|
22
|
-
export interface ListAppsListsCommandOutput extends ListAppsListsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns an array of <code>AppsListDataSummary</code> objects.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { FMSClient, ListAppsListsCommand } from "@aws-sdk/client-fms"; // ES Modules import
|
|
30
|
-
* // const { FMSClient, ListAppsListsCommand } = require("@aws-sdk/client-fms"); // CommonJS import
|
|
31
|
-
* const client = new FMSClient(config);
|
|
32
|
-
* const command = new ListAppsListsCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListAppsListsCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListAppsListsCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link FMSClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListAppsListsCommand extends $Command<
|
|
42
|
-
ListAppsListsCommandInput,
|
|
43
|
-
ListAppsListsCommandOutput,
|
|
44
|
-
FMSClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListAppsListsCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: FMSClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<ListAppsListsCommandInput, ListAppsListsCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "FMSClient";
|
|
69
|
-
const commandName = "ListAppsListsCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListAppsListsRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListAppsListsResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: ListAppsListsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1ListAppsListsCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListAppsListsCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1ListAppsListsCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,97 +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 { FMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FMSClient";
|
|
15
|
-
import { ListComplianceStatusRequest, ListComplianceStatusResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_json1_1ListComplianceStatusCommand,
|
|
18
|
-
serializeAws_json1_1ListComplianceStatusCommand,
|
|
19
|
-
} from "../protocols/Aws_json1_1";
|
|
20
|
-
|
|
21
|
-
export interface ListComplianceStatusCommandInput extends ListComplianceStatusRequest {}
|
|
22
|
-
export interface ListComplianceStatusCommandOutput extends ListComplianceStatusResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Returns an array of <code>PolicyComplianceStatus</code> objects. Use
|
|
26
|
-
* <code>PolicyComplianceStatus</code> to get a summary of which member accounts are protected
|
|
27
|
-
* by the specified policy. </p>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { FMSClient, ListComplianceStatusCommand } from "@aws-sdk/client-fms"; // ES Modules import
|
|
32
|
-
* // const { FMSClient, ListComplianceStatusCommand } = require("@aws-sdk/client-fms"); // CommonJS import
|
|
33
|
-
* const client = new FMSClient(config);
|
|
34
|
-
* const command = new ListComplianceStatusCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link ListComplianceStatusCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link ListComplianceStatusCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link FMSClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
export class ListComplianceStatusCommand extends $Command<
|
|
44
|
-
ListComplianceStatusCommandInput,
|
|
45
|
-
ListComplianceStatusCommandOutput,
|
|
46
|
-
FMSClientResolvedConfig
|
|
47
|
-
> {
|
|
48
|
-
// Start section: command_properties
|
|
49
|
-
// End section: command_properties
|
|
50
|
-
|
|
51
|
-
constructor(readonly input: ListComplianceStatusCommandInput) {
|
|
52
|
-
// Start section: command_constructor
|
|
53
|
-
super();
|
|
54
|
-
// End section: command_constructor
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
resolveMiddleware(
|
|
61
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
62
|
-
configuration: FMSClientResolvedConfig,
|
|
63
|
-
options?: __HttpHandlerOptions
|
|
64
|
-
): Handler<ListComplianceStatusCommandInput, ListComplianceStatusCommandOutput> {
|
|
65
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
-
|
|
67
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
68
|
-
|
|
69
|
-
const { logger } = configuration;
|
|
70
|
-
const clientName = "FMSClient";
|
|
71
|
-
const commandName = "ListComplianceStatusCommand";
|
|
72
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
-
logger,
|
|
74
|
-
clientName,
|
|
75
|
-
commandName,
|
|
76
|
-
inputFilterSensitiveLog: ListComplianceStatusRequest.filterSensitiveLog,
|
|
77
|
-
outputFilterSensitiveLog: ListComplianceStatusResponse.filterSensitiveLog,
|
|
78
|
-
};
|
|
79
|
-
const { requestHandler } = configuration;
|
|
80
|
-
return stack.resolve(
|
|
81
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
82
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
83
|
-
handlerExecutionContext
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
private serialize(input: ListComplianceStatusCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
88
|
-
return serializeAws_json1_1ListComplianceStatusCommand(input, context);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListComplianceStatusCommandOutput> {
|
|
92
|
-
return deserializeAws_json1_1ListComplianceStatusCommand(output, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// Start section: command_body_extra
|
|
96
|
-
// End section: command_body_extra
|
|
97
|
-
}
|