@aws-sdk/client-sqs 3.489.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/SQS.js +1 -57
- package/dist-cjs/SQSClient.js +1 -56
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +1 -43
- package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-cjs/commands/AddPermissionCommand.js +1 -28
- package/dist-cjs/commands/CancelMessageMoveTaskCommand.js +1 -28
- package/dist-cjs/commands/ChangeMessageVisibilityBatchCommand.js +1 -28
- package/dist-cjs/commands/ChangeMessageVisibilityCommand.js +1 -28
- package/dist-cjs/commands/CreateQueueCommand.js +1 -28
- package/dist-cjs/commands/DeleteMessageBatchCommand.js +1 -28
- package/dist-cjs/commands/DeleteMessageCommand.js +1 -28
- package/dist-cjs/commands/DeleteQueueCommand.js +1 -28
- package/dist-cjs/commands/GetQueueAttributesCommand.js +1 -28
- package/dist-cjs/commands/GetQueueUrlCommand.js +1 -28
- package/dist-cjs/commands/ListDeadLetterSourceQueuesCommand.js +1 -28
- package/dist-cjs/commands/ListMessageMoveTasksCommand.js +1 -28
- package/dist-cjs/commands/ListQueueTagsCommand.js +1 -28
- package/dist-cjs/commands/ListQueuesCommand.js +1 -28
- package/dist-cjs/commands/PurgeQueueCommand.js +1 -28
- package/dist-cjs/commands/ReceiveMessageCommand.js +1 -30
- package/dist-cjs/commands/RemovePermissionCommand.js +1 -28
- package/dist-cjs/commands/SendMessageBatchCommand.js +1 -30
- package/dist-cjs/commands/SendMessageCommand.js +1 -30
- package/dist-cjs/commands/SetQueueAttributesCommand.js +1 -28
- package/dist-cjs/commands/StartMessageMoveTaskCommand.js +1 -28
- package/dist-cjs/commands/TagQueueCommand.js +1 -28
- package/dist-cjs/commands/UntagQueueCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -26
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3223 -11
- package/dist-cjs/models/SQSServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -406
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListDeadLetterSourceQueuesPaginator.js +1 -7
- package/dist-cjs/pagination/ListQueuesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -6
- package/dist-cjs/protocols/Aws_json1_0.js +1 -2025
- package/dist-cjs/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeExtensions.js +1 -25
- package/dist-es/SQSClient.js +8 -8
- package/dist-es/auth/httpAuthSchemeProvider.js +2 -2
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/SQSClient.d.ts +2 -2
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/dist-types/ts3.4/SQSClient.d.ts +2 -2
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +6 -6
- package/package.json +42 -42
|
@@ -21,7 +21,7 @@ const getRuntimeConfig = (config) => {
|
|
|
21
21
|
{
|
|
22
22
|
schemeId: "aws.auth#sigv4",
|
|
23
23
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
24
|
-
signer: new core_1.
|
|
24
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
25
25
|
},
|
|
26
26
|
],
|
|
27
27
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
8
|
-
const asPartial = (t) => t;
|
|
9
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
10
|
-
const extensionConfiguration = {
|
|
11
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
14
|
-
...asPartial((0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig)),
|
|
15
|
-
};
|
|
16
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
17
|
-
return {
|
|
18
|
-
...runtimeConfig,
|
|
19
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
20
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
21
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
22
|
-
...(0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration),
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
1
|
+
module.exports = require("./index.js");
|
package/dist-es/SQSClient.js
CHANGED
|
@@ -14,14 +14,6 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
|
14
14
|
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
15
15
|
export { __Client };
|
|
16
16
|
export class SQSClient extends __Client {
|
|
17
|
-
getDefaultHttpAuthSchemeParametersProvider() {
|
|
18
|
-
return defaultSQSHttpAuthSchemeParametersProvider;
|
|
19
|
-
}
|
|
20
|
-
getIdentityProviderConfigProvider() {
|
|
21
|
-
return async (config) => new DefaultIdentityProviderConfig({
|
|
22
|
-
"aws.auth#sigv4": config.credentials,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
17
|
constructor(...[configuration]) {
|
|
26
18
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
27
19
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
@@ -49,4 +41,12 @@ export class SQSClient extends __Client {
|
|
|
49
41
|
destroy() {
|
|
50
42
|
super.destroy();
|
|
51
43
|
}
|
|
44
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
45
|
+
return defaultSQSHttpAuthSchemeParametersProvider;
|
|
46
|
+
}
|
|
47
|
+
getIdentityProviderConfigProvider() {
|
|
48
|
+
return async (config) => new DefaultIdentityProviderConfig({
|
|
49
|
+
"aws.auth#sigv4": config.credentials,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
52
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
|
|
2
2
|
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
3
3
|
export const defaultSQSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
4
|
return {
|
|
@@ -34,7 +34,7 @@ export const defaultSQSHttpAuthSchemeProvider = (authParameters) => {
|
|
|
34
34
|
return options;
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
|
-
const config_0 =
|
|
37
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
38
|
return {
|
|
39
39
|
...config_0,
|
|
40
40
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
2
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
3
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
4
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -18,7 +18,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
18
18
|
{
|
|
19
19
|
schemeId: "aws.auth#sigv4",
|
|
20
20
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
21
|
-
signer: new
|
|
21
|
+
signer: new AwsSdkSigV4Signer(),
|
|
22
22
|
},
|
|
23
23
|
],
|
|
24
24
|
logger: config?.logger ?? new NoOpLogger(),
|
|
@@ -260,8 +260,6 @@ export declare class SQSClient extends __Client<__HttpHandlerOptions, ServiceInp
|
|
|
260
260
|
* The resolved configuration of SQSClient class. This is resolved and normalized from the {@link SQSClientConfig | constructor configuration interface}.
|
|
261
261
|
*/
|
|
262
262
|
readonly config: SQSClientResolvedConfig;
|
|
263
|
-
private getDefaultHttpAuthSchemeParametersProvider;
|
|
264
|
-
private getIdentityProviderConfigProvider;
|
|
265
263
|
constructor(...[configuration]: __CheckOptionalClientConfig<SQSClientConfig>);
|
|
266
264
|
/**
|
|
267
265
|
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
@@ -269,4 +267,6 @@ export declare class SQSClient extends __Client<__HttpHandlerOptions, ServiceInp
|
|
|
269
267
|
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
270
268
|
*/
|
|
271
269
|
destroy(): void;
|
|
270
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
271
|
+
private getIdentityProviderConfigProvider;
|
|
272
272
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
2
|
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
|
|
3
3
|
import { SQSClientResolvedConfig } from "../SQSClient";
|
|
4
4
|
/**
|
|
@@ -28,7 +28,7 @@ export declare const defaultSQSHttpAuthSchemeProvider: SQSHttpAuthSchemeProvider
|
|
|
28
28
|
/**
|
|
29
29
|
* @internal
|
|
30
30
|
*/
|
|
31
|
-
export interface HttpAuthSchemeInputConfig extends
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
32
|
/**
|
|
33
33
|
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
34
34
|
* @internal
|
|
@@ -43,7 +43,7 @@ export interface HttpAuthSchemeInputConfig extends AWSSDKSigV4AuthInputConfig {
|
|
|
43
43
|
/**
|
|
44
44
|
* @internal
|
|
45
45
|
*/
|
|
46
|
-
export interface HttpAuthSchemeResolvedConfig extends
|
|
46
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
47
47
|
/**
|
|
48
48
|
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
49
49
|
* @internal
|
|
@@ -58,4 +58,4 @@ export interface HttpAuthSchemeResolvedConfig extends AWSSDKSigV4AuthResolvedCon
|
|
|
58
58
|
/**
|
|
59
59
|
* @internal
|
|
60
60
|
*/
|
|
61
|
-
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig &
|
|
61
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -249,8 +249,8 @@ export declare class SQSClient extends __Client<
|
|
|
249
249
|
SQSClientResolvedConfig
|
|
250
250
|
> {
|
|
251
251
|
readonly config: SQSClientResolvedConfig;
|
|
252
|
-
private getDefaultHttpAuthSchemeParametersProvider;
|
|
253
|
-
private getIdentityProviderConfigProvider;
|
|
254
252
|
constructor(...[configuration]: __CheckOptionalClientConfig<SQSClientConfig>);
|
|
255
253
|
destroy(): void;
|
|
254
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
255
|
+
private getIdentityProviderConfigProvider;
|
|
256
256
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
AwsSdkSigV4AuthInputConfig,
|
|
3
|
+
AwsSdkSigV4AuthResolvedConfig,
|
|
4
|
+
AwsSdkSigV4PreviouslyResolved,
|
|
5
5
|
} from "@aws-sdk/core";
|
|
6
6
|
import {
|
|
7
7
|
HandlerExecutionContext,
|
|
@@ -29,15 +29,15 @@ export declare const defaultSQSHttpAuthSchemeParametersProvider: (
|
|
|
29
29
|
export interface SQSHttpAuthSchemeProvider
|
|
30
30
|
extends HttpAuthSchemeProvider<SQSHttpAuthSchemeParameters> {}
|
|
31
31
|
export declare const defaultSQSHttpAuthSchemeProvider: SQSHttpAuthSchemeProvider;
|
|
32
|
-
export interface HttpAuthSchemeInputConfig extends
|
|
32
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
33
33
|
httpAuthSchemes?: HttpAuthScheme[];
|
|
34
34
|
httpAuthSchemeProvider?: SQSHttpAuthSchemeProvider;
|
|
35
35
|
}
|
|
36
36
|
export interface HttpAuthSchemeResolvedConfig
|
|
37
|
-
extends
|
|
37
|
+
extends AwsSdkSigV4AuthResolvedConfig {
|
|
38
38
|
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
39
39
|
readonly httpAuthSchemeProvider: SQSHttpAuthSchemeProvider;
|
|
40
40
|
}
|
|
41
41
|
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
42
|
-
config: T & HttpAuthSchemeInputConfig &
|
|
42
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
43
43
|
) => T & HttpAuthSchemeResolvedConfig;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sqs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sqs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.495.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
-
"build:cjs": "
|
|
7
|
+
"build:cjs": "node ../../scripts/compilation/inline client-sqs",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -20,49 +20,49 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-sdk-sqs": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.0
|
|
37
|
-
"@smithy/core": "^1.
|
|
38
|
-
"@smithy/fetch-http-handler": "^2.
|
|
39
|
-
"@smithy/hash-node": "^2.0
|
|
40
|
-
"@smithy/invalid-dependency": "^2.0
|
|
41
|
-
"@smithy/md5-js": "^2.0
|
|
42
|
-
"@smithy/middleware-content-length": "^2.0
|
|
43
|
-
"@smithy/middleware-endpoint": "^2.
|
|
44
|
-
"@smithy/middleware-retry": "^2.0
|
|
45
|
-
"@smithy/middleware-serde": "^2.0
|
|
46
|
-
"@smithy/middleware-stack": "^2.0
|
|
47
|
-
"@smithy/node-config-provider": "^2.
|
|
48
|
-
"@smithy/node-http-handler": "^2.
|
|
49
|
-
"@smithy/protocol-http": "^3.0
|
|
50
|
-
"@smithy/smithy-client": "^2.
|
|
51
|
-
"@smithy/types": "^2.
|
|
52
|
-
"@smithy/url-parser": "^2.0
|
|
53
|
-
"@smithy/util-base64": "^2.0
|
|
54
|
-
"@smithy/util-body-length-browser": "^2.0
|
|
55
|
-
"@smithy/util-body-length-node": "^2.
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^2.0
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^2.0
|
|
58
|
-
"@smithy/util-endpoints": "^1.0
|
|
59
|
-
"@smithy/util-middleware": "^2.0
|
|
60
|
-
"@smithy/util-retry": "^2.0
|
|
61
|
-
"@smithy/util-utf8": "^2.0
|
|
23
|
+
"@aws-sdk/client-sts": "3.495.0",
|
|
24
|
+
"@aws-sdk/core": "3.495.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.495.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.495.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.495.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.495.0",
|
|
29
|
+
"@aws-sdk/middleware-sdk-sqs": "3.495.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.495.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.495.0",
|
|
32
|
+
"@aws-sdk/types": "3.495.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.495.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.495.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.495.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.1.0",
|
|
37
|
+
"@smithy/core": "^1.3.0",
|
|
38
|
+
"@smithy/fetch-http-handler": "^2.4.0",
|
|
39
|
+
"@smithy/hash-node": "^2.1.0",
|
|
40
|
+
"@smithy/invalid-dependency": "^2.1.0",
|
|
41
|
+
"@smithy/md5-js": "^2.1.0",
|
|
42
|
+
"@smithy/middleware-content-length": "^2.1.0",
|
|
43
|
+
"@smithy/middleware-endpoint": "^2.4.0",
|
|
44
|
+
"@smithy/middleware-retry": "^2.1.0",
|
|
45
|
+
"@smithy/middleware-serde": "^2.1.0",
|
|
46
|
+
"@smithy/middleware-stack": "^2.1.0",
|
|
47
|
+
"@smithy/node-config-provider": "^2.2.0",
|
|
48
|
+
"@smithy/node-http-handler": "^2.3.0",
|
|
49
|
+
"@smithy/protocol-http": "^3.1.0",
|
|
50
|
+
"@smithy/smithy-client": "^2.3.0",
|
|
51
|
+
"@smithy/types": "^2.9.0",
|
|
52
|
+
"@smithy/url-parser": "^2.1.0",
|
|
53
|
+
"@smithy/util-base64": "^2.1.0",
|
|
54
|
+
"@smithy/util-body-length-browser": "^2.1.0",
|
|
55
|
+
"@smithy/util-body-length-node": "^2.2.0",
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^2.1.0",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^2.1.0",
|
|
58
|
+
"@smithy/util-endpoints": "^1.1.0",
|
|
59
|
+
"@smithy/util-middleware": "^2.1.0",
|
|
60
|
+
"@smithy/util-retry": "^2.1.0",
|
|
61
|
+
"@smithy/util-utf8": "^2.1.0",
|
|
62
62
|
"tslib": "^2.5.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@smithy/service-client-documentation-generator": "^2.
|
|
65
|
+
"@smithy/service-client-documentation-generator": "^2.1.0",
|
|
66
66
|
"@tsconfig/node14": "1.0.3",
|
|
67
67
|
"@types/node": "^14.14.31",
|
|
68
68
|
"concurrently": "7.0.0",
|