@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.
- package/LICENSE +201 -0
- package/README.md +216 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-cjs/endpoint/bdd.js +46 -0
- package/dist-cjs/endpoint/endpointResolver.js +14 -0
- package/dist-cjs/index.js +255 -0
- package/dist-cjs/models/LambdaCoreServiceException.js +8 -0
- package/dist-cjs/models/errors.js +93 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +45 -0
- package/dist-cjs/runtimeConfig.native.js +12 -0
- package/dist-cjs/runtimeConfig.shared.js +38 -0
- package/dist-cjs/schemas/schemas_0.js +219 -0
- package/dist-es/LambdaCore.js +21 -0
- package/dist-es/LambdaCoreClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commands/CreateNetworkConnectorCommand.js +16 -0
- package/dist-es/commands/DeleteNetworkConnectorCommand.js +16 -0
- package/dist-es/commands/GetNetworkConnectorCommand.js +16 -0
- package/dist-es/commands/ListNetworkConnectorsCommand.js +16 -0
- package/dist-es/commands/UpdateNetworkConnectorCommand.js +16 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/bdd.js +46 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +9 -0
- package/dist-es/models/LambdaCoreServiceException.js +8 -0
- package/dist-es/models/enums.js +49 -0
- package/dist-es/models/errors.js +93 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListNetworkConnectorsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/runtimeConfig.browser.js +31 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +38 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +199 -0
- package/dist-types/LambdaCore.d.ts +53 -0
- package/dist-types/LambdaCoreClient.d.ts +191 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/CreateNetworkConnectorCommand.d.ts +128 -0
- package/dist-types/commands/DeleteNetworkConnectorCommand.d.ts +109 -0
- package/dist-types/commands/GetNetworkConnectorCommand.d.ts +113 -0
- package/dist-types/commands/ListNetworkConnectorsCommand.d.ts +97 -0
- package/dist-types/commands/UpdateNetworkConnectorCommand.d.ts +128 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +17 -0
- package/dist-types/models/LambdaCoreServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +143 -0
- package/dist-types/models/errors.d.ts +117 -0
- package/dist-types/models/models_0.d.ts +396 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListNetworkConnectorsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +55 -0
- package/dist-types/runtimeConfig.d.ts +55 -0
- package/dist-types/runtimeConfig.native.d.ts +54 -0
- package/dist-types/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +33 -0
- package/dist-types/ts3.4/LambdaCore.d.ts +104 -0
- package/dist-types/ts3.4/LambdaCoreClient.d.ts +140 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateNetworkConnectorCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DeleteNetworkConnectorCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetNetworkConnectorCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListNetworkConnectorsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/UpdateNetworkConnectorCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +12 -0
- package/dist-types/ts3.4/models/LambdaCoreServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +65 -0
- package/dist-types/ts3.4/models/errors.d.ts +56 -0
- package/dist-types/ts3.4/models/models_0.d.ts +114 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListNetworkConnectorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +33 -0
- package/package.json +71 -0
|
@@ -0,0 +1,97 @@
|
|
|
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 { ListNetworkConnectorsRequest, ListNetworkConnectorsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListNetworkConnectorsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListNetworkConnectorsCommandInput extends ListNetworkConnectorsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListNetworkConnectorsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListNetworkConnectorsCommandOutput extends ListNetworkConnectorsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListNetworkConnectorsCommand_base: {
|
|
25
|
+
new (input: ListNetworkConnectorsCommandInput): import("@smithy/core/client").CommandImpl<ListNetworkConnectorsCommandInput, ListNetworkConnectorsCommandOutput, LambdaCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListNetworkConnectorsCommandInput]): import("@smithy/core/client").CommandImpl<ListNetworkConnectorsCommandInput, ListNetworkConnectorsCommandOutput, LambdaCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Returns a paginated list of network connectors in your account for the current Region. You can optionally filter results by connector state. Use the <code>Marker</code> parameter from a previous response to retrieve the next page of results.</p> <p>Each item in the response includes the connector ARN, name, ID, type, current state, and last modified timestamp. To retrieve full configuration details for a specific connector, use <code>GetNetworkConnector</code>.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { LambdaCoreClient, ListNetworkConnectorsCommand } from "@aws-sdk/client-lambda-core"; // ES Modules import
|
|
37
|
+
* // const { LambdaCoreClient, ListNetworkConnectorsCommand } = 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 = { // ListNetworkConnectorsRequest
|
|
42
|
+
* State: "PENDING" || "ACTIVE" || "INACTIVE" || "FAILED" || "DELETING" || "DELETE_FAILED",
|
|
43
|
+
* Marker: "STRING_VALUE",
|
|
44
|
+
* MaxItems: Number("int"),
|
|
45
|
+
* };
|
|
46
|
+
* const command = new ListNetworkConnectorsCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // ListNetworkConnectorsResponse
|
|
49
|
+
* // NetworkConnectors: [ // NetworkConnectorsList // required
|
|
50
|
+
* // { // NetworkConnectorSummary
|
|
51
|
+
* // Arn: "STRING_VALUE", // required
|
|
52
|
+
* // Name: "STRING_VALUE", // required
|
|
53
|
+
* // Id: "STRING_VALUE", // required
|
|
54
|
+
* // Type: "VPC_EGRESS", // required
|
|
55
|
+
* // State: "PENDING" || "ACTIVE" || "INACTIVE" || "FAILED" || "DELETING" || "DELETE_FAILED",
|
|
56
|
+
* // LastModified: new Date("TIMESTAMP"),
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
59
|
+
* // NextMarker: "STRING_VALUE",
|
|
60
|
+
* // };
|
|
61
|
+
*
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @param ListNetworkConnectorsCommandInput - {@link ListNetworkConnectorsCommandInput}
|
|
65
|
+
* @returns {@link ListNetworkConnectorsCommandOutput}
|
|
66
|
+
* @see {@link ListNetworkConnectorsCommandInput} for command's `input` shape.
|
|
67
|
+
* @see {@link ListNetworkConnectorsCommandOutput} for command's `response` shape.
|
|
68
|
+
* @see {@link LambdaCoreClientResolvedConfig | config} for LambdaCoreClient's `config` shape.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
71
|
+
* <p>One of the parameters in the request is not valid. Check the error message for details about which parameter failed validation.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ServiceException} (server fault)
|
|
74
|
+
* <p>An internal service error occurred. Retry the request with exponential backoff.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
77
|
+
* <p>The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link LambdaCoreServiceException}
|
|
80
|
+
* <p>Base exception class for all service exceptions from LambdaCore service.</p>
|
|
81
|
+
*
|
|
82
|
+
*
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export declare class ListNetworkConnectorsCommand extends ListNetworkConnectorsCommand_base {
|
|
86
|
+
/** @internal type navigation helper, not in runtime. */
|
|
87
|
+
protected static __types: {
|
|
88
|
+
api: {
|
|
89
|
+
input: ListNetworkConnectorsRequest;
|
|
90
|
+
output: ListNetworkConnectorsResponse;
|
|
91
|
+
};
|
|
92
|
+
sdk: {
|
|
93
|
+
input: ListNetworkConnectorsCommandInput;
|
|
94
|
+
output: ListNetworkConnectorsCommandOutput;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -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 { UpdateNetworkConnectorRequest, UpdateNetworkConnectorResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateNetworkConnectorCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateNetworkConnectorCommandInput extends UpdateNetworkConnectorRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateNetworkConnectorCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateNetworkConnectorCommandOutput extends UpdateNetworkConnectorResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateNetworkConnectorCommand_base: {
|
|
25
|
+
new (input: UpdateNetworkConnectorCommandInput): import("@smithy/core/client").CommandImpl<UpdateNetworkConnectorCommandInput, UpdateNetworkConnectorCommandOutput, LambdaCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateNetworkConnectorCommandInput): import("@smithy/core/client").CommandImpl<UpdateNetworkConnectorCommandInput, UpdateNetworkConnectorCommandOutput, LambdaCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Updates the VPC configuration or operator role of an existing network connector. You can modify the subnet IDs, security group IDs, network protocol, or operator role. The connector must be in <code>ACTIVE</code> state to accept updates.</p> <p>This operation is asynchronous. The connector remains in <code>ACTIVE</code> state during the update — existing workloads that reference this connector are not disrupted. Use <code>GetNetworkConnector</code> to monitor the <code>LastUpdateStatus</code> field, which transitions through <code>InProgress</code> to <code>Successful</code> or <code>Failed</code>. If the update fails, the <code>LastUpdateStatusReasonCode</code> field provides a specific error code for troubleshooting. This operation is idempotent when you provide a <code>ClientToken</code>.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { LambdaCoreClient, UpdateNetworkConnectorCommand } from "@aws-sdk/client-lambda-core"; // ES Modules import
|
|
37
|
+
* // const { LambdaCoreClient, UpdateNetworkConnectorCommand } = 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 = { // UpdateNetworkConnectorRequest
|
|
42
|
+
* Identifier: "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
|
+
* };
|
|
60
|
+
* const command = new UpdateNetworkConnectorCommand(input);
|
|
61
|
+
* const response = await client.send(command);
|
|
62
|
+
* // { // UpdateNetworkConnectorResponse
|
|
63
|
+
* // Arn: "STRING_VALUE", // required
|
|
64
|
+
* // Name: "STRING_VALUE", // required
|
|
65
|
+
* // Id: "STRING_VALUE", // required
|
|
66
|
+
* // OperatorRole: "STRING_VALUE",
|
|
67
|
+
* // Configuration: { // NetworkConnectorConfiguration Union: only one key present
|
|
68
|
+
* // VpcEgressConfiguration: { // NetworkConnectorVpcEgressConfiguration
|
|
69
|
+
* // SubnetIds: [ // NetworkConnectorSubnetIds
|
|
70
|
+
* // "STRING_VALUE",
|
|
71
|
+
* // ],
|
|
72
|
+
* // SecurityGroupIds: [ // NetworkConnectorSecurityGroupIds
|
|
73
|
+
* // "STRING_VALUE",
|
|
74
|
+
* // ],
|
|
75
|
+
* // NetworkProtocol: "IPv4" || "DualStack",
|
|
76
|
+
* // AssociatedComputeResourceTypes: [ // AssociatedComputeResourceTypesList
|
|
77
|
+
* // "MicroVm",
|
|
78
|
+
* // ],
|
|
79
|
+
* // },
|
|
80
|
+
* // },
|
|
81
|
+
* // State: "PENDING" || "ACTIVE" || "INACTIVE" || "FAILED" || "DELETING" || "DELETE_FAILED",
|
|
82
|
+
* // LastUpdateStatus: "Successful" || "Failed" || "InProgress",
|
|
83
|
+
* // LastUpdateStatusReason: "STRING_VALUE",
|
|
84
|
+
* // LastModified: new Date("TIMESTAMP"),
|
|
85
|
+
* // };
|
|
86
|
+
*
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* @param UpdateNetworkConnectorCommandInput - {@link UpdateNetworkConnectorCommandInput}
|
|
90
|
+
* @returns {@link UpdateNetworkConnectorCommandOutput}
|
|
91
|
+
* @see {@link UpdateNetworkConnectorCommandInput} for command's `input` shape.
|
|
92
|
+
* @see {@link UpdateNetworkConnectorCommandOutput} 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 ResourceConflictException} (client fault)
|
|
99
|
+
* <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>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
102
|
+
* <p>The specified network connector does not exist. Verify the identifier (ID, name, or ARN) and Region.</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 UpdateNetworkConnectorCommand extends UpdateNetworkConnectorCommand_base {
|
|
117
|
+
/** @internal type navigation helper, not in runtime. */
|
|
118
|
+
protected static __types: {
|
|
119
|
+
api: {
|
|
120
|
+
input: UpdateNetworkConnectorRequest;
|
|
121
|
+
output: UpdateNetworkConnectorResponse;
|
|
122
|
+
};
|
|
123
|
+
sdk: {
|
|
124
|
+
input: UpdateNetworkConnectorCommandInput;
|
|
125
|
+
output: UpdateNetworkConnectorCommandOutput;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ClientInputEndpointParameters {
|
|
6
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
7
|
+
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
8
|
+
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
9
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
|
|
15
|
+
defaultSigningName: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
export declare const commonParams: {
|
|
25
|
+
readonly UseFIPS: {
|
|
26
|
+
readonly type: "builtInParams";
|
|
27
|
+
readonly name: "useFipsEndpoint";
|
|
28
|
+
};
|
|
29
|
+
readonly Endpoint: {
|
|
30
|
+
readonly type: "builtInParams";
|
|
31
|
+
readonly name: "endpoint";
|
|
32
|
+
};
|
|
33
|
+
readonly Region: {
|
|
34
|
+
readonly type: "builtInParams";
|
|
35
|
+
readonly name: "region";
|
|
36
|
+
};
|
|
37
|
+
readonly UseDualStack: {
|
|
38
|
+
readonly type: "builtInParams";
|
|
39
|
+
readonly name: "useDualstackEndpoint";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
46
|
+
Region?: string | undefined;
|
|
47
|
+
UseDualStack?: boolean | undefined;
|
|
48
|
+
UseFIPS?: boolean | undefined;
|
|
49
|
+
Endpoint?: string | undefined;
|
|
50
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EndpointV2, Logger } from "@smithy/types";
|
|
2
|
+
import type { EndpointParameters } from "./EndpointParameters";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
|
|
7
|
+
logger?: Logger;
|
|
8
|
+
}) => EndpointV2;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import type { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
|
|
3
|
+
import type { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export interface LambdaCoreExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <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>
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
export * from "./LambdaCoreClient";
|
|
7
|
+
export * from "./LambdaCore";
|
|
8
|
+
export type { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
9
|
+
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
10
|
+
export type { LambdaCoreExtensionConfiguration } from "./extensionConfiguration";
|
|
11
|
+
export * from "./commands";
|
|
12
|
+
export * from "./schemas/schemas_0";
|
|
13
|
+
export * from "./pagination";
|
|
14
|
+
export * from "./models/enums";
|
|
15
|
+
export * from "./models/errors";
|
|
16
|
+
export * from "./models/models_0";
|
|
17
|
+
export { LambdaCoreServiceException } from "./models/LambdaCoreServiceException";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/core/client";
|
|
2
|
+
export type { __ServiceExceptionOptions };
|
|
3
|
+
export { __ServiceException };
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*
|
|
7
|
+
* Base exception class for all service exceptions from LambdaCore service.
|
|
8
|
+
*/
|
|
9
|
+
export declare class LambdaCoreServiceException extends __ServiceException {
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(options: __ServiceExceptionOptions);
|
|
14
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const ComputeResourceType: {
|
|
6
|
+
/**
|
|
7
|
+
* MicroVm compute resource type
|
|
8
|
+
*/
|
|
9
|
+
readonly MicroVm: "MicroVm";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export type ComputeResourceType = (typeof ComputeResourceType)[keyof typeof ComputeResourceType];
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
* @enum
|
|
18
|
+
*/
|
|
19
|
+
export declare const NetworkProtocol: {
|
|
20
|
+
/**
|
|
21
|
+
* DualStack
|
|
22
|
+
*/
|
|
23
|
+
readonly DualStack: "DualStack";
|
|
24
|
+
/**
|
|
25
|
+
* IPv4
|
|
26
|
+
*/
|
|
27
|
+
readonly IPv4: "IPv4";
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export type NetworkProtocol = (typeof NetworkProtocol)[keyof typeof NetworkProtocol];
|
|
33
|
+
/**
|
|
34
|
+
* @public
|
|
35
|
+
* @enum
|
|
36
|
+
*/
|
|
37
|
+
export declare const NetworkConnectorState: {
|
|
38
|
+
/**
|
|
39
|
+
* Active and ready for use
|
|
40
|
+
*/
|
|
41
|
+
readonly ACTIVE: "ACTIVE";
|
|
42
|
+
/**
|
|
43
|
+
* Deletion failed
|
|
44
|
+
*/
|
|
45
|
+
readonly DELETE_FAILED: "DELETE_FAILED";
|
|
46
|
+
/**
|
|
47
|
+
* Being deleted, cleaning up resources
|
|
48
|
+
*/
|
|
49
|
+
readonly DELETING: "DELETING";
|
|
50
|
+
/**
|
|
51
|
+
* Creation or update failed
|
|
52
|
+
*/
|
|
53
|
+
readonly FAILED: "FAILED";
|
|
54
|
+
/**
|
|
55
|
+
* Temporarily inactive
|
|
56
|
+
*/
|
|
57
|
+
readonly INACTIVE: "INACTIVE";
|
|
58
|
+
/**
|
|
59
|
+
* Being created, resources provisioning
|
|
60
|
+
*/
|
|
61
|
+
readonly PENDING: "PENDING";
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
export type NetworkConnectorState = (typeof NetworkConnectorState)[keyof typeof NetworkConnectorState];
|
|
67
|
+
/**
|
|
68
|
+
* @public
|
|
69
|
+
* @enum
|
|
70
|
+
*/
|
|
71
|
+
export declare const ThrottleReason: {
|
|
72
|
+
readonly CallerRateLimitExceeded: "CallerRateLimitExceeded";
|
|
73
|
+
readonly ConcurrentInvocationLimitExceeded: "ConcurrentInvocationLimitExceeded";
|
|
74
|
+
readonly ConcurrentSnapshotCreateLimitExceeded: "ConcurrentSnapshotCreateLimitExceeded";
|
|
75
|
+
readonly FunctionInvocationRateLimitExceeded: "FunctionInvocationRateLimitExceeded";
|
|
76
|
+
readonly ReservedFunctionConcurrentInvocationLimitExceeded: "ReservedFunctionConcurrentInvocationLimitExceeded";
|
|
77
|
+
readonly ReservedFunctionInvocationRateLimitExceeded: "ReservedFunctionInvocationRateLimitExceeded";
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
export type ThrottleReason = (typeof ThrottleReason)[keyof typeof ThrottleReason];
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
* @enum
|
|
86
|
+
*/
|
|
87
|
+
export declare const NetworkConnectorLastUpdateStatus: {
|
|
88
|
+
readonly Failed: "Failed";
|
|
89
|
+
readonly InProgress: "InProgress";
|
|
90
|
+
readonly Successful: "Successful";
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export type NetworkConnectorLastUpdateStatus = (typeof NetworkConnectorLastUpdateStatus)[keyof typeof NetworkConnectorLastUpdateStatus];
|
|
96
|
+
/**
|
|
97
|
+
* @public
|
|
98
|
+
* @enum
|
|
99
|
+
*/
|
|
100
|
+
export declare const NetworkConnectorLastUpdateStatusReasonCode: {
|
|
101
|
+
readonly DisallowedByVpcEncryptionControl: "DisallowedByVpcEncryptionControl";
|
|
102
|
+
readonly Ec2RequestLimitExceeded: "Ec2RequestLimitExceeded";
|
|
103
|
+
readonly InsufficientRolePermissions: "InsufficientRolePermissions";
|
|
104
|
+
readonly InternalError: "InternalError";
|
|
105
|
+
readonly InvalidSecurityGroup: "InvalidSecurityGroup";
|
|
106
|
+
readonly InvalidSubnet: "InvalidSubnet";
|
|
107
|
+
readonly SubnetOutOfIPAddresses: "SubnetOutOfIPAddresses";
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
export type NetworkConnectorLastUpdateStatusReasonCode = (typeof NetworkConnectorLastUpdateStatusReasonCode)[keyof typeof NetworkConnectorLastUpdateStatusReasonCode];
|
|
113
|
+
/**
|
|
114
|
+
* @public
|
|
115
|
+
* @enum
|
|
116
|
+
*/
|
|
117
|
+
export declare const NetworkConnectorStateReasonCode: {
|
|
118
|
+
readonly DisallowedByVpcEncryptionControl: "DisallowedByVpcEncryptionControl";
|
|
119
|
+
readonly Ec2RequestLimitExceeded: "Ec2RequestLimitExceeded";
|
|
120
|
+
readonly InsufficientRolePermissions: "InsufficientRolePermissions";
|
|
121
|
+
readonly InternalError: "InternalError";
|
|
122
|
+
readonly InvalidSecurityGroup: "InvalidSecurityGroup";
|
|
123
|
+
readonly InvalidSubnet: "InvalidSubnet";
|
|
124
|
+
readonly SubnetOutOfIPAddresses: "SubnetOutOfIPAddresses";
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
export type NetworkConnectorStateReasonCode = (typeof NetworkConnectorStateReasonCode)[keyof typeof NetworkConnectorStateReasonCode];
|
|
130
|
+
/**
|
|
131
|
+
* @public
|
|
132
|
+
* @enum
|
|
133
|
+
*/
|
|
134
|
+
export declare const NetworkConnectorType: {
|
|
135
|
+
/**
|
|
136
|
+
* VPC egress connectivity
|
|
137
|
+
*/
|
|
138
|
+
readonly VPC_EGRESS: "VPC_EGRESS";
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* @public
|
|
142
|
+
*/
|
|
143
|
+
export type NetworkConnectorType = (typeof NetworkConnectorType)[keyof typeof NetworkConnectorType];
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
|
|
2
|
+
import type { ThrottleReason } from "./enums";
|
|
3
|
+
import { LambdaCoreServiceException as __BaseException } from "./LambdaCoreServiceException";
|
|
4
|
+
/**
|
|
5
|
+
* <p>One of the parameters in the request is not valid. Check the error message for details about which parameter failed validation.</p>
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class InvalidParameterValueException extends __BaseException {
|
|
9
|
+
readonly name: "InvalidParameterValueException";
|
|
10
|
+
readonly $fault: "client";
|
|
11
|
+
/**
|
|
12
|
+
* <p>The exception type.</p>
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
Type?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* <p>The account has reached the maximum number of network connectors allowed. Delete unused connectors or request a limit increase through Service Quotas.</p>
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export declare class NetworkConnectorLimitExceededException extends __BaseException {
|
|
26
|
+
readonly name: "NetworkConnectorLimitExceededException";
|
|
27
|
+
readonly $fault: "client";
|
|
28
|
+
/**
|
|
29
|
+
* <p>The exception type.</p>
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
Type?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
constructor(opts: __ExceptionOptionType<NetworkConnectorLimitExceededException, __BaseException>);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* <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>
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export declare class ResourceConflictException extends __BaseException {
|
|
43
|
+
readonly name: "ResourceConflictException";
|
|
44
|
+
readonly $fault: "client";
|
|
45
|
+
/**
|
|
46
|
+
* <p>The exception type.</p>
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
Type?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
constructor(opts: __ExceptionOptionType<ResourceConflictException, __BaseException>);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* <p>An internal service error occurred. Retry the request with exponential backoff.</p>
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
export declare class ServiceException extends __BaseException {
|
|
60
|
+
readonly name: "ServiceException";
|
|
61
|
+
readonly $fault: "server";
|
|
62
|
+
/**
|
|
63
|
+
* <p>The exception type.</p>
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
Type?: string | undefined;
|
|
67
|
+
Message?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* <p>The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.</p>
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
export declare class TooManyRequestsException extends __BaseException {
|
|
78
|
+
readonly name: "TooManyRequestsException";
|
|
79
|
+
readonly $fault: "client";
|
|
80
|
+
/**
|
|
81
|
+
* <p>The number of seconds to wait before retrying the request.</p>
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
retryAfterSeconds?: string | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* <p>The exception type.</p>
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
Type?: string | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* <p>The reason for the throttling.</p>
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
Reason?: ThrottleReason | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* <p>The specified network connector does not exist. Verify the identifier (ID, name, or ARN) and Region.</p>
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
105
|
+
readonly name: "ResourceNotFoundException";
|
|
106
|
+
readonly $fault: "client";
|
|
107
|
+
/**
|
|
108
|
+
* <p>The exception type.</p>
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
Type?: string | undefined;
|
|
112
|
+
Message?: string | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
117
|
+
}
|