@aws-sdk/client-fms 3.204.0 → 3.208.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.
Files changed (51) hide show
  1. package/dist-cjs/FMS.js +120 -0
  2. package/dist-cjs/commands/BatchAssociateResourceCommand.js +46 -0
  3. package/dist-cjs/commands/BatchDisassociateResourceCommand.js +46 -0
  4. package/dist-cjs/commands/DeleteResourceSetCommand.js +46 -0
  5. package/dist-cjs/commands/GetResourceSetCommand.js +46 -0
  6. package/dist-cjs/commands/ListDiscoveredResourcesCommand.js +46 -0
  7. package/dist-cjs/commands/ListResourceSetResourcesCommand.js +46 -0
  8. package/dist-cjs/commands/ListResourceSetsCommand.js +46 -0
  9. package/dist-cjs/commands/PutResourceSetCommand.js +46 -0
  10. package/dist-cjs/commands/index.js +8 -0
  11. package/dist-cjs/models/models_0.js +94 -3
  12. package/dist-cjs/protocols/Aws_json1_1.js +653 -2
  13. package/dist-es/FMS.js +120 -0
  14. package/dist-es/commands/BatchAssociateResourceCommand.js +42 -0
  15. package/dist-es/commands/BatchDisassociateResourceCommand.js +42 -0
  16. package/dist-es/commands/DeleteResourceSetCommand.js +42 -0
  17. package/dist-es/commands/GetResourceSetCommand.js +42 -0
  18. package/dist-es/commands/ListDiscoveredResourcesCommand.js +42 -0
  19. package/dist-es/commands/ListResourceSetResourcesCommand.js +42 -0
  20. package/dist-es/commands/ListResourceSetsCommand.js +42 -0
  21. package/dist-es/commands/PutResourceSetCommand.js +42 -0
  22. package/dist-es/commands/index.js +8 -0
  23. package/dist-es/models/models_0.js +70 -0
  24. package/dist-es/protocols/Aws_json1_1.js +635 -0
  25. package/dist-types/FMS.d.ts +57 -0
  26. package/dist-types/FMSClient.d.ts +10 -2
  27. package/dist-types/commands/BatchAssociateResourceCommand.d.ts +37 -0
  28. package/dist-types/commands/BatchDisassociateResourceCommand.d.ts +37 -0
  29. package/dist-types/commands/DeleteResourceSetCommand.d.ts +37 -0
  30. package/dist-types/commands/GetResourceSetCommand.d.ts +37 -0
  31. package/dist-types/commands/ListDiscoveredResourcesCommand.d.ts +37 -0
  32. package/dist-types/commands/ListResourceSetResourcesCommand.d.ts +37 -0
  33. package/dist-types/commands/ListResourceSetsCommand.d.ts +37 -0
  34. package/dist-types/commands/PutResourceSetCommand.d.ts +38 -0
  35. package/dist-types/commands/index.d.ts +8 -0
  36. package/dist-types/models/models_0.d.ts +375 -0
  37. package/dist-types/protocols/Aws_json1_1.d.ts +24 -0
  38. package/dist-types/ts3.4/FMS.d.ts +136 -0
  39. package/dist-types/ts3.4/FMSClient.d.ts +48 -0
  40. package/dist-types/ts3.4/commands/BatchAssociateResourceCommand.d.ts +41 -0
  41. package/dist-types/ts3.4/commands/BatchDisassociateResourceCommand.d.ts +41 -0
  42. package/dist-types/ts3.4/commands/DeleteResourceSetCommand.d.ts +33 -0
  43. package/dist-types/ts3.4/commands/GetResourceSetCommand.d.ts +37 -0
  44. package/dist-types/ts3.4/commands/ListDiscoveredResourcesCommand.d.ts +41 -0
  45. package/dist-types/ts3.4/commands/ListResourceSetResourcesCommand.d.ts +41 -0
  46. package/dist-types/ts3.4/commands/ListResourceSetsCommand.d.ts +37 -0
  47. package/dist-types/ts3.4/commands/PutResourceSetCommand.d.ts +37 -0
  48. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  49. package/dist-types/ts3.4/models/models_0.d.ts +154 -0
  50. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +96 -0
  51. package/package.json +35 -35
