@aws-sdk/client-sqs 3.1076.0 → 3.1078.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 (89) hide show
  1. package/dist-cjs/index.js +45 -246
  2. package/dist-es/commandBuilder.js +18 -0
  3. package/dist-es/commands/AddPermissionCommand.js +2 -14
  4. package/dist-es/commands/CancelMessageMoveTaskCommand.js +2 -14
  5. package/dist-es/commands/ChangeMessageVisibilityBatchCommand.js +2 -14
  6. package/dist-es/commands/ChangeMessageVisibilityCommand.js +2 -14
  7. package/dist-es/commands/CreateQueueCommand.js +2 -14
  8. package/dist-es/commands/DeleteMessageBatchCommand.js +2 -14
  9. package/dist-es/commands/DeleteMessageCommand.js +2 -14
  10. package/dist-es/commands/DeleteQueueCommand.js +2 -14
  11. package/dist-es/commands/GetQueueAttributesCommand.js +2 -14
  12. package/dist-es/commands/GetQueueUrlCommand.js +2 -14
  13. package/dist-es/commands/ListDeadLetterSourceQueuesCommand.js +2 -14
  14. package/dist-es/commands/ListMessageMoveTasksCommand.js +2 -14
  15. package/dist-es/commands/ListQueueTagsCommand.js +2 -14
  16. package/dist-es/commands/ListQueuesCommand.js +2 -14
  17. package/dist-es/commands/PurgeQueueCommand.js +2 -14
  18. package/dist-es/commands/ReceiveMessageCommand.js +2 -20
  19. package/dist-es/commands/RemovePermissionCommand.js +2 -14
  20. package/dist-es/commands/SendMessageBatchCommand.js +2 -18
  21. package/dist-es/commands/SendMessageCommand.js +2 -18
  22. package/dist-es/commands/SetQueueAttributesCommand.js +2 -14
  23. package/dist-es/commands/StartMessageMoveTaskCommand.js +2 -14
  24. package/dist-es/commands/TagQueueCommand.js +2 -14
  25. package/dist-es/commands/UntagQueueCommand.js +2 -14
  26. package/dist-es/index.js +1 -0
  27. package/dist-es/runtimeConfig.browser.js +0 -4
  28. package/dist-es/runtimeConfig.js +1 -3
  29. package/dist-es/runtimeConfig.native.js +0 -2
  30. package/dist-es/runtimeConfig.shared.js +3 -0
  31. package/dist-types/commandBuilder.d.ts +30 -0
  32. package/dist-types/commands/AddPermissionCommand.d.ts +3 -8
  33. package/dist-types/commands/CancelMessageMoveTaskCommand.d.ts +3 -8
  34. package/dist-types/commands/ChangeMessageVisibilityBatchCommand.d.ts +3 -8
  35. package/dist-types/commands/ChangeMessageVisibilityCommand.d.ts +3 -8
  36. package/dist-types/commands/CreateQueueCommand.d.ts +3 -8
  37. package/dist-types/commands/DeleteMessageBatchCommand.d.ts +3 -8
  38. package/dist-types/commands/DeleteMessageCommand.d.ts +3 -8
  39. package/dist-types/commands/DeleteQueueCommand.d.ts +3 -8
  40. package/dist-types/commands/GetQueueAttributesCommand.d.ts +3 -8
  41. package/dist-types/commands/GetQueueUrlCommand.d.ts +3 -8
  42. package/dist-types/commands/ListDeadLetterSourceQueuesCommand.d.ts +3 -8
  43. package/dist-types/commands/ListMessageMoveTasksCommand.d.ts +3 -8
  44. package/dist-types/commands/ListQueueTagsCommand.d.ts +3 -8
  45. package/dist-types/commands/ListQueuesCommand.d.ts +3 -8
  46. package/dist-types/commands/PurgeQueueCommand.d.ts +3 -8
  47. package/dist-types/commands/ReceiveMessageCommand.d.ts +3 -8
  48. package/dist-types/commands/RemovePermissionCommand.d.ts +3 -8
  49. package/dist-types/commands/SendMessageBatchCommand.d.ts +3 -8
  50. package/dist-types/commands/SendMessageCommand.d.ts +3 -8
  51. package/dist-types/commands/SetQueueAttributesCommand.d.ts +3 -8
  52. package/dist-types/commands/StartMessageMoveTaskCommand.d.ts +3 -8
  53. package/dist-types/commands/TagQueueCommand.d.ts +3 -8
  54. package/dist-types/commands/UntagQueueCommand.d.ts +3 -8
  55. package/dist-types/index.d.ts +1 -0
  56. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  57. package/dist-types/runtimeConfig.d.ts +25 -26
  58. package/dist-types/runtimeConfig.native.d.ts +1 -1
  59. package/dist-types/runtimeConfig.shared.d.ts +2 -0
  60. package/dist-types/ts3.4/commandBuilder.d.ts +64 -0
  61. package/dist-types/ts3.4/commands/AddPermissionCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/CancelMessageMoveTaskCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/commands/ChangeMessageVisibilityBatchCommand.d.ts +7 -16
  64. package/dist-types/ts3.4/commands/ChangeMessageVisibilityCommand.d.ts +7 -16
  65. package/dist-types/ts3.4/commands/CreateQueueCommand.d.ts +7 -16
  66. package/dist-types/ts3.4/commands/DeleteMessageBatchCommand.d.ts +7 -16
  67. package/dist-types/ts3.4/commands/DeleteMessageCommand.d.ts +7 -16
  68. package/dist-types/ts3.4/commands/DeleteQueueCommand.d.ts +7 -16
  69. package/dist-types/ts3.4/commands/GetQueueAttributesCommand.d.ts +7 -16
  70. package/dist-types/ts3.4/commands/GetQueueUrlCommand.d.ts +7 -16
  71. package/dist-types/ts3.4/commands/ListDeadLetterSourceQueuesCommand.d.ts +7 -16
  72. package/dist-types/ts3.4/commands/ListMessageMoveTasksCommand.d.ts +7 -16
  73. package/dist-types/ts3.4/commands/ListQueueTagsCommand.d.ts +7 -16
  74. package/dist-types/ts3.4/commands/ListQueuesCommand.d.ts +7 -16
  75. package/dist-types/ts3.4/commands/PurgeQueueCommand.d.ts +7 -16
  76. package/dist-types/ts3.4/commands/ReceiveMessageCommand.d.ts +7 -16
  77. package/dist-types/ts3.4/commands/RemovePermissionCommand.d.ts +7 -16
  78. package/dist-types/ts3.4/commands/SendMessageBatchCommand.d.ts +7 -16
  79. package/dist-types/ts3.4/commands/SendMessageCommand.d.ts +7 -16
  80. package/dist-types/ts3.4/commands/SetQueueAttributesCommand.d.ts +7 -16
  81. package/dist-types/ts3.4/commands/StartMessageMoveTaskCommand.d.ts +7 -16
  82. package/dist-types/ts3.4/commands/TagQueueCommand.d.ts +7 -16
  83. package/dist-types/ts3.4/commands/UntagQueueCommand.d.ts +7 -16
  84. package/dist-types/ts3.4/index.d.ts +1 -0
  85. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  86. package/dist-types/ts3.4/runtimeConfig.d.ts +37 -42
  87. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  88. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
  89. package/package.json +10 -12
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListQueueTags$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListQueueTagsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "ListQueueTags", {})
13
- .n("SQSClient", "ListQueueTagsCommand")
14
- .sc(ListQueueTags$)
15
- .build() {
3
+ export class ListQueueTagsCommand extends command(_ep0, _mw0, "ListQueueTags", ListQueueTags$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListQueues$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListQueuesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "ListQueues", {})
13
- .n("SQSClient", "ListQueuesCommand")
14
- .sc(ListQueues$)
15
- .build() {
3
+ export class ListQueuesCommand extends command(_ep0, _mw0, "ListQueues", ListQueues$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { PurgeQueue$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PurgeQueueCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "PurgeQueue", {})
13
- .n("SQSClient", "PurgeQueueCommand")
14
- .sc(PurgeQueue$)
15
- .build() {
3
+ export class PurgeQueueCommand extends command(_ep0, _mw0, "PurgeQueue", PurgeQueue$) {
16
4
  }
@@ -1,22 +1,4 @@
1
- import { getLongPollPlugin } from "@aws-sdk/core/client";
2
- import { getReceiveMessagePlugin } from "@aws-sdk/middleware-sdk-sqs";
3
- import { Command as $Command } from "@smithy/core/client";
4
- import { getEndpointPlugin } from "@smithy/core/endpoints";
5
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw1, command } from "../commandBuilder";
6
2
  import { ReceiveMessage$ } from "../schemas/schemas_0";
7
- export { $Command };
8
- export class ReceiveMessageCommand extends $Command
9
- .classBuilder()
10
- .ep(commonParams)
11
- .m(function (Command, cs, config, o) {
12
- return [
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- getReceiveMessagePlugin(config),
15
- getLongPollPlugin(config),
16
- ];
17
- })
18
- .s("AmazonSQS", "ReceiveMessage", {})
19
- .n("SQSClient", "ReceiveMessageCommand")
20
- .sc(ReceiveMessage$)
21
- .build() {
3
+ export class ReceiveMessageCommand extends command(_ep0, _mw1, "ReceiveMessage", ReceiveMessage$) {
22
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { RemovePermission$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RemovePermissionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "RemovePermission", {})
13
- .n("SQSClient", "RemovePermissionCommand")
14
- .sc(RemovePermission$)
15
- .build() {
3
+ export class RemovePermissionCommand extends command(_ep0, _mw0, "RemovePermission", RemovePermission$) {
16
4
  }
@@ -1,20 +1,4 @@
1
- import { getSendMessageBatchPlugin } from "@aws-sdk/middleware-sdk-sqs";
2
- import { Command as $Command } from "@smithy/core/client";
3
- import { getEndpointPlugin } from "@smithy/core/endpoints";
4
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw2, command } from "../commandBuilder";
5
2
  import { SendMessageBatch$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class SendMessageBatchCommand extends $Command
8
- .classBuilder()
9
- .ep(commonParams)
10
- .m(function (Command, cs, config, o) {
11
- return [
12
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
13
- getSendMessageBatchPlugin(config),
14
- ];
15
- })
16
- .s("AmazonSQS", "SendMessageBatch", {})
17
- .n("SQSClient", "SendMessageBatchCommand")
18
- .sc(SendMessageBatch$)
19
- .build() {
3
+ export class SendMessageBatchCommand extends command(_ep0, _mw2, "SendMessageBatch", SendMessageBatch$) {
20
4
  }
@@ -1,20 +1,4 @@
1
- import { getSendMessagePlugin } from "@aws-sdk/middleware-sdk-sqs";
2
- import { Command as $Command } from "@smithy/core/client";
3
- import { getEndpointPlugin } from "@smithy/core/endpoints";
4
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw3, command } from "../commandBuilder";
5
2
  import { SendMessage$ } from "../schemas/schemas_0";
6
- export { $Command };
7
- export class SendMessageCommand extends $Command
8
- .classBuilder()
9
- .ep(commonParams)
10
- .m(function (Command, cs, config, o) {
11
- return [
12
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
13
- getSendMessagePlugin(config),
14
- ];
15
- })
16
- .s("AmazonSQS", "SendMessage", {})
17
- .n("SQSClient", "SendMessageCommand")
18
- .sc(SendMessage$)
19
- .build() {
3
+ export class SendMessageCommand extends command(_ep0, _mw3, "SendMessage", SendMessage$) {
20
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { SetQueueAttributes$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class SetQueueAttributesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "SetQueueAttributes", {})
13
- .n("SQSClient", "SetQueueAttributesCommand")
14
- .sc(SetQueueAttributes$)
15
- .build() {
3
+ export class SetQueueAttributesCommand extends command(_ep0, _mw0, "SetQueueAttributes", SetQueueAttributes$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { StartMessageMoveTask$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StartMessageMoveTaskCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "StartMessageMoveTask", {})
13
- .n("SQSClient", "StartMessageMoveTaskCommand")
14
- .sc(StartMessageMoveTask$)
15
- .build() {
3
+ export class StartMessageMoveTaskCommand extends command(_ep0, _mw0, "StartMessageMoveTask", StartMessageMoveTask$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { TagQueue$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagQueueCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "TagQueue", {})
13
- .n("SQSClient", "TagQueueCommand")
14
- .sc(TagQueue$)
15
- .build() {
3
+ export class TagQueueCommand extends command(_ep0, _mw0, "TagQueue", TagQueue$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UntagQueue$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagQueueCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonSQS", "UntagQueue", {})
13
- .n("SQSClient", "UntagQueueCommand")
14
- .sc(UntagQueue$)
15
- .build() {
3
+ export class UntagQueueCommand extends command(_ep0, _mw0, "UntagQueue", UntagQueue$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./SQSClient";
2
2
  export * from "./SQS";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -1,7 +1,5 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
- import { Md5 } from "@smithy/core/checksum";
5
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
6
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
5
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
@@ -21,11 +19,9 @@ export const getRuntimeConfig = (config) => {
21
19
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
22
20
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
23
21
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
24
- md5: config?.md5 ?? Md5,
25
22
  region: config?.region ?? invalidProvider("Region is missing"),
26
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
27
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
28
- sha256: config?.sha256 ?? Sha256,
29
25
  streamCollector: config?.streamCollector ?? streamCollector,
30
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
31
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -28,7 +28,6 @@ export const getRuntimeConfig = (config) => {
28
28
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
29
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
30
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
31
- md5: config?.md5 ?? Hash.bind(null, "md5"),
32
31
  region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
33
32
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
34
33
  retryMode: config?.retryMode ??
@@ -36,7 +35,6 @@ export const getRuntimeConfig = (config) => {
36
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
37
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
38
37
  }, config),
39
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
40
38
  streamCollector: config?.streamCollector ?? streamCollector,
41
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
42
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
3
+ import { Md5, Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -23,6 +24,7 @@ export const getRuntimeConfig = (config) => {
23
24
  },
24
25
  ],
25
26
  logger: config?.logger ?? new NoOpLogger(),
27
+ md5: config?.md5 ?? Md5,
26
28
  protocol: config?.protocol ?? AwsJson1_0Protocol,
27
29
  protocolSettings: config?.protocolSettings ?? {
28
30
  defaultNamespace: "com.amazonaws.sqs",
@@ -32,6 +34,7 @@ export const getRuntimeConfig = (config) => {
32
34
  awsQueryCompatible: true,
33
35
  },
34
36
  serviceId: config?.serviceId ?? "SQS",
37
+ sha256: config?.sha256 ?? Sha256,
35
38
  urlParser: config?.urlParser ?? parseUrl,
36
39
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
37
40
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,30 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { ServiceInputTypes, ServiceOutputTypes, SQSClientResolvedConfig } from "./SQSClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
19
+ /**
20
+ * @internal
21
+ */
22
+ export declare const _mw1: (Command: any, cs: any, config: any, o: any) => import("@smithy/types").Pluggable<any, any>[];
23
+ /**
24
+ * @internal
25
+ */
26
+ export declare const _mw2: (Command: any, cs: any, config: any, o: any) => import("@smithy/types").Pluggable<any, any>[];
27
+ /**
28
+ * @internal
29
+ */
30
+ export declare const _mw3: (Command: any, cs: any, config: any, o: any) => import("@smithy/types").Pluggable<any, any>[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { AddPermissionRequest } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SQSClientResolvedConfig } from "../SQSClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface AddPermissionCommandInput extends AddPermissionRequest {
22
19
  export interface AddPermissionCommandOutput extends __MetadataBearer {
23
20
  }
24
21
  declare const AddPermissionCommand_base: {
25
- new (input: AddPermissionCommandInput): import("@smithy/core/client").CommandImpl<AddPermissionCommandInput, AddPermissionCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: AddPermissionCommandInput): import("@smithy/core/client").CommandImpl<AddPermissionCommandInput, AddPermissionCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: AddPermissionCommandInput): import("@smithy/core/client").CommandImpl<AddPermissionCommandInput, AddPermissionCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: AddPermissionCommandInput): import("@smithy/core/client").CommandImpl<AddPermissionCommandInput, AddPermissionCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Adds a permission to a queue for a specific <a href="https://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P">principal</a>. This allows sharing
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CancelMessageMoveTaskRequest, CancelMessageMoveTaskResult } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SQSClientResolvedConfig } from "../SQSClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CancelMessageMoveTaskCommandInput extends CancelMessageMoveTask
22
19
  export interface CancelMessageMoveTaskCommandOutput extends CancelMessageMoveTaskResult, __MetadataBearer {
23
20
  }
24
21
  declare const CancelMessageMoveTaskCommand_base: {
25
- new (input: CancelMessageMoveTaskCommandInput): import("@smithy/core/client").CommandImpl<CancelMessageMoveTaskCommandInput, CancelMessageMoveTaskCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CancelMessageMoveTaskCommandInput): import("@smithy/core/client").CommandImpl<CancelMessageMoveTaskCommandInput, CancelMessageMoveTaskCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CancelMessageMoveTaskCommandInput): import("@smithy/core/client").CommandImpl<CancelMessageMoveTaskCommandInput, CancelMessageMoveTaskCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CancelMessageMoveTaskCommandInput): import("@smithy/core/client").CommandImpl<CancelMessageMoveTaskCommandInput, CancelMessageMoveTaskCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Cancels a specified message movement task. A message movement can only be cancelled
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { ChangeMessageVisibilityBatchRequest, ChangeMessageVisibilityBatchResult } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SQSClientResolvedConfig } from "../SQSClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface ChangeMessageVisibilityBatchCommandInput extends ChangeMessageV
22
19
  export interface ChangeMessageVisibilityBatchCommandOutput extends ChangeMessageVisibilityBatchResult, __MetadataBearer {
23
20
  }
24
21
  declare const ChangeMessageVisibilityBatchCommand_base: {
25
- new (input: ChangeMessageVisibilityBatchCommandInput): import("@smithy/core/client").CommandImpl<ChangeMessageVisibilityBatchCommandInput, ChangeMessageVisibilityBatchCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: ChangeMessageVisibilityBatchCommandInput): import("@smithy/core/client").CommandImpl<ChangeMessageVisibilityBatchCommandInput, ChangeMessageVisibilityBatchCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: ChangeMessageVisibilityBatchCommandInput): import("@smithy/core/client").CommandImpl<ChangeMessageVisibilityBatchCommandInput, ChangeMessageVisibilityBatchCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ChangeMessageVisibilityBatchCommandInput): import("@smithy/core/client").CommandImpl<ChangeMessageVisibilityBatchCommandInput, ChangeMessageVisibilityBatchCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Changes the visibility timeout of multiple messages. This is a batch version of
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { ChangeMessageVisibilityRequest } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SQSClientResolvedConfig } from "../SQSClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface ChangeMessageVisibilityCommandInput extends ChangeMessageVisibi
22
19
  export interface ChangeMessageVisibilityCommandOutput extends __MetadataBearer {
23
20
  }
24
21
  declare const ChangeMessageVisibilityCommand_base: {
25
- new (input: ChangeMessageVisibilityCommandInput): import("@smithy/core/client").CommandImpl<ChangeMessageVisibilityCommandInput, ChangeMessageVisibilityCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: ChangeMessageVisibilityCommandInput): import("@smithy/core/client").CommandImpl<ChangeMessageVisibilityCommandInput, ChangeMessageVisibilityCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: ChangeMessageVisibilityCommandInput): import("@smithy/core/client").CommandImpl<ChangeMessageVisibilityCommandInput, ChangeMessageVisibilityCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ChangeMessageVisibilityCommandInput): import("@smithy/core/client").CommandImpl<ChangeMessageVisibilityCommandInput, ChangeMessageVisibilityCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Changes the visibility timeout of a specified message in a queue to a new value. The
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CreateQueueRequest, CreateQueueResult } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SQSClientResolvedConfig } from "../SQSClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateQueueCommandInput extends CreateQueueRequest {
22
19
  export interface CreateQueueCommandOutput extends CreateQueueResult, __MetadataBearer {
23
20
  }
24
21
  declare const CreateQueueCommand_base: {
25
- new (input: CreateQueueCommandInput): import("@smithy/core/client").CommandImpl<CreateQueueCommandInput, CreateQueueCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateQueueCommandInput): import("@smithy/core/client").CommandImpl<CreateQueueCommandInput, CreateQueueCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateQueueCommandInput): import("@smithy/core/client").CommandImpl<CreateQueueCommandInput, CreateQueueCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateQueueCommandInput): import("@smithy/core/client").CommandImpl<CreateQueueCommandInput, CreateQueueCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a new standard or FIFO queue. You can pass one or more attributes in
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DeleteMessageBatchRequest, DeleteMessageBatchResult } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SQSClientResolvedConfig } from "../SQSClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeleteMessageBatchCommandInput extends DeleteMessageBatchReques
22
19
  export interface DeleteMessageBatchCommandOutput extends DeleteMessageBatchResult, __MetadataBearer {
23
20
  }
