@aws-sdk/client-connect 3.223.0 → 3.225.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 (86) hide show
  1. package/dist-cjs/Connect.js +75 -0
  2. package/dist-cjs/commands/CreateRuleCommand.js +46 -0
  3. package/dist-cjs/commands/DeleteRuleCommand.js +46 -0
  4. package/dist-cjs/commands/DescribeRuleCommand.js +46 -0
  5. package/dist-cjs/commands/ListContactReferencesCommand.js +2 -1
  6. package/dist-cjs/commands/ListDefaultVocabulariesCommand.js +3 -3
  7. package/dist-cjs/commands/ListHoursOfOperationsCommand.js +3 -3
  8. package/dist-cjs/commands/ListInstanceAttributesCommand.js +3 -3
  9. package/dist-cjs/commands/ListInstanceStorageConfigsCommand.js +3 -3
  10. package/dist-cjs/commands/ListInstancesCommand.js +3 -3
  11. package/dist-cjs/commands/ListIntegrationAssociationsCommand.js +3 -3
  12. package/dist-cjs/commands/ListRulesCommand.js +46 -0
  13. package/dist-cjs/commands/UpdateRuleCommand.js +46 -0
  14. package/dist-cjs/commands/index.js +5 -0
  15. package/dist-cjs/endpoint/ruleset.js +1 -10
  16. package/dist-cjs/models/models_0.js +104 -134
  17. package/dist-cjs/models/models_1.js +139 -8
  18. package/dist-cjs/pagination/ListRulesPaginator.js +36 -0
  19. package/dist-cjs/pagination/index.js +1 -0
  20. package/dist-cjs/protocols/Aws_restJson1.js +606 -7
  21. package/dist-es/Connect.js +75 -0
  22. package/dist-es/commands/CreateRuleCommand.js +42 -0
  23. package/dist-es/commands/DeleteRuleCommand.js +42 -0
  24. package/dist-es/commands/DescribeRuleCommand.js +42 -0
  25. package/dist-es/commands/ListContactReferencesCommand.js +2 -1
  26. package/dist-es/commands/ListDefaultVocabulariesCommand.js +1 -1
  27. package/dist-es/commands/ListHoursOfOperationsCommand.js +1 -1
  28. package/dist-es/commands/ListInstanceAttributesCommand.js +1 -1
  29. package/dist-es/commands/ListInstanceStorageConfigsCommand.js +1 -1
  30. package/dist-es/commands/ListInstancesCommand.js +1 -1
  31. package/dist-es/commands/ListIntegrationAssociationsCommand.js +1 -1
  32. package/dist-es/commands/ListRulesCommand.js +42 -0
  33. package/dist-es/commands/UpdateRuleCommand.js +42 -0
  34. package/dist-es/commands/index.js +5 -0
  35. package/dist-es/endpoint/ruleset.js +1 -10
  36. package/dist-es/models/models_0.js +83 -107
  37. package/dist-es/models/models_1.js +111 -3
  38. package/dist-es/pagination/ListRulesPaginator.js +32 -0
  39. package/dist-es/pagination/index.js +1 -0
  40. package/dist-es/protocols/Aws_restJson1.js +589 -0
  41. package/dist-types/Connect.d.ts +44 -4
  42. package/dist-types/ConnectClient.d.ts +7 -2
  43. package/dist-types/commands/ClaimPhoneNumberCommand.d.ts +5 -1
  44. package/dist-types/commands/CreateRuleCommand.d.ts +37 -0
  45. package/dist-types/commands/DeleteRuleCommand.d.ts +37 -0
  46. package/dist-types/commands/DescribeRuleCommand.d.ts +37 -0
  47. package/dist-types/commands/DismissUserContactCommand.d.ts +1 -1
  48. package/dist-types/commands/ListContactReferencesCommand.d.ts +2 -1
  49. package/dist-types/commands/ListDefaultVocabulariesCommand.d.ts +1 -1
  50. package/dist-types/commands/ListHoursOfOperationsCommand.d.ts +1 -1
  51. package/dist-types/commands/ListInstanceAttributesCommand.d.ts +1 -1
  52. package/dist-types/commands/ListInstanceStorageConfigsCommand.d.ts +1 -1
  53. package/dist-types/commands/ListInstancesCommand.d.ts +1 -1
  54. package/dist-types/commands/ListIntegrationAssociationsCommand.d.ts +1 -1
  55. package/dist-types/commands/ListRulesCommand.d.ts +37 -0
  56. package/dist-types/commands/MonitorContactCommand.d.ts +3 -2
  57. package/dist-types/commands/UpdateRuleCommand.d.ts +37 -0
  58. package/dist-types/commands/index.d.ts +5 -0
  59. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  60. package/dist-types/models/models_0.d.ts +373 -516
  61. package/dist-types/models/models_1.d.ts +628 -29
  62. package/dist-types/pagination/ListRulesPaginator.d.ts +4 -0
  63. package/dist-types/pagination/index.d.ts +1 -0
  64. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  65. package/dist-types/ts3.4/Connect.d.ts +85 -0
  66. package/dist-types/ts3.4/ConnectClient.d.ts +30 -0
  67. package/dist-types/ts3.4/commands/CreateRuleCommand.d.ts +34 -0
  68. package/dist-types/ts3.4/commands/DeleteRuleCommand.d.ts +32 -0
  69. package/dist-types/ts3.4/commands/DescribeRuleCommand.d.ts +34 -0
  70. package/dist-types/ts3.4/commands/ListContactReferencesCommand.d.ts +2 -4
  71. package/dist-types/ts3.4/commands/ListDefaultVocabulariesCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/ListHoursOfOperationsCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/ListInstanceAttributesCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/ListInstanceStorageConfigsCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/ListInstancesCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/ListIntegrationAssociationsCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/ListRulesCommand.d.ts +34 -0
  78. package/dist-types/ts3.4/commands/UpdateRuleCommand.d.ts +32 -0
  79. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  80. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  81. package/dist-types/ts3.4/models/models_0.d.ts +147 -249
  82. package/dist-types/ts3.4/models/models_1.d.ts +294 -6
  83. package/dist-types/ts3.4/pagination/ListRulesPaginator.d.ts +11 -0
  84. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  85. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  86. package/package.json +28 -28