package/dist-es/FMS.js CHANGED
@@ -1,9 +1,12 @@
1
1
  import { AssociateAdminAccountCommand, } from "./commands/AssociateAdminAccountCommand";
2
2
  import { AssociateThirdPartyFirewallCommand, } from "./commands/AssociateThirdPartyFirewallCommand";
3
+ import { BatchAssociateResourceCommand, } from "./commands/BatchAssociateResourceCommand";
4
+ import { BatchDisassociateResourceCommand, } from "./commands/BatchDisassociateResourceCommand";
3
5
  import { DeleteAppsListCommand, } from "./commands/DeleteAppsListCommand";
4
6
  import { DeleteNotificationChannelCommand, } from "./commands/DeleteNotificationChannelCommand";
5
7
  import { DeletePolicyCommand, } from "./commands/DeletePolicyCommand";
6
8
  import { DeleteProtocolsListCommand, } from "./commands/DeleteProtocolsListCommand";
9
+ import { DeleteResourceSetCommand, } from "./commands/DeleteResourceSetCommand";
7
10
  import { DisassociateAdminAccountCommand, } from "./commands/DisassociateAdminAccountCommand";
8
11
  import { DisassociateThirdPartyFirewallCommand, } from "./commands/DisassociateThirdPartyFirewallCommand";
9
12
  import { GetAdminAccountCommand, } from "./commands/GetAdminAccountCommand";
@@ -13,19 +16,24 @@ import { GetNotificationChannelCommand, } from "./commands/GetNotificationChanne
13
16
  import { GetPolicyCommand } from "./commands/GetPolicyCommand";
14
17
  import { GetProtectionStatusCommand, } from "./commands/GetProtectionStatusCommand";
15
18
  import { GetProtocolsListCommand, } from "./commands/GetProtocolsListCommand";
19
+ import { GetResourceSetCommand, } from "./commands/GetResourceSetCommand";
16
20
  import { GetThirdPartyFirewallAssociationStatusCommand, } from "./commands/GetThirdPartyFirewallAssociationStatusCommand";
17
21
  import { GetViolationDetailsCommand, } from "./commands/GetViolationDetailsCommand";
18
22
  import { ListAppsListsCommand, } from "./commands/ListAppsListsCommand";
19
23
  import { ListComplianceStatusCommand, } from "./commands/ListComplianceStatusCommand";
24
+ import { ListDiscoveredResourcesCommand, } from "./commands/ListDiscoveredResourcesCommand";
20
25
  import { ListMemberAccountsCommand, } from "./commands/ListMemberAccountsCommand";
21
26
  import { ListPoliciesCommand, } from "./commands/ListPoliciesCommand";
22
27
  import { ListProtocolsListsCommand, } from "./commands/ListProtocolsListsCommand";
28
+ import { ListResourceSetResourcesCommand, } from "./commands/ListResourceSetResourcesCommand";
29
+ import { ListResourceSetsCommand, } from "./commands/ListResourceSetsCommand";
23
30
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
24
31
  import { ListThirdPartyFirewallFirewallPoliciesCommand, } from "./commands/ListThirdPartyFirewallFirewallPoliciesCommand";
25
32
  import { PutAppsListCommand } from "./commands/PutAppsListCommand";
26
33
  import { PutNotificationChannelCommand, } from "./commands/PutNotificationChannelCommand";
27
34
  import { PutPolicyCommand } from "./commands/PutPolicyCommand";
28
35
  import { PutProtocolsListCommand, } from "./commands/PutProtocolsListCommand";
36
+ import { PutResourceSetCommand, } from "./commands/PutResourceSetCommand";
29
37
  import { TagResourceCommand } from "./commands/TagResourceCommand";
30
38
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
31
39
  import { FMSClient } from "./FMSClient";
@@ -58,6 +66,34 @@ export class FMS extends FMSClient {
58
66
  return this.send(command, optionsOrCb);
59
67
  }
60
68
  }