24
21
  declare const DeleteMessageBatchCommand_base: {
25
- new (input: DeleteMessageBatchCommandInput): import("@smithy/core/client").CommandImpl<DeleteMessageBatchCommandInput, DeleteMessageBatchCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteMessageBatchCommandInput): import("@smithy/core/client").CommandImpl<DeleteMessageBatchCommandInput, DeleteMessageBatchCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteMessageBatchCommandInput): import("@smithy/core/client").CommandImpl<DeleteMessageBatchCommandInput, DeleteMessageBatchCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteMessageBatchCommandInput): import("@smithy/core/client").CommandImpl<DeleteMessageBatchCommandInput, DeleteMessageBatchCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes up to ten messages from the specified queue. This is a batch version of
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DeleteMessageRequest } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SQSClientResolvedConfig } from "../SQSClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeleteMessageCommandInput extends DeleteMessageRequest {
22
19
  export interface DeleteMessageCommandOutput extends __MetadataBearer {
23
20
  }
24
21
  declare const DeleteMessageCommand_base: {
25
- new (input: DeleteMessageCommandInput): import("@smithy/core/client").CommandImpl<DeleteMessageCommandInput, DeleteMessageCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteMessageCommandInput): import("@smithy/core/client").CommandImpl<DeleteMessageCommandInput, DeleteMessageCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteMessageCommandInput): import("@smithy/core/client").CommandImpl<DeleteMessageCommandInput, DeleteMessageCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteMessageCommandInput): import("@smithy/core/client").CommandImpl<DeleteMessageCommandInput, DeleteMessageCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes the specified message from the specified queue. To select the message to
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DeleteQueueRequest } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SQSClientResolvedConfig } from "../SQSClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeleteQueueCommandInput extends DeleteQueueRequest {
22
19
  export interface DeleteQueueCommandOutput extends __MetadataBearer {
23
20
  }