@@ -18,6 +18,7 @@ import { CreateIntegrationAssociationCommand, } from "./commands/CreateIntegrati
18
18
  import { CreateQueueCommand } from "./commands/CreateQueueCommand";
19
19
  import { CreateQuickConnectCommand, } from "./commands/CreateQuickConnectCommand";
20
20
  import { CreateRoutingProfileCommand, } from "./commands/CreateRoutingProfileCommand";
21
+ import { CreateRuleCommand } from "./commands/CreateRuleCommand";
21
22
  import { CreateSecurityProfileCommand, } from "./commands/CreateSecurityProfileCommand";
22
23
  import { CreateTaskTemplateCommand, } from "./commands/CreateTaskTemplateCommand";
23
24
  import { CreateTrafficDistributionGroupCommand, } from "./commands/CreateTrafficDistributionGroupCommand";
@@ -31,6 +32,7 @@ import { DeleteHoursOfOperationCommand, } from "./commands/DeleteHoursOfOperatio
31
32
  import { DeleteInstanceCommand, } from "./commands/DeleteInstanceCommand";
32
33
  import { DeleteIntegrationAssociationCommand, } from "./commands/DeleteIntegrationAssociationCommand";
33
34
  import { DeleteQuickConnectCommand, } from "./commands/DeleteQuickConnectCommand";
35
+ import { DeleteRuleCommand } from "./commands/DeleteRuleCommand";
34
36
  import { DeleteSecurityProfileCommand, } from "./commands/DeleteSecurityProfileCommand";
35
37
  import { DeleteTaskTemplateCommand, } from "./commands/DeleteTaskTemplateCommand";
36
38
  import { DeleteTrafficDistributionGroupCommand, } from "./commands/DeleteTrafficDistributionGroupCommand";
