@aws-sdk/client-lambda 3.36.0 → 3.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/dist-cjs/Lambda.js +0 -9
- package/dist-cjs/LambdaClient.js +0 -14
- package/dist-cjs/commands/AddLayerVersionPermissionCommand.js +0 -29
- package/dist-cjs/commands/AddPermissionCommand.js +0 -36
- package/dist-cjs/commands/CreateAliasCommand.js +0 -29
- package/dist-cjs/commands/CreateCodeSigningConfigCommand.js +0 -26
- package/dist-cjs/commands/CreateEventSourceMappingCommand.js +0 -88
- package/dist-cjs/commands/CreateFunctionCommand.js +0 -70
- package/dist-cjs/commands/DeleteAliasCommand.js +0 -24
- package/dist-cjs/commands/DeleteCodeSigningConfigCommand.js +0 -25
- package/dist-cjs/commands/DeleteEventSourceMappingCommand.js +0 -27
- package/dist-cjs/commands/DeleteFunctionCodeSigningConfigCommand.js +0 -24
- package/dist-cjs/commands/DeleteFunctionCommand.js +0 -29
- package/dist-cjs/commands/DeleteFunctionConcurrencyCommand.js +0 -24
- package/dist-cjs/commands/DeleteFunctionEventInvokeConfigCommand.js +0 -25
- package/dist-cjs/commands/DeleteLayerVersionCommand.js +0 -26
- package/dist-cjs/commands/DeleteProvisionedConcurrencyConfigCommand.js +0 -24
- package/dist-cjs/commands/GetAccountSettingsCommand.js +0 -24
- package/dist-cjs/commands/GetAliasCommand.js +0 -24
- package/dist-cjs/commands/GetCodeSigningConfigCommand.js +0 -24
- package/dist-cjs/commands/GetEventSourceMappingCommand.js +0 -25
- package/dist-cjs/commands/GetFunctionCodeSigningConfigCommand.js +0 -24
- package/dist-cjs/commands/GetFunctionCommand.js +0 -26
- package/dist-cjs/commands/GetFunctionConcurrencyCommand.js +0 -25
- package/dist-cjs/commands/GetFunctionConfigurationCommand.js +0 -26
- package/dist-cjs/commands/GetFunctionEventInvokeConfigCommand.js +0 -25
- package/dist-cjs/commands/GetLayerVersionByArnCommand.js +0 -26
- package/dist-cjs/commands/GetLayerVersionCommand.js +0 -26
- package/dist-cjs/commands/GetLayerVersionPolicyCommand.js +0 -25
- package/dist-cjs/commands/GetPolicyCommand.js +0 -24
- package/dist-cjs/commands/GetProvisionedConcurrencyConfigCommand.js +0 -24
- package/dist-cjs/commands/InvokeAsyncCommand.js +0 -29
- package/dist-cjs/commands/InvokeCommand.js +0 -50
- package/dist-cjs/commands/ListAliasesCommand.js +0 -25
- package/dist-cjs/commands/ListCodeSigningConfigsCommand.js +0 -26
- package/dist-cjs/commands/ListEventSourceMappingsCommand.js +0 -25
- package/dist-cjs/commands/ListFunctionEventInvokeConfigsCommand.js +0 -25
- package/dist-cjs/commands/ListFunctionsByCodeSigningConfigCommand.js +0 -25
- package/dist-cjs/commands/ListFunctionsCommand.js +0 -32
- package/dist-cjs/commands/ListLayerVersionsCommand.js +0 -27
- package/dist-cjs/commands/ListLayersCommand.js +0 -29
- package/dist-cjs/commands/ListProvisionedConcurrencyConfigsCommand.js +0 -24
- package/dist-cjs/commands/ListTagsCommand.js +0 -25
- package/dist-cjs/commands/ListVersionsByFunctionCommand.js +0 -25
- package/dist-cjs/commands/PublishLayerVersionCommand.js +0 -27
- package/dist-cjs/commands/PublishVersionCommand.js +0 -32
- package/dist-cjs/commands/PutFunctionCodeSigningConfigCommand.js +0 -25
- package/dist-cjs/commands/PutFunctionConcurrencyCommand.js +0 -32
- package/dist-cjs/commands/PutFunctionEventInvokeConfigCommand.js +0 -34
- package/dist-cjs/commands/PutProvisionedConcurrencyConfigCommand.js +0 -24
- package/dist-cjs/commands/RemoveLayerVersionPermissionCommand.js +0 -26
- package/dist-cjs/commands/RemovePermissionCommand.js +0 -25
- package/dist-cjs/commands/TagResourceCommand.js +0 -24
- package/dist-cjs/commands/UntagResourceCommand.js +0 -24
- package/dist-cjs/commands/UpdateAliasCommand.js +0 -24
- package/dist-cjs/commands/UpdateCodeSigningConfigCommand.js +0 -25
- package/dist-cjs/commands/UpdateEventSourceMappingCommand.js +0 -49
- package/dist-cjs/commands/UpdateFunctionCodeCommand.js +0 -32
- package/dist-cjs/commands/UpdateFunctionConfigurationCommand.js +0 -38
- package/dist-cjs/commands/UpdateFunctionEventInvokeConfigCommand.js +0 -25
- package/dist-cjs/commands/index.js +61 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +5 -74
- package/dist-cjs/models/models_0.js +0 -474
- package/dist-cjs/pagination/ListAliasesPaginator.js +0 -10
- package/dist-cjs/pagination/ListCodeSigningConfigsPaginator.js +0 -10
- package/dist-cjs/pagination/ListEventSourceMappingsPaginator.js +0 -10
- package/dist-cjs/pagination/ListFunctionEventInvokeConfigsPaginator.js +0 -10
- package/dist-cjs/pagination/ListFunctionsByCodeSigningConfigPaginator.js +0 -10
- package/dist-cjs/pagination/ListFunctionsPaginator.js +0 -10
- package/dist-cjs/pagination/ListLayerVersionsPaginator.js +0 -10
- package/dist-cjs/pagination/ListLayersPaginator.js +0 -10
- package/dist-cjs/pagination/ListProvisionedConcurrencyConfigsPaginator.js +0 -10
- package/dist-cjs/pagination/ListVersionsByFunctionPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +14 -0
- package/dist-cjs/protocols/Aws_restJson1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-cjs/waiters/index.js +6 -0
- package/dist-cjs/waiters/waitForFunctionActive.js +0 -9
- package/dist-cjs/waiters/waitForFunctionExists.js +0 -9
- package/dist-cjs/waiters/waitForFunctionUpdated.js +0 -9
- package/dist-es/commands/index.js +58 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +5 -74
- package/dist-es/pagination/index.js +11 -0
- package/dist-es/waiters/index.js +3 -0
- package/dist-types/commands/index.d.ts +58 -0
- package/dist-types/index.d.ts +5 -74
- package/dist-types/pagination/index.d.ts +11 -0
- package/dist-types/ts3.4/Lambda.d.ts +59 -478
- package/dist-types/ts3.4/LambdaClient.d.ts +24 -95
- package/dist-types/ts3.4/commands/AddLayerVersionPermissionCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/AddPermissionCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/CreateCodeSigningConfigCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/CreateEventSourceMappingCommand.d.ts +2 -84
- package/dist-types/ts3.4/commands/CreateFunctionCommand.d.ts +2 -66
- package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteCodeSigningConfigCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteEventSourceMappingCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteFunctionCodeSigningConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DeleteFunctionConcurrencyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteFunctionEventInvokeConfigCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteLayerVersionCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteProvisionedConcurrencyConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetAccountSettingsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetAliasCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetCodeSigningConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetEventSourceMappingCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetFunctionCodeSigningConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetFunctionCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetFunctionConcurrencyCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetFunctionConfigurationCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetFunctionEventInvokeConfigCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetLayerVersionByArnCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetLayerVersionCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetLayerVersionPolicyCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetProvisionedConcurrencyConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/InvokeAsyncCommand.d.ts +5 -32
- package/dist-types/ts3.4/commands/InvokeCommand.d.ts +2 -46
- package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListCodeSigningConfigsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ListEventSourceMappingsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListFunctionEventInvokeConfigsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListFunctionsByCodeSigningConfigCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListFunctionsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListLayerVersionsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ListLayersCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListProvisionedConcurrencyConfigsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListVersionsByFunctionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/PublishLayerVersionCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/PublishVersionCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/PutFunctionCodeSigningConfigCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/PutFunctionConcurrencyCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/PutFunctionEventInvokeConfigCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/PutProvisionedConcurrencyConfigCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/RemoveLayerVersionPermissionCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/RemovePermissionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateCodeSigningConfigCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/UpdateEventSourceMappingCommand.d.ts +2 -45
- package/dist-types/ts3.4/commands/UpdateFunctionCodeCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/UpdateFunctionConfigurationCommand.d.ts +2 -34
- package/dist-types/ts3.4/commands/UpdateFunctionEventInvokeConfigCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/index.d.ts +58 -0
- package/dist-types/ts3.4/index.d.ts +5 -74
- package/dist-types/ts3.4/models/models_0.d.ts +699 -3177
- package/dist-types/ts3.4/pagination/index.d.ts +11 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +3 -0
- package/dist-types/ts3.4/waiters/waitForFunctionActive.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForFunctionExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForFunctionUpdated.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +3 -0
- package/package.json +33 -33
|
@@ -67,130 +67,59 @@ import { UpdateFunctionEventInvokeConfigCommandInput, UpdateFunctionEventInvokeC
|
|
|
67
67
|
export declare type ServiceInputTypes = AddLayerVersionPermissionCommandInput | AddPermissionCommandInput | CreateAliasCommandInput | CreateCodeSigningConfigCommandInput | CreateEventSourceMappingCommandInput | CreateFunctionCommandInput | DeleteAliasCommandInput | DeleteCodeSigningConfigCommandInput | DeleteEventSourceMappingCommandInput | DeleteFunctionCodeSigningConfigCommandInput | DeleteFunctionCommandInput | DeleteFunctionConcurrencyCommandInput | DeleteFunctionEventInvokeConfigCommandInput | DeleteLayerVersionCommandInput | DeleteProvisionedConcurrencyConfigCommandInput | GetAccountSettingsCommandInput | GetAliasCommandInput | GetCodeSigningConfigCommandInput | GetEventSourceMappingCommandInput | GetFunctionCodeSigningConfigCommandInput | GetFunctionCommandInput | GetFunctionConcurrencyCommandInput | GetFunctionConfigurationCommandInput | GetFunctionEventInvokeConfigCommandInput | GetLayerVersionByArnCommandInput | GetLayerVersionCommandInput | GetLayerVersionPolicyCommandInput | GetPolicyCommandInput | GetProvisionedConcurrencyConfigCommandInput | InvokeAsyncCommandInput | InvokeCommandInput | ListAliasesCommandInput | ListCodeSigningConfigsCommandInput | ListEventSourceMappingsCommandInput | ListFunctionEventInvokeConfigsCommandInput | ListFunctionsByCodeSigningConfigCommandInput | ListFunctionsCommandInput | ListLayerVersionsCommandInput | ListLayersCommandInput | ListProvisionedConcurrencyConfigsCommandInput | ListTagsCommandInput | ListVersionsByFunctionCommandInput | PublishLayerVersionCommandInput | PublishVersionCommandInput | PutFunctionCodeSigningConfigCommandInput | PutFunctionConcurrencyCommandInput | PutFunctionEventInvokeConfigCommandInput | PutProvisionedConcurrencyConfigCommandInput | RemoveLayerVersionPermissionCommandInput | RemovePermissionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAliasCommandInput | UpdateCodeSigningConfigCommandInput | UpdateEventSourceMappingCommandInput | UpdateFunctionCodeCommandInput | UpdateFunctionConfigurationCommandInput | UpdateFunctionEventInvokeConfigCommandInput;
|
|
68
68
|
export declare type ServiceOutputTypes = AddLayerVersionPermissionCommandOutput | AddPermissionCommandOutput | CreateAliasCommandOutput | CreateCodeSigningConfigCommandOutput | CreateEventSourceMappingCommandOutput | CreateFunctionCommandOutput | DeleteAliasCommandOutput | DeleteCodeSigningConfigCommandOutput | DeleteEventSourceMappingCommandOutput | DeleteFunctionCodeSigningConfigCommandOutput | DeleteFunctionCommandOutput | DeleteFunctionConcurrencyCommandOutput | DeleteFunctionEventInvokeConfigCommandOutput | DeleteLayerVersionCommandOutput | DeleteProvisionedConcurrencyConfigCommandOutput | GetAccountSettingsCommandOutput | GetAliasCommandOutput | GetCodeSigningConfigCommandOutput | GetEventSourceMappingCommandOutput | GetFunctionCodeSigningConfigCommandOutput | GetFunctionCommandOutput | GetFunctionConcurrencyCommandOutput | GetFunctionConfigurationCommandOutput | GetFunctionEventInvokeConfigCommandOutput | GetLayerVersionByArnCommandOutput | GetLayerVersionCommandOutput | GetLayerVersionPolicyCommandOutput | GetPolicyCommandOutput | GetProvisionedConcurrencyConfigCommandOutput | InvokeAsyncCommandOutput | InvokeCommandOutput | ListAliasesCommandOutput | ListCodeSigningConfigsCommandOutput | ListEventSourceMappingsCommandOutput | ListFunctionEventInvokeConfigsCommandOutput | ListFunctionsByCodeSigningConfigCommandOutput | ListFunctionsCommandOutput | ListLayerVersionsCommandOutput | ListLayersCommandOutput | ListProvisionedConcurrencyConfigsCommandOutput | ListTagsCommandOutput | ListVersionsByFunctionCommandOutput | PublishLayerVersionCommandOutput | PublishVersionCommandOutput | PutFunctionCodeSigningConfigCommandOutput | PutFunctionConcurrencyCommandOutput | PutFunctionEventInvokeConfigCommandOutput | PutProvisionedConcurrencyConfigCommandOutput | RemoveLayerVersionPermissionCommandOutput | RemovePermissionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAliasCommandOutput | UpdateCodeSigningConfigCommandOutput | UpdateEventSourceMappingCommandOutput | UpdateFunctionCodeCommandOutput | UpdateFunctionConfigurationCommandOutput | UpdateFunctionEventInvokeConfigCommandOutput;
|
|
69
69
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
70
|
-
|
|
71
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
72
|
-
*/
|
|
70
|
+
|
|
73
71
|
requestHandler?: __HttpHandler;
|
|
74
|
-
|
|
75
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
76
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
77
|
-
* @internal
|
|
78
|
-
*/
|
|
72
|
+
|
|
79
73
|
sha256?: __HashConstructor;
|
|
80
|
-
|
|
81
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
74
|
+
|
|
84
75
|
urlParser?: __UrlParser;
|
|
85
|
-
|
|
86
|
-
* A function that can calculate the length of a request body.
|
|
87
|
-
* @internal
|
|
88
|
-
*/
|
|
76
|
+
|
|
89
77
|
bodyLengthChecker?: (body: any) => number | undefined;
|
|
90
|
-
|
|
91
|
-
* A function that converts a stream into an array of bytes.
|
|
92
|
-
* @internal
|
|
93
|
-
*/
|
|
78
|
+
|
|
94
79
|
streamCollector?: __StreamCollector;
|
|
95
|
-
|
|
96
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
97
|
-
* @internal
|
|
98
|
-
*/
|
|
80
|
+
|
|
99
81
|
base64Decoder?: __Decoder;
|
|
100
|
-
|
|
101
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
102
|
-
* @internal
|
|
103
|
-
*/
|
|
82
|
+
|
|
104
83
|
base64Encoder?: __Encoder;
|
|
105
|
-
|
|
106
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
107
|
-
* @internal
|
|
108
|
-
*/
|
|
84
|
+
|
|
109
85
|
utf8Decoder?: __Decoder;
|
|
110
|
-
|
|
111
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
112
|
-
* @internal
|
|
113
|
-
*/
|
|
86
|
+
|
|
114
87
|
utf8Encoder?: __Encoder;
|
|
115
|
-
|
|
116
|
-
* The runtime environment.
|
|
117
|
-
* @internal
|
|
118
|
-
*/
|
|
88
|
+
|
|
119
89
|
runtime?: string;
|
|
120
|
-
|
|
121
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
122
|
-
* trait of an operation.
|
|
123
|
-
*/
|
|
90
|
+
|
|
124
91
|
disableHostPrefix?: boolean;
|
|
125
|
-
|
|
126
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
127
|
-
*/
|
|
92
|
+
|
|
128
93
|
maxAttempts?: number | __Provider<number>;
|
|
129
|
-
|
|
130
|
-
* Specifies which retry algorithm to use.
|
|
131
|
-
*/
|
|
94
|
+
|
|
132
95
|
retryMode?: string | __Provider<string>;
|
|
133
|
-
|
|
134
|
-
* Optional logger for logging debug/info/warn/error.
|
|
135
|
-
*/
|
|
96
|
+
|
|
136
97
|
logger?: __Logger;
|
|
137
|
-
|
|
138
|
-
* Unique service identifier.
|
|
139
|
-
* @internal
|
|
140
|
-
*/
|
|
98
|
+
|
|
141
99
|
serviceId?: string;
|
|
142
|
-
|
|
143
|
-
* The AWS region to which this client will send requests
|
|
144
|
-
*/
|
|
100
|
+
|
|
145
101
|
region?: string | __Provider<string>;
|
|
146
|
-
|
|
147
|
-
* Default credentials provider; Not available in browser runtime.
|
|
148
|
-
* @internal
|
|
149
|
-
*/
|
|
102
|
+
|
|
150
103
|
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
151
|
-
|
|
152
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
153
|
-
* @internal
|
|
154
|
-
*/
|
|
104
|
+
|
|
155
105
|
regionInfoProvider?: RegionInfoProvider;
|
|
156
|
-
|
|
157
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
158
|
-
* @internal
|
|
159
|
-
*/
|
|
106
|
+
|
|
160
107
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
161
108
|
}
|
|
162
109
|
declare type LambdaClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
163
|
-
|
|
164
|
-
* The configuration interface of LambdaClient class constructor that set the region, credentials and other options.
|
|
165
|
-
*/
|
|
110
|
+
|
|
166
111
|
export interface LambdaClientConfig extends LambdaClientConfigType {
|
|
167
112
|
}
|
|
168
113
|
declare type LambdaClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
169
|
-
|
|
170
|
-
* The resolved configuration interface of LambdaClient class. This is resolved and normalized from the {@link LambdaClientConfig | constructor configuration interface}.
|
|
171
|
-
*/
|
|
114
|
+
|
|
172
115
|
export interface LambdaClientResolvedConfig extends LambdaClientResolvedConfigType {
|
|
173
116
|
}
|
|
174
|
-
|
|
175
|
-
* <fullname>Lambda</fullname>
|
|
176
|
-
* <p>
|
|
177
|
-
* <b>Overview</b>
|
|
178
|
-
* </p>
|
|
179
|
-
* <p>This is the <i>Lambda API Reference</i>. The Lambda Developer Guide provides additional
|
|
180
|
-
* information. For the service overview, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/welcome.html">What is
|
|
181
|
-
* Lambda</a>, and for information about how the service works, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html">Lambda: How it Works</a> in the <b>Lambda Developer Guide</b>.</p>
|
|
182
|
-
*/
|
|
117
|
+
|
|
183
118
|
export declare class LambdaClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, LambdaClientResolvedConfig> {
|
|
184
|
-
|
|
185
|
-
* The resolved configuration of LambdaClient class. This is resolved and normalized from the {@link LambdaClientConfig | constructor configuration interface}.
|
|
186
|
-
*/
|
|
119
|
+
|
|
187
120
|
readonly config: LambdaClientResolvedConfig;
|
|
188
121
|
constructor(configuration: LambdaClientConfig);
|
|
189
|
-
|
|
190
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
191
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
192
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
193
|
-
*/
|
|
122
|
+
|
|
194
123
|
destroy(): void;
|
|
195
124
|
}
|
|
196
125
|
export {};
|
|
@@ -6,34 +6,11 @@ export interface AddLayerVersionPermissionCommandInput extends AddLayerVersionPe
|
|
|
6
6
|
}
|
|
7
7
|
export interface AddLayerVersionPermissionCommandOutput extends AddLayerVersionPermissionResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Adds permissions to the resource-based policy of a version of an <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html">Lambda
|
|
11
|
-
* layer</a>. Use this action to grant layer
|
|
12
|
-
* usage permission to other accounts. You can grant permission to a single account, all accounts in an organization,
|
|
13
|
-
* or all Amazon Web Services accounts. </p>
|
|
14
|
-
* <p>To revoke permission, call <a>RemoveLayerVersionPermission</a> with the statement ID that you
|
|
15
|
-
* specified when you added it.</p>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { LambdaClient, AddLayerVersionPermissionCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
20
|
-
* // const { LambdaClient, AddLayerVersionPermissionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
21
|
-
* const client = new LambdaClient(config);
|
|
22
|
-
* const command = new AddLayerVersionPermissionCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link AddLayerVersionPermissionCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link AddLayerVersionPermissionCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
9
|
+
|
|
31
10
|
export declare class AddLayerVersionPermissionCommand extends $Command<AddLayerVersionPermissionCommandInput, AddLayerVersionPermissionCommandOutput, LambdaClientResolvedConfig> {
|
|
32
11
|
readonly input: AddLayerVersionPermissionCommandInput;
|
|
33
12
|
constructor(input: AddLayerVersionPermissionCommandInput);
|
|
34
|
-
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
13
|
+
|
|
37
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AddLayerVersionPermissionCommandInput, AddLayerVersionPermissionCommandOutput>;
|
|
38
15
|
private serialize;
|
|
39
16
|
private deserialize;
|
|
@@ -6,41 +6,11 @@ export interface AddPermissionCommandInput extends AddPermissionRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface AddPermissionCommandOutput extends AddPermissionResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Grants an Amazon Web Services service or another account permission to use a function. You can apply the policy at the
|
|
11
|
-
* function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier,
|
|
12
|
-
* the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function.
|
|
13
|
-
* Note: Lambda does not support adding policies to version $LATEST.</p>
|
|
14
|
-
*
|
|
15
|
-
* <p>To grant permission to another account, specify the account ID as the <code>Principal</code>. For Amazon Web Services
|
|
16
|
-
* services, the principal is a domain-style identifier defined by the service, like <code>s3.amazonaws.com</code> or
|
|
17
|
-
* <code>sns.amazonaws.com</code>. For Amazon Web Services services, you can also specify the ARN of the associated resource as the
|
|
18
|
-
* <code>SourceArn</code>. If you grant permission to a service principal without specifying the source, other
|
|
19
|
-
* accounts could potentially configure resources in their account to invoke your Lambda function.</p>
|
|
20
|
-
*
|
|
21
|
-
* <p>This action adds a statement to a resource-based permissions policy for the function. For more information
|
|
22
|
-
* about function policies, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">Lambda Function Policies</a>. </p>
|
|
23
|
-
* @example
|
|
24
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
25
|
-
* ```javascript
|
|
26
|
-
* import { LambdaClient, AddPermissionCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
27
|
-
* // const { LambdaClient, AddPermissionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
28
|
-
* const client = new LambdaClient(config);
|
|
29
|
-
* const command = new AddPermissionCommand(input);
|
|
30
|
-
* const response = await client.send(command);
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @see {@link AddPermissionCommandInput} for command's `input` shape.
|
|
34
|
-
* @see {@link AddPermissionCommandOutput} for command's `response` shape.
|
|
35
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
9
|
+
|
|
38
10
|
export declare class AddPermissionCommand extends $Command<AddPermissionCommandInput, AddPermissionCommandOutput, LambdaClientResolvedConfig> {
|
|
39
11
|
readonly input: AddPermissionCommandInput;
|
|
40
12
|
constructor(input: AddPermissionCommandInput);
|
|
41
|
-
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
13
|
+
|
|
44
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AddPermissionCommandInput, AddPermissionCommandOutput>;
|
|
45
15
|
private serialize;
|
|
46
16
|
private deserialize;
|
|
@@ -6,34 +6,11 @@ export interface CreateAliasCommandInput extends CreateAliasRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface CreateAliasCommandOutput extends AliasConfiguration, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Creates an <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">alias</a> for a
|
|
11
|
-
* Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a
|
|
12
|
-
* different version.</p>
|
|
13
|
-
* <p>You can also map an alias to split invocation requests between two versions. Use the
|
|
14
|
-
* <code>RoutingConfig</code> parameter to specify a second version and the percentage of invocation requests that
|
|
15
|
-
* it receives.</p>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { LambdaClient, CreateAliasCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
20
|
-
* // const { LambdaClient, CreateAliasCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
21
|
-
* const client = new LambdaClient(config);
|
|
22
|
-
* const command = new CreateAliasCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link CreateAliasCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link CreateAliasCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
9
|
+
|
|
31
10
|
export declare class CreateAliasCommand extends $Command<CreateAliasCommandInput, CreateAliasCommandOutput, LambdaClientResolvedConfig> {
|
|
32
11
|
readonly input: CreateAliasCommandInput;
|
|
33
12
|
constructor(input: CreateAliasCommandInput);
|
|
34
|
-
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
13
|
+
|
|
37
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAliasCommandInput, CreateAliasCommandOutput>;
|
|
38
15
|
private serialize;
|
|
39
16
|
private deserialize;
|
|
@@ -6,31 +6,11 @@ export interface CreateCodeSigningConfigCommandInput extends CreateCodeSigningCo
|
|
|
6
6
|
}
|
|
7
7
|
export interface CreateCodeSigningConfigCommandOutput extends CreateCodeSigningConfigResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Creates a code signing configuration. A <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html">code signing configuration</a> defines a list of
|
|
11
|
-
* allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment
|
|
12
|
-
* validation checks fail). </p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { LambdaClient, CreateCodeSigningConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
17
|
-
* // const { LambdaClient, CreateCodeSigningConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
18
|
-
* const client = new LambdaClient(config);
|
|
19
|
-
* const command = new CreateCodeSigningConfigCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link CreateCodeSigningConfigCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link CreateCodeSigningConfigCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
9
|
+
|
|
28
10
|
export declare class CreateCodeSigningConfigCommand extends $Command<CreateCodeSigningConfigCommandInput, CreateCodeSigningConfigCommandOutput, LambdaClientResolvedConfig> {
|
|
29
11
|
readonly input: CreateCodeSigningConfigCommandInput;
|
|
30
12
|
constructor(input: CreateCodeSigningConfigCommandInput);
|
|
31
|
-
|
|
32
|
-
* @internal
|
|
33
|
-
*/
|
|
13
|
+
|
|
34
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateCodeSigningConfigCommandInput, CreateCodeSigningConfigCommandOutput>;
|
|
35
15
|
private serialize;
|
|
36
16
|
private deserialize;
|
|
@@ -6,93 +6,11 @@ export interface CreateEventSourceMappingCommandInput extends CreateEventSourceM
|
|
|
6
6
|
}
|
|
7
7
|
export interface CreateEventSourceMappingCommandOutput extends EventSourceMappingConfiguration, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Creates a mapping between an event source and an Lambda function. Lambda reads items from the
|
|
11
|
-
* event source and triggers the function.</p>
|
|
12
|
-
* <p>For details about each event source type, see the following topics. </p>
|
|
13
|
-
* <ul>
|
|
14
|
-
* <li>
|
|
15
|
-
* <p>
|
|
16
|
-
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping">
|
|
17
|
-
* Configuring a Dynamo DB stream as an event source</a>
|
|
18
|
-
* </p>
|
|
19
|
-
* </li>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>
|
|
22
|
-
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping">
|
|
23
|
-
* Configuring a Kinesis stream as an event source</a>
|
|
24
|
-
* </p>
|
|
25
|
-
* </li>
|
|
26
|
-
* <li>
|
|
27
|
-
* <p>
|
|
28
|
-
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource"> Configuring an
|
|
29
|
-
* Amazon SQS queue as an event source</a>
|
|
30
|
-
* </p>
|
|
31
|
-
* </li>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>
|
|
34
|
-
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping">
|
|
35
|
-
* Configuring an MQ broker as an event source</a>
|
|
36
|
-
* </p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>
|
|
40
|
-
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html"> Configuring MSK as an event
|
|
41
|
-
* source</a>
|
|
42
|
-
* </p>
|
|
43
|
-
* </li>
|
|
44
|
-
* <li>
|
|
45
|
-
* <p>
|
|
46
|
-
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html"> Configuring Self-Managed Apache Kafka
|
|
47
|
-
* as an event source</a>
|
|
48
|
-
* </p>
|
|
49
|
-
* </li>
|
|
50
|
-
* </ul>
|
|
51
|
-
*
|
|
52
|
-
* <p>The following error handling options are only available for stream sources (DynamoDB and Kinesis):</p>
|
|
53
|
-
* <ul>
|
|
54
|
-
* <li>
|
|
55
|
-
* <p>
|
|
56
|
-
* <code>BisectBatchOnFunctionError</code> - If the function returns an error, split the batch in two and retry.</p>
|
|
57
|
-
* </li>
|
|
58
|
-
* <li>
|
|
59
|
-
* <p>
|
|
60
|
-
* <code>DestinationConfig</code> - Send discarded records to an Amazon SQS queue or Amazon SNS topic.</p>
|
|
61
|
-
* </li>
|
|
62
|
-
* <li>
|
|
63
|
-
* <p>
|
|
64
|
-
* <code>MaximumRecordAgeInSeconds</code> - Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires</p>
|
|
65
|
-
* </li>
|
|
66
|
-
* <li>
|
|
67
|
-
* <p>
|
|
68
|
-
* <code>MaximumRetryAttempts</code> - Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.</p>
|
|
69
|
-
* </li>
|
|
70
|
-
* <li>
|
|
71
|
-
* <p>
|
|
72
|
-
* <code>ParallelizationFactor</code> - Process multiple batches from each shard concurrently.</p>
|
|
73
|
-
* </li>
|
|
74
|
-
* </ul>
|
|
75
|
-
* @example
|
|
76
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
77
|
-
* ```javascript
|
|
78
|
-
* import { LambdaClient, CreateEventSourceMappingCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
79
|
-
* // const { LambdaClient, CreateEventSourceMappingCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
80
|
-
* const client = new LambdaClient(config);
|
|
81
|
-
* const command = new CreateEventSourceMappingCommand(input);
|
|
82
|
-
* const response = await client.send(command);
|
|
83
|
-
* ```
|
|
84
|
-
*
|
|
85
|
-
* @see {@link CreateEventSourceMappingCommandInput} for command's `input` shape.
|
|
86
|
-
* @see {@link CreateEventSourceMappingCommandOutput} for command's `response` shape.
|
|
87
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
88
|
-
*
|
|
89
|
-
*/
|
|
9
|
+
|
|
90
10
|
export declare class CreateEventSourceMappingCommand extends $Command<CreateEventSourceMappingCommandInput, CreateEventSourceMappingCommandOutput, LambdaClientResolvedConfig> {
|
|
91
11
|
readonly input: CreateEventSourceMappingCommandInput;
|
|
92
12
|
constructor(input: CreateEventSourceMappingCommandInput);
|
|
93
|
-
|
|
94
|
-
* @internal
|
|
95
|
-
*/
|
|
13
|
+
|
|
96
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateEventSourceMappingCommandInput, CreateEventSourceMappingCommandOutput>;
|
|
97
15
|
private serialize;
|
|
98
16
|
private deserialize;
|
|
@@ -6,75 +6,11 @@ export interface CreateFunctionCommandInput extends CreateFunctionRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface CreateFunctionCommandOutput extends FunctionConfiguration, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Creates a Lambda function. To create a function, you need a <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html">deployment package</a> and an <a href="https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role">execution role</a>. The
|
|
11
|
-
* deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services
|
|
12
|
-
* services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.</p>
|
|
13
|
-
*
|
|
14
|
-
* <p>You set the package type to <code>Image</code> if the deployment package is a
|
|
15
|
-
* <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html">container image</a>. For a container image,
|
|
16
|
-
* the code property must include the URI of a container image in the Amazon ECR registry.
|
|
17
|
-
* You do not need to specify the handler and runtime properties. </p>
|
|
18
|
-
*
|
|
19
|
-
* <p>You set the package type to <code>Zip</code> if the deployment package is a <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip">.zip file
|
|
20
|
-
* archive</a>. For a .zip file archive, the code property specifies the location of the
|
|
21
|
-
* .zip file. You must also specify the handler and runtime properties. The code in the
|
|
22
|
-
* deployment package must be compatible with the target instruction set architecture of the
|
|
23
|
-
* function (<code>x86-64</code> or <code>arm64</code>). If you do not specify the architecture, the default value is
|
|
24
|
-
* <code>x86-64</code>.</p>
|
|
25
|
-
*
|
|
26
|
-
* <p>When you create a function, Lambda provisions an instance of the function and its supporting resources. If
|
|
27
|
-
* your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or
|
|
28
|
-
* modify the function. The <code>State</code>, <code>StateReason</code>, and <code>StateReasonCode</code> fields in
|
|
29
|
-
* the response from <a>GetFunctionConfiguration</a> indicate when the function is ready to invoke. For
|
|
30
|
-
* more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html">Function
|
|
31
|
-
* States</a>.</p>
|
|
32
|
-
*
|
|
33
|
-
* <p>A function has an unpublished version, and can have published versions and aliases. The unpublished version
|
|
34
|
-
* changes when you update your function's code and configuration. A published version is a snapshot of your function
|
|
35
|
-
* code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be
|
|
36
|
-
* changed to map to a different version. Use the <code>Publish</code> parameter to create version <code>1</code> of
|
|
37
|
-
* your function from its initial configuration.</p>
|
|
38
|
-
*
|
|
39
|
-
* <p>The other parameters let you configure version-specific and function-level settings. You can modify
|
|
40
|
-
* version-specific settings later with <a>UpdateFunctionConfiguration</a>. Function-level settings apply
|
|
41
|
-
* to both the unpublished and published versions of the function, and include tags (<a>TagResource</a>)
|
|
42
|
-
* and per-function concurrency limits (<a>PutFunctionConcurrency</a>).</p>
|
|
43
|
-
*
|
|
44
|
-
* <p>You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function,
|
|
45
|
-
* specify the ARN of a code-signing configuration. When a user
|
|
46
|
-
* attempts to deploy a code package with <a>UpdateFunctionCode</a>, Lambda checks that the code
|
|
47
|
-
* package has a valid signature from a trusted publisher. The code-signing configuration
|
|
48
|
-
* includes set set of signing profiles, which define the trusted publishers for this function.</p>
|
|
49
|
-
*
|
|
50
|
-
* <p>If another account or an Amazon Web Services service invokes your function, use <a>AddPermission</a> to grant
|
|
51
|
-
* permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version,
|
|
52
|
-
* or on an alias.</p>
|
|
53
|
-
*
|
|
54
|
-
* <p>To invoke your function directly, use <a>Invoke</a>. To invoke your function in response to events
|
|
55
|
-
* in other Amazon Web Services services, create an event source mapping (<a>CreateEventSourceMapping</a>), or configure a
|
|
56
|
-
* function trigger in the other service. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html">Invoking Functions</a>.</p>
|
|
57
|
-
* @example
|
|
58
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
59
|
-
* ```javascript
|
|
60
|
-
* import { LambdaClient, CreateFunctionCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
61
|
-
* // const { LambdaClient, CreateFunctionCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
62
|
-
* const client = new LambdaClient(config);
|
|
63
|
-
* const command = new CreateFunctionCommand(input);
|
|
64
|
-
* const response = await client.send(command);
|
|
65
|
-
* ```
|
|
66
|
-
*
|
|
67
|
-
* @see {@link CreateFunctionCommandInput} for command's `input` shape.
|
|
68
|
-
* @see {@link CreateFunctionCommandOutput} for command's `response` shape.
|
|
69
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
70
|
-
*
|
|
71
|
-
*/
|
|
9
|
+
|
|
72
10
|
export declare class CreateFunctionCommand extends $Command<CreateFunctionCommandInput, CreateFunctionCommandOutput, LambdaClientResolvedConfig> {
|
|
73
11
|
readonly input: CreateFunctionCommandInput;
|
|
74
12
|
constructor(input: CreateFunctionCommandInput);
|
|
75
|
-
|
|
76
|
-
* @internal
|
|
77
|
-
*/
|
|
13
|
+
|
|
78
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateFunctionCommandInput, CreateFunctionCommandOutput>;
|
|
79
15
|
private serialize;
|
|
80
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface DeleteAliasCommandInput extends DeleteAliasRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface DeleteAliasCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Deletes a Lambda function <a href="https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">alias</a>.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { LambdaClient, DeleteAliasCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
15
|
-
* // const { LambdaClient, DeleteAliasCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
16
|
-
* const client = new LambdaClient(config);
|
|
17
|
-
* const command = new DeleteAliasCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link DeleteAliasCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link DeleteAliasCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class DeleteAliasCommand extends $Command<DeleteAliasCommandInput, DeleteAliasCommandOutput, LambdaClientResolvedConfig> {
|
|
27
11
|
readonly input: DeleteAliasCommandInput;
|
|
28
12
|
constructor(input: DeleteAliasCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteAliasCommandInput, DeleteAliasCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -6,30 +6,11 @@ export interface DeleteCodeSigningConfigCommandInput extends DeleteCodeSigningCo
|
|
|
6
6
|
}
|
|
7
7
|
export interface DeleteCodeSigningConfigCommandOutput extends DeleteCodeSigningConfigResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Deletes the code signing configuration. You can delete the code signing configuration only if no function is
|
|
11
|
-
* using it. </p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { LambdaClient, DeleteCodeSigningConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
16
|
-
* // const { LambdaClient, DeleteCodeSigningConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
17
|
-
* const client = new LambdaClient(config);
|
|
18
|
-
* const command = new DeleteCodeSigningConfigCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link DeleteCodeSigningConfigCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link DeleteCodeSigningConfigCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
9
|
+
|
|
27
10
|
export declare class DeleteCodeSigningConfigCommand extends $Command<DeleteCodeSigningConfigCommandInput, DeleteCodeSigningConfigCommandOutput, LambdaClientResolvedConfig> {
|
|
28
11
|
readonly input: DeleteCodeSigningConfigCommandInput;
|
|
29
12
|
constructor(input: DeleteCodeSigningConfigCommandInput);
|
|
30
|
-
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
13
|
+
|
|
33
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteCodeSigningConfigCommandInput, DeleteCodeSigningConfigCommandOutput>;
|
|
34
15
|
private serialize;
|
|
35
16
|
private deserialize;
|
|
@@ -6,32 +6,11 @@ export interface DeleteEventSourceMappingCommandInput extends DeleteEventSourceM
|
|
|
6
6
|
}
|
|
7
7
|
export interface DeleteEventSourceMappingCommandOutput extends EventSourceMappingConfiguration, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Deletes an <a href="https://docs.aws.amazon.com/lambda/latest/dg/intro-invocation-modes.html">event source
|
|
11
|
-
* mapping</a>. You can get the identifier of a mapping from the output of <a>ListEventSourceMappings</a>.</p>
|
|
12
|
-
* <p>When you delete an event source mapping, it enters a <code>Deleting</code> state and might not be completely
|
|
13
|
-
* deleted for several seconds.</p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { LambdaClient, DeleteEventSourceMappingCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
18
|
-
* // const { LambdaClient, DeleteEventSourceMappingCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
19
|
-
* const client = new LambdaClient(config);
|
|
20
|
-
* const command = new DeleteEventSourceMappingCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link DeleteEventSourceMappingCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link DeleteEventSourceMappingCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
9
|
+
|
|
29
10
|
export declare class DeleteEventSourceMappingCommand extends $Command<DeleteEventSourceMappingCommandInput, DeleteEventSourceMappingCommandOutput, LambdaClientResolvedConfig> {
|
|
30
11
|
readonly input: DeleteEventSourceMappingCommandInput;
|
|
31
12
|
constructor(input: DeleteEventSourceMappingCommandInput);
|
|
32
|
-
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
13
|
+
|
|
35
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteEventSourceMappingCommandInput, DeleteEventSourceMappingCommandOutput>;
|
|
36
15
|
private serialize;
|
|
37
16
|
private deserialize;
|
|
@@ -6,29 +6,11 @@ export interface DeleteFunctionCodeSigningConfigCommandInput extends DeleteFunct
|
|
|
6
6
|
}
|
|
7
7
|
export interface DeleteFunctionCodeSigningConfigCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Removes the code signing configuration from the function.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { LambdaClient, DeleteFunctionCodeSigningConfigCommand } from "@aws-sdk/client-lambda"; // ES Modules import
|
|
15
|
-
* // const { LambdaClient, DeleteFunctionCodeSigningConfigCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
|
|
16
|
-
* const client = new LambdaClient(config);
|
|
17
|
-
* const command = new DeleteFunctionCodeSigningConfigCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link DeleteFunctionCodeSigningConfigCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link DeleteFunctionCodeSigningConfigCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link LambdaClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class DeleteFunctionCodeSigningConfigCommand extends $Command<DeleteFunctionCodeSigningConfigCommandInput, DeleteFunctionCodeSigningConfigCommandOutput, LambdaClientResolvedConfig> {
|
|
27
11
|
readonly input: DeleteFunctionCodeSigningConfigCommandInput;
|
|
28
12
|
constructor(input: DeleteFunctionCodeSigningConfigCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LambdaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteFunctionCodeSigningConfigCommandInput, DeleteFunctionCodeSigningConfigCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|