@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,191 @@
1
+ import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
2
+ import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
3
+ import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
4
+ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
5
+ import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
6
+ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
7
+ import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
9
+ import type { CreateNetworkConnectorCommandInput, CreateNetworkConnectorCommandOutput } from "./commands/CreateNetworkConnectorCommand";
10
+ import type { DeleteNetworkConnectorCommandInput, DeleteNetworkConnectorCommandOutput } from "./commands/DeleteNetworkConnectorCommand";
11
+ import type { GetNetworkConnectorCommandInput, GetNetworkConnectorCommandOutput } from "./commands/GetNetworkConnectorCommand";
12
+ import type { ListNetworkConnectorsCommandInput, ListNetworkConnectorsCommandOutput } from "./commands/ListNetworkConnectorsCommand";
13
+ import type { UpdateNetworkConnectorCommandInput, UpdateNetworkConnectorCommandOutput } from "./commands/UpdateNetworkConnectorCommand";
14
+ import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
15
+ import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
16
+ export { __Client };
17
+ /**
18
+ * @public
19
+ */
20
+ export type ServiceInputTypes = CreateNetworkConnectorCommandInput | DeleteNetworkConnectorCommandInput | GetNetworkConnectorCommandInput | ListNetworkConnectorsCommandInput | UpdateNetworkConnectorCommandInput;
21
+ /**
22
+ * @public
23
+ */
24
+ export type ServiceOutputTypes = CreateNetworkConnectorCommandOutput | DeleteNetworkConnectorCommandOutput | GetNetworkConnectorCommandOutput | ListNetworkConnectorsCommandOutput | UpdateNetworkConnectorCommandOutput;
25
+ /**
26
+ * @public
27
+ */
28
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
29
+ /**
30
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
31
+ */
32
+ requestHandler?: __HttpHandlerUserInput;
33
+ /**
34
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
35
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
36
+ * @internal
37
+ */
38
+ sha256?: __ChecksumConstructor | __HashConstructor;
39
+ /**
40
+ * The function that will be used to convert strings into HTTP endpoints.
41
+ * @internal
42
+ */
43
+ urlParser?: __UrlParser;
44
+ /**
45
+ * A function that can calculate the length of a request body.
46
+ * @internal
47
+ */
48
+ bodyLengthChecker?: __BodyLengthCalculator;
49
+ /**
50
+ * A function that converts a stream into an array of bytes.
51
+ * @internal
52
+ */
53
+ streamCollector?: __StreamCollector;
54
+ /**
55
+ * The function that will be used to convert a base64-encoded string to a byte array.
56
+ * @internal
57
+ */
58
+ base64Decoder?: __Decoder;
59
+ /**
60
+ * The function that will be used to convert binary data to a base64-encoded string.
61
+ * @internal
62
+ */
63
+ base64Encoder?: __Encoder;
64
+ /**
65
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
66
+ * @internal
67
+ */
68
+ utf8Decoder?: __Decoder;
69
+ /**
70
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
71
+ * @internal
72
+ */
73
+ utf8Encoder?: __Encoder;
74
+ /**
75
+ * The runtime environment.
76
+ * @internal
77
+ */
78
+ runtime?: string;
79
+ /**
80
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
81
+ * trait of an operation.
82
+ */
83
+ disableHostPrefix?: boolean;
84
+ /**
85
+ * Unique service identifier.
86
+ * @internal
87
+ */
88
+ serviceId?: string;
89
+ /**
90
+ * Enables IPv6/IPv4 dualstack endpoint.
91
+ */
92
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
93
+ /**
94
+ * Enables FIPS compatible endpoints.
95
+ */
96
+ useFipsEndpoint?: boolean | __Provider<boolean>;
97
+ /**
98
+ * The AWS region to which this client will send requests
99
+ */
100
+ region?: string | __Provider<string>;
101
+ /**
102
+ * Setting a client profile is similar to setting a value for the
103
+ * AWS_PROFILE environment variable. Setting a profile on a client
104
+ * in code only affects the single client instance, unlike AWS_PROFILE.
105
+ *
106
+ * When set, and only for environments where an AWS configuration
107
+ * file exists, fields configurable by this file will be retrieved
108
+ * from the specified profile within that file.
109
+ * Conflicting code configuration and environment variables will
110
+ * still have higher priority.
111
+ *
112
+ * For client credential resolution that involves checking the AWS
113
+ * configuration file, the client's profile (this value) will be
114
+ * used unless a different profile is set in the credential
115
+ * provider options.
116
+ *
117
+ */
118
+ profile?: string;
119
+ /**
120
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
121
+ * @internal
122
+ */
123
+ defaultUserAgentProvider?: __Provider<__UserAgent>;
124
+ /**
125
+ * Default credentials provider; Not available in browser runtime.
126
+ * @deprecated
127
+ * @internal
128
+ */
129
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
130
+ /**
131
+ * Value for how many times a request will be made at most in case of retry.
132
+ */
133
+ maxAttempts?: number | __Provider<number>;
134
+ /**
135
+ * Specifies which retry algorithm to use.
136
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
137
+ *
138
+ */
139
+ retryMode?: string | __Provider<string>;
140
+ /**
141
+ * Optional logger for logging debug/info/warn/error.
142
+ */
143
+ logger?: __Logger;
144
+ /**
145
+ * Optional extensions
146
+ */
147
+ extensions?: RuntimeExtension[];
148
+ /**
149
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
150
+ */
151
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
152
+ }
153
+ /**
154
+ * @public
155
+ */
156
+ export type LambdaCoreClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
157
+ /**
158
+ * @public
159
+ *
160
+ * The configuration interface of LambdaCoreClient class constructor that set the region, credentials and other options.
161
+ */
162
+ export interface LambdaCoreClientConfig extends LambdaCoreClientConfigType {
163
+ }
164
+ /**
165
+ * @public
166
+ */
167
+ export type LambdaCoreClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
168
+ /**
169
+ * @public
170
+ *
171
+ * The resolved configuration interface of LambdaCoreClient class. This is resolved and normalized from the {@link LambdaCoreClientConfig | constructor configuration interface}.
172
+ */
173
+ export interface LambdaCoreClientResolvedConfig extends LambdaCoreClientResolvedConfigType {
174
+ }
175
+ /**
176
+ * <p>AWS Lambda Core is a set of APIs for managing shared infrastructure resources used by AWS Lambda. The Lambda Core API provides operations for creating and managing network connectors that enable Lambda MicroVMs to access resources in your Amazon Virtual Private Cloud (Amazon VPC).</p> <p>Network connectors provision elastic network interfaces (ENIs) in your VPC subnets, providing a managed network path from Lambda compute environments to private resources such as Amazon RDS databases, Amazon ElastiCache clusters, and internal APIs. You create a network connector once and attach it to one or more Lambda MicroVMs at run time.</p>
177
+ * @public
178
+ */
179
+ export declare class LambdaCoreClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, LambdaCoreClientResolvedConfig> {
180
+ /**
181
+ * The resolved configuration of LambdaCoreClient class. This is resolved and normalized from the {@link LambdaCoreClientConfig | constructor configuration interface}.
182
+ */
183
+ readonly config: LambdaCoreClientResolvedConfig;
184
+ constructor(...[configuration]: __CheckOptionalClientConfig<LambdaCoreClientConfig>);
185
+ /**
186
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
187
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
188
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
189
+ */
190
+ destroy(): void;
191
+ }
@@ -0,0 +1,29 @@
1
+ import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import type { LambdaCoreHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: LambdaCoreHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): LambdaCoreHttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: LambdaCoreHttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,75 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
2
+ import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
+ import { type LambdaCoreClientResolvedConfig } from "../LambdaCoreClient";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface LambdaCoreHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface LambdaCoreHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<LambdaCoreClientResolvedConfig, HandlerExecutionContext, LambdaCoreHttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultLambdaCoreHttpAuthSchemeParametersProvider: (config: LambdaCoreClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<LambdaCoreHttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface LambdaCoreHttpAuthSchemeProvider extends HttpAuthSchemeProvider<LambdaCoreHttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultLambdaCoreHttpAuthSchemeProvider: LambdaCoreHttpAuthSchemeProvider;
28
+ /**
29
+ * @public
30
+ */
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
+ /**
33
+ * A comma-separated list of case-sensitive auth scheme names.
34
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
35
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
36
+ * @public
37
+ */
38
+ authSchemePreference?: string[] | Provider<string[]>;
39
+ /**
40
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
41
+ * @internal
42
+ */
43
+ httpAuthSchemes?: HttpAuthScheme[];
44
+ /**
45
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
46
+ * @internal
47
+ */
48
+ httpAuthSchemeProvider?: LambdaCoreHttpAuthSchemeProvider;
49
+ }
50
+ /**
51
+ * @internal
52
+ */
53
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
54
+ /**
55
+ * A comma-separated list of case-sensitive auth scheme names.
56
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
57
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
58
+ * @public
59
+ */
60
+ readonly authSchemePreference: Provider<string[]>;
61
+ /**
62
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
63
+ * @internal
64
+ */
65
+ readonly httpAuthSchemes: HttpAuthScheme[];
66
+ /**
67
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
68
+ * @internal
69
+ */
70
+ readonly httpAuthSchemeProvider: LambdaCoreHttpAuthSchemeProvider;
71
+ }
72
+ /**
73
+ * @internal
74
+ */
75
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
@@ -0,0 +1,128 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { LambdaCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaCoreClient";
4
+ import type { CreateNetworkConnectorRequest, CreateNetworkConnectorResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateNetworkConnectorCommand}.
14
+ */
15
+ export interface CreateNetworkConnectorCommandInput extends CreateNetworkConnectorRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateNetworkConnectorCommand}.
21
+ */
22
+ export interface CreateNetworkConnectorCommandOutput extends CreateNetworkConnectorResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateNetworkConnectorCommand_base: {
25
+ new (input: CreateNetworkConnectorCommandInput): import("@smithy/core/client").CommandImpl<CreateNetworkConnectorCommandInput, CreateNetworkConnectorCommandOutput, LambdaCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateNetworkConnectorCommandInput): import("@smithy/core/client").CommandImpl<CreateNetworkConnectorCommandInput, CreateNetworkConnectorCommandOutput, LambdaCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Creates a network connector that enables Lambda compute resources to route outbound traffic through your Amazon VPC. The network connector provisions elastic network interfaces (ENIs) in the subnets you specify, providing a managed network path to private resources such as databases, caches, and internal APIs.</p> <p>This operation is asynchronous. The network connector starts in <code>PENDING</code> state while ENIs are provisioned in your VPC (provisioning typically takes up to 10 minutes). Use <code>GetNetworkConnector</code> to poll the connector state until it reaches <code>ACTIVE</code>. Once active, you can attach the connector to Lambda MicroVMs at run time using the <code>egressNetworkConnectors</code> parameter on <code>RunMicroVm</code>.</p> <p>This operation is idempotent when you provide a <code>ClientToken</code> — if you retry a request that completed successfully using the same client token, the operation returns the existing connector without creating a duplicate.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { LambdaCoreClient, CreateNetworkConnectorCommand } from "@aws-sdk/client-lambda-core"; // ES Modules import
37
+ * // const { LambdaCoreClient, CreateNetworkConnectorCommand } = require("@aws-sdk/client-lambda-core"); // CommonJS import
38
+ * // import type { LambdaCoreClientConfig } from "@aws-sdk/client-lambda-core";
39
+ * const config = {}; // type is LambdaCoreClientConfig
40
+ * const client = new LambdaCoreClient(config);
41
+ * const input = { // CreateNetworkConnectorRequest
42
+ * Name: "STRING_VALUE", // required
43
+ * Configuration: { // NetworkConnectorConfiguration Union: only one key present
44
+ * VpcEgressConfiguration: { // NetworkConnectorVpcEgressConfiguration
45
+ * SubnetIds: [ // NetworkConnectorSubnetIds
46
+ * "STRING_VALUE",
47
+ * ],
48
+ * SecurityGroupIds: [ // NetworkConnectorSecurityGroupIds
49
+ * "STRING_VALUE",
50
+ * ],
51
+ * NetworkProtocol: "IPv4" || "DualStack",
52
+ * AssociatedComputeResourceTypes: [ // AssociatedComputeResourceTypesList
53
+ * "MicroVm",
54
+ * ],
55
+ * },
56
+ * },
57
+ * OperatorRole: "STRING_VALUE",
58
+ * ClientToken: "STRING_VALUE",
59
+ * Tags: { // NetworkConnectorTags
60
+ * "<keys>": "STRING_VALUE",
61
+ * },
62
+ * };
63
+ * const command = new CreateNetworkConnectorCommand(input);
64
+ * const response = await client.send(command);
65
+ * // { // CreateNetworkConnectorResponse
66
+ * // Arn: "STRING_VALUE", // required
67
+ * // Name: "STRING_VALUE", // required
68
+ * // Id: "STRING_VALUE", // required
69
+ * // Configuration: { // NetworkConnectorConfiguration Union: only one key present
70
+ * // VpcEgressConfiguration: { // NetworkConnectorVpcEgressConfiguration
71
+ * // SubnetIds: [ // NetworkConnectorSubnetIds
72
+ * // "STRING_VALUE",
73
+ * // ],
74
+ * // SecurityGroupIds: [ // NetworkConnectorSecurityGroupIds
75
+ * // "STRING_VALUE",
76
+ * // ],
77
+ * // NetworkProtocol: "IPv4" || "DualStack",
78
+ * // AssociatedComputeResourceTypes: [ // AssociatedComputeResourceTypesList
79
+ * // "MicroVm",
80
+ * // ],
81
+ * // },
82
+ * // },
83
+ * // OperatorRole: "STRING_VALUE",
84
+ * // State: "PENDING" || "ACTIVE" || "INACTIVE" || "FAILED" || "DELETING" || "DELETE_FAILED",
85
+ * // };
86
+ *
87
+ * ```
88
+ *
89
+ * @param CreateNetworkConnectorCommandInput - {@link CreateNetworkConnectorCommandInput}
90
+ * @returns {@link CreateNetworkConnectorCommandOutput}
91
+ * @see {@link CreateNetworkConnectorCommandInput} for command's `input` shape.
92
+ * @see {@link CreateNetworkConnectorCommandOutput} for command's `response` shape.
93
+ * @see {@link LambdaCoreClientResolvedConfig | config} for LambdaCoreClient's `config` shape.
94
+ *
95
+ * @throws {@link InvalidParameterValueException} (client fault)
96
+ * <p>One of the parameters in the request is not valid. Check the error message for details about which parameter failed validation.</p>
97
+ *
98
+ * @throws {@link NetworkConnectorLimitExceededException} (client fault)
99
+ * <p>The account has reached the maximum number of network connectors allowed. Delete unused connectors or request a limit increase through Service Quotas.</p>
100
+ *
101
+ * @throws {@link ResourceConflictException} (client fault)
102
+ * <p>The request could not be completed due to a conflict with the current state of the resource. For example, attempting to update a connector that is not in <code>ACTIVE</code> state.</p>
103
+ *
104
+ * @throws {@link ServiceException} (server fault)
105
+ * <p>An internal service error occurred. Retry the request with exponential backoff.</p>
106
+ *
107
+ * @throws {@link TooManyRequestsException} (client fault)
108
+ * <p>The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.</p>
109
+ *
110
+ * @throws {@link LambdaCoreServiceException}
111
+ * <p>Base exception class for all service exceptions from LambdaCore service.</p>
112
+ *
113
+ *
114
+ * @public
115
+ */
116
+ export declare class CreateNetworkConnectorCommand extends CreateNetworkConnectorCommand_base {
117
+ /** @internal type navigation helper, not in runtime. */
118
+ protected static __types: {
119
+ api: {
120
+ input: CreateNetworkConnectorRequest;
121
+ output: CreateNetworkConnectorResponse;
122
+ };
123
+ sdk: {
124
+ input: CreateNetworkConnectorCommandInput;
125
+ output: CreateNetworkConnectorCommandOutput;
126
+ };
127
+ };
128
+ }
@@ -0,0 +1,109 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { LambdaCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaCoreClient";
4
+ import type { DeleteNetworkConnectorRequest, DeleteNetworkConnectorResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteNetworkConnectorCommand}.
14
+ */
15
+ export interface DeleteNetworkConnectorCommandInput extends DeleteNetworkConnectorRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteNetworkConnectorCommand}.
21
+ */
22
+ export interface DeleteNetworkConnectorCommandOutput extends DeleteNetworkConnectorResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteNetworkConnectorCommand_base: {
25
+ new (input: DeleteNetworkConnectorCommandInput): import("@smithy/core/client").CommandImpl<DeleteNetworkConnectorCommandInput, DeleteNetworkConnectorCommandOutput, LambdaCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteNetworkConnectorCommandInput): import("@smithy/core/client").CommandImpl<DeleteNetworkConnectorCommandInput, DeleteNetworkConnectorCommandOutput, LambdaCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Initiates deletion of a network connector. The connector transitions to <code>DELETING</code> state while elastic network interfaces are cleaned up asynchronously. After deletion completes, subsequent calls to <code>GetNetworkConnector</code> return <code>ResourceNotFoundException</code>.</p> <p>This operation is idempotent — calling delete on a connector that is already deleting or has been deleted succeeds without error. You can delete connectors in <code>ACTIVE</code> or <code>FAILED</code> states. Before deleting a connector, ensure that no Lambda MicroVMs are using it, as they will lose VPC egress connectivity immediately.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { LambdaCoreClient, DeleteNetworkConnectorCommand } from "@aws-sdk/client-lambda-core"; // ES Modules import
37
+ * // const { LambdaCoreClient, DeleteNetworkConnectorCommand } = require("@aws-sdk/client-lambda-core"); // CommonJS import
38
+ * // import type { LambdaCoreClientConfig } from "@aws-sdk/client-lambda-core";
39
+ * const config = {}; // type is LambdaCoreClientConfig
40
+ * const client = new LambdaCoreClient(config);
41
+ * const input = { // DeleteNetworkConnectorRequest
42
+ * Identifier: "STRING_VALUE", // required
43
+ * };
44
+ * const command = new DeleteNetworkConnectorCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // DeleteNetworkConnectorResponse
47
+ * // Arn: "STRING_VALUE", // required
48
+ * // Name: "STRING_VALUE", // required
49
+ * // Id: "STRING_VALUE", // required
50
+ * // Configuration: { // NetworkConnectorConfiguration Union: only one key present
51
+ * // VpcEgressConfiguration: { // NetworkConnectorVpcEgressConfiguration
52
+ * // SubnetIds: [ // NetworkConnectorSubnetIds
53
+ * // "STRING_VALUE",
54
+ * // ],
55
+ * // SecurityGroupIds: [ // NetworkConnectorSecurityGroupIds
56
+ * // "STRING_VALUE",
57
+ * // ],
58
+ * // NetworkProtocol: "IPv4" || "DualStack",
59
+ * // AssociatedComputeResourceTypes: [ // AssociatedComputeResourceTypesList
60
+ * // "MicroVm",
61
+ * // ],
62
+ * // },
63
+ * // },
64
+ * // OperatorRole: "STRING_VALUE",
65
+ * // State: "PENDING" || "ACTIVE" || "INACTIVE" || "FAILED" || "DELETING" || "DELETE_FAILED",
66
+ * // };
67
+ *
68
+ * ```
69
+ *
70
+ * @param DeleteNetworkConnectorCommandInput - {@link DeleteNetworkConnectorCommandInput}
71
+ * @returns {@link DeleteNetworkConnectorCommandOutput}
72
+ * @see {@link DeleteNetworkConnectorCommandInput} for command's `input` shape.
73
+ * @see {@link DeleteNetworkConnectorCommandOutput} for command's `response` shape.
74
+ * @see {@link LambdaCoreClientResolvedConfig | config} for LambdaCoreClient's `config` shape.
75
+ *
76
+ * @throws {@link InvalidParameterValueException} (client fault)
77
+ * <p>One of the parameters in the request is not valid. Check the error message for details about which parameter failed validation.</p>
78
+ *
79
+ * @throws {@link ResourceConflictException} (client fault)
80
+ * <p>The request could not be completed due to a conflict with the current state of the resource. For example, attempting to update a connector that is not in <code>ACTIVE</code> state.</p>
81
+ *
82
+ * @throws {@link ResourceNotFoundException} (client fault)
83
+ * <p>The specified network connector does not exist. Verify the identifier (ID, name, or ARN) and Region.</p>
84
+ *
85
+ * @throws {@link ServiceException} (server fault)
86
+ * <p>An internal service error occurred. Retry the request with exponential backoff.</p>
87
+ *
88
+ * @throws {@link TooManyRequestsException} (client fault)
89
+ * <p>The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.</p>
90
+ *
91
+ * @throws {@link LambdaCoreServiceException}
92
+ * <p>Base exception class for all service exceptions from LambdaCore service.</p>
93
+ *
94
+ *
95
+ * @public
96
+ */
97
+ export declare class DeleteNetworkConnectorCommand extends DeleteNetworkConnectorCommand_base {
98
+ /** @internal type navigation helper, not in runtime. */
99
+ protected static __types: {
100
+ api: {
101
+ input: DeleteNetworkConnectorRequest;
102
+ output: DeleteNetworkConnectorResponse;
103
+ };
104
+ sdk: {
105
+ input: DeleteNetworkConnectorCommandInput;
106
+ output: DeleteNetworkConnectorCommandOutput;
107
+ };
108
+ };
109
+ }
@@ -0,0 +1,113 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { LambdaCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaCoreClient";
4
+ import type { GetNetworkConnectorRequest, GetNetworkConnectorResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetNetworkConnectorCommand}.
14
+ */
15
+ export interface GetNetworkConnectorCommandInput extends GetNetworkConnectorRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetNetworkConnectorCommand}.
21
+ */
22
+ export interface GetNetworkConnectorCommandOutput extends GetNetworkConnectorResponse, __MetadataBearer {
23
+ }
24
+ declare const GetNetworkConnectorCommand_base: {
25
+ new (input: GetNetworkConnectorCommandInput): import("@smithy/core/client").CommandImpl<GetNetworkConnectorCommandInput, GetNetworkConnectorCommandOutput, LambdaCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetNetworkConnectorCommandInput): import("@smithy/core/client").CommandImpl<GetNetworkConnectorCommandInput, GetNetworkConnectorCommandOutput, LambdaCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Retrieves the current configuration, state, and metadata of a network connector. The <code>Identifier</code> parameter accepts the connector ID, name, or full ARN. Use this operation to poll connector state after creation or update, or to inspect the current VPC configuration and any failure reasons.</p> <p>The response includes the full connector configuration, current state, and — if the connector has been updated — the <code>LastUpdateStatus</code> and <code>LastUpdateStatusReasonCode</code> fields that indicate whether the most recent update succeeded or failed.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { LambdaCoreClient, GetNetworkConnectorCommand } from "@aws-sdk/client-lambda-core"; // ES Modules import
37
+ * // const { LambdaCoreClient, GetNetworkConnectorCommand } = require("@aws-sdk/client-lambda-core"); // CommonJS import
38
+ * // import type { LambdaCoreClientConfig } from "@aws-sdk/client-lambda-core";
39
+ * const config = {}; // type is LambdaCoreClientConfig
40
+ * const client = new LambdaCoreClient(config);
41
+ * const input = { // GetNetworkConnectorRequest
42
+ * Identifier: "STRING_VALUE", // required
43
+ * };
44
+ * const command = new GetNetworkConnectorCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // GetNetworkConnectorResponse
47
+ * // Arn: "STRING_VALUE", // required
48
+ * // Name: "STRING_VALUE", // required
49
+ * // Id: "STRING_VALUE", // required
50
+ * // Version: Number("long"),
51
+ * // Configuration: { // NetworkConnectorConfiguration Union: only one key present
52
+ * // VpcEgressConfiguration: { // NetworkConnectorVpcEgressConfiguration
53
+ * // SubnetIds: [ // NetworkConnectorSubnetIds
54
+ * // "STRING_VALUE",
55
+ * // ],
56
+ * // SecurityGroupIds: [ // NetworkConnectorSecurityGroupIds
57
+ * // "STRING_VALUE",
58
+ * // ],
59
+ * // NetworkProtocol: "IPv4" || "DualStack",
60
+ * // AssociatedComputeResourceTypes: [ // AssociatedComputeResourceTypesList
61
+ * // "MicroVm",
62
+ * // ],
63
+ * // },
64
+ * // },
65
+ * // OperatorRole: "STRING_VALUE",
66
+ * // State: "PENDING" || "ACTIVE" || "INACTIVE" || "FAILED" || "DELETING" || "DELETE_FAILED",
67
+ * // StateReason: "STRING_VALUE",
68
+ * // StateReasonCode: "DisallowedByVpcEncryptionControl" || "Ec2RequestLimitExceeded" || "InsufficientRolePermissions" || "InternalError" || "InvalidSecurityGroup" || "InvalidSubnet" || "SubnetOutOfIPAddresses",
69
+ * // LastUpdateStatus: "Successful" || "Failed" || "InProgress",
70
+ * // LastUpdateStatusReason: "STRING_VALUE",
71
+ * // LastUpdateStatusReasonCode: "DisallowedByVpcEncryptionControl" || "Ec2RequestLimitExceeded" || "InsufficientRolePermissions" || "InternalError" || "InvalidSecurityGroup" || "InvalidSubnet" || "SubnetOutOfIPAddresses",
72
+ * // LastModified: new Date("TIMESTAMP"),
73
+ * // };
74
+ *
75
+ * ```
76
+ *
77
+ * @param GetNetworkConnectorCommandInput - {@link GetNetworkConnectorCommandInput}
78
+ * @returns {@link GetNetworkConnectorCommandOutput}
79
+ * @see {@link GetNetworkConnectorCommandInput} for command's `input` shape.
80
+ * @see {@link GetNetworkConnectorCommandOutput} for command's `response` shape.
81
+ * @see {@link LambdaCoreClientResolvedConfig | config} for LambdaCoreClient's `config` shape.
82
+ *
83
+ * @throws {@link InvalidParameterValueException} (client fault)
84
+ * <p>One of the parameters in the request is not valid. Check the error message for details about which parameter failed validation.</p>
85
+ *
86
+ * @throws {@link ResourceNotFoundException} (client fault)
87
+ * <p>The specified network connector does not exist. Verify the identifier (ID, name, or ARN) and Region.</p>
88
+ *
89
+ * @throws {@link ServiceException} (server fault)
90
+ * <p>An internal service error occurred. Retry the request with exponential backoff.</p>
91
+ *
92
+ * @throws {@link TooManyRequestsException} (client fault)
93
+ * <p>The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.</p>
94
+ *
95
+ * @throws {@link LambdaCoreServiceException}
96
+ * <p>Base exception class for all service exceptions from LambdaCore service.</p>
97
+ *
98
+ *
99
+ * @public
100
+ */
101
+ export declare class GetNetworkConnectorCommand extends GetNetworkConnectorCommand_base {
102
+ /** @internal type navigation helper, not in runtime. */
103
+ protected static __types: {
104
+ api: {
105
+ input: GetNetworkConnectorRequest;
106
+ output: GetNetworkConnectorResponse;
107
+ };
108
+ sdk: {
109
+ input: GetNetworkConnectorCommandInput;
110
+ output: GetNetworkConnectorCommandOutput;
111
+ };
112
+ };
113
+ }