69
+ batchAssociateResource(args, optionsOrCb, cb) {
70
+ const command = new BatchAssociateResourceCommand(args);
71
+ if (typeof optionsOrCb === "function") {
72
+ this.send(command, optionsOrCb);
73
+ }
74
+ else if (typeof cb === "function") {
75
+ if (typeof optionsOrCb !== "object")
76
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
77
+ this.send(command, optionsOrCb || {}, cb);
78
+ }
79
+ else {
80
+ return this.send(command, optionsOrCb);
81
+ }
82
+ }
83
+ batchDisassociateResource(args, optionsOrCb, cb) {
84
+ const command = new BatchDisassociateResourceCommand(args);
85
+ if (typeof optionsOrCb === "function") {
86
+ this.send(command, optionsOrCb);
87
+ }
88
+ else if (typeof cb === "function") {
89
+ if (typeof optionsOrCb !== "object")
90
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
91
+ this.send(command, optionsOrCb || {}, cb);
92
+ }
93
+ else {
94
+ return this.send(command, optionsOrCb);
95
+ }
96
+ }
61
97
  deleteAppsList(args, optionsOrCb, cb) {
62
98
  const command = new DeleteAppsListCommand(args);
63
99
  if (typeof optionsOrCb === "function") {
@@ -114,6 +150,20 @@ export class FMS extends FMSClient {
114
150
  return this.send(command, optionsOrCb);
115
151
  }
116
152
  }
153
+ deleteResourceSet(args, optionsOrCb, cb) {
154
+ const command = new DeleteResourceSetCommand(args);
155
+ if (typeof optionsOrCb === "function") {
156
+ this.send(command, optionsOrCb);
157
+ }
158
+ else if (typeof cb === "function") {
159
+ if (typeof optionsOrCb !== "object")
160
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
161
+ this.send(command, optionsOrCb || {}, cb);
162
+ }
163
+ else {
164
+ return this.send(command, optionsOrCb);
165
+ }
166
+ }
117
167
  disassociateAdminAccount(args, optionsOrCb, cb) {
118
168
  const command = new DisassociateAdminAccountCommand(args);
119
169
  if (typeof optionsOrCb === "function") {
@@ -240,6 +290,20 @@ export class FMS extends FMSClient {
240
290
  return this.send(command, optionsOrCb);
241
291
  }
242
292
  }
293
+ getResourceSet(args, optionsOrCb, cb) {
294
+ const command = new GetResourceSetCommand(args);
295
+ if (typeof optionsOrCb === "function") {
296
+ this.send(command, optionsOrCb);
297
+ }
298
+ else if (typeof cb === "function") {
299
+ if (typeof optionsOrCb !== "object")
300
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
301
+ this.send(command, optionsOrCb || {}, cb);
302
+ }
303
+ else {
304
+ return this.send(command, optionsOrCb);
305
+ }
306
+ }
243
307
  getThirdPartyFirewallAssociationStatus(args, optionsOrCb, cb) {
244
308
  const command = new GetThirdPartyFirewallAssociationStatusCommand(args);
245
309
  if (typeof optionsOrCb === "function") {
@@ -296,6 +360,20 @@ export class FMS extends FMSClient {
296
360
  return this.send(command, optionsOrCb);
297
361
  }
298
362
  }
363
+ listDiscoveredResources(args, optionsOrCb, cb) {
364
+ const command = new ListDiscoveredResourcesCommand(args);
365
+ if (typeof optionsOrCb === "function") {
366
+ this.send(command, optionsOrCb);
367
+ }
368
+ else if (typeof cb === "function") {
369
+ if (typeof optionsOrCb !== "object")
370
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
371
+ this.send(command, optionsOrCb || {}, cb);
372
+ }
373
+ else {
374
+ return this.send(command, optionsOrCb);
375
+ }
376
+ }
299
377
  listMemberAccounts(args, optionsOrCb, cb) {
300
378
  const command = new ListMemberAccountsCommand(args);
301
379
  if (typeof optionsOrCb === "function") {
@@ -338,6 +416,34 @@ export class FMS extends FMSClient {
338
416
  return this.send(command, optionsOrCb);
339
417
  }
340
418
  }
419
+ listResourceSetResources(args, optionsOrCb, cb) {
420
+ const command = new ListResourceSetResourcesCommand(args);
421
+ if (typeof optionsOrCb === "function") {
422
+ this.send(command, optionsOrCb);
423
+ }
424
+ else if (typeof cb === "function") {
425
+ if (typeof optionsOrCb !== "object")
426
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
427
+ this.send(command, optionsOrCb || {}, cb);
428
+ }
429
+ else {
430
+ return this.send(command, optionsOrCb);
431
+ }
432
+ }
433
+ listResourceSets(args, optionsOrCb, cb) {
434
+ const command = new ListResourceSetsCommand(args);
435
+ if (typeof optionsOrCb === "function") {
436
+ this.send(command, optionsOrCb);
437
+ }
438
+ else if (typeof cb === "function") {
439
+ if (typeof optionsOrCb !== "object")
440
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
441
+ this.send(command, optionsOrCb || {}, cb);
442
+ }
443
+ else {
444
+ return this.send(command, optionsOrCb);
445
+ }
446
+ }
341
447
  listTagsForResource(args, optionsOrCb, cb) {
342
448
  const command = new ListTagsForResourceCommand(args);
343
449
  if (typeof optionsOrCb === "function") {
@@ -422,6 +528,20 @@ export class FMS extends FMSClient {
422
528
  return this.send(command, optionsOrCb);
423
529
  }
424
530
  }
531
+ putResourceSet(args, optionsOrCb, cb) {
532
+ const command = new PutResourceSetCommand(args);
533
+ if (typeof optionsOrCb === "function") {
534
+ this.send(command, optionsOrCb);
535
+ }
536
+ else if (typeof cb === "function") {
537
+ if (typeof optionsOrCb !== "object")
538
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
539
+ this.send(command, optionsOrCb || {}, cb);
540
+ }
541
+ else {
542
+ return this.send(command, optionsOrCb);
543
+ }
544
+ }
425
545
  tagResource(args, optionsOrCb, cb) {
426
546
  const command = new TagResourceCommand(args);
427
547
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { BatchAssociateResourceRequestFilterSensitiveLog, BatchAssociateResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1BatchAssociateResourceCommand, serializeAws_json1_1BatchAssociateResourceCommand, } from "../protocols/Aws_json1_1";
6
+ export class BatchAssociateResourceCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
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
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, BatchAssociateResourceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "FMSClient";
25
+ const commandName = "BatchAssociateResourceCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: BatchAssociateResourceRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: BatchAssociateResourceResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1BatchAssociateResourceCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1BatchAssociateResourceCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { BatchDisassociateResourceRequestFilterSensitiveLog, BatchDisassociateResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1BatchDisassociateResourceCommand, serializeAws_json1_1BatchDisassociateResourceCommand, } from "../protocols/Aws_json1_1";
6
+ export class BatchDisassociateResourceCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
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
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, BatchDisassociateResourceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "FMSClient";
25
+ const commandName = "BatchDisassociateResourceCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: BatchDisassociateResourceRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: BatchDisassociateResourceResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1BatchDisassociateResourceCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1BatchDisassociateResourceCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteResourceSetRequestFilterSensitiveLog } from "../models/models_0";
5
+ import { deserializeAws_json1_1DeleteResourceSetCommand, serializeAws_json1_1DeleteResourceSetCommand, } from "../protocols/Aws_json1_1";
6
+ export class DeleteResourceSetCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
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
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteResourceSetCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "FMSClient";
25
+ const commandName = "DeleteResourceSetCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DeleteResourceSetRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: (output) => output,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1DeleteResourceSetCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1DeleteResourceSetCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetResourceSetRequestFilterSensitiveLog, GetResourceSetResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1GetResourceSetCommand, serializeAws_json1_1GetResourceSetCommand, } from "../protocols/Aws_json1_1";
6
+ export class GetResourceSetCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
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
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetResourceSetCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "FMSClient";
25
+ const commandName = "GetResourceSetCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: GetResourceSetRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: GetResourceSetResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1GetResourceSetCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1GetResourceSetCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListDiscoveredResourcesRequestFilterSensitiveLog, ListDiscoveredResourcesResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1ListDiscoveredResourcesCommand, serializeAws_json1_1ListDiscoveredResourcesCommand, } from "../protocols/Aws_json1_1";
6
+ export class ListDiscoveredResourcesCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
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
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListDiscoveredResourcesCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "FMSClient";
25
+ const commandName = "ListDiscoveredResourcesCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListDiscoveredResourcesRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListDiscoveredResourcesResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1ListDiscoveredResourcesCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1ListDiscoveredResourcesCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListResourceSetResourcesRequestFilterSensitiveLog, ListResourceSetResourcesResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1ListResourceSetResourcesCommand, serializeAws_json1_1ListResourceSetResourcesCommand, } from "../protocols/Aws_json1_1";
6
+ export class ListResourceSetResourcesCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
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
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListResourceSetResourcesCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "FMSClient";
25
+ const commandName = "ListResourceSetResourcesCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListResourceSetResourcesRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListResourceSetResourcesResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1ListResourceSetResourcesCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1ListResourceSetResourcesCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListResourceSetsRequestFilterSensitiveLog, ListResourceSetsResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1ListResourceSetsCommand, serializeAws_json1_1ListResourceSetsCommand, } from "../protocols/Aws_json1_1";
6
+ export class ListResourceSetsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
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
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListResourceSetsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "FMSClient";
25
+ const commandName = "ListResourceSetsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListResourceSetsRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListResourceSetsResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1ListResourceSetsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1ListResourceSetsCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { PutResourceSetRequestFilterSensitiveLog, PutResourceSetResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_json1_1PutResourceSetCommand, serializeAws_json1_1PutResourceSetCommand, } from "../protocols/Aws_json1_1";
6
+ export class PutResourceSetCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
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
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, PutResourceSetCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "FMSClient";
25
+ const commandName = "PutResourceSetCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: PutResourceSetRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: PutResourceSetResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_json1_1PutResourceSetCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_json1_1PutResourceSetCommand(output, context);
41
+ }
42
+ }
@@ -1,9 +1,12 @@
1
1
  export * from "./AssociateAdminAccountCommand";
2
2
  export * from "./AssociateThirdPartyFirewallCommand";
3
+ export * from "./BatchAssociateResourceCommand";
4
+ export * from "./BatchDisassociateResourceCommand";
3
5
  export * from "./DeleteAppsListCommand";
4
6
  export * from "./DeleteNotificationChannelCommand";
5
7
  export * from "./DeletePolicyCommand";
6
8
  export * from "./DeleteProtocolsListCommand";
9
+ export * from "./DeleteResourceSetCommand";
7
10
  export * from "./DisassociateAdminAccountCommand";
8
11
  export * from "./DisassociateThirdPartyFirewallCommand";
9
12
  export * from "./GetAdminAccountCommand";
@@ -13,18 +16,23 @@ export * from "./GetNotificationChannelCommand";
13
16
  export * from "./GetPolicyCommand";
14
17
  export * from "./GetProtectionStatusCommand";
15
18
  export * from "./GetProtocolsListCommand";
19
+ export * from "./GetResourceSetCommand";
16
20
  export * from "./GetThirdPartyFirewallAssociationStatusCommand";
17
21
  export * from "./GetViolationDetailsCommand";
18
22
  export * from "./ListAppsListsCommand";
19
23
  export * from "./ListComplianceStatusCommand";
24
+ export * from "./ListDiscoveredResourcesCommand";
20
25
  export * from "./ListMemberAccountsCommand";
21
26
  export * from "./ListPoliciesCommand";
22
27
  export * from "./ListProtocolsListsCommand";
28
+ export * from "./ListResourceSetResourcesCommand";
29
+ export * from "./ListResourceSetsCommand";
23
30
  export * from "./ListTagsForResourceCommand";
24
31
  export * from "./ListThirdPartyFirewallFirewallPoliciesCommand";
25
32
  export * from "./PutAppsListCommand";
26
33
  export * from "./PutNotificationChannelCommand";
27
34
  export * from "./PutPolicyCommand";
28
35
  export * from "./PutProtocolsListCommand";
36
+ export * from "./PutResourceSetCommand";
29
37
  export * from "./TagResourceCommand";
30
38
  export * from "./UntagResourceCommand";