@aws-sdk/client-lambda 3.36.1 → 3.40.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.
@@ -1,29 +1,77 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
- "fips-us-east-1": {
5
- hostname: "lambda-fips.us-east-1.amazonaws.com",
6
- signingRegion: "us-east-1",
4
+ "us-east-1": {
5
+ variants: [
6
+ {
7
+ hostname: "lambda.us-east-1.amazonaws.com",
8
+ tags: [],
9
+ },
10
+ {
11
+ hostname: "lambda-fips.us-east-1.amazonaws.com",
12
+ tags: ["fips"],
13
+ },
14
+ ],
7
15
  },
8
- "fips-us-east-2": {
9
- hostname: "lambda-fips.us-east-2.amazonaws.com",
10
- signingRegion: "us-east-2",
16
+ "us-east-2": {
17
+ variants: [
18
+ {
19
+ hostname: "lambda.us-east-2.amazonaws.com",
20
+ tags: [],
21
+ },
22
+ {
23
+ hostname: "lambda-fips.us-east-2.amazonaws.com",
24
+ tags: ["fips"],
25
+ },
26
+ ],
11
27
  },
12
- "fips-us-gov-east-1": {
13
- hostname: "lambda-fips.us-gov-east-1.amazonaws.com",
14
- signingRegion: "us-gov-east-1",
28
+ "us-gov-east-1": {
29
+ variants: [
30
+ {
31
+ hostname: "lambda.us-gov-east-1.amazonaws.com",
32
+ tags: [],
33
+ },
34
+ {
35
+ hostname: "lambda-fips.us-gov-east-1.amazonaws.com",
36
+ tags: ["fips"],
37
+ },
38
+ ],
15
39
  },
16
- "fips-us-gov-west-1": {
17
- hostname: "lambda-fips.us-gov-west-1.amazonaws.com",
18
- signingRegion: "us-gov-west-1",
40
+ "us-gov-west-1": {
41
+ variants: [
42
+ {
43
+ hostname: "lambda.us-gov-west-1.amazonaws.com",
44
+ tags: [],
45
+ },
46
+ {
47
+ hostname: "lambda-fips.us-gov-west-1.amazonaws.com",
48
+ tags: ["fips"],
49
+ },
50
+ ],
19
51
  },
20
- "fips-us-west-1": {
21
- hostname: "lambda-fips.us-west-1.amazonaws.com",
22
- signingRegion: "us-west-1",
52
+ "us-west-1": {
53
+ variants: [
54
+ {
55
+ hostname: "lambda.us-west-1.amazonaws.com",
56
+ tags: [],
57
+ },
58
+ {
59
+ hostname: "lambda-fips.us-west-1.amazonaws.com",
60
+ tags: ["fips"],
61
+ },
62
+ ],
23
63
  },
24
- "fips-us-west-2": {
25
- hostname: "lambda-fips.us-west-2.amazonaws.com",
26
- signingRegion: "us-west-2",
64
+ "us-west-2": {
65
+ variants: [
66
+ {
67
+ hostname: "lambda.us-west-2.amazonaws.com",
68
+ tags: [],
69
+ },
70
+ {
71
+ hostname: "lambda-fips.us-west-2.amazonaws.com",
72
+ tags: ["fips"],
73
+ },
74
+ ],
27
75
  },
28
76
  };
29
77
  var partitionHash = {
@@ -55,23 +103,89 @@ var partitionHash = {
55
103
  "us-west-1",
56
104
  "us-west-2",
57
105
  ],
58
- hostname: "lambda.{region}.amazonaws.com",
106
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
107
+ variants: [
108
+ {
109
+ hostname: "lambda.{region}.amazonaws.com",
110
+ tags: [],
111
+ },
112
+ {
113
+ hostname: "lambda-fips.{region}.amazonaws.com",
114
+ tags: ["fips"],
115
+ },
116
+ {
117
+ hostname: "lambda-fips.{region}.api.aws",
118
+ tags: ["dualstack", "fips"],
119
+ },
120
+ {
121
+ hostname: "lambda.{region}.api.aws",
122
+ tags: ["dualstack"],
123
+ },
124
+ ],
59
125
  },
60
126
  "aws-cn": {
61
127
  regions: ["cn-north-1", "cn-northwest-1"],
62
- hostname: "lambda.{region}.amazonaws.com.cn",
128
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
129
+ variants: [
130
+ {
131
+ hostname: "lambda.{region}.amazonaws.com.cn",
132
+ tags: [],
133
+ },
134
+ {
135
+ hostname: "lambda-fips.{region}.amazonaws.com.cn",
136
+ tags: ["fips"],
137
+ },
138
+ {
139
+ hostname: "lambda-fips.{region}.api.amazonwebservices.com.cn",
140
+ tags: ["dualstack", "fips"],
141
+ },
142
+ {
143
+ hostname: "lambda.{region}.api.amazonwebservices.com.cn",
144
+ tags: ["dualstack"],
145
+ },
146
+ ],
63
147
  },
64
148
  "aws-iso": {
65
- regions: ["us-iso-east-1"],
66
- hostname: "lambda.{region}.c2s.ic.gov",
149
+ regions: ["us-iso-east-1", "us-iso-west-1"],
150
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
151
+ variants: [
152
+ {
153
+ hostname: "lambda.{region}.c2s.ic.gov",
154
+ tags: [],
155
+ },
156
+ ],
67
157
  },
68
158
  "aws-iso-b": {
69
159
  regions: ["us-isob-east-1"],
70
- hostname: "lambda.{region}.sc2s.sgov.gov",
160
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
161
+ variants: [
162
+ {
163
+ hostname: "lambda.{region}.sc2s.sgov.gov",
164
+ tags: [],
165
+ },
166
+ ],
71
167
  },
72
168
  "aws-us-gov": {
73
169
  regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
74
- hostname: "lambda.{region}.amazonaws.com",
170
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
171
+ variants: [
172
+ {
173
+ hostname: "lambda.{region}.amazonaws.com",
174
+ tags: [],
175
+ },
176
+ {
177
+ hostname: "lambda-fips.{region}.amazonaws.com",
178
+ tags: ["fips"],
179
+ },
180
+ {
181
+ hostname: "lambda-fips.{region}.api.aws",
182
+ tags: ["dualstack", "fips"],
183
+ },
184
+ {
185
+ hostname: "lambda.{region}.api.aws",
186
+ tags: ["dualstack"],
187
+ },
188
+ ],
75
189
  },
76
190
  };
77
191
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
package/dist-es/index.js CHANGED
@@ -1,75 +1,6 @@
1
- export * from "./LambdaClient";
2
1
  export * from "./Lambda";
3
- export * from "./commands/AddLayerVersionPermissionCommand";
4
- export * from "./commands/AddPermissionCommand";
5
- export * from "./commands/CreateAliasCommand";
6
- export * from "./commands/CreateCodeSigningConfigCommand";
7
- export * from "./commands/CreateEventSourceMappingCommand";
8
- export * from "./commands/CreateFunctionCommand";
9
- export * from "./commands/DeleteAliasCommand";
10
- export * from "./commands/DeleteCodeSigningConfigCommand";
11
- export * from "./commands/DeleteEventSourceMappingCommand";
12
- export * from "./commands/DeleteFunctionCommand";
13
- export * from "./commands/DeleteFunctionCodeSigningConfigCommand";
14
- export * from "./commands/DeleteFunctionConcurrencyCommand";
15
- export * from "./commands/DeleteFunctionEventInvokeConfigCommand";
16
- export * from "./commands/DeleteLayerVersionCommand";
17
- export * from "./commands/DeleteProvisionedConcurrencyConfigCommand";
18
- export * from "./commands/GetAccountSettingsCommand";
19
- export * from "./commands/GetAliasCommand";
20
- export * from "./commands/GetCodeSigningConfigCommand";
21
- export * from "./commands/GetEventSourceMappingCommand";
22
- export * from "./commands/GetFunctionCommand";
23
- export * from "./waiters/waitForFunctionExists";
24
- export * from "./commands/GetFunctionCodeSigningConfigCommand";
25
- export * from "./commands/GetFunctionConcurrencyCommand";
26
- export * from "./commands/GetFunctionConfigurationCommand";
27
- export * from "./waiters/waitForFunctionActive";
28
- export * from "./waiters/waitForFunctionUpdated";
29
- export * from "./commands/GetFunctionEventInvokeConfigCommand";
30
- export * from "./commands/GetLayerVersionCommand";
31
- export * from "./commands/GetLayerVersionByArnCommand";
32
- export * from "./commands/GetLayerVersionPolicyCommand";
33
- export * from "./commands/GetPolicyCommand";
34
- export * from "./commands/GetProvisionedConcurrencyConfigCommand";
35
- export * from "./commands/InvokeCommand";
36
- export * from "./commands/InvokeAsyncCommand";
37
- export * from "./commands/ListAliasesCommand";
38
- export * from "./pagination/ListAliasesPaginator";
39
- export * from "./commands/ListCodeSigningConfigsCommand";
40
- export * from "./pagination/ListCodeSigningConfigsPaginator";
41
- export * from "./commands/ListEventSourceMappingsCommand";
42
- export * from "./pagination/ListEventSourceMappingsPaginator";
43
- export * from "./commands/ListFunctionEventInvokeConfigsCommand";
44
- export * from "./pagination/ListFunctionEventInvokeConfigsPaginator";
45
- export * from "./commands/ListFunctionsCommand";
46
- export * from "./pagination/ListFunctionsPaginator";
47
- export * from "./commands/ListFunctionsByCodeSigningConfigCommand";
48
- export * from "./pagination/ListFunctionsByCodeSigningConfigPaginator";
49
- export * from "./commands/ListLayersCommand";
50
- export * from "./pagination/ListLayersPaginator";
51
- export * from "./commands/ListLayerVersionsCommand";
52
- export * from "./pagination/ListLayerVersionsPaginator";
53
- export * from "./commands/ListProvisionedConcurrencyConfigsCommand";
54
- export * from "./pagination/ListProvisionedConcurrencyConfigsPaginator";
55
- export * from "./commands/ListTagsCommand";
56
- export * from "./commands/ListVersionsByFunctionCommand";
57
- export * from "./pagination/ListVersionsByFunctionPaginator";
58
- export * from "./commands/PublishLayerVersionCommand";
59
- export * from "./commands/PublishVersionCommand";
60
- export * from "./commands/PutFunctionCodeSigningConfigCommand";
61
- export * from "./commands/PutFunctionConcurrencyCommand";
62
- export * from "./commands/PutFunctionEventInvokeConfigCommand";
63
- export * from "./commands/PutProvisionedConcurrencyConfigCommand";
64
- export * from "./commands/RemoveLayerVersionPermissionCommand";
65
- export * from "./commands/RemovePermissionCommand";
66
- export * from "./commands/TagResourceCommand";
67
- export * from "./commands/UntagResourceCommand";
68
- export * from "./commands/UpdateAliasCommand";
69
- export * from "./commands/UpdateCodeSigningConfigCommand";
70
- export * from "./commands/UpdateEventSourceMappingCommand";
71
- export * from "./commands/UpdateFunctionCodeCommand";
72
- export * from "./commands/UpdateFunctionConfigurationCommand";
73
- export * from "./commands/UpdateFunctionEventInvokeConfigCommand";
74
- export * from "./pagination/Interfaces";
75
- export * from "./models/index";
2
+ export * from "./LambdaClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
6
+ export * from "./waiters";
@@ -0,0 +1,11 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListAliasesPaginator";
3
+ export * from "./ListCodeSigningConfigsPaginator";
4
+ export * from "./ListEventSourceMappingsPaginator";
5
+ export * from "./ListFunctionEventInvokeConfigsPaginator";
6
+ export * from "./ListFunctionsByCodeSigningConfigPaginator";
7
+ export * from "./ListFunctionsPaginator";
8
+ export * from "./ListLayerVersionsPaginator";
9
+ export * from "./ListLayersPaginator";
10
+ export * from "./ListProvisionedConcurrencyConfigsPaginator";
11
+ export * from "./ListVersionsByFunctionPaginator";
@@ -1,6 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
5
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
13
  export var getRuntimeConfig = function (config) {
13
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
14
15
  var clientSharedValues = getSharedRuntimeConfig(config);
15
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
16
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
16
17
  };
@@ -1,7 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
4
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
21
  };
@@ -0,0 +1,3 @@
1
+ export * from "./waitForFunctionActive";
2
+ export * from "./waitForFunctionExists";
3
+ export * from "./waitForFunctionUpdated";
@@ -134,6 +134,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
134
134
  * Optional logger for logging debug/info/warn/error.
135
135
  */
136
136
  logger?: __Logger;
137
+ /**
138
+ * Enables IPv6/IPv4 dualstack endpoint.
139
+ */
140
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
141
+ /**
142
+ * Enables FIPS compatible endpoints.
143
+ */
144
+ useFipsEndpoint?: boolean | __Provider<boolean>;
137
145
  /**
138
146
  * Unique service identifier.
139
147
  * @internal
@@ -0,0 +1,58 @@
1
+ export * from "./AddLayerVersionPermissionCommand";
2
+ export * from "./AddPermissionCommand";
3
+ export * from "./CreateAliasCommand";
4
+ export * from "./CreateCodeSigningConfigCommand";
5
+ export * from "./CreateEventSourceMappingCommand";
6
+ export * from "./CreateFunctionCommand";
7
+ export * from "./DeleteAliasCommand";
8
+ export * from "./DeleteCodeSigningConfigCommand";
9
+ export * from "./DeleteEventSourceMappingCommand";
10
+ export * from "./DeleteFunctionCodeSigningConfigCommand";
11
+ export * from "./DeleteFunctionCommand";
12
+ export * from "./DeleteFunctionConcurrencyCommand";
13
+ export * from "./DeleteFunctionEventInvokeConfigCommand";
14
+ export * from "./DeleteLayerVersionCommand";
15
+ export * from "./DeleteProvisionedConcurrencyConfigCommand";
16
+ export * from "./GetAccountSettingsCommand";
17
+ export * from "./GetAliasCommand";
18
+ export * from "./GetCodeSigningConfigCommand";
19
+ export * from "./GetEventSourceMappingCommand";
20
+ export * from "./GetFunctionCodeSigningConfigCommand";
21
+ export * from "./GetFunctionCommand";
22
+ export * from "./GetFunctionConcurrencyCommand";
23
+ export * from "./GetFunctionConfigurationCommand";
24
+ export * from "./GetFunctionEventInvokeConfigCommand";
25
+ export * from "./GetLayerVersionByArnCommand";
26
+ export * from "./GetLayerVersionCommand";
27
+ export * from "./GetLayerVersionPolicyCommand";
28
+ export * from "./GetPolicyCommand";
29
+ export * from "./GetProvisionedConcurrencyConfigCommand";
30
+ export * from "./InvokeAsyncCommand";
31
+ export * from "./InvokeCommand";
32
+ export * from "./ListAliasesCommand";
33
+ export * from "./ListCodeSigningConfigsCommand";
34
+ export * from "./ListEventSourceMappingsCommand";
35
+ export * from "./ListFunctionEventInvokeConfigsCommand";
36
+ export * from "./ListFunctionsByCodeSigningConfigCommand";
37
+ export * from "./ListFunctionsCommand";
38
+ export * from "./ListLayerVersionsCommand";
39
+ export * from "./ListLayersCommand";
40
+ export * from "./ListProvisionedConcurrencyConfigsCommand";
41
+ export * from "./ListTagsCommand";
42
+ export * from "./ListVersionsByFunctionCommand";
43
+ export * from "./PublishLayerVersionCommand";
44
+ export * from "./PublishVersionCommand";
45
+ export * from "./PutFunctionCodeSigningConfigCommand";
46
+ export * from "./PutFunctionConcurrencyCommand";
47
+ export * from "./PutFunctionEventInvokeConfigCommand";
48
+ export * from "./PutProvisionedConcurrencyConfigCommand";
49
+ export * from "./RemoveLayerVersionPermissionCommand";
50
+ export * from "./RemovePermissionCommand";
51
+ export * from "./TagResourceCommand";
52
+ export * from "./UntagResourceCommand";
53
+ export * from "./UpdateAliasCommand";
54
+ export * from "./UpdateCodeSigningConfigCommand";
55
+ export * from "./UpdateEventSourceMappingCommand";
56
+ export * from "./UpdateFunctionCodeCommand";
57
+ export * from "./UpdateFunctionConfigurationCommand";
58
+ export * from "./UpdateFunctionEventInvokeConfigCommand";
@@ -1,75 +1,6 @@
1
- export * from "./LambdaClient";
2
1
  export * from "./Lambda";
3
- export * from "./commands/AddLayerVersionPermissionCommand";
4
- export * from "./commands/AddPermissionCommand";
5
- export * from "./commands/CreateAliasCommand";
6
- export * from "./commands/CreateCodeSigningConfigCommand";
7
- export * from "./commands/CreateEventSourceMappingCommand";
8
- export * from "./commands/CreateFunctionCommand";
9
- export * from "./commands/DeleteAliasCommand";
10
- export * from "./commands/DeleteCodeSigningConfigCommand";
11
- export * from "./commands/DeleteEventSourceMappingCommand";
12
- export * from "./commands/DeleteFunctionCommand";
13
- export * from "./commands/DeleteFunctionCodeSigningConfigCommand";
14
- export * from "./commands/DeleteFunctionConcurrencyCommand";
15
- export * from "./commands/DeleteFunctionEventInvokeConfigCommand";
16
- export * from "./commands/DeleteLayerVersionCommand";
17
- export * from "./commands/DeleteProvisionedConcurrencyConfigCommand";
18
- export * from "./commands/GetAccountSettingsCommand";
19
- export * from "./commands/GetAliasCommand";
20
- export * from "./commands/GetCodeSigningConfigCommand";
21
- export * from "./commands/GetEventSourceMappingCommand";
22
- export * from "./commands/GetFunctionCommand";
23
- export * from "./waiters/waitForFunctionExists";
24
- export * from "./commands/GetFunctionCodeSigningConfigCommand";
25
- export * from "./commands/GetFunctionConcurrencyCommand";
26
- export * from "./commands/GetFunctionConfigurationCommand";
27
- export * from "./waiters/waitForFunctionActive";
28
- export * from "./waiters/waitForFunctionUpdated";
29
- export * from "./commands/GetFunctionEventInvokeConfigCommand";
30
- export * from "./commands/GetLayerVersionCommand";
31
- export * from "./commands/GetLayerVersionByArnCommand";
32
- export * from "./commands/GetLayerVersionPolicyCommand";
33
- export * from "./commands/GetPolicyCommand";
34
- export * from "./commands/GetProvisionedConcurrencyConfigCommand";
35
- export * from "./commands/InvokeCommand";
36
- export * from "./commands/InvokeAsyncCommand";
37
- export * from "./commands/ListAliasesCommand";
38
- export * from "./pagination/ListAliasesPaginator";
39
- export * from "./commands/ListCodeSigningConfigsCommand";
40
- export * from "./pagination/ListCodeSigningConfigsPaginator";
41
- export * from "./commands/ListEventSourceMappingsCommand";
42
- export * from "./pagination/ListEventSourceMappingsPaginator";
43
- export * from "./commands/ListFunctionEventInvokeConfigsCommand";
44
- export * from "./pagination/ListFunctionEventInvokeConfigsPaginator";
45
- export * from "./commands/ListFunctionsCommand";
46
- export * from "./pagination/ListFunctionsPaginator";
47
- export * from "./commands/ListFunctionsByCodeSigningConfigCommand";
48
- export * from "./pagination/ListFunctionsByCodeSigningConfigPaginator";
49
- export * from "./commands/ListLayersCommand";
50
- export * from "./pagination/ListLayersPaginator";
51
- export * from "./commands/ListLayerVersionsCommand";
52
- export * from "./pagination/ListLayerVersionsPaginator";
53
- export * from "./commands/ListProvisionedConcurrencyConfigsCommand";
54
- export * from "./pagination/ListProvisionedConcurrencyConfigsPaginator";
55
- export * from "./commands/ListTagsCommand";
56
- export * from "./commands/ListVersionsByFunctionCommand";
57
- export * from "./pagination/ListVersionsByFunctionPaginator";
58
- export * from "./commands/PublishLayerVersionCommand";
59
- export * from "./commands/PublishVersionCommand";
60
- export * from "./commands/PutFunctionCodeSigningConfigCommand";
61
- export * from "./commands/PutFunctionConcurrencyCommand";
62
- export * from "./commands/PutFunctionEventInvokeConfigCommand";
63
- export * from "./commands/PutProvisionedConcurrencyConfigCommand";
64
- export * from "./commands/RemoveLayerVersionPermissionCommand";
65
- export * from "./commands/RemovePermissionCommand";
66
- export * from "./commands/TagResourceCommand";
67
- export * from "./commands/UntagResourceCommand";
68
- export * from "./commands/UpdateAliasCommand";
69
- export * from "./commands/UpdateCodeSigningConfigCommand";
70
- export * from "./commands/UpdateEventSourceMappingCommand";
71
- export * from "./commands/UpdateFunctionCodeCommand";
72
- export * from "./commands/UpdateFunctionConfigurationCommand";
73
- export * from "./commands/UpdateFunctionEventInvokeConfigCommand";
74
- export * from "./pagination/Interfaces";
75
- export * from "./models/index";
2
+ export * from "./LambdaClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
6
+ export * from "./waiters";
@@ -0,0 +1,11 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListAliasesPaginator";
3
+ export * from "./ListCodeSigningConfigsPaginator";
4
+ export * from "./ListEventSourceMappingsPaginator";
5
+ export * from "./ListFunctionEventInvokeConfigsPaginator";
6
+ export * from "./ListFunctionsByCodeSigningConfigPaginator";
7
+ export * from "./ListFunctionsPaginator";
8
+ export * from "./ListLayerVersionsPaginator";
9
+ export * from "./ListLayersPaginator";
10
+ export * from "./ListProvisionedConcurrencyConfigsPaginator";
11
+ export * from "./ListVersionsByFunctionPaginator";
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: LambdaClientConfig) => {
16
16
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
17
  sha256: import("@aws-sdk/types").HashConstructor;
18
18
  streamCollector: import("@aws-sdk/types").StreamCollector;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
21
  utf8Decoder: import("@aws-sdk/types").Decoder;
20
22
  utf8Encoder: import("@aws-sdk/types").Encoder;
21
23
  apiVersion: string;
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: LambdaClientConfig) => {
16
16
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
17
  sha256: import("@aws-sdk/types").HashConstructor;
18
18
  streamCollector: import("@aws-sdk/types").StreamCollector;
19
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
21
  utf8Decoder: import("@aws-sdk/types").Decoder;
20
22
  utf8Encoder: import("@aws-sdk/types").Encoder;
21
23
  apiVersion: string;
@@ -18,6 +18,8 @@ export declare const getRuntimeConfig: (config: LambdaClientConfig) => {
18
18
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
19
19
  retryMode: string | import("@aws-sdk/types").Provider<string>;
20
20
  logger: import("@aws-sdk/types").Logger;
21
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
23
  serviceId: string;
22
24
  region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
23
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
@@ -96,6 +96,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
96
96
 
97
97
  logger?: __Logger;
98
98
 
99
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
100
+
101
+ useFipsEndpoint?: boolean | __Provider<boolean>;
102
+
99
103
  serviceId?: string;
100
104
 
101
105
  region?: string | __Provider<string>;
@@ -0,0 +1,58 @@
1
+ export * from "./AddLayerVersionPermissionCommand";
2
+ export * from "./AddPermissionCommand";
3
+ export * from "./CreateAliasCommand";
4
+ export * from "./CreateCodeSigningConfigCommand";
5
+ export * from "./CreateEventSourceMappingCommand";
6
+ export * from "./CreateFunctionCommand";
7
+ export * from "./DeleteAliasCommand";
8
+ export * from "./DeleteCodeSigningConfigCommand";
9
+ export * from "./DeleteEventSourceMappingCommand";
10
+ export * from "./DeleteFunctionCodeSigningConfigCommand";
11
+ export * from "./DeleteFunctionCommand";
12
+ export * from "./DeleteFunctionConcurrencyCommand";
13
+ export * from "./DeleteFunctionEventInvokeConfigCommand";
14
+ export * from "./DeleteLayerVersionCommand";
15
+ export * from "./DeleteProvisionedConcurrencyConfigCommand";
16
+ export * from "./GetAccountSettingsCommand";
17
+ export * from "./GetAliasCommand";
18
+ export * from "./GetCodeSigningConfigCommand";
19
+ export * from "./GetEventSourceMappingCommand";
20
+ export * from "./GetFunctionCodeSigningConfigCommand";
21
+ export * from "./GetFunctionCommand";
22
+ export * from "./GetFunctionConcurrencyCommand";
23
+ export * from "./GetFunctionConfigurationCommand";
24
+ export * from "./GetFunctionEventInvokeConfigCommand";
25
+ export * from "./GetLayerVersionByArnCommand";
26
+ export * from "./GetLayerVersionCommand";
27
+ export * from "./GetLayerVersionPolicyCommand";
28
+ export * from "./GetPolicyCommand";
29
+ export * from "./GetProvisionedConcurrencyConfigCommand";
30
+ export * from "./InvokeAsyncCommand";
31
+ export * from "./InvokeCommand";
32
+ export * from "./ListAliasesCommand";
33
+ export * from "./ListCodeSigningConfigsCommand";
34
+ export * from "./ListEventSourceMappingsCommand";
35
+ export * from "./ListFunctionEventInvokeConfigsCommand";
36
+ export * from "./ListFunctionsByCodeSigningConfigCommand";
37
+ export * from "./ListFunctionsCommand";
38
+ export * from "./ListLayerVersionsCommand";
39
+ export * from "./ListLayersCommand";
40
+ export * from "./ListProvisionedConcurrencyConfigsCommand";
41
+ export * from "./ListTagsCommand";
42
+ export * from "./ListVersionsByFunctionCommand";
43
+ export * from "./PublishLayerVersionCommand";
44
+ export * from "./PublishVersionCommand";
45
+ export * from "./PutFunctionCodeSigningConfigCommand";
46
+ export * from "./PutFunctionConcurrencyCommand";
47
+ export * from "./PutFunctionEventInvokeConfigCommand";
48
+ export * from "./PutProvisionedConcurrencyConfigCommand";
49
+ export * from "./RemoveLayerVersionPermissionCommand";
50
+ export * from "./RemovePermissionCommand";
51
+ export * from "./TagResourceCommand";
52
+ export * from "./UntagResourceCommand";
53
+ export * from "./UpdateAliasCommand";
54
+ export * from "./UpdateCodeSigningConfigCommand";
55
+ export * from "./UpdateEventSourceMappingCommand";
56
+ export * from "./UpdateFunctionCodeCommand";
57
+ export * from "./UpdateFunctionConfigurationCommand";
58
+ export * from "./UpdateFunctionEventInvokeConfigCommand";