@@ -26,6 +26,11 @@ import {
26
26
CreateFunctionCommandInput ,
27
27
CreateFunctionCommandOutput ,
28
28
} from "./commands/CreateFunctionCommand" ;
29
+ import {
30
+ CreateFunctionUrlConfigCommand ,
31
+ CreateFunctionUrlConfigCommandInput ,
32
+ CreateFunctionUrlConfigCommandOutput ,
33
+ } from "./commands/CreateFunctionUrlConfigCommand" ;
29
34
import { DeleteAliasCommand , DeleteAliasCommandInput , DeleteAliasCommandOutput } from "./commands/DeleteAliasCommand" ;
30
35
import {
31
36
DeleteCodeSigningConfigCommand ,
@@ -57,6 +62,11 @@ import {
57
62
DeleteFunctionEventInvokeConfigCommandInput ,
58
63
DeleteFunctionEventInvokeConfigCommandOutput ,
59
64
} from "./commands/DeleteFunctionEventInvokeConfigCommand" ;
65
+ import {
66
+ DeleteFunctionUrlConfigCommand ,
67
+ DeleteFunctionUrlConfigCommandInput ,
68
+ DeleteFunctionUrlConfigCommandOutput ,
69
+ } from "./commands/DeleteFunctionUrlConfigCommand" ;
60
70
import {
61
71
DeleteLayerVersionCommand ,
62
72
DeleteLayerVersionCommandInput ,
@@ -104,6 +114,11 @@ import {
104
114
GetFunctionEventInvokeConfigCommandInput ,
105
115
GetFunctionEventInvokeConfigCommandOutput ,
106
116
} from "./commands/GetFunctionEventInvokeConfigCommand" ;
117
+ import {
118
+ GetFunctionUrlConfigCommand ,
119
+ GetFunctionUrlConfigCommandInput ,
120
+ GetFunctionUrlConfigCommandOutput ,
121
+ } from "./commands/GetFunctionUrlConfigCommand" ;
107
122
import {
108
123
GetLayerVersionByArnCommand ,
109
124
GetLayerVersionByArnCommandInput ,
@@ -153,6 +168,11 @@ import {
153
168
ListFunctionsCommandInput ,
154
169
ListFunctionsCommandOutput ,
155
170
} from "./commands/ListFunctionsCommand" ;
171
+ import {
172
+ ListFunctionUrlConfigsCommand ,
173
+ ListFunctionUrlConfigsCommandInput ,
174
+ ListFunctionUrlConfigsCommandOutput ,
175
+ } from "./commands/ListFunctionUrlConfigsCommand" ;
156
176
import { ListLayersCommand , ListLayersCommandInput , ListLayersCommandOutput } from "./commands/ListLayersCommand" ;
157
177
import {
158
178
ListLayerVersionsCommand ,
@@ -242,6 +262,11 @@ import {
242
262
UpdateFunctionEventInvokeConfigCommandInput ,
243
263
UpdateFunctionEventInvokeConfigCommandOutput ,
244
264
} from "./commands/UpdateFunctionEventInvokeConfigCommand" ;
265
+ import {
266
+ UpdateFunctionUrlConfigCommand ,
267
+ UpdateFunctionUrlConfigCommandInput ,
268
+ UpdateFunctionUrlConfigCommandOutput ,
269
+ } from "./commands/UpdateFunctionUrlConfigCommand" ;
245
270
import { LambdaClient } from "./LambdaClient" ;
246
271
247
272
/**
@@ -674,6 +699,39 @@ export class Lambda extends LambdaClient {
674
699
}
675
700
}
676
701
702
+ /**
703
+ * <p>Creates a Lambda function URL with the specified configuration parameters. A function URL is
704
+ * a dedicated HTTP(S) endpoint that you can use to invoke your function.</p>
705
+ */
706
+ public createFunctionUrlConfig (
707
+ args : CreateFunctionUrlConfigCommandInput ,
708
+ options ?: __HttpHandlerOptions
709
+ ) : Promise < CreateFunctionUrlConfigCommandOutput > ;
710
+ public createFunctionUrlConfig (
711
+ args : CreateFunctionUrlConfigCommandInput ,
712
+ cb : ( err : any , data ?: CreateFunctionUrlConfigCommandOutput ) => void
713
+ ) : void ;
714
+ public createFunctionUrlConfig (
715
+ args : CreateFunctionUrlConfigCommandInput ,
716
+ options : __HttpHandlerOptions ,
717
+ cb : ( err : any , data ?: CreateFunctionUrlConfigCommandOutput ) => void
718
+ ) : void ;
719
+ public createFunctionUrlConfig (
720
+ args : CreateFunctionUrlConfigCommandInput ,
721
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: CreateFunctionUrlConfigCommandOutput ) => void ) ,
722
+ cb ?: ( err : any , data ?: CreateFunctionUrlConfigCommandOutput ) => void
723
+ ) : Promise < CreateFunctionUrlConfigCommandOutput > | void {
724
+ const command = new CreateFunctionUrlConfigCommand ( args ) ;
725
+ if ( typeof optionsOrCb === "function" ) {
726
+ this . send ( command , optionsOrCb ) ;
727
+ } else if ( typeof cb === "function" ) {
728
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
729
+ this . send ( command , optionsOrCb || { } , cb ) ;
730
+ } else {
731
+ return this . send ( command , optionsOrCb ) ;
732
+ }
733
+ }
734
+
677
735
/**
678
736
* <p>Deletes a Lambda function <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">alias</a>.</p>
679
737
*/
@@ -902,6 +960,39 @@ export class Lambda extends LambdaClient {
902
960
}
903
961
}
904
962
963
+ /**
964
+ * <p>Deletes a Lambda function URL. When you delete a function URL, you
965
+ * can't recover it. Creating a new function URL results in a different URL address.</p>
966
+ */
967
+ public deleteFunctionUrlConfig (
968
+ args : DeleteFunctionUrlConfigCommandInput ,
969
+ options ?: __HttpHandlerOptions
970
+ ) : Promise < DeleteFunctionUrlConfigCommandOutput > ;
971
+ public deleteFunctionUrlConfig (
972
+ args : DeleteFunctionUrlConfigCommandInput ,
973
+ cb : ( err : any , data ?: DeleteFunctionUrlConfigCommandOutput ) => void
974
+ ) : void ;
975
+ public deleteFunctionUrlConfig (
976
+ args : DeleteFunctionUrlConfigCommandInput ,
977
+ options : __HttpHandlerOptions ,
978
+ cb : ( err : any , data ?: DeleteFunctionUrlConfigCommandOutput ) => void
979
+ ) : void ;
980
+ public deleteFunctionUrlConfig (
981
+ args : DeleteFunctionUrlConfigCommandInput ,
982
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DeleteFunctionUrlConfigCommandOutput ) => void ) ,
983
+ cb ?: ( err : any , data ?: DeleteFunctionUrlConfigCommandOutput ) => void
984
+ ) : Promise < DeleteFunctionUrlConfigCommandOutput > | void {
985
+ const command = new DeleteFunctionUrlConfigCommand ( args ) ;
986
+ if ( typeof optionsOrCb === "function" ) {
987
+ this . send ( command , optionsOrCb ) ;
988
+ } else if ( typeof cb === "function" ) {
989
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
990
+ this . send ( command , optionsOrCb || { } , cb ) ;
991
+ } else {
992
+ return this . send ( command , optionsOrCb ) ;
993
+ }
994
+ }
995
+
905
996
/**
906
997
* <p>Deletes a version of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda
907
998
* layer</a>. Deleted versions can no longer be viewed or added to functions. To avoid
@@ -1251,6 +1342,38 @@ export class Lambda extends LambdaClient {
1251
1342
}
1252
1343
}
1253
1344
1345
+ /**
1346
+ * <p>Returns details about a Lambda function URL.</p>
1347
+ */
1348
+ public getFunctionUrlConfig (
1349
+ args : GetFunctionUrlConfigCommandInput ,
1350
+ options ?: __HttpHandlerOptions
1351
+ ) : Promise < GetFunctionUrlConfigCommandOutput > ;
1352
+ public getFunctionUrlConfig (
1353
+ args : GetFunctionUrlConfigCommandInput ,
1354
+ cb : ( err : any , data ?: GetFunctionUrlConfigCommandOutput ) => void
1355
+ ) : void ;
1356
+ public getFunctionUrlConfig (
1357
+ args : GetFunctionUrlConfigCommandInput ,
1358
+ options : __HttpHandlerOptions ,
1359
+ cb : ( err : any , data ?: GetFunctionUrlConfigCommandOutput ) => void
1360
+ ) : void ;
1361
+ public getFunctionUrlConfig (
1362
+ args : GetFunctionUrlConfigCommandInput ,
1363
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: GetFunctionUrlConfigCommandOutput ) => void ) ,
1364
+ cb ?: ( err : any , data ?: GetFunctionUrlConfigCommandOutput ) => void
1365
+ ) : Promise < GetFunctionUrlConfigCommandOutput > | void {
1366
+ const command = new GetFunctionUrlConfigCommand ( args ) ;
1367
+ if ( typeof optionsOrCb === "function" ) {
1368
+ this . send ( command , optionsOrCb ) ;
1369
+ } else if ( typeof cb === "function" ) {
1370
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1371
+ this . send ( command , optionsOrCb || { } , cb ) ;
1372
+ } else {
1373
+ return this . send ( command , optionsOrCb ) ;
1374
+ }
1375
+ }
1376
+
1254
1377
/**
1255
1378
* <p>Returns information about a version of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda
1256
1379
* layer</a>, with a link to download the layer archive
@@ -1693,6 +1816,38 @@ export class Lambda extends LambdaClient {
1693
1816
}
1694
1817
}
1695
1818
1819
+ /**
1820
+ * <p>Returns a list of Lambda function URLs for the specified function.</p>
1821
+ */
1822
+ public listFunctionUrlConfigs (
1823
+ args : ListFunctionUrlConfigsCommandInput ,
1824
+ options ?: __HttpHandlerOptions
1825
+ ) : Promise < ListFunctionUrlConfigsCommandOutput > ;
1826
+ public listFunctionUrlConfigs (
1827
+ args : ListFunctionUrlConfigsCommandInput ,
1828
+ cb : ( err : any , data ?: ListFunctionUrlConfigsCommandOutput ) => void
1829
+ ) : void ;
1830
+ public listFunctionUrlConfigs (
1831
+ args : ListFunctionUrlConfigsCommandInput ,
1832
+ options : __HttpHandlerOptions ,
1833
+ cb : ( err : any , data ?: ListFunctionUrlConfigsCommandOutput ) => void
1834
+ ) : void ;
1835
+ public listFunctionUrlConfigs (
1836
+ args : ListFunctionUrlConfigsCommandInput ,
1837
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ListFunctionUrlConfigsCommandOutput ) => void ) ,
1838
+ cb ?: ( err : any , data ?: ListFunctionUrlConfigsCommandOutput ) => void
1839
+ ) : Promise < ListFunctionUrlConfigsCommandOutput > | void {
1840
+ const command = new ListFunctionUrlConfigsCommand ( args ) ;
1841
+ if ( typeof optionsOrCb === "function" ) {
1842
+ this . send ( command , optionsOrCb ) ;
1843
+ } else if ( typeof cb === "function" ) {
1844
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1845
+ this . send ( command , optionsOrCb || { } , cb ) ;
1846
+ } else {
1847
+ return this . send ( command , optionsOrCb ) ;
1848
+ }
1849
+ }
1850
+
1696
1851
/**
1697
1852
* <p>Lists <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-layers.html">Lambda
1698
1853
* layers</a> and shows information about the latest version of each. Specify a
@@ -2523,4 +2678,36 @@ export class Lambda extends LambdaClient {
2523
2678
return this . send ( command , optionsOrCb ) ;
2524
2679
}
2525
2680
}
2681
+
2682
+ /**
2683
+ * <p>Updates the configuration for a Lambda function URL.</p>
2684
+ */
2685
+ public updateFunctionUrlConfig (
2686
+ args : UpdateFunctionUrlConfigCommandInput ,
2687
+ options ?: __HttpHandlerOptions
2688
+ ) : Promise < UpdateFunctionUrlConfigCommandOutput > ;
2689
+ public updateFunctionUrlConfig (
2690
+ args : UpdateFunctionUrlConfigCommandInput ,
2691
+ cb : ( err : any , data ?: UpdateFunctionUrlConfigCommandOutput ) => void
2692
+ ) : void ;
2693
+ public updateFunctionUrlConfig (
2694
+ args : UpdateFunctionUrlConfigCommandInput ,
2695
+ options : __HttpHandlerOptions ,
2696
+ cb : ( err : any , data ?: UpdateFunctionUrlConfigCommandOutput ) => void
2697
+ ) : void ;
2698
+ public updateFunctionUrlConfig (
2699
+ args : UpdateFunctionUrlConfigCommandInput ,
2700
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: UpdateFunctionUrlConfigCommandOutput ) => void ) ,
2701
+ cb ?: ( err : any , data ?: UpdateFunctionUrlConfigCommandOutput ) => void
2702
+ ) : Promise < UpdateFunctionUrlConfigCommandOutput > | void {
2703
+ const command = new UpdateFunctionUrlConfigCommand ( args ) ;
2704
+ if ( typeof optionsOrCb === "function" ) {
2705
+ this . send ( command , optionsOrCb ) ;
2706
+ } else if ( typeof cb === "function" ) {
2707
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
2708
+ this . send ( command , optionsOrCb || { } , cb ) ;
2709
+ } else {
2710
+ return this . send ( command , optionsOrCb ) ;
2711
+ }
2712
+ }
2526
2713
}
0 commit comments