@aws-sdk/client-lambda-core 3.1074.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.
Files changed (98) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +216 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +40 -0
  4. package/dist-cjs/endpoint/bdd.js +46 -0
  5. package/dist-cjs/endpoint/endpointResolver.js +14 -0
  6. package/dist-cjs/index.js +255 -0
  7. package/dist-cjs/models/LambdaCoreServiceException.js +8 -0
  8. package/dist-cjs/models/errors.js +93 -0
  9. package/dist-cjs/runtimeConfig.browser.js +32 -0
  10. package/dist-cjs/runtimeConfig.js +45 -0
  11. package/dist-cjs/runtimeConfig.native.js +12 -0
  12. package/dist-cjs/runtimeConfig.shared.js +38 -0
  13. package/dist-cjs/schemas/schemas_0.js +219 -0
  14. package/dist-es/LambdaCore.js +21 -0
  15. package/dist-es/LambdaCoreClient.js +47 -0
  16. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  17. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  18. package/dist-es/commands/CreateNetworkConnectorCommand.js +16 -0
  19. package/dist-es/commands/DeleteNetworkConnectorCommand.js +16 -0
  20. package/dist-es/commands/GetNetworkConnectorCommand.js +16 -0
  21. package/dist-es/commands/ListNetworkConnectorsCommand.js +16 -0
  22. package/dist-es/commands/UpdateNetworkConnectorCommand.js +16 -0
  23. package/dist-es/commands/index.js +5 -0
  24. package/dist-es/endpoint/EndpointParameters.js +13 -0
  25. package/dist-es/endpoint/bdd.js +46 -0
  26. package/dist-es/endpoint/endpointResolver.js +14 -0
  27. package/dist-es/extensionConfiguration.js +1 -0
  28. package/dist-es/index.js +9 -0
  29. package/dist-es/models/LambdaCoreServiceException.js +8 -0
  30. package/dist-es/models/enums.js +49 -0
  31. package/dist-es/models/errors.js +93 -0
  32. package/dist-es/models/models_0.js +1 -0
  33. package/dist-es/pagination/Interfaces.js +1 -0
  34. package/dist-es/pagination/ListNetworkConnectorsPaginator.js +4 -0
  35. package/dist-es/pagination/index.js +2 -0
  36. package/dist-es/runtimeConfig.browser.js +31 -0
  37. package/dist-es/runtimeConfig.js +44 -0
  38. package/dist-es/runtimeConfig.native.js +11 -0
  39. package/dist-es/runtimeConfig.shared.js +38 -0
  40. package/dist-es/runtimeExtensions.js +9 -0
  41. package/dist-es/schemas/schemas_0.js +199 -0
  42. package/dist-types/LambdaCore.d.ts +53 -0
  43. package/dist-types/LambdaCoreClient.d.ts +191 -0
  44. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  45. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  46. package/dist-types/commands/CreateNetworkConnectorCommand.d.ts +128 -0
  47. package/dist-types/commands/DeleteNetworkConnectorCommand.d.ts +109 -0
  48. package/dist-types/commands/GetNetworkConnectorCommand.d.ts +113 -0
  49. package/dist-types/commands/ListNetworkConnectorsCommand.d.ts +97 -0
  50. package/dist-types/commands/UpdateNetworkConnectorCommand.d.ts +128 -0
  51. package/dist-types/commands/index.d.ts +5 -0
  52. package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
  53. package/dist-types/endpoint/bdd.d.ts +2 -0
  54. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  55. package/dist-types/extensionConfiguration.d.ts +9 -0
  56. package/dist-types/index.d.ts +17 -0
  57. package/dist-types/models/LambdaCoreServiceException.d.ts +14 -0
  58. package/dist-types/models/enums.d.ts +143 -0
  59. package/dist-types/models/errors.d.ts +117 -0
  60. package/dist-types/models/models_0.d.ts +396 -0
  61. package/dist-types/pagination/Interfaces.d.ts +8 -0
  62. package/dist-types/pagination/ListNetworkConnectorsPaginator.d.ts +7 -0
  63. package/dist-types/pagination/index.d.ts +2 -0
  64. package/dist-types/runtimeConfig.browser.d.ts +55 -0
  65. package/dist-types/runtimeConfig.d.ts +55 -0
  66. package/dist-types/runtimeConfig.native.d.ts +54 -0
  67. package/dist-types/runtimeConfig.shared.d.ts +27 -0
  68. package/dist-types/runtimeExtensions.d.ts +17 -0
  69. package/dist-types/schemas/schemas_0.d.ts +33 -0
  70. package/dist-types/ts3.4/LambdaCore.d.ts +104 -0
  71. package/dist-types/ts3.4/LambdaCoreClient.d.ts +140 -0
  72. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  73. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  74. package/dist-types/ts3.4/commands/CreateNetworkConnectorCommand.d.ts +53 -0
  75. package/dist-types/ts3.4/commands/DeleteNetworkConnectorCommand.d.ts +53 -0
  76. package/dist-types/ts3.4/commands/GetNetworkConnectorCommand.d.ts +53 -0
  77. package/dist-types/ts3.4/commands/ListNetworkConnectorsCommand.d.ts +53 -0
  78. package/dist-types/ts3.4/commands/UpdateNetworkConnectorCommand.d.ts +53 -0
  79. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  80. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  81. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  82. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  83. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  84. package/dist-types/ts3.4/index.d.ts +12 -0
  85. package/dist-types/ts3.4/models/LambdaCoreServiceException.d.ts +9 -0
  86. package/dist-types/ts3.4/models/enums.d.ts +65 -0
  87. package/dist-types/ts3.4/models/errors.d.ts +56 -0
  88. package/dist-types/ts3.4/models/models_0.d.ts +114 -0
  89. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  90. package/dist-types/ts3.4/pagination/ListNetworkConnectorsPaginator.d.ts +11 -0
  91. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  92. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
  93. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  94. package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
  95. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
  96. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  97. package/dist-types/ts3.4/schemas/schemas_0.d.ts +33 -0
  98. package/package.json +71 -0