@@ -50,6 +52,7 @@ import { DescribePhoneNumberCommand, } from "./commands/DescribePhoneNumberComma
50
52
  import { DescribeQueueCommand, } from "./commands/DescribeQueueCommand";
51
53
  import { DescribeQuickConnectCommand, } from "./commands/DescribeQuickConnectCommand";
52
54
  import { DescribeRoutingProfileCommand, } from "./commands/DescribeRoutingProfileCommand";
55
+ import { DescribeRuleCommand, } from "./commands/DescribeRuleCommand";
53
56
  import { DescribeSecurityProfileCommand, } from "./commands/DescribeSecurityProfileCommand";
54
57
  import { DescribeTrafficDistributionGroupCommand, } from "./commands/DescribeTrafficDistributionGroupCommand";
55
58
  import { DescribeUserCommand, } from "./commands/DescribeUserCommand";
@@ -95,6 +98,7 @@ import { ListQueuesCommand } from "./commands/ListQueuesCommand";
95
98
  import { ListQuickConnectsCommand, } from "./commands/ListQuickConnectsCommand";
96
99
  import { ListRoutingProfileQueuesCommand, } from "./commands/ListRoutingProfileQueuesCommand";
97
100
  import { ListRoutingProfilesCommand, } from "./commands/ListRoutingProfilesCommand";
101
+ import { ListRulesCommand } from "./commands/ListRulesCommand";
98
102
  import { ListSecurityKeysCommand, } from "./commands/ListSecurityKeysCommand";
99
103
  import { ListSecurityProfilePermissionsCommand, } from "./commands/ListSecurityProfilePermissionsCommand";
100
104
  import { ListSecurityProfilesCommand, } from "./commands/ListSecurityProfilesCommand";
@@ -151,6 +155,7 @@ import { UpdateRoutingProfileConcurrencyCommand, } from "./commands/UpdateRoutin
151
155
  import { UpdateRoutingProfileDefaultOutboundQueueCommand, } from "./commands/UpdateRoutingProfileDefaultOutboundQueueCommand";
152
156
  import { UpdateRoutingProfileNameCommand, } from "./commands/UpdateRoutingProfileNameCommand";
153
157
  import { UpdateRoutingProfileQueuesCommand, } from "./commands/UpdateRoutingProfileQueuesCommand";
158
+ import { UpdateRuleCommand } from "./commands/UpdateRuleCommand";
154
159
  import { UpdateSecurityProfileCommand, } from "./commands/UpdateSecurityProfileCommand";
155
160
  import { UpdateTaskTemplateCommand, } from "./commands/UpdateTaskTemplateCommand";
156
161
  import { UpdateTrafficDistributionCommand, } from "./commands/UpdateTrafficDistributionCommand";
@@ -443,6 +448,20 @@ export class Connect extends ConnectClient {
443
448
  return this.send(command, optionsOrCb);
444
449
  }
445
450
  }
