@aws-sdk/client-lambda 3.55.0 → 3.65.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/CHANGELOG.md +30 -0
- package/dist-cjs/Lambda.js +75 -0
- package/dist-cjs/commands/CreateFunctionUrlConfigCommand.js +36 -0
- package/dist-cjs/commands/DeleteFunctionUrlConfigCommand.js +36 -0
- package/dist-cjs/commands/GetFunctionUrlConfigCommand.js +36 -0
- package/dist-cjs/commands/ListFunctionUrlConfigsCommand.js +36 -0
- package/dist-cjs/commands/UpdateFunctionUrlConfigCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +81 -4
- package/dist-cjs/pagination/ListFunctionUrlConfigsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +626 -3
- package/dist-es/Lambda.js +75 -0
- package/dist-es/commands/CreateFunctionUrlConfigCommand.js +39 -0
- package/dist-es/commands/DeleteFunctionUrlConfigCommand.js +39 -0
- package/dist-es/commands/GetFunctionUrlConfigCommand.js +39 -0
- package/dist-es/commands/ListFunctionUrlConfigsCommand.js +39 -0
- package/dist-es/commands/UpdateFunctionUrlConfigCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +53 -0
- package/dist-es/pagination/ListFunctionUrlConfigsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +756 -27
- package/dist-types/Lambda.d.ts +37 -0
- package/dist-types/LambdaClient.d.ts +7 -2
- package/dist-types/commands/CreateFunctionUrlConfigCommand.d.ts +36 -0
- package/dist-types/commands/DeleteFunctionUrlConfigCommand.d.ts +36 -0
- package/dist-types/commands/GetFunctionUrlConfigCommand.d.ts +35 -0
- package/dist-types/commands/ListFunctionUrlConfigsCommand.d.ts +35 -0
- package/dist-types/commands/UpdateFunctionUrlConfigCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +439 -0
- package/dist-types/pagination/ListFunctionUrlConfigsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/Lambda.d.ts +25 -0
- package/dist-types/ts3.4/LambdaClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/CreateFunctionUrlConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteFunctionUrlConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetFunctionUrlConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListFunctionUrlConfigsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateFunctionUrlConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +181 -0
- package/dist-types/ts3.4/pagination/ListFunctionUrlConfigsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
- package/package.json +18 -18
package/dist-es/Lambda.js
CHANGED
|
@@ -5,6 +5,7 @@ import { CreateAliasCommand } from "./commands/CreateAliasCommand";
|
|
|
5
5
|
import { CreateCodeSigningConfigCommand, } from "./commands/CreateCodeSigningConfigCommand";
|
|
6
6
|
import { CreateEventSourceMappingCommand, } from "./commands/CreateEventSourceMappingCommand";
|
|
7
7
|
import { CreateFunctionCommand, } from "./commands/CreateFunctionCommand";
|
|
8
|
+
import { CreateFunctionUrlConfigCommand, } from "./commands/CreateFunctionUrlConfigCommand";
|
|
8
9
|
import { DeleteAliasCommand } from "./commands/DeleteAliasCommand";
|
|
9
10
|
import { DeleteCodeSigningConfigCommand, } from "./commands/DeleteCodeSigningConfigCommand";
|
|
10
11
|
import { DeleteEventSourceMappingCommand, } from "./commands/DeleteEventSourceMappingCommand";
|
|
@@ -12,6 +13,7 @@ import { DeleteFunctionCodeSigningConfigCommand, } from "./commands/DeleteFuncti
|
|
|
12
13
|
import { DeleteFunctionCommand, } from "./commands/DeleteFunctionCommand";
|
|
13
14
|
import { DeleteFunctionConcurrencyCommand, } from "./commands/DeleteFunctionConcurrencyCommand";
|
|
14
15
|
import { DeleteFunctionEventInvokeConfigCommand, } from "./commands/DeleteFunctionEventInvokeConfigCommand";
|
|
16
|
+
import { DeleteFunctionUrlConfigCommand, } from "./commands/DeleteFunctionUrlConfigCommand";
|
|
15
17
|
import { DeleteLayerVersionCommand, } from "./commands/DeleteLayerVersionCommand";
|
|
16
18
|
import { DeleteProvisionedConcurrencyConfigCommand, } from "./commands/DeleteProvisionedConcurrencyConfigCommand";
|
|
17
19
|
import { GetAccountSettingsCommand, } from "./commands/GetAccountSettingsCommand";
|
|
@@ -23,6 +25,7 @@ import { GetFunctionCommand } from "./commands/GetFunctionCommand";
|
|
|
23
25
|
import { GetFunctionConcurrencyCommand, } from "./commands/GetFunctionConcurrencyCommand";
|
|
24
26
|
import { GetFunctionConfigurationCommand, } from "./commands/GetFunctionConfigurationCommand";
|
|
25
27
|
import { GetFunctionEventInvokeConfigCommand, } from "./commands/GetFunctionEventInvokeConfigCommand";
|
|
28
|
+
import { GetFunctionUrlConfigCommand, } from "./commands/GetFunctionUrlConfigCommand";
|
|
26
29
|
import { GetLayerVersionByArnCommand, } from "./commands/GetLayerVersionByArnCommand";
|
|
27
30
|
import { GetLayerVersionCommand, } from "./commands/GetLayerVersionCommand";
|
|
28
31
|
import { GetLayerVersionPolicyCommand, } from "./commands/GetLayerVersionPolicyCommand";
|
|
@@ -36,6 +39,7 @@ import { ListEventSourceMappingsCommand, } from "./commands/ListEventSourceMappi
|
|
|
36
39
|
import { ListFunctionEventInvokeConfigsCommand, } from "./commands/ListFunctionEventInvokeConfigsCommand";
|
|
37
40
|
import { ListFunctionsByCodeSigningConfigCommand, } from "./commands/ListFunctionsByCodeSigningConfigCommand";
|
|
38
41
|
import { ListFunctionsCommand, } from "./commands/ListFunctionsCommand";
|
|
42
|
+
import { ListFunctionUrlConfigsCommand, } from "./commands/ListFunctionUrlConfigsCommand";
|
|
39
43
|
import { ListLayersCommand } from "./commands/ListLayersCommand";
|
|
40
44
|
import { ListLayerVersionsCommand, } from "./commands/ListLayerVersionsCommand";
|
|
41
45
|
import { ListProvisionedConcurrencyConfigsCommand, } from "./commands/ListProvisionedConcurrencyConfigsCommand";
|
|
@@ -57,6 +61,7 @@ import { UpdateEventSourceMappingCommand, } from "./commands/UpdateEventSourceMa
|
|
|
57
61
|
import { UpdateFunctionCodeCommand, } from "./commands/UpdateFunctionCodeCommand";
|
|
58
62
|
import { UpdateFunctionConfigurationCommand, } from "./commands/UpdateFunctionConfigurationCommand";
|
|
59
63
|
import { UpdateFunctionEventInvokeConfigCommand, } from "./commands/UpdateFunctionEventInvokeConfigCommand";
|
|
64
|
+
import { UpdateFunctionUrlConfigCommand, } from "./commands/UpdateFunctionUrlConfigCommand";
|
|
60
65
|
import { LambdaClient } from "./LambdaClient";
|
|
61
66
|
var Lambda = (function (_super) {
|
|
62
67
|
__extends(Lambda, _super);
|
|
@@ -147,6 +152,20 @@ var Lambda = (function (_super) {
|
|
|
147
152
|
return this.send(command, optionsOrCb);
|
|
148
153
|
}
|
|
149
154
|
};
|
|
155
|
+
Lambda.prototype.createFunctionUrlConfig = function (args, optionsOrCb, cb) {
|
|
156
|
+
var command = new CreateFunctionUrlConfigCommand(args);
|
|
157
|
+
if (typeof optionsOrCb === "function") {
|
|
158
|
+
this.send(command, optionsOrCb);
|
|
159
|
+
}
|
|
160
|
+
else if (typeof cb === "function") {
|
|
161
|
+
if (typeof optionsOrCb !== "object")
|
|
162
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
163
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
return this.send(command, optionsOrCb);
|
|
167
|
+
}
|
|
168
|
+
};
|
|
150
169
|
Lambda.prototype.deleteAlias = function (args, optionsOrCb, cb) {
|
|
151
170
|
var command = new DeleteAliasCommand(args);
|
|
152
171
|
if (typeof optionsOrCb === "function") {
|
|
@@ -245,6 +264,20 @@ var Lambda = (function (_super) {
|
|
|
245
264
|
return this.send(command, optionsOrCb);
|
|
246
265
|
}
|
|
247
266
|
};
|
|
267
|
+
Lambda.prototype.deleteFunctionUrlConfig = function (args, optionsOrCb, cb) {
|
|
268
|
+
var command = new DeleteFunctionUrlConfigCommand(args);
|
|
269
|
+
if (typeof optionsOrCb === "function") {
|
|
270
|
+
this.send(command, optionsOrCb);
|
|
271
|
+
}
|
|
272
|
+
else if (typeof cb === "function") {
|
|
273
|
+
if (typeof optionsOrCb !== "object")
|
|
274
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
275
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
return this.send(command, optionsOrCb);
|
|
279
|
+
}
|
|
280
|
+
};
|
|
248
281
|
Lambda.prototype.deleteLayerVersion = function (args, optionsOrCb, cb) {
|
|
249
282
|
var command = new DeleteLayerVersionCommand(args);
|
|
250
283
|
if (typeof optionsOrCb === "function") {
|
|
@@ -399,6 +432,20 @@ var Lambda = (function (_super) {
|
|
|
399
432
|
return this.send(command, optionsOrCb);
|
|
400
433
|
}
|
|
401
434
|
};
|
|
435
|
+
Lambda.prototype.getFunctionUrlConfig = function (args, optionsOrCb, cb) {
|
|
436
|
+
var command = new GetFunctionUrlConfigCommand(args);
|
|
437
|
+
if (typeof optionsOrCb === "function") {
|
|
438
|
+
this.send(command, optionsOrCb);
|
|
439
|
+
}
|
|
440
|
+
else if (typeof cb === "function") {
|
|
441
|
+
if (typeof optionsOrCb !== "object")
|
|
442
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
443
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
return this.send(command, optionsOrCb);
|
|
447
|
+
}
|
|
448
|
+
};
|
|
402
449
|
Lambda.prototype.getLayerVersion = function (args, optionsOrCb, cb) {
|
|
403
450
|
var command = new GetLayerVersionCommand(args);
|
|
404
451
|
if (typeof optionsOrCb === "function") {
|
|
@@ -581,6 +628,20 @@ var Lambda = (function (_super) {
|
|
|
581
628
|
return this.send(command, optionsOrCb);
|
|
582
629
|
}
|
|
583
630
|
};
|
|
631
|
+
Lambda.prototype.listFunctionUrlConfigs = function (args, optionsOrCb, cb) {
|
|
632
|
+
var command = new ListFunctionUrlConfigsCommand(args);
|
|
633
|
+
if (typeof optionsOrCb === "function") {
|
|
634
|
+
this.send(command, optionsOrCb);
|
|
635
|
+
}
|
|
636
|
+
else if (typeof cb === "function") {
|
|
637
|
+
if (typeof optionsOrCb !== "object")
|
|
638
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
639
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
640
|
+
}
|
|
641
|
+
else {
|
|
642
|
+
return this.send(command, optionsOrCb);
|
|
643
|
+
}
|
|
644
|
+
};
|
|
584
645
|
Lambda.prototype.listLayers = function (args, optionsOrCb, cb) {
|
|
585
646
|
var command = new ListLayersCommand(args);
|
|
586
647
|
if (typeof optionsOrCb === "function") {
|
|
@@ -875,6 +936,20 @@ var Lambda = (function (_super) {
|
|
|
875
936
|
return this.send(command, optionsOrCb);
|
|
876
937
|
}
|
|
877
938
|
};
|
|
939
|
+
Lambda.prototype.updateFunctionUrlConfig = function (args, optionsOrCb, cb) {
|
|
940
|
+
var command = new UpdateFunctionUrlConfigCommand(args);
|
|
941
|
+
if (typeof optionsOrCb === "function") {
|
|
942
|
+
this.send(command, optionsOrCb);
|
|
943
|
+
}
|
|
944
|
+
else if (typeof cb === "function") {
|
|
945
|
+
if (typeof optionsOrCb !== "object")
|
|
946
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
947
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
948
|
+
}
|
|
949
|
+
else {
|
|
950
|
+
return this.send(command, optionsOrCb);
|
|
951
|
+
}
|
|
952
|
+
};
|
|
878
953
|
return Lambda;
|
|
879
954
|
}(LambdaClient));
|
|
880
955
|
export { Lambda };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateFunctionUrlConfigRequest, CreateFunctionUrlConfigResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateFunctionUrlConfigCommand, serializeAws_restJson1CreateFunctionUrlConfigCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CreateFunctionUrlConfigCommand = (function (_super) {
|
|
7
|
+
__extends(CreateFunctionUrlConfigCommand, _super);
|
|
8
|
+
function CreateFunctionUrlConfigCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateFunctionUrlConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LambdaClient";
|
|
18
|
+
var commandName = "CreateFunctionUrlConfigCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateFunctionUrlConfigRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateFunctionUrlConfigResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateFunctionUrlConfigCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CreateFunctionUrlConfigCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateFunctionUrlConfigCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CreateFunctionUrlConfigCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateFunctionUrlConfigCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateFunctionUrlConfigCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeleteFunctionUrlConfigRequest } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeleteFunctionUrlConfigCommand, serializeAws_restJson1DeleteFunctionUrlConfigCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DeleteFunctionUrlConfigCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteFunctionUrlConfigCommand, _super);
|
|
8
|
+
function DeleteFunctionUrlConfigCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteFunctionUrlConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LambdaClient";
|
|
18
|
+
var commandName = "DeleteFunctionUrlConfigCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteFunctionUrlConfigRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteFunctionUrlConfigCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DeleteFunctionUrlConfigCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteFunctionUrlConfigCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DeleteFunctionUrlConfigCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteFunctionUrlConfigCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteFunctionUrlConfigCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetFunctionUrlConfigRequest, GetFunctionUrlConfigResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetFunctionUrlConfigCommand, serializeAws_restJson1GetFunctionUrlConfigCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetFunctionUrlConfigCommand = (function (_super) {
|
|
7
|
+
__extends(GetFunctionUrlConfigCommand, _super);
|
|
8
|
+
function GetFunctionUrlConfigCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetFunctionUrlConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LambdaClient";
|
|
18
|
+
var commandName = "GetFunctionUrlConfigCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetFunctionUrlConfigRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetFunctionUrlConfigResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetFunctionUrlConfigCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetFunctionUrlConfigCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetFunctionUrlConfigCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetFunctionUrlConfigCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetFunctionUrlConfigCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetFunctionUrlConfigCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListFunctionUrlConfigsRequest, ListFunctionUrlConfigsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListFunctionUrlConfigsCommand, serializeAws_restJson1ListFunctionUrlConfigsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListFunctionUrlConfigsCommand = (function (_super) {
|
|
7
|
+
__extends(ListFunctionUrlConfigsCommand, _super);
|
|
8
|
+
function ListFunctionUrlConfigsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListFunctionUrlConfigsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LambdaClient";
|
|
18
|
+
var commandName = "ListFunctionUrlConfigsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListFunctionUrlConfigsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListFunctionUrlConfigsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListFunctionUrlConfigsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListFunctionUrlConfigsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListFunctionUrlConfigsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListFunctionUrlConfigsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListFunctionUrlConfigsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListFunctionUrlConfigsCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateFunctionUrlConfigRequest, UpdateFunctionUrlConfigResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UpdateFunctionUrlConfigCommand, serializeAws_restJson1UpdateFunctionUrlConfigCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var UpdateFunctionUrlConfigCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateFunctionUrlConfigCommand, _super);
|
|
8
|
+
function UpdateFunctionUrlConfigCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateFunctionUrlConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LambdaClient";
|
|
18
|
+
var commandName = "UpdateFunctionUrlConfigCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateFunctionUrlConfigRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UpdateFunctionUrlConfigResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateFunctionUrlConfigCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1UpdateFunctionUrlConfigCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateFunctionUrlConfigCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1UpdateFunctionUrlConfigCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateFunctionUrlConfigCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateFunctionUrlConfigCommand };
|
|
@@ -4,6 +4,7 @@ export * from "./CreateAliasCommand";
|
|
|
4
4
|
export * from "./CreateCodeSigningConfigCommand";
|
|
5
5
|
export * from "./CreateEventSourceMappingCommand";
|
|
6
6
|
export * from "./CreateFunctionCommand";
|
|
7
|
+
export * from "./CreateFunctionUrlConfigCommand";
|
|
7
8
|
export * from "./DeleteAliasCommand";
|
|
8
9
|
export * from "./DeleteCodeSigningConfigCommand";
|
|
9
10
|
export * from "./DeleteEventSourceMappingCommand";
|
|
@@ -11,6 +12,7 @@ export * from "./DeleteFunctionCodeSigningConfigCommand";
|
|
|
11
12
|
export * from "./DeleteFunctionCommand";
|
|
12
13
|
export * from "./DeleteFunctionConcurrencyCommand";
|
|
13
14
|
export * from "./DeleteFunctionEventInvokeConfigCommand";
|
|
15
|
+
export * from "./DeleteFunctionUrlConfigCommand";
|
|
14
16
|
export * from "./DeleteLayerVersionCommand";
|
|
15
17
|
export * from "./DeleteProvisionedConcurrencyConfigCommand";
|
|
16
18
|
export * from "./GetAccountSettingsCommand";
|
|
@@ -22,6 +24,7 @@ export * from "./GetFunctionCommand";
|
|
|
22
24
|
export * from "./GetFunctionConcurrencyCommand";
|
|
23
25
|
export * from "./GetFunctionConfigurationCommand";
|
|
24
26
|
export * from "./GetFunctionEventInvokeConfigCommand";
|
|
27
|
+
export * from "./GetFunctionUrlConfigCommand";
|
|
25
28
|
export * from "./GetLayerVersionByArnCommand";
|
|
26
29
|
export * from "./GetLayerVersionCommand";
|
|
27
30
|
export * from "./GetLayerVersionPolicyCommand";
|
|
@@ -33,6 +36,7 @@ export * from "./ListAliasesCommand";
|
|
|
33
36
|
export * from "./ListCodeSigningConfigsCommand";
|
|
34
37
|
export * from "./ListEventSourceMappingsCommand";
|
|
35
38
|
export * from "./ListFunctionEventInvokeConfigsCommand";
|
|
39
|
+
export * from "./ListFunctionUrlConfigsCommand";
|
|
36
40
|
export * from "./ListFunctionsByCodeSigningConfigCommand";
|
|
37
41
|
export * from "./ListFunctionsCommand";
|
|
38
42
|
export * from "./ListLayerVersionsCommand";
|
|
@@ -56,3 +60,4 @@ export * from "./UpdateEventSourceMappingCommand";
|
|
|
56
60
|
export * from "./UpdateFunctionCodeCommand";
|
|
57
61
|
export * from "./UpdateFunctionConfigurationCommand";
|
|
58
62
|
export * from "./UpdateFunctionEventInvokeConfigCommand";
|
|
63
|
+
export * from "./UpdateFunctionUrlConfigCommand";
|
|
@@ -120,6 +120,11 @@ var TooManyRequestsException = (function (_super) {
|
|
|
120
120
|
return TooManyRequestsException;
|
|
121
121
|
}(__BaseException));
|
|
122
122
|
export { TooManyRequestsException };
|
|
123
|
+
export var FunctionUrlAuthType;
|
|
124
|
+
(function (FunctionUrlAuthType) {
|
|
125
|
+
FunctionUrlAuthType["AWS_IAM"] = "AWS_IAM";
|
|
126
|
+
FunctionUrlAuthType["NONE"] = "NONE";
|
|
127
|
+
})(FunctionUrlAuthType || (FunctionUrlAuthType = {}));
|
|
123
128
|
export var AddPermissionRequest;
|
|
124
129
|
(function (AddPermissionRequest) {
|
|
125
130
|
AddPermissionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -284,6 +289,10 @@ export var Environment;
|
|
|
284
289
|
(function (Environment) {
|
|
285
290
|
Environment.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Variables && { Variables: SENSITIVE_STRING }))); };
|
|
286
291
|
})(Environment || (Environment = {}));
|
|
292
|
+
export var EphemeralStorage;
|
|
293
|
+
(function (EphemeralStorage) {
|
|
294
|
+
EphemeralStorage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
295
|
+
})(EphemeralStorage || (EphemeralStorage = {}));
|
|
287
296
|
export var FileSystemConfig;
|
|
288
297
|
(function (FileSystemConfig) {
|
|
289
298
|
FileSystemConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -433,6 +442,18 @@ var InvalidCodeSignatureException = (function (_super) {
|
|
|
433
442
|
return InvalidCodeSignatureException;
|
|
434
443
|
}(__BaseException));
|
|
435
444
|
export { InvalidCodeSignatureException };
|
|
445
|
+
export var Cors;
|
|
446
|
+
(function (Cors) {
|
|
447
|
+
Cors.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
448
|
+
})(Cors || (Cors = {}));
|
|
449
|
+
export var CreateFunctionUrlConfigRequest;
|
|
450
|
+
(function (CreateFunctionUrlConfigRequest) {
|
|
451
|
+
CreateFunctionUrlConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
452
|
+
})(CreateFunctionUrlConfigRequest || (CreateFunctionUrlConfigRequest = {}));
|
|
453
|
+
export var CreateFunctionUrlConfigResponse;
|
|
454
|
+
(function (CreateFunctionUrlConfigResponse) {
|
|
455
|
+
CreateFunctionUrlConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
456
|
+
})(CreateFunctionUrlConfigResponse || (CreateFunctionUrlConfigResponse = {}));
|
|
436
457
|
export var DeleteAliasRequest;
|
|
437
458
|
(function (DeleteAliasRequest) {
|
|
438
459
|
DeleteAliasRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -479,6 +500,10 @@ export var DeleteFunctionEventInvokeConfigRequest;
|
|
|
479
500
|
(function (DeleteFunctionEventInvokeConfigRequest) {
|
|
480
501
|
DeleteFunctionEventInvokeConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
481
502
|
})(DeleteFunctionEventInvokeConfigRequest || (DeleteFunctionEventInvokeConfigRequest = {}));
|
|
503
|
+
export var DeleteFunctionUrlConfigRequest;
|
|
504
|
+
(function (DeleteFunctionUrlConfigRequest) {
|
|
505
|
+
DeleteFunctionUrlConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
506
|
+
})(DeleteFunctionUrlConfigRequest || (DeleteFunctionUrlConfigRequest = {}));
|
|
482
507
|
export var DeleteLayerVersionRequest;
|
|
483
508
|
(function (DeleteLayerVersionRequest) {
|
|
484
509
|
DeleteLayerVersionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -555,6 +580,14 @@ export var GetFunctionEventInvokeConfigRequest;
|
|
|
555
580
|
(function (GetFunctionEventInvokeConfigRequest) {
|
|
556
581
|
GetFunctionEventInvokeConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
557
582
|
})(GetFunctionEventInvokeConfigRequest || (GetFunctionEventInvokeConfigRequest = {}));
|
|
583
|
+
export var GetFunctionUrlConfigRequest;
|
|
584
|
+
(function (GetFunctionUrlConfigRequest) {
|
|
585
|
+
GetFunctionUrlConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
586
|
+
})(GetFunctionUrlConfigRequest || (GetFunctionUrlConfigRequest = {}));
|
|
587
|
+
export var GetFunctionUrlConfigResponse;
|
|
588
|
+
(function (GetFunctionUrlConfigResponse) {
|
|
589
|
+
GetFunctionUrlConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
590
|
+
})(GetFunctionUrlConfigResponse || (GetFunctionUrlConfigResponse = {}));
|
|
558
591
|
export var GetLayerVersionRequest;
|
|
559
592
|
(function (GetLayerVersionRequest) {
|
|
560
593
|
GetLayerVersionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -984,6 +1017,18 @@ export var ListFunctionsByCodeSigningConfigResponse;
|
|
|
984
1017
|
(function (ListFunctionsByCodeSigningConfigResponse) {
|
|
985
1018
|
ListFunctionsByCodeSigningConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
986
1019
|
})(ListFunctionsByCodeSigningConfigResponse || (ListFunctionsByCodeSigningConfigResponse = {}));
|
|
1020
|
+
export var ListFunctionUrlConfigsRequest;
|
|
1021
|
+
(function (ListFunctionUrlConfigsRequest) {
|
|
1022
|
+
ListFunctionUrlConfigsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1023
|
+
})(ListFunctionUrlConfigsRequest || (ListFunctionUrlConfigsRequest = {}));
|
|
1024
|
+
export var FunctionUrlConfig;
|
|
1025
|
+
(function (FunctionUrlConfig) {
|
|
1026
|
+
FunctionUrlConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1027
|
+
})(FunctionUrlConfig || (FunctionUrlConfig = {}));
|
|
1028
|
+
export var ListFunctionUrlConfigsResponse;
|
|
1029
|
+
(function (ListFunctionUrlConfigsResponse) {
|
|
1030
|
+
ListFunctionUrlConfigsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1031
|
+
})(ListFunctionUrlConfigsResponse || (ListFunctionUrlConfigsResponse = {}));
|
|
987
1032
|
export var ListLayersRequest;
|
|
988
1033
|
(function (ListLayersRequest) {
|
|
989
1034
|
ListLayersRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1120,3 +1165,11 @@ export var UpdateFunctionEventInvokeConfigRequest;
|
|
|
1120
1165
|
(function (UpdateFunctionEventInvokeConfigRequest) {
|
|
1121
1166
|
UpdateFunctionEventInvokeConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1122
1167
|
})(UpdateFunctionEventInvokeConfigRequest || (UpdateFunctionEventInvokeConfigRequest = {}));
|
|
1168
|
+
export var UpdateFunctionUrlConfigRequest;
|
|
1169
|
+
(function (UpdateFunctionUrlConfigRequest) {
|
|
1170
|
+
UpdateFunctionUrlConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1171
|
+
})(UpdateFunctionUrlConfigRequest || (UpdateFunctionUrlConfigRequest = {}));
|
|
1172
|
+
export var UpdateFunctionUrlConfigResponse;
|
|
1173
|
+
(function (UpdateFunctionUrlConfigResponse) {
|
|
1174
|
+
UpdateFunctionUrlConfigResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1175
|
+
})(UpdateFunctionUrlConfigResponse || (UpdateFunctionUrlConfigResponse = {}));
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListFunctionUrlConfigsCommand, } from "../commands/ListFunctionUrlConfigsCommand";
|
|
3
|
+
import { Lambda } from "../Lambda";
|
|
4
|
+
import { LambdaClient } from "../LambdaClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListFunctionUrlConfigsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listFunctionUrlConfigs.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListFunctionUrlConfigs(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListFunctionUrlConfigs_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.Marker = token;
|
|
49
|
+
input["MaxItems"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Lambda)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof LambdaClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Lambda | LambdaClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.NextMarker;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from "./ListAliasesPaginator";
|
|
|
3
3
|
export * from "./ListCodeSigningConfigsPaginator";
|
|
4
4
|
export * from "./ListEventSourceMappingsPaginator";
|
|
5
5
|
export * from "./ListFunctionEventInvokeConfigsPaginator";
|
|
6
|
+
export * from "./ListFunctionUrlConfigsPaginator";
|
|
6
7
|
export * from "./ListFunctionsByCodeSigningConfigPaginator";
|
|
7
8
|
export * from "./ListFunctionsPaginator";
|
|
8
9
|
export * from "./ListLayerVersionsPaginator";
|