@@ -0,0 +1,219 @@
1
+ const _A = "Arn";
2
+ const _ACRT = "AssociatedComputeResourceTypes";
3
+ const _C = "Configuration";
4
+ const _CNC = "CreateNetworkConnector";
5
+ const _CNCR = "CreateNetworkConnectorRequest";
6
+ const _CNCRr = "CreateNetworkConnectorResponse";
7
+ const _CT = "ClientToken";
8
+ const _DNC = "DeleteNetworkConnector";
9
+ const _DNCR = "DeleteNetworkConnectorRequest";
10
+ const _DNCRe = "DeleteNetworkConnectorResponse";
11
+ const _GNC = "GetNetworkConnector";
12
+ const _GNCR = "GetNetworkConnectorRequest";
13
+ const _GNCRe = "GetNetworkConnectorResponse";
14
+ const _I = "Id";
15
+ const _IPVE = "InvalidParameterValueException";
16
+ const _Id = "Identifier";
17
+ const _LM = "LastModified";
18
+ const _LNC = "ListNetworkConnectors";
19
+ const _LNCR = "ListNetworkConnectorsRequest";
20
+ const _LNCRi = "ListNetworkConnectorsResponse";
21
+ const _LUS = "LastUpdateStatus";
22
+ const _LUSR = "LastUpdateStatusReason";
23
+ const _LUSRC = "LastUpdateStatusReasonCode";
24
+ const _M = "Message";
25
+ const _MI = "MaxItems";
26
+ const _Ma = "Marker";
27
+ const _N = "Name";
28
+ const _NC = "NetworkConnectors";
29
+ const _NCC = "NetworkConnectorConfiguration";
30
+ const _NCL = "NetworkConnectorsList";
31
+ const _NCLEE = "NetworkConnectorLimitExceededException";
32
+ const _NCS = "NetworkConnectorSummary";
33
+ const _NCVEC = "NetworkConnectorVpcEgressConfiguration";
34
+ const _NM = "NextMarker";
35
+ const _NP = "NetworkProtocol";
36
+ const _OR = "OperatorRole";
37
+ const _R = "Reason";
38
+ const _RA = "Retry-After";
39
+ const _RCE = "ResourceConflictException";
40
+ const _RNFE = "ResourceNotFoundException";
41
+ const _S = "State";
42
+ const _SE = "ServiceException";
43
+ const _SGI = "SecurityGroupIds";
44
+ const _SI = "SubnetIds";
45
+ const _SR = "StateReason";
46
+ const _SRC = "StateReasonCode";
47
+ const _T = "Type";
48
+ const _TMRE = "TooManyRequestsException";
49
+ const _Ta = "Tags";
50
+ const _UNC = "UpdateNetworkConnector";
51
+ const _UNCR = "UpdateNetworkConnectorRequest";
52
+ const _UNCRp = "UpdateNetworkConnectorResponse";
53
+ const _V = "Version";
54
+ const _VEC = "VpcEgressConfiguration";
55
+ const _c = "client";
56
+ const _e = "error";
57
+ const _h = "http";
58
+ const _hE = "httpError";
59
+ const _hH = "httpHeader";
60
+ const _hQ = "httpQuery";
61
+ const _m = "message";
62
+ const _rAS = "retryAfterSeconds";
63
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.lambdacore";
64
+ const _se = "server";
65
+ const n0 = "com.amazonaws.lambdacore";
66
+ const { TypeRegistry } = require("@smithy/core/schema");
67
+ const { InvalidParameterValueException, NetworkConnectorLimitExceededException, ResourceConflictException, ResourceNotFoundException, ServiceException, TooManyRequestsException } = require("../models/errors");
68
+ const { LambdaCoreServiceException } = require("../models/LambdaCoreServiceException");
69
+ const _s_registry = TypeRegistry.for(_s);
70
+ const LambdaCoreServiceException$ = [-3, _s, "LambdaCoreServiceException", 0, [], []];
71
+ exports.LambdaCoreServiceException$ = LambdaCoreServiceException$;
72
+ _s_registry.registerError(LambdaCoreServiceException$, LambdaCoreServiceException);
73
+ const n0_registry = TypeRegistry.for(n0);
74
+ const InvalidParameterValueException$ = [-3, n0, _IPVE,
75
+ { [_e]: _c, [_hE]: 400 },
76
+ [_T, _m],
77
+ [0, 0]
78
+ ];
79
+ exports.InvalidParameterValueException$ = InvalidParameterValueException$;
80
+ n0_registry.registerError(InvalidParameterValueException$, InvalidParameterValueException);
81
+ const NetworkConnectorLimitExceededException$ = [-3, n0, _NCLEE,
82
+ { [_e]: _c, [_hE]: 400 },
83
+ [_T, _m],
84
+ [0, 0]
85
+ ];
86
+ exports.NetworkConnectorLimitExceededException$ = NetworkConnectorLimitExceededException$;
87
+ n0_registry.registerError(NetworkConnectorLimitExceededException$, NetworkConnectorLimitExceededException);
88
+ const ResourceConflictException$ = [-3, n0, _RCE,
89
+ { [_e]: _c, [_hE]: 409 },
90
+ [_T, _m],
91
+ [0, 0]
92
+ ];
93
+ exports.ResourceConflictException$ = ResourceConflictException$;
94
+ n0_registry.registerError(ResourceConflictException$, ResourceConflictException);
95
+ const ResourceNotFoundException$ = [-3, n0, _RNFE,
96
+ { [_e]: _c, [_hE]: 404 },
97
+ [_T, _M],
98
+ [0, 0]
99
+ ];
100
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
101
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
102
+ const ServiceException$ = [-3, n0, _SE,
103
+ { [_e]: _se, [_hE]: 500 },
104
+ [_T, _M],
105
+ [0, 0]
106
+ ];
107
+ exports.ServiceException$ = ServiceException$;
108
+ n0_registry.registerError(ServiceException$, ServiceException);
109
+ const TooManyRequestsException$ = [-3, n0, _TMRE,
110
+ { [_e]: _c, [_hE]: 429 },
111
+ [_rAS, _T, _m, _R],
112
+ [[0, { [_hH]: _RA }], 0, 0, 0]
113
+ ];
114
+ exports.TooManyRequestsException$ = TooManyRequestsException$;
115
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
116
+ exports.errorTypeRegistries = [
117
+ _s_registry,
118
+ n0_registry,
119
+ ];
120
+ const CreateNetworkConnectorRequest$ = [3, n0, _CNCR,
121
+ 0,
122
+ [_N, _C, _OR, _CT, _Ta],
123
+ [0, () => NetworkConnectorConfiguration$, 0, [0, 4], 128 | 0], 2
124
+ ];
125
+ exports.CreateNetworkConnectorRequest$ = CreateNetworkConnectorRequest$;
126
+ const CreateNetworkConnectorResponse$ = [3, n0, _CNCRr,
127
+ 0,
128
+ [_A, _N, _I, _C, _OR, _S],
129
+ [0, 0, 0, () => NetworkConnectorConfiguration$, 0, 0], 3
130
+ ];
131
+ exports.CreateNetworkConnectorResponse$ = CreateNetworkConnectorResponse$;
132
+ const DeleteNetworkConnectorRequest$ = [3, n0, _DNCR,
133
+ 0,
134
+ [_Id],
135
+ [[0, 1]], 1
136
+ ];
137
+ exports.DeleteNetworkConnectorRequest$ = DeleteNetworkConnectorRequest$;
138
+ const DeleteNetworkConnectorResponse$ = [3, n0, _DNCRe,
139
+ 0,
140
+ [_A, _N, _I, _C, _OR, _S],
141
+ [0, 0, 0, () => NetworkConnectorConfiguration$, 0, 0], 3
142
+ ];
143
+ exports.DeleteNetworkConnectorResponse$ = DeleteNetworkConnectorResponse$;
144
+ const GetNetworkConnectorRequest$ = [3, n0, _GNCR,
145
+ 0,
146
+ [_Id],
147
+ [[0, 1]], 1
148
+ ];
149
+ exports.GetNetworkConnectorRequest$ = GetNetworkConnectorRequest$;
150
+ const GetNetworkConnectorResponse$ = [3, n0, _GNCRe,
151
+ 0,
152
+ [_A, _N, _I, _V, _C, _OR, _S, _SR, _SRC, _LUS, _LUSR, _LUSRC, _LM],
153
+ [0, 0, 0, 1, () => NetworkConnectorConfiguration$, 0, 0, 0, 0, 0, 0, 0, 5], 3
154
+ ];
155
+ exports.GetNetworkConnectorResponse$ = GetNetworkConnectorResponse$;
156
+ const ListNetworkConnectorsRequest$ = [3, n0, _LNCR,
157
+ 0,
158
+ [_S, _Ma, _MI],
159
+ [[0, { [_hQ]: _S }], [0, { [_hQ]: _Ma }], [1, { [_hQ]: _MI }]]
160
+ ];
161
+ exports.ListNetworkConnectorsRequest$ = ListNetworkConnectorsRequest$;
162
+ const ListNetworkConnectorsResponse$ = [3, n0, _LNCRi,
163
+ 0,
164
+ [_NC, _NM],
165
+ [() => NetworkConnectorsList, 0], 1
166
+ ];
167
+ exports.ListNetworkConnectorsResponse$ = ListNetworkConnectorsResponse$;
168
+ const NetworkConnectorSummary$ = [3, n0, _NCS,
169
+ 0,
170
+ [_A, _N, _I, _T, _S, _LM],
171
+ [0, 0, 0, 0, 0, 5], 4
172
+ ];
173
+ exports.NetworkConnectorSummary$ = NetworkConnectorSummary$;
174
+ const NetworkConnectorVpcEgressConfiguration$ = [3, n0, _NCVEC,
175
+ 0,
176
+ [_SI, _SGI, _NP, _ACRT],
177
+ [64 | 0, 64 | 0, 0, 64 | 0]
178
+ ];
179
+ exports.NetworkConnectorVpcEgressConfiguration$ = NetworkConnectorVpcEgressConfiguration$;
180
+ const UpdateNetworkConnectorRequest$ = [3, n0, _UNCR,
181
+ 0,
182
+ [_Id, _C, _OR, _CT],
183
+ [[0, 1], () => NetworkConnectorConfiguration$, 0, [0, 4]], 1
184
+ ];
185
+ exports.UpdateNetworkConnectorRequest$ = UpdateNetworkConnectorRequest$;
186
+ const UpdateNetworkConnectorResponse$ = [3, n0, _UNCRp,
187
+ 0,
188
+ [_A, _N, _I, _OR, _C, _S, _LUS, _LUSR, _LM],
189
+ [0, 0, 0, 0, () => NetworkConnectorConfiguration$, 0, 0, 0, 5], 3
190
+ ];
191
+ exports.UpdateNetworkConnectorResponse$ = UpdateNetworkConnectorResponse$;
192
+ var AssociatedComputeResourceTypesList = 64 | 0;
193
+ var NetworkConnectorSecurityGroupIds = 64 | 0;
194
+ var NetworkConnectorsList = [1, n0, _NCL,
195
+ 0, () => NetworkConnectorSummary$
196
+ ];
197
+ var NetworkConnectorSubnetIds = 64 | 0;
198
+ var NetworkConnectorTags = 128 | 0;
199
+ const NetworkConnectorConfiguration$ = [4, n0, _NCC,
200
+ 0,
201
+ [_VEC],
202
+ [() => NetworkConnectorVpcEgressConfiguration$]
203
+ ];
204
+ exports.NetworkConnectorConfiguration$ = NetworkConnectorConfiguration$;
205
+ exports.CreateNetworkConnector$ = [9, n0, _CNC,
206
+ { [_h]: ["POST", "/2026-04-04/network-connectors", 202] }, () => CreateNetworkConnectorRequest$, () => CreateNetworkConnectorResponse$
207
+ ];
208
+ exports.DeleteNetworkConnector$ = [9, n0, _DNC,
209
+ { [_h]: ["DELETE", "/2026-04-04/network-connectors/{Identifier}", 202] }, () => DeleteNetworkConnectorRequest$, () => DeleteNetworkConnectorResponse$
210
+ ];
211
+ exports.GetNetworkConnector$ = [9, n0, _GNC,
212
+ { [_h]: ["GET", "/2026-04-04/network-connectors/{Identifier}", 200] }, () => GetNetworkConnectorRequest$, () => GetNetworkConnectorResponse$
213
+ ];
214
+ exports.ListNetworkConnectors$ = [9, n0, _LNC,
215
+ { [_h]: ["GET", "/2026-04-04/network-connectors", 200] }, () => ListNetworkConnectorsRequest$, () => ListNetworkConnectorsResponse$
216
+ ];
217
+ exports.UpdateNetworkConnector$ = [9, n0, _UNC,
218
+ { [_h]: ["PUT", "/2026-04-04/network-connectors/{Identifier}", 202] }, () => UpdateNetworkConnectorRequest$, () => UpdateNetworkConnectorResponse$
219
+ ];
@@ -0,0 +1,21 @@
1
+ import { createAggregatedClient } from "@smithy/core/client";
2
+ import { CreateNetworkConnectorCommand, } from "./commands/CreateNetworkConnectorCommand";
3
+ import { DeleteNetworkConnectorCommand, } from "./commands/DeleteNetworkConnectorCommand";
4
+ import { GetNetworkConnectorCommand, } from "./commands/GetNetworkConnectorCommand";
5
+ import { ListNetworkConnectorsCommand, } from "./commands/ListNetworkConnectorsCommand";
6
+ import { UpdateNetworkConnectorCommand, } from "./commands/UpdateNetworkConnectorCommand";
7
+ import { LambdaCoreClient } from "./LambdaCoreClient";
8
+ import { paginateListNetworkConnectors } from "./pagination/ListNetworkConnectorsPaginator";
9
+ const commands = {
10
+ CreateNetworkConnectorCommand,
11
+ DeleteNetworkConnectorCommand,
12
+ GetNetworkConnectorCommand,
13
+ ListNetworkConnectorsCommand,
14
+ UpdateNetworkConnectorCommand,
15
+ };
16
+ const paginators = {
17
+ paginateListNetworkConnectors,
18
+ };
19
+ export class LambdaCore extends LambdaCoreClient {
20
+ }
21
+ createAggregatedClient(commands, LambdaCore, { paginators });
@@ -0,0 +1,47 @@
1
+ import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
2
+ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
3
+ import { Client as __Client, } from "@smithy/core/client";
4
+ import { resolveRegionConfig } from "@smithy/core/config";
5
+ import { resolveEndpointConfig } from "@smithy/core/endpoints";
6
+ import { getContentLengthPlugin } from "@smithy/core/protocols";
7
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
8
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
9
+ import { defaultLambdaCoreHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
10
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
11
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
+ import { resolveRuntimeExtensions } from "./runtimeExtensions";
13
+ export { __Client };
14
+ export class LambdaCoreClient extends __Client {
15
+ config;
16
+ constructor(...[configuration]) {
17
+ const _config_0 = __getRuntimeConfig(configuration || {});
18
+ super(_config_0);
19
+ this.initConfig = _config_0;
20
+ const _config_1 = resolveClientEndpointParameters(_config_0);
21
+ const _config_2 = resolveUserAgentConfig(_config_1);
22
+ const _config_3 = resolveRetryConfig(_config_2);
23
+ const _config_4 = resolveRegionConfig(_config_3);
24
+ const _config_5 = resolveHostHeaderConfig(_config_4);
25
+ const _config_6 = resolveEndpointConfig(_config_5);
26
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
27
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
28
+ this.config = _config_8;
29
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
30
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
31
+ this.middlewareStack.use(getRetryPlugin(this.config));
32
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
33
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
34
+ this.middlewareStack.use(getLoggerPlugin(this.config));
35
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
36
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
37
+ httpAuthSchemeParametersProvider: defaultLambdaCoreHttpAuthSchemeParametersProvider,
38
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
39
+ "aws.auth#sigv4": config.credentials,
40
+ }),
41
+ }));
42
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
43
+ }
44
+ destroy() {
45
+ super.destroy();
46
+ }
47
+ }
@@ -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,40 @@
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
3
+ export const defaultLambdaCoreHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
+ return {
5
+ operation: getSmithyContext(context).operation,
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
9
+ };
10
+ };
11
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
12
+ return {
13
+ schemeId: "aws.auth#sigv4",
14
+ signingProperties: {
15
+ name: "lambda",
16
+ region: authParameters.region,
17
+ },
18
+ propertiesExtractor: (config, context) => ({
19
+ signingProperties: {
20
+ config,
21
+ context,
22
+ },
23
+ }),
24
+ };
25
+ }
26
+ export const defaultLambdaCoreHttpAuthSchemeProvider = (authParameters) => {
27
+ const options = [];
28
+ switch (authParameters.operation) {
29
+ default: {
30
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
31
+ }
32
+ }
33
+ return options;
34
+ };
35
+ export const resolveHttpAuthSchemeConfig = (config) => {
36
+ const config_0 = resolveAwsSdkSigV4Config(config);
37
+ return Object.assign(config_0, {
38
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
39
+ });
40
+ };
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateNetworkConnector$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class CreateNetworkConnectorCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("LambdaCoreApiService", "CreateNetworkConnector", {})
13
+ .n("LambdaCoreClient", "CreateNetworkConnectorCommand")
14
+ .sc(CreateNetworkConnector$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteNetworkConnector$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeleteNetworkConnectorCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("LambdaCoreApiService", "DeleteNetworkConnector", {})
13
+ .n("LambdaCoreClient", "DeleteNetworkConnectorCommand")
14
+ .sc(DeleteNetworkConnector$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetNetworkConnector$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetNetworkConnectorCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("LambdaCoreApiService", "GetNetworkConnector", {})
13
+ .n("LambdaCoreClient", "GetNetworkConnectorCommand")
14
+ .sc(GetNetworkConnector$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListNetworkConnectors$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListNetworkConnectorsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("LambdaCoreApiService", "ListNetworkConnectors", {})
13
+ .n("LambdaCoreClient", "ListNetworkConnectorsCommand")
14
+ .sc(ListNetworkConnectors$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateNetworkConnector$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateNetworkConnectorCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("LambdaCoreApiService", "UpdateNetworkConnector", {})
13
+ .n("LambdaCoreClient", "UpdateNetworkConnectorCommand")
14
+ .sc(UpdateNetworkConnector$)
15
+ .build() {
16
+ }
@@ -0,0 +1,5 @@
1
+ export * from "./CreateNetworkConnectorCommand";
2
+ export * from "./DeleteNetworkConnectorCommand";
3
+ export * from "./GetNetworkConnectorCommand";
4
+ export * from "./ListNetworkConnectorsCommand";
5
+ export * from "./UpdateNetworkConnectorCommand";
@@ -0,0 +1,13 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return Object.assign(options, {
3
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
4
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
5
+ defaultSigningName: "lambda",
6
+ });
7
+ };
8
+ export const commonParams = {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
@@ -0,0 +1,46 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ const k = "ref";
3
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
4
+ const _data = {
5
+ conditions: [
6
+ [c, [g]],
7
+ [c, j],
8
+ ["aws.partition", j, d],
9
+ [e, [{ [k]: "UseFIPS" }, b]],
10
+ [e, [{ [k]: "UseDualStack" }, b]],
11
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
12
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
13
+ ],
14
+ results: [
15
+ [a],
16
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
17
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
18
+ [g, i],
19
+ ["https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
20
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
21
+ ["https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}", i],
22
+ [a, "FIPS is enabled but this partition does not support FIPS"],
23
+ ["https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
24
+ [a, "DualStack is enabled but this partition does not support DualStack"],
25
+ ["https://lambda.{Region}.{PartitionResult#dnsSuffix}", i],
26
+ [a, "Invalid Configuration: Missing Region"]
27
+ ]
28
+ };
29
+ const root = 2;
30
+ const r = 100_000_000;
31
+ const nodes = new Int32Array([
32
+ -1, 1, -1,
33
+ 0, 12, 3,
34
+ 1, 4, r + 11,
35
+ 2, 5, r + 11,
36
+ 3, 8, 6,
37
+ 4, 7, r + 10,
38
+ 5, r + 8, r + 9,
39
+ 4, 10, 9,
40
+ 6, r + 6, r + 7,
41
+ 5, 11, r + 5,
42
+ 6, r + 4, r + 5,
43
+ 3, r + 1, 13,
44
+ 4, r + 2, r + 3,
45
+ ]);
46
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -0,0 +1,14 @@
1
+ import { awsEndpointFunctions } from "@aws-sdk/core/client";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
3
+ import { bdd } from "./bdd";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
+ });
8
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
+ endpointParams: endpointParams,
11
+ logger: context.logger,
12
+ }));
13
+ };
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ export * from "./LambdaCoreClient";
2
+ export * from "./LambdaCore";
3
+ export * from "./commands";
4
+ export * from "./schemas/schemas_0";
5
+ export * from "./pagination";
6
+ export * from "./models/enums";
7
+ export * from "./models/errors";
8
+ export * from "./models/models_0";
9
+ export { LambdaCoreServiceException } from "./models/LambdaCoreServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/core/client";
2
+ export { __ServiceException };
3
+ export class LambdaCoreServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, LambdaCoreServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1,49 @@
1
+ export const ComputeResourceType = {
2
+ MicroVm: "MicroVm",
3
+ };
4
+ export const NetworkProtocol = {
5
+ DualStack: "DualStack",
6
+ IPv4: "IPv4",
7
+ };
8
+ export const NetworkConnectorState = {
9
+ ACTIVE: "ACTIVE",
10
+ DELETE_FAILED: "DELETE_FAILED",
11
+ DELETING: "DELETING",
12
+ FAILED: "FAILED",
13
+ INACTIVE: "INACTIVE",
14
+ PENDING: "PENDING",
15
+ };
16
+ export const ThrottleReason = {
17
+ CallerRateLimitExceeded: "CallerRateLimitExceeded",
18
+ ConcurrentInvocationLimitExceeded: "ConcurrentInvocationLimitExceeded",
19
+ ConcurrentSnapshotCreateLimitExceeded: "ConcurrentSnapshotCreateLimitExceeded",
20
+ FunctionInvocationRateLimitExceeded: "FunctionInvocationRateLimitExceeded",
21
+ ReservedFunctionConcurrentInvocationLimitExceeded: "ReservedFunctionConcurrentInvocationLimitExceeded",
22
+ ReservedFunctionInvocationRateLimitExceeded: "ReservedFunctionInvocationRateLimitExceeded",
23
+ };
24
+ export const NetworkConnectorLastUpdateStatus = {
25
+ Failed: "Failed",
26
+ InProgress: "InProgress",
27
+ Successful: "Successful",
28
+ };
29
+ export const NetworkConnectorLastUpdateStatusReasonCode = {
30
+ DisallowedByVpcEncryptionControl: "DisallowedByVpcEncryptionControl",
31
+ Ec2RequestLimitExceeded: "Ec2RequestLimitExceeded",
32
+ InsufficientRolePermissions: "InsufficientRolePermissions",
33
+ InternalError: "InternalError",
34
+ InvalidSecurityGroup: "InvalidSecurityGroup",
35
+ InvalidSubnet: "InvalidSubnet",
36
+ SubnetOutOfIPAddresses: "SubnetOutOfIPAddresses",
37
+ };
38
+ export const NetworkConnectorStateReasonCode = {
39
+ DisallowedByVpcEncryptionControl: "DisallowedByVpcEncryptionControl",
40
+ Ec2RequestLimitExceeded: "Ec2RequestLimitExceeded",
41
+ InsufficientRolePermissions: "InsufficientRolePermissions",
42
+ InternalError: "InternalError",
43
+ InvalidSecurityGroup: "InvalidSecurityGroup",
44
+ InvalidSubnet: "InvalidSubnet",
45
+ SubnetOutOfIPAddresses: "SubnetOutOfIPAddresses",
46
+ };
47
+ export const NetworkConnectorType = {
48
+ VPC_EGRESS: "VPC_EGRESS",
49
+ };