24
21
  declare const DeleteQueueCommand_base: {
25
- new (input: DeleteQueueCommandInput): import("@smithy/core/client").CommandImpl<DeleteQueueCommandInput, DeleteQueueCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteQueueCommandInput): import("@smithy/core/client").CommandImpl<DeleteQueueCommandInput, DeleteQueueCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteQueueCommandInput): import("@smithy/core/client").CommandImpl<DeleteQueueCommandInput, DeleteQueueCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteQueueCommandInput): import("@smithy/core/client").CommandImpl<DeleteQueueCommandInput, DeleteQueueCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes the queue specified by the <code>QueueUrl</code>, regardless of the queue's
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { GetQueueAttributesRequest, GetQueueAttributesResult } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SQSClientResolvedConfig } from "../SQSClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface GetQueueAttributesCommandInput extends GetQueueAttributesReques
22
19
  export interface GetQueueAttributesCommandOutput extends GetQueueAttributesResult, __MetadataBearer {
23
20
  }
24
21
  declare const GetQueueAttributesCommand_base: {
25
- new (input: GetQueueAttributesCommandInput): import("@smithy/core/client").CommandImpl<GetQueueAttributesCommandInput, GetQueueAttributesCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: GetQueueAttributesCommandInput): import("@smithy/core/client").CommandImpl<GetQueueAttributesCommandInput, GetQueueAttributesCommandOutput, SQSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetQueueAttributesCommandInput): import("@smithy/core/client").CommandImpl<GetQueueAttributesCommandInput, GetQueueAttributesCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetQueueAttributesCommandInput): import("@smithy/core/client").CommandImpl<GetQueueAttributesCommandInput, GetQueueAttributesCommandOutput, import("..").SQSClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Gets attributes for the specified queue.</p>