451
+ createRule(args, optionsOrCb, cb) {
452
+ const command = new CreateRuleCommand(args);
453
+ if (typeof optionsOrCb === "function") {
454
+ this.send(command, optionsOrCb);
455
+ }
456
+ else if (typeof cb === "function") {
457
+ if (typeof optionsOrCb !== "object")
458
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
459
+ this.send(command, optionsOrCb || {}, cb);
460
+ }
461
+ else {
462
+ return this.send(command, optionsOrCb);
463
+ }
464
+ }
446
465
  createSecurityProfile(args, optionsOrCb, cb) {
447
466
  const command = new CreateSecurityProfileCommand(args);
448
467
  if (typeof optionsOrCb === "function") {
@@ -625,6 +644,20 @@ export class Connect extends ConnectClient {
625
644
  return this.send(command, optionsOrCb);
626
645
  }
627
646
  }
647
+ deleteRule(args, optionsOrCb, cb) {
648
+ const command = new DeleteRuleCommand(args);
649
+ if (typeof optionsOrCb === "function") {
650
+ this.send(command, optionsOrCb);
651
+ }
652
+ else if (typeof cb === "function") {
653
+ if (typeof optionsOrCb !== "object")
654
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
655
+ this.send(command, optionsOrCb || {}, cb);
656
+ }
657
+ else {
658
+ return this.send(command, optionsOrCb);
659
+ }
660
+ }
628
661
  deleteSecurityProfile(args, optionsOrCb, cb) {
629
662
  const command = new DeleteSecurityProfileCommand(args);
630
663
  if (typeof optionsOrCb === "function") {
@@ -891,6 +924,20 @@ export class Connect extends ConnectClient {
891
924
  return this.send(command, optionsOrCb);
892
925
  }
893
926
  }
927
+ describeRule(args, optionsOrCb, cb) {
928
+ const command = new DescribeRuleCommand(args);
929
+ if (typeof optionsOrCb === "function") {
930
+ this.send(command, optionsOrCb);
931
+ }
932
+ else if (typeof cb === "function") {
933
+ if (typeof optionsOrCb !== "object")
934
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
935
+ this.send(command, optionsOrCb || {}, cb);
936
+ }
937
+ else {
938
+ return this.send(command, optionsOrCb);
939
+ }
940
+ }
894
941
  describeSecurityProfile(args, optionsOrCb, cb) {
895
942
  const command = new DescribeSecurityProfileCommand(args);
896
943
  if (typeof optionsOrCb === "function") {
@@ -1521,6 +1568,20 @@ export class Connect extends ConnectClient {
1521
1568
  return this.send(command, optionsOrCb);
1522
1569
  }
1523
1570
  }
1571
+ listRules(args, optionsOrCb, cb) {
1572
+ const command = new ListRulesCommand(args);
1573
+ if (typeof optionsOrCb === "function") {
1574
+ this.send(command, optionsOrCb);
1575
+ }
1576
+ else if (typeof cb === "function") {
1577
+ if (typeof optionsOrCb !== "object")
1578
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1579
+ this.send(command, optionsOrCb || {}, cb);
1580
+ }
1581
+ else {
1582
+ return this.send(command, optionsOrCb);
1583
+ }
1584
+ }
1524
1585
  listSecurityKeys(args, optionsOrCb, cb) {
1525
1586
  const command = new ListSecurityKeysCommand(args);
1526
1587
  if (typeof optionsOrCb === "function") {
@@ -2305,6 +2366,20 @@ export class Connect extends ConnectClient {
2305
2366
  return this.send(command, optionsOrCb);
2306
2367
  }
2307
2368
  }
2369
+ updateRule(args, optionsOrCb, cb) {
2370
+ const command = new UpdateRuleCommand(args);
2371
+ if (typeof optionsOrCb === "function") {
2372
+ this.send(command, optionsOrCb);
2373
+ }
2374
+ else if (typeof cb === "function") {
2375
+ if (typeof optionsOrCb !== "object")
2376
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2377
+ this.send(command, optionsOrCb || {}, cb);
2378
+ }
2379
+ else {
2380
+ return this.send(command, optionsOrCb);
2381
+ }
2382
+ }
2308
2383
  updateSecurityProfile(args, optionsOrCb, cb) {
2309
2384
  const command = new UpdateSecurityProfileCommand(args);
2310
2385
  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 { CreateRuleRequestFilterSensitiveLog, CreateRuleResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1CreateRuleCommand, serializeAws_restJson1CreateRuleCommand, } from "../protocols/Aws_restJson1";
6
+ export class CreateRuleCommand 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, CreateRuleCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "ConnectClient";
25
+ const commandName = "CreateRuleCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: CreateRuleRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: CreateRuleResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1CreateRuleCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1CreateRuleCommand(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 { DeleteRuleRequestFilterSensitiveLog } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteRuleCommand, serializeAws_restJson1DeleteRuleCommand, } from "../protocols/Aws_restJson1";
6
+ export class DeleteRuleCommand 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, DeleteRuleCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "ConnectClient";
25
+ const commandName = "DeleteRuleCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DeleteRuleRequestFilterSensitiveLog,
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_restJson1DeleteRuleCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1DeleteRuleCommand(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 { DescribeRuleRequestFilterSensitiveLog, DescribeRuleResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1DescribeRuleCommand, serializeAws_restJson1DescribeRuleCommand, } from "../protocols/Aws_restJson1";
6
+ export class DescribeRuleCommand 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, DescribeRuleCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "ConnectClient";
25
+ const commandName = "DescribeRuleCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DescribeRuleRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: DescribeRuleResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1DescribeRuleCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1DescribeRuleCommand(output, context);
41
+ }
42
+ }
@@ -1,7 +1,8 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListContactReferencesRequestFilterSensitiveLog, ListContactReferencesResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { ListContactReferencesRequestFilterSensitiveLog } from "../models/models_0";
5
+ import { ListContactReferencesResponseFilterSensitiveLog } from "../models/models_1";
5
6
  import { deserializeAws_restJson1ListContactReferencesCommand, serializeAws_restJson1ListContactReferencesCommand, } from "../protocols/Aws_restJson1";
6
7
  export class ListContactReferencesCommand extends $Command {
7
8
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListDefaultVocabulariesRequestFilterSensitiveLog, ListDefaultVocabulariesResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { ListDefaultVocabulariesRequestFilterSensitiveLog, ListDefaultVocabulariesResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListDefaultVocabulariesCommand, serializeAws_restJson1ListDefaultVocabulariesCommand, } from "../protocols/Aws_restJson1";
6
6
  export class ListDefaultVocabulariesCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListHoursOfOperationsRequestFilterSensitiveLog, ListHoursOfOperationsResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { ListHoursOfOperationsRequestFilterSensitiveLog, ListHoursOfOperationsResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListHoursOfOperationsCommand, serializeAws_restJson1ListHoursOfOperationsCommand, } from "../protocols/Aws_restJson1";
6
6
  export class ListHoursOfOperationsCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListInstanceAttributesRequestFilterSensitiveLog, ListInstanceAttributesResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { ListInstanceAttributesRequestFilterSensitiveLog, ListInstanceAttributesResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListInstanceAttributesCommand, serializeAws_restJson1ListInstanceAttributesCommand, } from "../protocols/Aws_restJson1";
6
6
  export class ListInstanceAttributesCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListInstanceStorageConfigsRequestFilterSensitiveLog, ListInstanceStorageConfigsResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { ListInstanceStorageConfigsRequestFilterSensitiveLog, ListInstanceStorageConfigsResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListInstanceStorageConfigsCommand, serializeAws_restJson1ListInstanceStorageConfigsCommand, } from "../protocols/Aws_restJson1";
6
6
  export class ListInstanceStorageConfigsCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListInstancesRequestFilterSensitiveLog, ListInstancesResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { ListInstancesRequestFilterSensitiveLog, ListInstancesResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListInstancesCommand, serializeAws_restJson1ListInstancesCommand, } from "../protocols/Aws_restJson1";
6
6
  export class ListInstancesCommand extends $Command {
7
7
  constructor(input) {
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListIntegrationAssociationsRequestFilterSensitiveLog, ListIntegrationAssociationsResponseFilterSensitiveLog, } from "../models/models_0";
4
+ import { ListIntegrationAssociationsRequestFilterSensitiveLog, ListIntegrationAssociationsResponseFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restJson1ListIntegrationAssociationsCommand, serializeAws_restJson1ListIntegrationAssociationsCommand, } from "../protocols/Aws_restJson1";
6
6
  export class ListIntegrationAssociationsCommand extends $Command {
7
7
  constructor(input) {
@@ -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 { ListRulesRequestFilterSensitiveLog, ListRulesResponseFilterSensitiveLog, } from "../models/models_1";
5
+ import { deserializeAws_restJson1ListRulesCommand, serializeAws_restJson1ListRulesCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListRulesCommand 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, ListRulesCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "ConnectClient";
25
+ const commandName = "ListRulesCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListRulesRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListRulesResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListRulesCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListRulesCommand(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 { UpdateRuleRequestFilterSensitiveLog } from "../models/models_1";
5
+ import { deserializeAws_restJson1UpdateRuleCommand, serializeAws_restJson1UpdateRuleCommand, } from "../protocols/Aws_restJson1";
6
+ export class UpdateRuleCommand 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, UpdateRuleCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "ConnectClient";
25
+ const commandName = "UpdateRuleCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: UpdateRuleRequestFilterSensitiveLog,
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_restJson1UpdateRuleCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1UpdateRuleCommand(output, context);
41
+ }
42
+ }
@@ -18,6 +18,7 @@ export * from "./CreateIntegrationAssociationCommand";
18
18
  export * from "./CreateQueueCommand";
19
19
  export * from "./CreateQuickConnectCommand";
20
20
  export * from "./CreateRoutingProfileCommand";
21
+ export * from "./CreateRuleCommand";
21
22
  export * from "./CreateSecurityProfileCommand";
22
23
  export * from "./CreateTaskTemplateCommand";
23
24
  export * from "./CreateTrafficDistributionGroupCommand";
@@ -31,6 +32,7 @@ export * from "./DeleteHoursOfOperationCommand";
31
32
  export * from "./DeleteInstanceCommand";
32
33
  export * from "./DeleteIntegrationAssociationCommand";
33
34
  export * from "./DeleteQuickConnectCommand";
35
+ export * from "./DeleteRuleCommand";
34
36
  export * from "./DeleteSecurityProfileCommand";
35
37
  export * from "./DeleteTaskTemplateCommand";
36
38
  export * from "./DeleteTrafficDistributionGroupCommand";
@@ -50,6 +52,7 @@ export * from "./DescribePhoneNumberCommand";
50
52
  export * from "./DescribeQueueCommand";
51
53
  export * from "./DescribeQuickConnectCommand";
52
54
  export * from "./DescribeRoutingProfileCommand";
55
+ export * from "./DescribeRuleCommand";
53
56
  export * from "./DescribeSecurityProfileCommand";
54
57
  export * from "./DescribeTrafficDistributionGroupCommand";
55
58
  export * from "./DescribeUserCommand";
@@ -95,6 +98,7 @@ export * from "./ListQueuesCommand";
95
98
  export * from "./ListQuickConnectsCommand";
96
99
  export * from "./ListRoutingProfileQueuesCommand";
97
100
  export * from "./ListRoutingProfilesCommand";
101
+ export * from "./ListRulesCommand";
98
102
  export * from "./ListSecurityKeysCommand";
99
103
  export * from "./ListSecurityProfilePermissionsCommand";
100
104
  export * from "./ListSecurityProfilesCommand";
@@ -151,6 +155,7 @@ export * from "./UpdateRoutingProfileConcurrencyCommand";
151
155
  export * from "./UpdateRoutingProfileDefaultOutboundQueueCommand";
152
156
  export * from "./UpdateRoutingProfileNameCommand";
153
157
  export * from "./UpdateRoutingProfileQueuesCommand";
158
+ export * from "./UpdateRuleCommand";
154
159
  export * from "./UpdateSecurityProfileCommand";
155
160
  export * from "./UpdateTaskTemplateCommand";
156
161
  export * from "./UpdateTrafficDistributionCommand";
@@ -3,7 +3,7 @@ export const ruleSet = {
3
3
  parameters: {
4
4
  Region: {
5
5
  builtIn: "AWS::Region",
6
- required: false,
6
+ required: true,
7
7
  documentation: "The AWS region used to dispatch the request.",
8
8
  type: "String",
9
9
  },
@@ -53,15 +53,6 @@ export const ruleSet = {
53
53
  },
54
54
  ],
55
55
  },
56
- {
57
- fn: "parseURL",
58
- argv: [
59
- {
60
- ref: "Endpoint",
61
- },
62
- ],
63
- assign: "url",
64
- },
65
56
  ],
66
57
  type: "tree",
67
58
  rules: [