@aws-sdk/client-sqs 3.476.0 → 3.478.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/SQSClient.js +17 -4
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/pagination/ListDeadLetterSourceQueuesPaginator.js +2 -24
- package/dist-cjs/pagination/ListQueuesPaginator.js +2 -24
- package/dist-cjs/runtimeConfig.shared.js +10 -0
- package/dist-cjs/runtimeExtensions.js +3 -0
- package/dist-es/SQSClient.js +17 -4
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/pagination/ListDeadLetterSourceQueuesPaginator.js +2 -23
- package/dist-es/pagination/ListQueuesPaginator.js +2 -23
- package/dist-es/runtimeConfig.shared.js +10 -0
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/SQSClient.d.ts +16 -14
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/pagination/ListDeadLetterSourceQueuesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListQueuesPaginator.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +5 -3
- package/dist-types/runtimeConfig.d.ts +5 -3
- package/dist-types/runtimeConfig.native.d.ts +6 -4
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/SQSClient.d.ts +11 -9
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/pagination/ListDeadLetterSourceQueuesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListQueuesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -8
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +8 -7
package/dist-cjs/SQSClient.js
CHANGED
|
@@ -4,18 +4,27 @@ exports.SQSClient = exports.__Client = void 0;
|
|
|
4
4
|
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
5
5
|
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
6
6
|
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
7
|
-
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
8
7
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
9
8
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
|
+
const core_1 = require("@smithy/core");
|
|
10
10
|
const middleware_content_length_1 = require("@smithy/middleware-content-length");
|
|
11
11
|
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
12
12
|
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
13
13
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
14
14
|
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
15
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
15
16
|
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
16
17
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
17
18
|
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
18
19
|
class SQSClient extends smithy_client_1.Client {
|
|
20
|
+
getDefaultHttpAuthSchemeParametersProvider() {
|
|
21
|
+
return httpAuthSchemeProvider_1.defaultSQSHttpAuthSchemeParametersProvider;
|
|
22
|
+
}
|
|
23
|
+
getIdentityProviderConfigProvider() {
|
|
24
|
+
return async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
25
|
+
"aws.auth#sigv4": config.credentials,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
19
28
|
constructor(...[configuration]) {
|
|
20
29
|
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
21
30
|
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
@@ -23,8 +32,8 @@ class SQSClient extends smithy_client_1.Client {
|
|
|
23
32
|
const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2);
|
|
24
33
|
const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3);
|
|
25
34
|
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
26
|
-
const _config_6 = (0,
|
|
27
|
-
const _config_7 = (0,
|
|
35
|
+
const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
|
|
36
|
+
const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
|
|
28
37
|
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
|
29
38
|
super(_config_8);
|
|
30
39
|
this.config = _config_8;
|
|
@@ -33,8 +42,12 @@ class SQSClient extends smithy_client_1.Client {
|
|
|
33
42
|
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
34
43
|
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
35
44
|
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
36
|
-
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
37
45
|
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
46
|
+
this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
47
|
+
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
|
48
|
+
identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
|
|
49
|
+
}));
|
|
50
|
+
this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
|
|
38
51
|
}
|
|
39
52
|
destroy() {
|
|
40
53
|
super.destroy();
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;
|
|
4
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
5
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
6
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
7
|
+
let _credentials = runtimeConfig.credentials;
|
|
8
|
+
return {
|
|
9
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
10
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
11
|
+
if (index === -1) {
|
|
12
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
httpAuthSchemes() {
|
|
19
|
+
return _httpAuthSchemes;
|
|
20
|
+
},
|
|
21
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
22
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
httpAuthSchemeProvider() {
|
|
25
|
+
return _httpAuthSchemeProvider;
|
|
26
|
+
},
|
|
27
|
+
setCredentials(credentials) {
|
|
28
|
+
_credentials = credentials;
|
|
29
|
+
},
|
|
30
|
+
credentials() {
|
|
31
|
+
return _credentials;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
|
|
36
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
37
|
+
return {
|
|
38
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
39
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
40
|
+
credentials: config.credentials(),
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveHttpAuthSchemeConfig = exports.defaultSQSHttpAuthSchemeProvider = exports.defaultSQSHttpAuthSchemeParametersProvider = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const util_middleware_1 = require("@smithy/util-middleware");
|
|
6
|
+
const defaultSQSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
|
+
return {
|
|
8
|
+
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
+
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
|
10
|
+
(() => {
|
|
11
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
12
|
+
})(),
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.defaultSQSHttpAuthSchemeParametersProvider = defaultSQSHttpAuthSchemeParametersProvider;
|
|
16
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
17
|
+
return {
|
|
18
|
+
schemeId: "aws.auth#sigv4",
|
|
19
|
+
signingProperties: {
|
|
20
|
+
name: "sqs",
|
|
21
|
+
region: authParameters.region,
|
|
22
|
+
},
|
|
23
|
+
propertiesExtractor: (config, context) => ({
|
|
24
|
+
signingProperties: {
|
|
25
|
+
config,
|
|
26
|
+
context,
|
|
27
|
+
},
|
|
28
|
+
}),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
const defaultSQSHttpAuthSchemeProvider = (authParameters) => {
|
|
32
|
+
const options = [];
|
|
33
|
+
switch (authParameters.operation) {
|
|
34
|
+
default: {
|
|
35
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return options;
|
|
39
|
+
};
|
|
40
|
+
exports.defaultSQSHttpAuthSchemeProvider = defaultSQSHttpAuthSchemeProvider;
|
|
41
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
|
+
const config_0 = (0, core_1.resolveAWSSDKSigV4Config)(config);
|
|
43
|
+
return {
|
|
44
|
+
...config_0,
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDeadLetterSourceQueues = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDeadLetterSourceQueuesCommand_1 = require("../commands/ListDeadLetterSourceQueuesCommand");
|
|
5
6
|
const SQSClient_1 = require("../SQSClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDeadLetterSourceQueuesCommand_1.ListDeadLetterSourceQueuesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDeadLetterSourceQueues(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SQSClient_1.SQSClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SQS | SQSClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListDeadLetterSourceQueues = paginateListDeadLetterSourceQueues;
|
|
7
|
+
exports.paginateListDeadLetterSourceQueues = (0, core_1.createPaginator)(SQSClient_1.SQSClient, ListDeadLetterSourceQueuesCommand_1.ListDeadLetterSourceQueuesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListQueues = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListQueuesCommand_1 = require("../commands/ListQueuesCommand");
|
|
5
6
|
const SQSClient_1 = require("../SQSClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListQueuesCommand_1.ListQueuesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListQueues(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SQSClient_1.SQSClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SQS | SQSClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListQueues = paginateListQueues;
|
|
7
|
+
exports.paginateListQueues = (0, core_1.createPaginator)(SQSClient_1.SQSClient, ListQueuesCommand_1.ListQueuesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
4
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
6
|
const url_parser_1 = require("@smithy/url-parser");
|
|
6
7
|
const util_base64_1 = require("@smithy/util-base64");
|
|
7
8
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
9
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
8
10
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
9
11
|
const getRuntimeConfig = (config) => {
|
|
10
12
|
return {
|
|
@@ -14,6 +16,14 @@ const getRuntimeConfig = (config) => {
|
|
|
14
16
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
17
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
16
18
|
extensions: config?.extensions ?? [],
|
|
19
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultSQSHttpAuthSchemeProvider,
|
|
20
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
21
|
+
{
|
|
22
|
+
schemeId: "aws.auth#sigv4",
|
|
23
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
24
|
+
signer: new core_1.AWSSDKSigV4Signer(),
|
|
25
|
+
},
|
|
26
|
+
],
|
|
17
27
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
18
28
|
serviceId: config?.serviceId ?? "SQS",
|
|
19
29
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
@@ -4,12 +4,14 @@ exports.resolveRuntimeExtensions = void 0;
|
|
|
4
4
|
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
7
8
|
const asPartial = (t) => t;
|
|
8
9
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
10
|
const extensionConfiguration = {
|
|
10
11
|
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
12
|
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
13
|
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
14
|
+
...asPartial((0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig)),
|
|
13
15
|
};
|
|
14
16
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
17
|
return {
|
|
@@ -17,6 +19,7 @@ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
|
17
19
|
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
20
|
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
21
|
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
22
|
+
...(0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration),
|
|
20
23
|
};
|
|
21
24
|
};
|
|
22
25
|
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
package/dist-es/SQSClient.js
CHANGED
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
2
2
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
3
3
|
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
4
|
-
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
5
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
6
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
7
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
8
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
9
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
10
10
|
import { Client as __Client, } from "@smithy/smithy-client";
|
|
11
|
+
import { defaultSQSHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
11
12
|
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
12
13
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
13
14
|
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
14
15
|
export { __Client };
|
|
15
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
|
+
}
|
|
16
25
|
constructor(...[configuration]) {
|
|
17
26
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
18
27
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
@@ -20,8 +29,8 @@ export class SQSClient extends __Client {
|
|
|
20
29
|
const _config_3 = resolveEndpointConfig(_config_2);
|
|
21
30
|
const _config_4 = resolveRetryConfig(_config_3);
|
|
22
31
|
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
23
|
-
const _config_6 =
|
|
24
|
-
const _config_7 =
|
|
32
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
33
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
25
34
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
26
35
|
super(_config_8);
|
|
27
36
|
this.config = _config_8;
|
|
@@ -30,8 +39,12 @@ export class SQSClient extends __Client {
|
|
|
30
39
|
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
31
40
|
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
32
41
|
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
33
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
34
42
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
43
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
44
|
+
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
|
45
|
+
identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
|
|
46
|
+
}));
|
|
47
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
35
48
|
}
|
|
36
49
|
destroy() {
|
|
37
50
|
super.destroy();
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _credentials = runtimeConfig.credentials;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setCredentials(credentials) {
|
|
25
|
+
_credentials = credentials;
|
|
26
|
+
},
|
|
27
|
+
credentials() {
|
|
28
|
+
return _credentials;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
credentials: config.credentials(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { resolveAWSSDKSigV4Config, } from "@aws-sdk/core";
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
3
|
+
export const defaultSQSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: (await normalizeProvider(config.region)()) ||
|
|
7
|
+
(() => {
|
|
8
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
9
|
+
})(),
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
13
|
+
return {
|
|
14
|
+
schemeId: "aws.auth#sigv4",
|
|
15
|
+
signingProperties: {
|
|
16
|
+
name: "sqs",
|
|
17
|
+
region: authParameters.region,
|
|
18
|
+
},
|
|
19
|
+
propertiesExtractor: (config, context) => ({
|
|
20
|
+
signingProperties: {
|
|
21
|
+
config,
|
|
22
|
+
context,
|
|
23
|
+
},
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export const defaultSQSHttpAuthSchemeProvider = (authParameters) => {
|
|
28
|
+
const options = [];
|
|
29
|
+
switch (authParameters.operation) {
|
|
30
|
+
default: {
|
|
31
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return options;
|
|
35
|
+
};
|
|
36
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
|
+
const config_0 = resolveAWSSDKSigV4Config(config);
|
|
38
|
+
return {
|
|
39
|
+
...config_0,
|
|
40
|
+
};
|
|
41
|
+
};
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDeadLetterSourceQueuesCommand, } from "../commands/ListDeadLetterSourceQueuesCommand";
|
|
2
3
|
import { SQSClient } from "../SQSClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDeadLetterSourceQueuesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDeadLetterSourceQueues(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SQSClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SQS | SQSClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDeadLetterSourceQueues = createPaginator(SQSClient, ListDeadLetterSourceQueuesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListQueuesCommand } from "../commands/ListQueuesCommand";
|
|
2
3
|
import { SQSClient } from "../SQSClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListQueuesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListQueues(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SQSClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SQS | SQSClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListQueues = createPaginator(SQSClient, ListQueuesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { AWSSDKSigV4Signer } from "@aws-sdk/core";
|
|
1
2
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
2
3
|
import { parseUrl } from "@smithy/url-parser";
|
|
3
4
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
4
5
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
6
|
+
import { defaultSQSHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
5
7
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
6
8
|
export const getRuntimeConfig = (config) => {
|
|
7
9
|
return {
|
|
@@ -11,6 +13,14 @@ export const getRuntimeConfig = (config) => {
|
|
|
11
13
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
14
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
13
15
|
extensions: config?.extensions ?? [],
|
|
16
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSQSHttpAuthSchemeProvider,
|
|
17
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
18
|
+
{
|
|
19
|
+
schemeId: "aws.auth#sigv4",
|
|
20
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
21
|
+
signer: new AWSSDKSigV4Signer(),
|
|
22
|
+
},
|
|
23
|
+
],
|
|
14
24
|
logger: config?.logger ?? new NoOpLogger(),
|
|
15
25
|
serviceId: config?.serviceId ?? "SQS",
|
|
16
26
|
urlParser: config?.urlParser ?? parseUrl,
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
4
5
|
const asPartial = (t) => t;
|
|
5
6
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
7
|
const extensionConfiguration = {
|
|
7
8
|
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
8
9
|
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
9
10
|
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
10
12
|
};
|
|
11
13
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
12
14
|
return {
|
|
@@ -14,5 +16,6 @@ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
|
14
16
|
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
15
17
|
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
16
18
|
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
17
20
|
};
|
|
18
21
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
-
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
3
2
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
4
|
-
import { Credentials as __Credentials } from "@aws-sdk/types";
|
|
5
3
|
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
6
4
|
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
7
5
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
8
6
|
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
9
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
10
|
-
import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
|
+
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
11
10
|
import { AddPermissionCommandInput, AddPermissionCommandOutput } from "./commands/AddPermissionCommand";
|
|
12
11
|
import { CancelMessageMoveTaskCommandInput, CancelMessageMoveTaskCommandOutput } from "./commands/CancelMessageMoveTaskCommand";
|
|
13
12
|
import { ChangeMessageVisibilityBatchCommandInput, ChangeMessageVisibilityBatchCommandOutput } from "./commands/ChangeMessageVisibilityBatchCommand";
|
|
@@ -114,15 +113,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
114
113
|
* Enables FIPS compatible endpoints.
|
|
115
114
|
*/
|
|
116
115
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
117
|
-
/**
|
|
118
|
-
* The AWS region to which this client will send requests
|
|
119
|
-
*/
|
|
120
|
-
region?: string | __Provider<string>;
|
|
121
|
-
/**
|
|
122
|
-
* Default credentials provider; Not available in browser runtime.
|
|
123
|
-
* @internal
|
|
124
|
-
*/
|
|
125
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
126
116
|
/**
|
|
127
117
|
* A constructor for a class implementing the {@link __Checksum} interface
|
|
128
118
|
* that computes MD5 hashes.
|
|
@@ -134,6 +124,16 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
134
124
|
* @internal
|
|
135
125
|
*/
|
|
136
126
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
127
|
+
/**
|
|
128
|
+
* The AWS region to which this client will send requests
|
|
129
|
+
*/
|
|
130
|
+
region?: string | __Provider<string>;
|
|
131
|
+
/**
|
|
132
|
+
* Default credentials provider; Not available in browser runtime.
|
|
133
|
+
* @deprecated
|
|
134
|
+
* @internal
|
|
135
|
+
*/
|
|
136
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
137
137
|
/**
|
|
138
138
|
* Value for how many times a request will be made at most in case of retry.
|
|
139
139
|
*/
|
|
@@ -160,7 +160,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
160
160
|
/**
|
|
161
161
|
* @public
|
|
162
162
|
*/
|
|
163
|
-
export type SQSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig &
|
|
163
|
+
export type SQSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
164
164
|
/**
|
|
165
165
|
* @public
|
|
166
166
|
*
|
|
@@ -171,7 +171,7 @@ export interface SQSClientConfig extends SQSClientConfigType {
|
|
|
171
171
|
/**
|
|
172
172
|
* @public
|
|
173
173
|
*/
|
|
174
|
-
export type SQSClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig &
|
|
174
|
+
export type SQSClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
175
175
|
/**
|
|
176
176
|
* @public
|
|
177
177
|
*
|
|
@@ -260,6 +260,8 @@ 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;
|
|
263
265
|
constructor(...[configuration]: __CheckOptionalClientConfig<SQSClientConfig>);
|
|
264
266
|
/**
|
|
265
267
|
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import { SQSHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: SQSHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): SQSHttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: SQSHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { AWSSDKSigV4AuthInputConfig, AWSSDKSigV4AuthResolvedConfig, AWSSDKSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
|
+
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
|
|
3
|
+
import { SQSClientResolvedConfig } from "../SQSClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface SQSHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface SQSHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<SQSClientResolvedConfig, HandlerExecutionContext, SQSHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultSQSHttpAuthSchemeParametersProvider: (config: SQSClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<SQSHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface SQSHttpAuthSchemeProvider extends HttpAuthSchemeProvider<SQSHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultSQSHttpAuthSchemeProvider: SQSHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AWSSDKSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
37
|
+
/**
|
|
38
|
+
* experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
httpAuthSchemeProvider?: SQSHttpAuthSchemeProvider;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
export interface HttpAuthSchemeResolvedConfig extends AWSSDKSigV4AuthResolvedConfig {
|
|
47
|
+
/**
|
|
48
|
+
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
52
|
+
/**
|
|
53
|
+
* experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
readonly httpAuthSchemeProvider: SQSHttpAuthSchemeProvider;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AWSSDKSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
2
|
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
3
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
4
5
|
/**
|
|
5
6
|
* @internal
|
|
6
7
|
*/
|
|
7
|
-
export interface SQSExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
|
|
8
|
+
export interface SQSExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
8
9
|
}
|
|
@@ -4,4 +4,4 @@ import { SQSPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDeadLetterSourceQueues: (config: SQSPaginationConfiguration, input: ListDeadLetterSourceQueuesCommandInput, ...rest: any[]) => Paginator<ListDeadLetterSourceQueuesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SQSPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListQueues: (config: SQSPaginationConfiguration, input: ListQueuesCommandInput, ...rest: any[]) => Paginator<ListQueuesCommandOutput>;
|
|
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
11
11
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
13
13
|
md5: import("@smithy/types").HashConstructor;
|
|
@@ -37,11 +37,13 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
37
37
|
}) => import("@smithy/types").EndpointV2;
|
|
38
38
|
tls?: boolean | undefined;
|
|
39
39
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
40
|
-
|
|
40
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
41
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
42
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SQSHttpAuthSchemeProvider;
|
|
43
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
41
44
|
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
42
45
|
signingEscapePath?: boolean | undefined;
|
|
43
46
|
systemClockOffset?: number | undefined;
|
|
44
47
|
signingRegion?: string | undefined;
|
|
45
48
|
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
46
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
47
49
|
};
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
8
8
|
runtime: string;
|
|
9
9
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
10
10
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
11
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").
|
|
11
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
12
12
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
13
13
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
14
14
|
md5: __HashConstructor;
|
|
@@ -38,11 +38,13 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
38
38
|
}) => import("@smithy/types").EndpointV2;
|
|
39
39
|
tls?: boolean | undefined;
|
|
40
40
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
41
|
-
|
|
41
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
42
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
43
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SQSHttpAuthSchemeProvider;
|
|
44
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
42
45
|
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
43
46
|
signingEscapePath?: boolean | undefined;
|
|
44
47
|
systemClockOffset?: number | undefined;
|
|
45
48
|
signingRegion?: string | undefined;
|
|
46
49
|
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
47
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
48
50
|
};
|
|
@@ -21,10 +21,10 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
21
21
|
serviceId: string;
|
|
22
22
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
23
23
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
24
|
-
region: string | import("@smithy/types").Provider<any>;
|
|
25
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
24
|
md5: import("@smithy/types").HashConstructor;
|
|
27
25
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
26
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
27
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
28
28
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
29
29
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
30
30
|
logger: import("@smithy/types").Logger;
|
|
@@ -36,11 +36,13 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
36
36
|
}) => import("@smithy/types").EndpointV2;
|
|
37
37
|
tls?: boolean | undefined;
|
|
38
38
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
39
|
-
|
|
39
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
40
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
41
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SQSHttpAuthSchemeProvider;
|
|
42
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
40
43
|
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
41
44
|
signingEscapePath?: boolean | undefined;
|
|
42
45
|
systemClockOffset?: number | undefined;
|
|
43
46
|
signingRegion?: string | undefined;
|
|
44
47
|
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
45
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
46
48
|
};
|
|
@@ -11,6 +11,8 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
11
11
|
logger?: import("@smithy/types").Logger | undefined;
|
|
12
12
|
}) => import("@smithy/types").EndpointV2;
|
|
13
13
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
14
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SQSHttpAuthSchemeProvider;
|
|
15
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
14
16
|
logger: import("@smithy/types").Logger;
|
|
15
17
|
serviceId: string;
|
|
16
18
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -2,15 +2,10 @@ import {
|
|
|
2
2
|
HostHeaderInputConfig,
|
|
3
3
|
HostHeaderResolvedConfig,
|
|
4
4
|
} from "@aws-sdk/middleware-host-header";
|
|
5
|
-
import {
|
|
6
|
-
AwsAuthInputConfig,
|
|
7
|
-
AwsAuthResolvedConfig,
|
|
8
|
-
} from "@aws-sdk/middleware-signing";
|
|
9
5
|
import {
|
|
10
6
|
UserAgentInputConfig,
|
|
11
7
|
UserAgentResolvedConfig,
|
|
12
8
|
} from "@aws-sdk/middleware-user-agent";
|
|
13
|
-
import { Credentials as __Credentials } from "@aws-sdk/types";
|
|
14
9
|
import {
|
|
15
10
|
RegionInputConfig,
|
|
16
11
|
RegionResolvedConfig,
|
|
@@ -31,6 +26,7 @@ import {
|
|
|
31
26
|
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
32
27
|
} from "@smithy/smithy-client";
|
|
33
28
|
import {
|
|
29
|
+
AwsCredentialIdentityProvider,
|
|
34
30
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
35
31
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
36
32
|
ChecksumConstructor as __ChecksumConstructor,
|
|
@@ -45,6 +41,10 @@ import {
|
|
|
45
41
|
UrlParser as __UrlParser,
|
|
46
42
|
UserAgent as __UserAgent,
|
|
47
43
|
} from "@smithy/types";
|
|
44
|
+
import {
|
|
45
|
+
HttpAuthSchemeInputConfig,
|
|
46
|
+
HttpAuthSchemeResolvedConfig,
|
|
47
|
+
} from "./auth/httpAuthSchemeProvider";
|
|
48
48
|
import {
|
|
49
49
|
AddPermissionCommandInput,
|
|
50
50
|
AddPermissionCommandOutput,
|
|
@@ -208,10 +208,10 @@ export interface ClientDefaults
|
|
|
208
208
|
serviceId?: string;
|
|
209
209
|
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
210
210
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
211
|
-
region?: string | __Provider<string>;
|
|
212
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
213
211
|
md5?: __ChecksumConstructor | __HashConstructor;
|
|
214
212
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
213
|
+
region?: string | __Provider<string>;
|
|
214
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
215
215
|
maxAttempts?: number | __Provider<number>;
|
|
216
216
|
retryMode?: string | __Provider<string>;
|
|
217
217
|
logger?: __Logger;
|
|
@@ -226,8 +226,8 @@ export type SQSClientConfigType = Partial<
|
|
|
226
226
|
EndpointInputConfig<EndpointParameters> &
|
|
227
227
|
RetryInputConfig &
|
|
228
228
|
HostHeaderInputConfig &
|
|
229
|
-
AwsAuthInputConfig &
|
|
230
229
|
UserAgentInputConfig &
|
|
230
|
+
HttpAuthSchemeInputConfig &
|
|
231
231
|
ClientInputEndpointParameters;
|
|
232
232
|
export interface SQSClientConfig extends SQSClientConfigType {}
|
|
233
233
|
export type SQSClientResolvedConfigType =
|
|
@@ -238,8 +238,8 @@ export type SQSClientResolvedConfigType =
|
|
|
238
238
|
EndpointResolvedConfig<EndpointParameters> &
|
|
239
239
|
RetryResolvedConfig &
|
|
240
240
|
HostHeaderResolvedConfig &
|
|
241
|
-
AwsAuthResolvedConfig &
|
|
242
241
|
UserAgentResolvedConfig &
|
|
242
|
+
HttpAuthSchemeResolvedConfig &
|
|
243
243
|
ClientResolvedEndpointParameters;
|
|
244
244
|
export interface SQSClientResolvedConfig extends SQSClientResolvedConfigType {}
|
|
245
245
|
export declare class SQSClient extends __Client<
|
|
@@ -249,6 +249,8 @@ export declare class SQSClient extends __Client<
|
|
|
249
249
|
SQSClientResolvedConfig
|
|
250
250
|
> {
|
|
251
251
|
readonly config: SQSClientResolvedConfig;
|
|
252
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
253
|
+
private getIdentityProviderConfigProvider;
|
|
252
254
|
constructor(...[configuration]: __CheckOptionalClientConfig<SQSClientConfig>);
|
|
253
255
|
destroy(): void;
|
|
254
256
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AwsCredentialIdentity,
|
|
3
|
+
AwsCredentialIdentityProvider,
|
|
4
|
+
HttpAuthScheme,
|
|
5
|
+
} from "@smithy/types";
|
|
6
|
+
import { SQSHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
7
|
+
export interface HttpAuthExtensionConfiguration {
|
|
8
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
9
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
10
|
+
setHttpAuthSchemeProvider(
|
|
11
|
+
httpAuthSchemeProvider: SQSHttpAuthSchemeProvider
|
|
12
|
+
): void;
|
|
13
|
+
httpAuthSchemeProvider(): SQSHttpAuthSchemeProvider;
|
|
14
|
+
setCredentials(
|
|
15
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
|
|
16
|
+
): void;
|
|
17
|
+
credentials():
|
|
18
|
+
| AwsCredentialIdentity
|
|
19
|
+
| AwsCredentialIdentityProvider
|
|
20
|
+
| undefined;
|
|
21
|
+
}
|
|
22
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
23
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
24
|
+
httpAuthSchemeProvider: SQSHttpAuthSchemeProvider;
|
|
25
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const getHttpAuthExtensionConfiguration: (
|
|
28
|
+
runtimeConfig: HttpAuthRuntimeConfig
|
|
29
|
+
) => HttpAuthExtensionConfiguration;
|
|
30
|
+
export declare const resolveHttpAuthRuntimeConfig: (
|
|
31
|
+
config: HttpAuthExtensionConfiguration
|
|
32
|
+
) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AWSSDKSigV4AuthInputConfig,
|
|
3
|
+
AWSSDKSigV4AuthResolvedConfig,
|
|
4
|
+
AWSSDKSigV4PreviouslyResolved,
|
|
5
|
+
} from "@aws-sdk/core";
|
|
6
|
+
import {
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpAuthScheme,
|
|
9
|
+
HttpAuthSchemeParameters,
|
|
10
|
+
HttpAuthSchemeParametersProvider,
|
|
11
|
+
HttpAuthSchemeProvider,
|
|
12
|
+
} from "@smithy/types";
|
|
13
|
+
import { SQSClientResolvedConfig } from "../SQSClient";
|
|
14
|
+
export interface SQSHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
15
|
+
region?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface SQSHttpAuthSchemeParametersProvider
|
|
18
|
+
extends HttpAuthSchemeParametersProvider<
|
|
19
|
+
SQSClientResolvedConfig,
|
|
20
|
+
HandlerExecutionContext,
|
|
21
|
+
SQSHttpAuthSchemeParameters,
|
|
22
|
+
object
|
|
23
|
+
> {}
|
|
24
|
+
export declare const defaultSQSHttpAuthSchemeParametersProvider: (
|
|
25
|
+
config: SQSClientResolvedConfig,
|
|
26
|
+
context: HandlerExecutionContext,
|
|
27
|
+
input: object
|
|
28
|
+
) => Promise<SQSHttpAuthSchemeParameters>;
|
|
29
|
+
export interface SQSHttpAuthSchemeProvider
|
|
30
|
+
extends HttpAuthSchemeProvider<SQSHttpAuthSchemeParameters> {}
|
|
31
|
+
export declare const defaultSQSHttpAuthSchemeProvider: SQSHttpAuthSchemeProvider;
|
|
32
|
+
export interface HttpAuthSchemeInputConfig extends AWSSDKSigV4AuthInputConfig {
|
|
33
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
34
|
+
httpAuthSchemeProvider?: SQSHttpAuthSchemeProvider;
|
|
35
|
+
}
|
|
36
|
+
export interface HttpAuthSchemeResolvedConfig
|
|
37
|
+
extends AWSSDKSigV4AuthResolvedConfig {
|
|
38
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
39
|
+
readonly httpAuthSchemeProvider: SQSHttpAuthSchemeProvider;
|
|
40
|
+
}
|
|
41
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
42
|
+
config: T & HttpAuthSchemeInputConfig & AWSSDKSigV4PreviouslyResolved
|
|
43
|
+
) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
2
|
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
3
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
4
5
|
export interface SQSExtensionConfiguration
|
|
5
6
|
extends HttpHandlerExtensionConfiguration,
|
|
6
7
|
DefaultExtensionConfiguration,
|
|
7
|
-
AwsRegionExtensionConfiguration
|
|
8
|
+
AwsRegionExtensionConfiguration,
|
|
9
|
+
HttpAuthExtensionConfiguration {}
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListDeadLetterSourceQueuesCommandOutput,
|
|
5
5
|
} from "../commands/ListDeadLetterSourceQueuesCommand";
|
|
6
6
|
import { SQSPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListDeadLetterSourceQueues: (
|
|
8
8
|
config: SQSPaginationConfiguration,
|
|
9
9
|
input: ListDeadLetterSourceQueuesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListDeadLetterSourceQueuesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListQueuesCommandOutput,
|
|
5
5
|
} from "../commands/ListQueuesCommand";
|
|
6
6
|
import { SQSPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListQueues: (
|
|
8
8
|
config: SQSPaginationConfiguration,
|
|
9
9
|
input: ListQueuesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListQueuesCommandOutput>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
8
8
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
9
9
|
credentialDefaultProvider: (
|
|
10
10
|
input: any
|
|
11
|
-
) => import("@smithy/types").
|
|
11
|
+
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
12
12
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
|
13
13
|
import("@smithy/types").UserAgent
|
|
14
14
|
>;
|
|
@@ -73,11 +73,12 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
73
73
|
| import("@smithy/types").RetryStrategy
|
|
74
74
|
| import("@smithy/types").RetryStrategyV2
|
|
75
75
|
| undefined;
|
|
76
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
77
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
78
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SQSHttpAuthSchemeProvider;
|
|
76
79
|
credentials?:
|
|
77
80
|
| import("@smithy/types").AwsCredentialIdentity
|
|
78
|
-
| import("@smithy/types").
|
|
79
|
-
import("@smithy/types").AwsCredentialIdentity
|
|
80
|
-
>
|
|
81
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
81
82
|
| undefined;
|
|
82
83
|
signer?:
|
|
83
84
|
| import("@smithy/types").RequestSigner
|
|
@@ -94,5 +95,4 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
94
95
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
95
96
|
) => import("@smithy/types").RequestSigner)
|
|
96
97
|
| undefined;
|
|
97
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
98
98
|
};
|
|
@@ -9,7 +9,7 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (
|
|
11
11
|
input: any
|
|
12
|
-
) => import("@smithy/types").
|
|
12
|
+
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
13
13
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
|
14
14
|
import("@smithy/types").UserAgent
|
|
15
15
|
>;
|
|
@@ -74,11 +74,12 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
74
74
|
| import("@smithy/types").RetryStrategy
|
|
75
75
|
| import("@smithy/types").RetryStrategyV2
|
|
76
76
|
| undefined;
|
|
77
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
78
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
79
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SQSHttpAuthSchemeProvider;
|
|
77
80
|
credentials?:
|
|
78
81
|
| import("@smithy/types").AwsCredentialIdentity
|
|
79
|
-
| import("@smithy/types").
|
|
80
|
-
import("@smithy/types").AwsCredentialIdentity
|
|
81
|
-
>
|
|
82
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
82
83
|
| undefined;
|
|
83
84
|
signer?:
|
|
84
85
|
| import("@smithy/types").RequestSigner
|
|
@@ -95,5 +96,4 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
95
96
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
96
97
|
) => import("@smithy/types").RequestSigner)
|
|
97
98
|
| undefined;
|
|
98
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
99
99
|
};
|
|
@@ -29,14 +29,14 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
29
29
|
serviceId: string;
|
|
30
30
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
31
31
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
32
|
-
region: string | import("@smithy/types").Provider<any>;
|
|
33
|
-
credentialDefaultProvider: (
|
|
34
|
-
input: any
|
|
35
|
-
) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
36
32
|
md5: import("@smithy/types").HashConstructor;
|
|
37
33
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
|
38
34
|
import("@smithy/types").UserAgent
|
|
39
35
|
>;
|
|
36
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
37
|
+
credentialDefaultProvider: (
|
|
38
|
+
input: any
|
|
39
|
+
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
40
40
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
41
41
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
42
42
|
logger: import("@smithy/types").Logger;
|
|
@@ -64,11 +64,12 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
64
64
|
| import("@smithy/types").RetryStrategy
|
|
65
65
|
| import("@smithy/types").RetryStrategyV2
|
|
66
66
|
| undefined;
|
|
67
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
68
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
69
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SQSHttpAuthSchemeProvider;
|
|
67
70
|
credentials?:
|
|
68
71
|
| import("@smithy/types").AwsCredentialIdentity
|
|
69
|
-
| import("@smithy/types").
|
|
70
|
-
import("@smithy/types").AwsCredentialIdentity
|
|
71
|
-
>
|
|
72
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
72
73
|
| undefined;
|
|
73
74
|
signer?:
|
|
74
75
|
| import("@smithy/types").RequestSigner
|
|
@@ -85,5 +86,4 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
85
86
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
86
87
|
) => import("@smithy/types").RequestSigner)
|
|
87
88
|
| undefined;
|
|
88
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
89
89
|
};
|
|
@@ -11,6 +11,8 @@ export declare const getRuntimeConfig: (config: SQSClientConfig) => {
|
|
|
11
11
|
}
|
|
12
12
|
) => import("@smithy/types").EndpointV2;
|
|
13
13
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
14
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SQSHttpAuthSchemeProvider;
|
|
15
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
14
16
|
logger: import("@smithy/types").Logger;
|
|
15
17
|
serviceId: string;
|
|
16
18
|
urlParser: import("@smithy/types").UrlParser;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.478.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,21 +20,21 @@
|
|
|
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.
|
|
23
|
+
"@aws-sdk/client-sts": "3.478.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.478.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
29
29
|
"@aws-sdk/middleware-sdk-sqs": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "3.470.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
32
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
33
32
|
"@aws-sdk/types": "3.468.0",
|
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.478.0",
|
|
35
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
36
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
37
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
38
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
39
39
|
"@smithy/hash-node": "^2.0.17",
|
|
40
40
|
"@smithy/invalid-dependency": "^2.0.15",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"@smithy/util-defaults-mode-browser": "^2.0.22",
|
|
57
57
|
"@smithy/util-defaults-mode-node": "^2.0.29",
|
|
58
58
|
"@smithy/util-endpoints": "^1.0.7",
|
|
59
|
+
"@smithy/util-middleware": "^2.0.8",
|
|
59
60
|
"@smithy/util-retry": "^2.0.8",
|
|
60
61
|
"@smithy/util-utf8": "^2.0.2",
|
|
61
62
|
"tslib": "^2.5.0"
|