UNPKG

148 kBTypeScriptView Raw
1import * as cdk from '@aws-cdk/core';
2import * as cfn_parse from '@aws-cdk/core/lib/helpers-internal';
3/**
4 * Properties for defining a `CfnAlias`
5 *
6 * @struct
7 * @stability external
8 *
9 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html
10 */
11export interface CfnAliasProps {
12 /**
13 * The name of the Lambda function.
14 *
15 * **Name formats** - *Function name* - `MyFunction` .
16 * - *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:MyFunction` .
17 * - *Partial ARN* - `123456789012:function:MyFunction` .
18 *
19 * The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
20 *
21 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-functionname
22 */
23 readonly functionName: string;
24 /**
25 * The function version that the alias invokes.
26 *
27 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-functionversion
28 */
29 readonly functionVersion: string;
30 /**
31 * The name of the alias.
32 *
33 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-name
34 */
35 readonly name: string;
36 /**
37 * A description of the alias.
38 *
39 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-description
40 */
41 readonly description?: string;
42 /**
43 * Specifies a [provisioned concurrency](https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html) configuration for a function's alias.
44 *
45 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-provisionedconcurrencyconfig
46 */
47 readonly provisionedConcurrencyConfig?: CfnAlias.ProvisionedConcurrencyConfigurationProperty | cdk.IResolvable;
48 /**
49 * The [routing configuration](https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html) of the alias.
50 *
51 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-routingconfig
52 */
53 readonly routingConfig?: CfnAlias.AliasRoutingConfigurationProperty | cdk.IResolvable;
54}
55/**
56 * A CloudFormation `AWS::Lambda::Alias`
57 *
58 * The `AWS::Lambda::Alias` resource creates an [alias](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html) for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version.
59 *
60 * You can also map an alias to split invocation requests between two versions. Use the `RoutingConfig` parameter to specify a second version and the percentage of invocation requests that it receives.
61 *
62 * @cloudformationResource AWS::Lambda::Alias
63 * @stability external
64 *
65 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html
66 */
67export declare class CfnAlias extends cdk.CfnResource implements cdk.IInspectable {
68 /**
69 * The CloudFormation resource type name for this resource class.
70 */
71 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::Alias";
72 /**
73 * A factory method that creates a new instance of this class from an object
74 * containing the CloudFormation properties of this resource.
75 * Used in the @aws-cdk/cloudformation-include module.
76 *
77 * @internal
78 */
79 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnAlias;
80 /**
81 * The name of the Lambda function.
82 *
83 * **Name formats** - *Function name* - `MyFunction` .
84 * - *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:MyFunction` .
85 * - *Partial ARN* - `123456789012:function:MyFunction` .
86 *
87 * The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
88 *
89 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-functionname
90 */
91 functionName: string;
92 /**
93 * The function version that the alias invokes.
94 *
95 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-functionversion
96 */
97 functionVersion: string;
98 /**
99 * The name of the alias.
100 *
101 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-name
102 */
103 name: string;
104 /**
105 * A description of the alias.
106 *
107 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-description
108 */
109 description: string | undefined;
110 /**
111 * Specifies a [provisioned concurrency](https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html) configuration for a function's alias.
112 *
113 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-provisionedconcurrencyconfig
114 */
115 provisionedConcurrencyConfig: CfnAlias.ProvisionedConcurrencyConfigurationProperty | cdk.IResolvable | undefined;
116 /**
117 * The [routing configuration](https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html) of the alias.
118 *
119 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-alias.html#cfn-lambda-alias-routingconfig
120 */
121 routingConfig: CfnAlias.AliasRoutingConfigurationProperty | cdk.IResolvable | undefined;
122 /**
123 * Create a new `AWS::Lambda::Alias`.
124 *
125 * @param scope - scope in which this resource is defined
126 * @param id - scoped id of the resource
127 * @param props - resource properties
128 */
129 constructor(scope: cdk.Construct, id: string, props: CfnAliasProps);
130 /**
131 * Examines the CloudFormation resource and discloses attributes.
132 *
133 * @param inspector - tree inspector to collect and process attributes
134 *
135 */
136 inspect(inspector: cdk.TreeInspector): void;
137 protected get cfnProperties(): {
138 [key: string]: any;
139 };
140 protected renderProperties(props: {
141 [key: string]: any;
142 }): {
143 [key: string]: any;
144 };
145}
146export declare namespace CfnAlias {
147 /**
148 * The [traffic-shifting](https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html) configuration of a Lambda function alias.
149 *
150 * @struct
151 * @stability external
152 *
153 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-aliasroutingconfiguration.html
154 */
155 interface AliasRoutingConfigurationProperty {
156 /**
157 * The second version, and the percentage of traffic that's routed to it.
158 *
159 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-aliasroutingconfiguration.html#cfn-lambda-alias-aliasroutingconfiguration-additionalversionweights
160 */
161 readonly additionalVersionWeights: Array<CfnAlias.VersionWeightProperty | cdk.IResolvable> | cdk.IResolvable;
162 }
163}
164export declare namespace CfnAlias {
165 /**
166 * A provisioned concurrency configuration for a function's alias.
167 *
168 * @struct
169 * @stability external
170 *
171 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-provisionedconcurrencyconfiguration.html
172 */
173 interface ProvisionedConcurrencyConfigurationProperty {
174 /**
175 * The amount of provisioned concurrency to allocate for the alias.
176 *
177 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-provisionedconcurrencyconfiguration.html#cfn-lambda-alias-provisionedconcurrencyconfiguration-provisionedconcurrentexecutions
178 */
179 readonly provisionedConcurrentExecutions: number;
180 }
181}
182export declare namespace CfnAlias {
183 /**
184 * The [traffic-shifting](https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html) configuration of a Lambda function alias.
185 *
186 * @struct
187 * @stability external
188 *
189 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-versionweight.html
190 */
191 interface VersionWeightProperty {
192 /**
193 * The qualifier of the second version.
194 *
195 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-versionweight.html#cfn-lambda-alias-versionweight-functionversion
196 */
197 readonly functionVersion: string;
198 /**
199 * The percentage of traffic that the alias routes to the second version.
200 *
201 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-alias-versionweight.html#cfn-lambda-alias-versionweight-functionweight
202 */
203 readonly functionWeight: number;
204 }
205}
206/**
207 * Properties for defining a `CfnCodeSigningConfig`
208 *
209 * @struct
210 * @stability external
211 *
212 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-codesigningconfig.html
213 */
214export interface CfnCodeSigningConfigProps {
215 /**
216 * List of allowed publishers.
217 *
218 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-codesigningconfig.html#cfn-lambda-codesigningconfig-allowedpublishers
219 */
220 readonly allowedPublishers: CfnCodeSigningConfig.AllowedPublishersProperty | cdk.IResolvable;
221 /**
222 * The code signing policy controls the validation failure action for signature mismatch or expiry.
223 *
224 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-codesigningconfig.html#cfn-lambda-codesigningconfig-codesigningpolicies
225 */
226 readonly codeSigningPolicies?: CfnCodeSigningConfig.CodeSigningPoliciesProperty | cdk.IResolvable;
227 /**
228 * Code signing configuration description.
229 *
230 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-codesigningconfig.html#cfn-lambda-codesigningconfig-description
231 */
232 readonly description?: string;
233}
234/**
235 * A CloudFormation `AWS::Lambda::CodeSigningConfig`
236 *
237 * Details about a [Code signing configuration](https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html) .
238 *
239 * @cloudformationResource AWS::Lambda::CodeSigningConfig
240 * @stability external
241 *
242 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-codesigningconfig.html
243 */
244export declare class CfnCodeSigningConfig extends cdk.CfnResource implements cdk.IInspectable {
245 /**
246 * The CloudFormation resource type name for this resource class.
247 */
248 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::CodeSigningConfig";
249 /**
250 * A factory method that creates a new instance of this class from an object
251 * containing the CloudFormation properties of this resource.
252 * Used in the @aws-cdk/cloudformation-include module.
253 *
254 * @internal
255 */
256 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnCodeSigningConfig;
257 /**
258 * The Amazon Resource Name (ARN) of the code signing configuration.
259 * @cloudformationAttribute CodeSigningConfigArn
260 */
261 readonly attrCodeSigningConfigArn: string;
262 /**
263 * The code signing configuration ID.
264 * @cloudformationAttribute CodeSigningConfigId
265 */
266 readonly attrCodeSigningConfigId: string;
267 /**
268 * List of allowed publishers.
269 *
270 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-codesigningconfig.html#cfn-lambda-codesigningconfig-allowedpublishers
271 */
272 allowedPublishers: CfnCodeSigningConfig.AllowedPublishersProperty | cdk.IResolvable;
273 /**
274 * The code signing policy controls the validation failure action for signature mismatch or expiry.
275 *
276 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-codesigningconfig.html#cfn-lambda-codesigningconfig-codesigningpolicies
277 */
278 codeSigningPolicies: CfnCodeSigningConfig.CodeSigningPoliciesProperty | cdk.IResolvable | undefined;
279 /**
280 * Code signing configuration description.
281 *
282 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-codesigningconfig.html#cfn-lambda-codesigningconfig-description
283 */
284 description: string | undefined;
285 /**
286 * Create a new `AWS::Lambda::CodeSigningConfig`.
287 *
288 * @param scope - scope in which this resource is defined
289 * @param id - scoped id of the resource
290 * @param props - resource properties
291 */
292 constructor(scope: cdk.Construct, id: string, props: CfnCodeSigningConfigProps);
293 /**
294 * Examines the CloudFormation resource and discloses attributes.
295 *
296 * @param inspector - tree inspector to collect and process attributes
297 *
298 */
299 inspect(inspector: cdk.TreeInspector): void;
300 protected get cfnProperties(): {
301 [key: string]: any;
302 };
303 protected renderProperties(props: {
304 [key: string]: any;
305 }): {
306 [key: string]: any;
307 };
308}
309export declare namespace CfnCodeSigningConfig {
310 /**
311 * List of signing profiles that can sign a code package.
312 *
313 * @struct
314 * @stability external
315 *
316 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-codesigningconfig-allowedpublishers.html
317 */
318 interface AllowedPublishersProperty {
319 /**
320 * The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.
321 *
322 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-codesigningconfig-allowedpublishers.html#cfn-lambda-codesigningconfig-allowedpublishers-signingprofileversionarns
323 */
324 readonly signingProfileVersionArns: string[];
325 }
326}
327export declare namespace CfnCodeSigningConfig {
328 /**
329 * Code signing configuration [policies](https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html#config-codesigning-policies) specify the validation failure action for signature mismatch or expiry.
330 *
331 * @struct
332 * @stability external
333 *
334 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-codesigningconfig-codesigningpolicies.html
335 */
336 interface CodeSigningPoliciesProperty {
337 /**
338 * Code signing configuration policy for deployment validation failure. If you set the policy to `Enforce` , Lambda blocks the deployment request if signature validation checks fail. If you set the policy to `Warn` , Lambda allows the deployment and creates a CloudWatch log.
339 *
340 * Default value: `Warn`
341 *
342 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-codesigningconfig-codesigningpolicies.html#cfn-lambda-codesigningconfig-codesigningpolicies-untrustedartifactondeployment
343 */
344 readonly untrustedArtifactOnDeployment: string;
345 }
346}
347/**
348 * Properties for defining a `CfnEventInvokeConfig`
349 *
350 * @struct
351 * @stability external
352 *
353 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html
354 */
355export interface CfnEventInvokeConfigProps {
356 /**
357 * The name of the Lambda function.
358 *
359 * *Minimum* : `1`
360 *
361 * *Maximum* : `64`
362 *
363 * *Pattern* : `([a-zA-Z0-9-_]+)`
364 *
365 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-functionname
366 */
367 readonly functionName: string;
368 /**
369 * The identifier of a version or alias.
370 *
371 * - *Version* - A version number.
372 * - *Alias* - An alias name.
373 * - *Latest* - To specify the unpublished version, use `$LATEST` .
374 *
375 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-qualifier
376 */
377 readonly qualifier: string;
378 /**
379 * A destination for events after they have been sent to a function for processing.
380 *
381 * **Destinations** - *Function* - The Amazon Resource Name (ARN) of a Lambda function.
382 * - *Queue* - The ARN of a standard SQS queue.
383 * - *Topic* - The ARN of a standard SNS topic.
384 * - *Event Bus* - The ARN of an Amazon EventBridge event bus.
385 *
386 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-destinationconfig
387 */
388 readonly destinationConfig?: CfnEventInvokeConfig.DestinationConfigProperty | cdk.IResolvable;
389 /**
390 * The maximum age of a request that Lambda sends to a function for processing.
391 *
392 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-maximumeventageinseconds
393 */
394 readonly maximumEventAgeInSeconds?: number;
395 /**
396 * The maximum number of times to retry when the function returns an error.
397 *
398 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-maximumretryattempts
399 */
400 readonly maximumRetryAttempts?: number;
401}
402/**
403 * A CloudFormation `AWS::Lambda::EventInvokeConfig`
404 *
405 * The `AWS::Lambda::EventInvokeConfig` resource configures options for [asynchronous invocation](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html) on a version or an alias.
406 *
407 * By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it.
408 *
409 * @cloudformationResource AWS::Lambda::EventInvokeConfig
410 * @stability external
411 *
412 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html
413 */
414export declare class CfnEventInvokeConfig extends cdk.CfnResource implements cdk.IInspectable {
415 /**
416 * The CloudFormation resource type name for this resource class.
417 */
418 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::EventInvokeConfig";
419 /**
420 * A factory method that creates a new instance of this class from an object
421 * containing the CloudFormation properties of this resource.
422 * Used in the @aws-cdk/cloudformation-include module.
423 *
424 * @internal
425 */
426 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnEventInvokeConfig;
427 /**
428 * The name of the Lambda function.
429 *
430 * *Minimum* : `1`
431 *
432 * *Maximum* : `64`
433 *
434 * *Pattern* : `([a-zA-Z0-9-_]+)`
435 *
436 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-functionname
437 */
438 functionName: string;
439 /**
440 * The identifier of a version or alias.
441 *
442 * - *Version* - A version number.
443 * - *Alias* - An alias name.
444 * - *Latest* - To specify the unpublished version, use `$LATEST` .
445 *
446 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-qualifier
447 */
448 qualifier: string;
449 /**
450 * A destination for events after they have been sent to a function for processing.
451 *
452 * **Destinations** - *Function* - The Amazon Resource Name (ARN) of a Lambda function.
453 * - *Queue* - The ARN of a standard SQS queue.
454 * - *Topic* - The ARN of a standard SNS topic.
455 * - *Event Bus* - The ARN of an Amazon EventBridge event bus.
456 *
457 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-destinationconfig
458 */
459 destinationConfig: CfnEventInvokeConfig.DestinationConfigProperty | cdk.IResolvable | undefined;
460 /**
461 * The maximum age of a request that Lambda sends to a function for processing.
462 *
463 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-maximumeventageinseconds
464 */
465 maximumEventAgeInSeconds: number | undefined;
466 /**
467 * The maximum number of times to retry when the function returns an error.
468 *
469 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-maximumretryattempts
470 */
471 maximumRetryAttempts: number | undefined;
472 /**
473 * Create a new `AWS::Lambda::EventInvokeConfig`.
474 *
475 * @param scope - scope in which this resource is defined
476 * @param id - scoped id of the resource
477 * @param props - resource properties
478 */
479 constructor(scope: cdk.Construct, id: string, props: CfnEventInvokeConfigProps);
480 /**
481 * Examines the CloudFormation resource and discloses attributes.
482 *
483 * @param inspector - tree inspector to collect and process attributes
484 *
485 */
486 inspect(inspector: cdk.TreeInspector): void;
487 protected get cfnProperties(): {
488 [key: string]: any;
489 };
490 protected renderProperties(props: {
491 [key: string]: any;
492 }): {
493 [key: string]: any;
494 };
495}
496export declare namespace CfnEventInvokeConfig {
497 /**
498 * A configuration object that specifies the destination of an event after Lambda processes it.
499 *
500 * @struct
501 * @stability external
502 *
503 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig.html
504 */
505 interface DestinationConfigProperty {
506 /**
507 * The destination configuration for failed invocations.
508 *
509 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig.html#cfn-lambda-eventinvokeconfig-destinationconfig-onfailure
510 */
511 readonly onFailure?: CfnEventInvokeConfig.OnFailureProperty | cdk.IResolvable;
512 /**
513 * The destination configuration for successful invocations.
514 *
515 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig.html#cfn-lambda-eventinvokeconfig-destinationconfig-onsuccess
516 */
517 readonly onSuccess?: CfnEventInvokeConfig.OnSuccessProperty | cdk.IResolvable;
518 }
519}
520export declare namespace CfnEventInvokeConfig {
521 /**
522 * A destination for events that failed processing.
523 *
524 * @struct
525 * @stability external
526 *
527 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig-onfailure.html
528 */
529 interface OnFailureProperty {
530 /**
531 * The Amazon Resource Name (ARN) of the destination resource.
532 *
533 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig-onfailure.html#cfn-lambda-eventinvokeconfig-destinationconfig-onfailure-destination
534 */
535 readonly destination: string;
536 }
537}
538export declare namespace CfnEventInvokeConfig {
539 /**
540 * A destination for events that were processed successfully.
541 *
542 * @struct
543 * @stability external
544 *
545 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig-onsuccess.html
546 */
547 interface OnSuccessProperty {
548 /**
549 * The Amazon Resource Name (ARN) of the destination resource.
550 *
551 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig-onsuccess.html#cfn-lambda-eventinvokeconfig-destinationconfig-onsuccess-destination
552 */
553 readonly destination: string;
554 }
555}
556/**
557 * Properties for defining a `CfnEventSourceMapping`
558 *
559 * @struct
560 * @stability external
561 *
562 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
563 */
564export interface CfnEventSourceMappingProps {
565 /**
566 * The name of the Lambda function.
567 *
568 * **Name formats** - *Function name* – `MyFunction` .
569 * - *Function ARN* – `arn:aws:lambda:us-west-2:123456789012:function:MyFunction` .
570 * - *Version or Alias ARN* – `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD` .
571 * - *Partial ARN* – `123456789012:function:MyFunction` .
572 *
573 * The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
574 *
575 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionname
576 */
577 readonly functionName: string;
578 /**
579 * Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
580 *
581 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig
582 */
583 readonly amazonManagedKafkaEventSourceConfig?: CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty | cdk.IResolvable;
584 /**
585 * The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).
586 *
587 * - *Amazon Kinesis* – Default 100. Max 10,000.
588 * - *Amazon DynamoDB Streams* – Default 100. Max 10,000.
589 * - *Amazon Simple Queue Service* – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.
590 * - *Amazon Managed Streaming for Apache Kafka* – Default 100. Max 10,000.
591 * - *Self-managed Apache Kafka* – Default 100. Max 10,000.
592 * - *Amazon MQ (ActiveMQ and RabbitMQ)* – Default 100. Max 10,000.
593 * - *DocumentDB* – Default 100. Max 10,000.
594 *
595 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-batchsize
596 */
597 readonly batchSize?: number;
598 /**
599 * (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
600 *
601 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-bisectbatchonfunctionerror
602 */
603 readonly bisectBatchOnFunctionError?: boolean | cdk.IResolvable;
604 /**
605 * (Kinesis and DynamoDB Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
606 *
607 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-destinationconfig
608 */
609 readonly destinationConfig?: CfnEventSourceMapping.DestinationConfigProperty | cdk.IResolvable;
610 /**
611 * Specific configuration settings for a DocumentDB event source.
612 *
613 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig
614 */
615 readonly documentDbEventSourceConfig?: CfnEventSourceMapping.DocumentDBEventSourceConfigProperty | cdk.IResolvable;
616 /**
617 * When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
618 *
619 * Default: True
620 *
621 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-enabled
622 */
623 readonly enabled?: boolean | cdk.IResolvable;
624 /**
625 * The Amazon Resource Name (ARN) of the event source.
626 *
627 * - *Amazon Kinesis* – The ARN of the data stream or a stream consumer.
628 * - *Amazon DynamoDB Streams* – The ARN of the stream.
629 * - *Amazon Simple Queue Service* – The ARN of the queue.
630 * - *Amazon Managed Streaming for Apache Kafka* – The ARN of the cluster.
631 * - *Amazon MQ* – The ARN of the broker.
632 * - *Amazon DocumentDB* – The ARN of the DocumentDB change stream.
633 *
634 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-eventsourcearn
635 */
636 readonly eventSourceArn?: string;
637 /**
638 * An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see [Lambda event filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) .
639 *
640 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-filtercriteria
641 */
642 readonly filterCriteria?: CfnEventSourceMapping.FilterCriteriaProperty | cdk.IResolvable;
643 /**
644 * (Streams and SQS) A list of current response type enums applied to the event source mapping.
645 *
646 * Valid Values: `ReportBatchItemFailures`
647 *
648 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionresponsetypes
649 */
650 readonly functionResponseTypes?: string[];
651 /**
652 * The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
653 *
654 * *Default ( Kinesis , DynamoDB , Amazon SQS event sources)* : 0
655 *
656 * *Default ( Amazon MSK , Kafka, Amazon MQ , Amazon DocumentDB event sources)* : 500 ms
657 *
658 * *Related setting:* For Amazon SQS event sources, when you set `BatchSize` to a value greater than 10, you must set `MaximumBatchingWindowInSeconds` to at least 1.
659 *
660 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumbatchingwindowinseconds
661 */
662 readonly maximumBatchingWindowInSeconds?: number;
663 /**
664 * (Kinesis and DynamoDB Streams only) Discard records older than the specified age. The default value is -1,
665 * which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.
666 *
667 * > The minimum valid value for maximum record age is 60s. Although values less than 60 and greater than -1 fall within the parameter's absolute range, they are not allowed
668 *
669 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumrecordageinseconds
670 */
671 readonly maximumRecordAgeInSeconds?: number;
672 /**
673 * (Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. The default value is -1,
674 * which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.
675 *
676 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumretryattempts
677 */
678 readonly maximumRetryAttempts?: number;
679 /**
680 * (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard. The default value is 1.
681 *
682 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-parallelizationfactor
683 */
684 readonly parallelizationFactor?: number;
685 /**
686 * (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
687 *
688 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-queues
689 */
690 readonly queues?: string[];
691 /**
692 * (Amazon SQS only) The scaling configuration for the event source. For more information, see [Configuring maximum concurrency for Amazon SQS event sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency) .
693 *
694 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-scalingconfig
695 */
696 readonly scalingConfig?: CfnEventSourceMapping.ScalingConfigProperty | cdk.IResolvable;
697 /**
698 * The self-managed Apache Kafka cluster for your event source.
699 *
700 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource
701 */
702 readonly selfManagedEventSource?: CfnEventSourceMapping.SelfManagedEventSourceProperty | cdk.IResolvable;
703 /**
704 * Specific configuration settings for a self-managed Apache Kafka event source.
705 *
706 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig
707 */
708 readonly selfManagedKafkaEventSourceConfig?: CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty | cdk.IResolvable;
709 /**
710 * An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
711 *
712 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-sourceaccessconfigurations
713 */
714 readonly sourceAccessConfigurations?: Array<CfnEventSourceMapping.SourceAccessConfigurationProperty | cdk.IResolvable> | cdk.IResolvable;
715 /**
716 * The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB.
717 *
718 * - *LATEST* - Read only new records.
719 * - *TRIM_HORIZON* - Process all available records.
720 * - *AT_TIMESTAMP* - Specify a time from which to start reading records.
721 *
722 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingposition
723 */
724 readonly startingPosition?: string;
725 /**
726 * With `StartingPosition` set to `AT_TIMESTAMP` , the time from which to start reading, in Unix time seconds.
727 *
728 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingpositiontimestamp
729 */
730 readonly startingPositionTimestamp?: number;
731 /**
732 * The name of the Kafka topic.
733 *
734 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-topics
735 */
736 readonly topics?: string[];
737 /**
738 * (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.
739 *
740 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-tumblingwindowinseconds
741 */
742 readonly tumblingWindowInSeconds?: number;
743}
744/**
745 * A CloudFormation `AWS::Lambda::EventSourceMapping`
746 *
747 * The `AWS::Lambda::EventSourceMapping` resource creates a mapping between an event source and an AWS Lambda function. Lambda reads items from the event source and triggers the function.
748 *
749 * For details about each event source type, see the following topics. In particular, each of the topics describes the required and optional parameters for the specific event source.
750 *
751 * - [Configuring a Dynamo DB stream as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping)
752 * - [Configuring a Kinesis stream as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping)
753 * - [Configuring an SQS queue as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource)
754 * - [Configuring an MQ broker as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping)
755 * - [Configuring MSK as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html)
756 * - [Configuring Self-Managed Apache Kafka as an event source](https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html)
757 * - [Configuring Amazon DocumentDB as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html)
758 *
759 * @cloudformationResource AWS::Lambda::EventSourceMapping
760 * @stability external
761 *
762 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
763 */
764export declare class CfnEventSourceMapping extends cdk.CfnResource implements cdk.IInspectable {
765 /**
766 * The CloudFormation resource type name for this resource class.
767 */
768 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::EventSourceMapping";
769 /**
770 * A factory method that creates a new instance of this class from an object
771 * containing the CloudFormation properties of this resource.
772 * Used in the @aws-cdk/cloudformation-include module.
773 *
774 * @internal
775 */
776 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnEventSourceMapping;
777 /**
778 * The event source mapping's ID.
779 * @cloudformationAttribute Id
780 */
781 readonly attrId: string;
782 /**
783 * The name of the Lambda function.
784 *
785 * **Name formats** - *Function name* – `MyFunction` .
786 * - *Function ARN* – `arn:aws:lambda:us-west-2:123456789012:function:MyFunction` .
787 * - *Version or Alias ARN* – `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD` .
788 * - *Partial ARN* – `123456789012:function:MyFunction` .
789 *
790 * The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
791 *
792 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionname
793 */
794 functionName: string;
795 /**
796 * Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
797 *
798 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig
799 */
800 amazonManagedKafkaEventSourceConfig: CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty | cdk.IResolvable | undefined;
801 /**
802 * The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).
803 *
804 * - *Amazon Kinesis* – Default 100. Max 10,000.
805 * - *Amazon DynamoDB Streams* – Default 100. Max 10,000.
806 * - *Amazon Simple Queue Service* – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.
807 * - *Amazon Managed Streaming for Apache Kafka* – Default 100. Max 10,000.
808 * - *Self-managed Apache Kafka* – Default 100. Max 10,000.
809 * - *Amazon MQ (ActiveMQ and RabbitMQ)* – Default 100. Max 10,000.
810 * - *DocumentDB* – Default 100. Max 10,000.
811 *
812 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-batchsize
813 */
814 batchSize: number | undefined;
815 /**
816 * (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
817 *
818 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-bisectbatchonfunctionerror
819 */
820 bisectBatchOnFunctionError: boolean | cdk.IResolvable | undefined;
821 /**
822 * (Kinesis and DynamoDB Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
823 *
824 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-destinationconfig
825 */
826 destinationConfig: CfnEventSourceMapping.DestinationConfigProperty | cdk.IResolvable | undefined;
827 /**
828 * Specific configuration settings for a DocumentDB event source.
829 *
830 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig
831 */
832 documentDbEventSourceConfig: CfnEventSourceMapping.DocumentDBEventSourceConfigProperty | cdk.IResolvable | undefined;
833 /**
834 * When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
835 *
836 * Default: True
837 *
838 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-enabled
839 */
840 enabled: boolean | cdk.IResolvable | undefined;
841 /**
842 * The Amazon Resource Name (ARN) of the event source.
843 *
844 * - *Amazon Kinesis* – The ARN of the data stream or a stream consumer.
845 * - *Amazon DynamoDB Streams* – The ARN of the stream.
846 * - *Amazon Simple Queue Service* – The ARN of the queue.
847 * - *Amazon Managed Streaming for Apache Kafka* – The ARN of the cluster.
848 * - *Amazon MQ* – The ARN of the broker.
849 * - *Amazon DocumentDB* – The ARN of the DocumentDB change stream.
850 *
851 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-eventsourcearn
852 */
853 eventSourceArn: string | undefined;
854 /**
855 * An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see [Lambda event filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) .
856 *
857 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-filtercriteria
858 */
859 filterCriteria: CfnEventSourceMapping.FilterCriteriaProperty | cdk.IResolvable | undefined;
860 /**
861 * (Streams and SQS) A list of current response type enums applied to the event source mapping.
862 *
863 * Valid Values: `ReportBatchItemFailures`
864 *
865 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionresponsetypes
866 */
867 functionResponseTypes: string[] | undefined;
868 /**
869 * The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
870 *
871 * *Default ( Kinesis , DynamoDB , Amazon SQS event sources)* : 0
872 *
873 * *Default ( Amazon MSK , Kafka, Amazon MQ , Amazon DocumentDB event sources)* : 500 ms
874 *
875 * *Related setting:* For Amazon SQS event sources, when you set `BatchSize` to a value greater than 10, you must set `MaximumBatchingWindowInSeconds` to at least 1.
876 *
877 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumbatchingwindowinseconds
878 */
879 maximumBatchingWindowInSeconds: number | undefined;
880 /**
881 * (Kinesis and DynamoDB Streams only) Discard records older than the specified age. The default value is -1,
882 * which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.
883 *
884 * > The minimum valid value for maximum record age is 60s. Although values less than 60 and greater than -1 fall within the parameter's absolute range, they are not allowed
885 *
886 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumrecordageinseconds
887 */
888 maximumRecordAgeInSeconds: number | undefined;
889 /**
890 * (Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. The default value is -1,
891 * which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.
892 *
893 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumretryattempts
894 */
895 maximumRetryAttempts: number | undefined;
896 /**
897 * (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard. The default value is 1.
898 *
899 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-parallelizationfactor
900 */
901 parallelizationFactor: number | undefined;
902 /**
903 * (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
904 *
905 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-queues
906 */
907 queues: string[] | undefined;
908 /**
909 * (Amazon SQS only) The scaling configuration for the event source. For more information, see [Configuring maximum concurrency for Amazon SQS event sources](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency) .
910 *
911 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-scalingconfig
912 */
913 scalingConfig: CfnEventSourceMapping.ScalingConfigProperty | cdk.IResolvable | undefined;
914 /**
915 * The self-managed Apache Kafka cluster for your event source.
916 *
917 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource
918 */
919 selfManagedEventSource: CfnEventSourceMapping.SelfManagedEventSourceProperty | cdk.IResolvable | undefined;
920 /**
921 * Specific configuration settings for a self-managed Apache Kafka event source.
922 *
923 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig
924 */
925 selfManagedKafkaEventSourceConfig: CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty | cdk.IResolvable | undefined;
926 /**
927 * An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
928 *
929 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-sourceaccessconfigurations
930 */
931 sourceAccessConfigurations: Array<CfnEventSourceMapping.SourceAccessConfigurationProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
932 /**
933 * The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB.
934 *
935 * - *LATEST* - Read only new records.
936 * - *TRIM_HORIZON* - Process all available records.
937 * - *AT_TIMESTAMP* - Specify a time from which to start reading records.
938 *
939 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingposition
940 */
941 startingPosition: string | undefined;
942 /**
943 * With `StartingPosition` set to `AT_TIMESTAMP` , the time from which to start reading, in Unix time seconds.
944 *
945 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingpositiontimestamp
946 */
947 startingPositionTimestamp: number | undefined;
948 /**
949 * The name of the Kafka topic.
950 *
951 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-topics
952 */
953 topics: string[] | undefined;
954 /**
955 * (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.
956 *
957 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-tumblingwindowinseconds
958 */
959 tumblingWindowInSeconds: number | undefined;
960 /**
961 * Create a new `AWS::Lambda::EventSourceMapping`.
962 *
963 * @param scope - scope in which this resource is defined
964 * @param id - scoped id of the resource
965 * @param props - resource properties
966 */
967 constructor(scope: cdk.Construct, id: string, props: CfnEventSourceMappingProps);
968 /**
969 * Examines the CloudFormation resource and discloses attributes.
970 *
971 * @param inspector - tree inspector to collect and process attributes
972 *
973 */
974 inspect(inspector: cdk.TreeInspector): void;
975 protected get cfnProperties(): {
976 [key: string]: any;
977 };
978 protected renderProperties(props: {
979 [key: string]: any;
980 }): {
981 [key: string]: any;
982 };
983}
984export declare namespace CfnEventSourceMapping {
985 /**
986 * Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
987 *
988 * @struct
989 * @stability external
990 *
991 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig.html
992 */
993 interface AmazonManagedKafkaEventSourceConfigProperty {
994 /**
995 * The identifier for the Kafka consumer group to join. The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see [Customizable consumer group ID](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id) .
996 *
997 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig-consumergroupid
998 */
999 readonly consumerGroupId?: string;
1000 }
1001}
1002export declare namespace CfnEventSourceMapping {
1003 /**
1004 * A configuration object that specifies the destination of an event after Lambda processes it.
1005 *
1006 * @struct
1007 * @stability external
1008 *
1009 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-destinationconfig.html
1010 */
1011 interface DestinationConfigProperty {
1012 /**
1013 * The destination configuration for failed invocations.
1014 *
1015 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-destinationconfig.html#cfn-lambda-eventsourcemapping-destinationconfig-onfailure
1016 */
1017 readonly onFailure?: CfnEventSourceMapping.OnFailureProperty | cdk.IResolvable;
1018 }
1019}
1020export declare namespace CfnEventSourceMapping {
1021 /**
1022 * Specific configuration settings for a DocumentDB event source.
1023 *
1024 * @struct
1025 * @stability external
1026 *
1027 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-documentdbeventsourceconfig.html
1028 */
1029 interface DocumentDBEventSourceConfigProperty {
1030 /**
1031 * The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections.
1032 *
1033 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-documentdbeventsourceconfig.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig-collectionname
1034 */
1035 readonly collectionName?: string;
1036 /**
1037 * The name of the database to consume within the DocumentDB cluster.
1038 *
1039 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-documentdbeventsourceconfig.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig-databasename
1040 */
1041 readonly databaseName?: string;
1042 /**
1043 * Determines what DocumentDB sends to your event stream during document update operations. If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes.
1044 *
1045 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-documentdbeventsourceconfig.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig-fulldocument
1046 */
1047 readonly fullDocument?: string;
1048 }
1049}
1050export declare namespace CfnEventSourceMapping {
1051 /**
1052 * The list of bootstrap servers for your Kafka brokers in the following format: `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` .
1053 *
1054 * @struct
1055 * @stability external
1056 *
1057 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-endpoints.html
1058 */
1059 interface EndpointsProperty {
1060 /**
1061 * The list of bootstrap servers for your Kafka brokers in the following format: `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` .
1062 *
1063 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-endpoints.html#cfn-lambda-eventsourcemapping-endpoints-kafkabootstrapservers
1064 */
1065 readonly kafkaBootstrapServers?: string[];
1066 }
1067}
1068export declare namespace CfnEventSourceMapping {
1069 /**
1070 * A structure within a `FilterCriteria` object that defines an event filtering pattern.
1071 *
1072 * @struct
1073 * @stability external
1074 *
1075 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filter.html
1076 */
1077 interface FilterProperty {
1078 /**
1079 * A filter pattern. For more information on the syntax of a filter pattern, see [Filter rule syntax](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax) .
1080 *
1081 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filter.html#cfn-lambda-eventsourcemapping-filter-pattern
1082 */
1083 readonly pattern?: string;
1084 }
1085}
1086export declare namespace CfnEventSourceMapping {
1087 /**
1088 * An object that contains the filters for an event source.
1089 *
1090 * @struct
1091 * @stability external
1092 *
1093 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filtercriteria.html
1094 */
1095 interface FilterCriteriaProperty {
1096 /**
1097 * A list of filters.
1098 *
1099 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filtercriteria.html#cfn-lambda-eventsourcemapping-filtercriteria-filters
1100 */
1101 readonly filters?: Array<CfnEventSourceMapping.FilterProperty | cdk.IResolvable> | cdk.IResolvable;
1102 }
1103}
1104export declare namespace CfnEventSourceMapping {
1105 /**
1106 * A destination for events that failed processing.
1107 *
1108 * @struct
1109 * @stability external
1110 *
1111 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-onfailure.html
1112 */
1113 interface OnFailureProperty {
1114 /**
1115 * The Amazon Resource Name (ARN) of the destination resource.
1116 *
1117 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-onfailure.html#cfn-lambda-eventsourcemapping-onfailure-destination
1118 */
1119 readonly destination?: string;
1120 }
1121}
1122export declare namespace CfnEventSourceMapping {
1123 /**
1124 * (Amazon SQS only) The scaling configuration for the event source. To remove the configuration, pass an empty value.
1125 *
1126 * @struct
1127 * @stability external
1128 *
1129 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-scalingconfig.html
1130 */
1131 interface ScalingConfigProperty {
1132 /**
1133 * Limits the number of concurrent instances that the Amazon SQS event source can invoke.
1134 *
1135 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-scalingconfig.html#cfn-lambda-eventsourcemapping-scalingconfig-maximumconcurrency
1136 */
1137 readonly maximumConcurrency?: number;
1138 }
1139}
1140export declare namespace CfnEventSourceMapping {
1141 /**
1142 * The self-managed Apache Kafka cluster for your event source.
1143 *
1144 * @struct
1145 * @stability external
1146 *
1147 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedeventsource.html
1148 */
1149 interface SelfManagedEventSourceProperty {
1150 /**
1151 * The list of bootstrap servers for your Kafka brokers in the following format: `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` .
1152 *
1153 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedeventsource.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource-endpoints
1154 */
1155 readonly endpoints?: CfnEventSourceMapping.EndpointsProperty | cdk.IResolvable;
1156 }
1157}
1158export declare namespace CfnEventSourceMapping {
1159 /**
1160 * Specific configuration settings for a self-managed Apache Kafka event source.
1161 *
1162 * @struct
1163 * @stability external
1164 *
1165 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig.html
1166 */
1167 interface SelfManagedKafkaEventSourceConfigProperty {
1168 /**
1169 * The identifier for the Kafka consumer group to join. The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see [Customizable consumer group ID](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id) .
1170 *
1171 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig-consumergroupid
1172 */
1173 readonly consumerGroupId?: string;
1174 }
1175}
1176export declare namespace CfnEventSourceMapping {
1177 /**
1178 * An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
1179 *
1180 * @struct
1181 * @stability external
1182 *
1183 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-sourceaccessconfiguration.html
1184 */
1185 interface SourceAccessConfigurationProperty {
1186 /**
1187 * The type of authentication protocol, VPC components, or virtual host for your event source. For example: `"Type":"SASL_SCRAM_512_AUTH"` .
1188 *
1189 * - `BASIC_AUTH` – (Amazon MQ) The AWS Secrets Manager secret that stores your broker credentials.
1190 * - `BASIC_AUTH` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL/PLAIN authentication of your Apache Kafka brokers.
1191 * - `VPC_SUBNET` – (Self-managed Apache Kafka) The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster.
1192 * - `VPC_SECURITY_GROUP` – (Self-managed Apache Kafka) The VPC security group used to manage access to your self-managed Apache Kafka brokers.
1193 * - `SASL_SCRAM_256_AUTH` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers.
1194 * - `SASL_SCRAM_512_AUTH` – (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers.
1195 * - `VIRTUAL_HOST` –- (RabbitMQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source. This property cannot be specified in an UpdateEventSourceMapping API call.
1196 * - `CLIENT_CERTIFICATE_TLS_AUTH` – (Amazon MSK, self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the certificate chain (X.509 PEM), private key (PKCS#8 PEM), and private key password (optional) used for mutual TLS authentication of your MSK/Apache Kafka brokers.
1197 * - `SERVER_ROOT_CA_CERTIFICATE` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your Apache Kafka brokers.
1198 *
1199 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-sourceaccessconfiguration.html#cfn-lambda-eventsourcemapping-sourceaccessconfiguration-type
1200 */
1201 readonly type?: string;
1202 /**
1203 * The value for your chosen configuration in `Type` . For example: `"URI": "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName"` .
1204 *
1205 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-sourceaccessconfiguration.html#cfn-lambda-eventsourcemapping-sourceaccessconfiguration-uri
1206 */
1207 readonly uri?: string;
1208 }
1209}
1210/**
1211 * Properties for defining a `CfnFunction`
1212 *
1213 * @struct
1214 * @stability external
1215 *
1216 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html
1217 */
1218export interface CfnFunctionProps {
1219 /**
1220 * The code for the function.
1221 *
1222 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-code
1223 */
1224 readonly code: CfnFunction.CodeProperty | cdk.IResolvable;
1225 /**
1226 * The Amazon Resource Name (ARN) of the function's execution role.
1227 *
1228 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-role
1229 */
1230 readonly role: string;
1231 /**
1232 * The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is `x86_64` .
1233 *
1234 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-architectures
1235 */
1236 readonly architectures?: string[];
1237 /**
1238 * To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration
1239 * includes a set of signing profiles, which define the trusted publishers for this function.
1240 *
1241 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-codesigningconfigarn
1242 */
1243 readonly codeSigningConfigArn?: string;
1244 /**
1245 * A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see [Dead-letter queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq) .
1246 *
1247 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig
1248 */
1249 readonly deadLetterConfig?: CfnFunction.DeadLetterConfigProperty | cdk.IResolvable;
1250 /**
1251 * A description of the function.
1252 *
1253 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-description
1254 */
1255 readonly description?: string;
1256 /**
1257 * Environment variables that are accessible from function code during execution.
1258 *
1259 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment
1260 */
1261 readonly environment?: CfnFunction.EnvironmentProperty | cdk.IResolvable;
1262 /**
1263 * The size of the function's `/tmp` directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.
1264 *
1265 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-ephemeralstorage
1266 */
1267 readonly ephemeralStorage?: CfnFunction.EphemeralStorageProperty | cdk.IResolvable;
1268 /**
1269 * Connection settings for an Amazon EFS file system. To connect a function to a file system, a mount target must be available in every Availability Zone that your function connects to. If your template contains an [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) resource, you must also specify a `DependsOn` attribute to ensure that the mount target is created or updated before the function.
1270 *
1271 * For more information about using the `DependsOn` attribute, see [DependsOn Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) .
1272 *
1273 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-filesystemconfigs
1274 */
1275 readonly fileSystemConfigs?: Array<CfnFunction.FileSystemConfigProperty | cdk.IResolvable> | cdk.IResolvable;
1276 /**
1277 * The name of the Lambda function, up to 64 characters in length. If you don't specify a name, AWS CloudFormation generates one.
1278 *
1279 * If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
1280 *
1281 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-functionname
1282 */
1283 readonly functionName?: string;
1284 /**
1285 * The name of the method within your code that Lambda calls to run your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see [Lambda programming model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html) .
1286 *
1287 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-handler
1288 */
1289 readonly handler?: string;
1290 /**
1291 * Configuration values that override the container image Dockerfile settings. For more information, see [Container image settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) .
1292 *
1293 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-imageconfig
1294 */
1295 readonly imageConfig?: CfnFunction.ImageConfigProperty | cdk.IResolvable;
1296 /**
1297 * The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key that's used to encrypt your function's [environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption) . When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your function using a container image, Lambda also uses this key to encrypt your function when it's deployed. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR).
1298 * If you don't provide a customer managed key, Lambda uses a default service key.
1299 *
1300 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-kmskeyarn
1301 */
1302 readonly kmsKeyArn?: string;
1303 /**
1304 * A list of [function layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) to add to the function's execution environment. Specify each layer by its ARN, including the version.
1305 *
1306 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-layers
1307 */
1308 readonly layers?: string[];
1309 /**
1310 * The amount of [memory available to the function](https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console) at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
1311 *
1312 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-memorysize
1313 */
1314 readonly memorySize?: number;
1315 /**
1316 * The type of deployment package. Set to `Image` for container image and set `Zip` for .zip file archive.
1317 *
1318 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-packagetype
1319 */
1320 readonly packageType?: string;
1321 /**
1322 * The number of simultaneous executions to reserve for the function.
1323 *
1324 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-reservedconcurrentexecutions
1325 */
1326 readonly reservedConcurrentExecutions?: number;
1327 /**
1328 * The identifier of the function's [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) . Runtime is required if the deployment package is a .zip file archive.
1329 *
1330 * The following list includes deprecated runtimes. For more information, see [Runtime deprecation policy](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy) .
1331 *
1332 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtime
1333 */
1334 readonly runtime?: string;
1335 /**
1336 * Sets the runtime management configuration for a function's version. For more information, see [Runtime updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) .
1337 *
1338 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtimemanagementconfig
1339 */
1340 readonly runtimeManagementConfig?: CfnFunction.RuntimeManagementConfigProperty | cdk.IResolvable;
1341 /**
1342 * The function's [AWS Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting.
1343 *
1344 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-snapstart
1345 */
1346 readonly snapStart?: CfnFunction.SnapStartProperty | cdk.IResolvable;
1347 /**
1348 * A list of [tags](https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to apply to the function.
1349 *
1350 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tags
1351 */
1352 readonly tags?: cdk.CfnTag[];
1353 /**
1354 * The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see [Lambda execution environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html) .
1355 *
1356 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-timeout
1357 */
1358 readonly timeout?: number;
1359 /**
1360 * Set `Mode` to `Active` to sample and trace a subset of incoming requests with [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) .
1361 *
1362 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig
1363 */
1364 readonly tracingConfig?: CfnFunction.TracingConfigProperty | cdk.IResolvable;
1365 /**
1366 * For network connectivity to AWS resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can access resources and the internet only through that VPC. For more information, see [Configuring a Lambda function to access resources in a VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) .
1367 *
1368 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig
1369 */
1370 readonly vpcConfig?: CfnFunction.VpcConfigProperty | cdk.IResolvable;
1371}
1372/**
1373 * A CloudFormation `AWS::Lambda::Function`
1374 *
1375 * The `AWS::Lambda::Function` resource creates a Lambda function. To create a function, you need a [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) and an [execution role](https://docs.aws.amazon.com/lambda/latest/dg/lambda-intro-execution-role.html) . The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use AWS services, such as Amazon CloudWatch Logs for log streaming and AWS X-Ray for request tracing.
1376 *
1377 * You set the package type to `Image` if the deployment package is a [container image](https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html) . For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.
1378 *
1379 * You set the package type to `Zip` if the deployment package is a [.zip file archive](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip) . For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. For a Python example, see [Deploy Python Lambda functions with .zip file archives](https://docs.aws.amazon.com/lambda/latest/dg/python-package.html) .
1380 *
1381 * You can use [code signing](https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html) if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with `UpdateFunctionCode` , Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function.
1382 *
1383 * Note that you configure [provisioned concurrency](https://docs.aws.amazon.com/lambda/latest/dg/provisioned-concurrency.html) on a `AWS::Lambda::Version` or a `AWS::Lambda::Alias` .
1384 *
1385 * For a complete introduction to Lambda functions, see [What is Lambda?](https://docs.aws.amazon.com/lambda/latest/dg/lambda-welcome.html) in the *Lambda developer guide.*
1386 *
1387 * @cloudformationResource AWS::Lambda::Function
1388 * @stability external
1389 *
1390 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html
1391 */
1392export declare class CfnFunction extends cdk.CfnResource implements cdk.IInspectable {
1393 /**
1394 * The CloudFormation resource type name for this resource class.
1395 */
1396 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::Function";
1397 /**
1398 * A factory method that creates a new instance of this class from an object
1399 * containing the CloudFormation properties of this resource.
1400 * Used in the @aws-cdk/cloudformation-include module.
1401 *
1402 * @internal
1403 */
1404 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnFunction;
1405 /**
1406 * The Amazon Resource Name (ARN) of the function.
1407 * @cloudformationAttribute Arn
1408 */
1409 readonly attrArn: string;
1410 /**
1411 *
1412 * @cloudformationAttribute SnapStartResponse.ApplyOn
1413 */
1414 readonly attrSnapStartResponseApplyOn: string;
1415 /**
1416 *
1417 * @cloudformationAttribute SnapStartResponse.OptimizationStatus
1418 */
1419 readonly attrSnapStartResponseOptimizationStatus: string;
1420 /**
1421 * The code for the function.
1422 *
1423 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-code
1424 */
1425 code: CfnFunction.CodeProperty | cdk.IResolvable;
1426 /**
1427 * The Amazon Resource Name (ARN) of the function's execution role.
1428 *
1429 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-role
1430 */
1431 role: string;
1432 /**
1433 * The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is `x86_64` .
1434 *
1435 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-architectures
1436 */
1437 architectures: string[] | undefined;
1438 /**
1439 * To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration
1440 * includes a set of signing profiles, which define the trusted publishers for this function.
1441 *
1442 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-codesigningconfigarn
1443 */
1444 codeSigningConfigArn: string | undefined;
1445 /**
1446 * A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see [Dead-letter queues](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-dlq) .
1447 *
1448 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig
1449 */
1450 deadLetterConfig: CfnFunction.DeadLetterConfigProperty | cdk.IResolvable | undefined;
1451 /**
1452 * A description of the function.
1453 *
1454 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-description
1455 */
1456 description: string | undefined;
1457 /**
1458 * Environment variables that are accessible from function code during execution.
1459 *
1460 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment
1461 */
1462 environment: CfnFunction.EnvironmentProperty | cdk.IResolvable | undefined;
1463 /**
1464 * The size of the function's `/tmp` directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.
1465 *
1466 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-ephemeralstorage
1467 */
1468 ephemeralStorage: CfnFunction.EphemeralStorageProperty | cdk.IResolvable | undefined;
1469 /**
1470 * Connection settings for an Amazon EFS file system. To connect a function to a file system, a mount target must be available in every Availability Zone that your function connects to. If your template contains an [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) resource, you must also specify a `DependsOn` attribute to ensure that the mount target is created or updated before the function.
1471 *
1472 * For more information about using the `DependsOn` attribute, see [DependsOn Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) .
1473 *
1474 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-filesystemconfigs
1475 */
1476 fileSystemConfigs: Array<CfnFunction.FileSystemConfigProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
1477 /**
1478 * The name of the Lambda function, up to 64 characters in length. If you don't specify a name, AWS CloudFormation generates one.
1479 *
1480 * If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
1481 *
1482 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-functionname
1483 */
1484 functionName: string | undefined;
1485 /**
1486 * The name of the method within your code that Lambda calls to run your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see [Lambda programming model](https://docs.aws.amazon.com/lambda/latest/dg/foundation-progmodel.html) .
1487 *
1488 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-handler
1489 */
1490 handler: string | undefined;
1491 /**
1492 * Configuration values that override the container image Dockerfile settings. For more information, see [Container image settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) .
1493 *
1494 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-imageconfig
1495 */
1496 imageConfig: CfnFunction.ImageConfigProperty | cdk.IResolvable | undefined;
1497 /**
1498 * The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key that's used to encrypt your function's [environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-encryption) . When [Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart-security.html) is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your function using a container image, Lambda also uses this key to encrypt your function when it's deployed. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR).
1499 * If you don't provide a customer managed key, Lambda uses a default service key.
1500 *
1501 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-kmskeyarn
1502 */
1503 kmsKeyArn: string | undefined;
1504 /**
1505 * A list of [function layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) to add to the function's execution environment. Specify each layer by its ARN, including the version.
1506 *
1507 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-layers
1508 */
1509 layers: string[] | undefined;
1510 /**
1511 * The amount of [memory available to the function](https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console) at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
1512 *
1513 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-memorysize
1514 */
1515 memorySize: number | undefined;
1516 /**
1517 * The type of deployment package. Set to `Image` for container image and set `Zip` for .zip file archive.
1518 *
1519 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-packagetype
1520 */
1521 packageType: string | undefined;
1522 /**
1523 * The number of simultaneous executions to reserve for the function.
1524 *
1525 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-reservedconcurrentexecutions
1526 */
1527 reservedConcurrentExecutions: number | undefined;
1528 /**
1529 * The identifier of the function's [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) . Runtime is required if the deployment package is a .zip file archive.
1530 *
1531 * The following list includes deprecated runtimes. For more information, see [Runtime deprecation policy](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy) .
1532 *
1533 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtime
1534 */
1535 runtime: string | undefined;
1536 /**
1537 * Sets the runtime management configuration for a function's version. For more information, see [Runtime updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) .
1538 *
1539 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtimemanagementconfig
1540 */
1541 runtimeManagementConfig: CfnFunction.RuntimeManagementConfigProperty | cdk.IResolvable | undefined;
1542 /**
1543 * The function's [AWS Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting.
1544 *
1545 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-snapstart
1546 */
1547 snapStart: CfnFunction.SnapStartProperty | cdk.IResolvable | undefined;
1548 /**
1549 * A list of [tags](https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to apply to the function.
1550 *
1551 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tags
1552 */
1553 readonly tags: cdk.TagManager;
1554 /**
1555 * The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see [Lambda execution environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html) .
1556 *
1557 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-timeout
1558 */
1559 timeout: number | undefined;
1560 /**
1561 * Set `Mode` to `Active` to sample and trace a subset of incoming requests with [X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) .
1562 *
1563 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig
1564 */
1565 tracingConfig: CfnFunction.TracingConfigProperty | cdk.IResolvable | undefined;
1566 /**
1567 * For network connectivity to AWS resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can access resources and the internet only through that VPC. For more information, see [Configuring a Lambda function to access resources in a VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) .
1568 *
1569 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig
1570 */
1571 vpcConfig: CfnFunction.VpcConfigProperty | cdk.IResolvable | undefined;
1572 /**
1573 * Create a new `AWS::Lambda::Function`.
1574 *
1575 * @param scope - scope in which this resource is defined
1576 * @param id - scoped id of the resource
1577 * @param props - resource properties
1578 */
1579 constructor(scope: cdk.Construct, id: string, props: CfnFunctionProps);
1580 /**
1581 * Examines the CloudFormation resource and discloses attributes.
1582 *
1583 * @param inspector - tree inspector to collect and process attributes
1584 *
1585 */
1586 inspect(inspector: cdk.TreeInspector): void;
1587 protected get cfnProperties(): {
1588 [key: string]: any;
1589 };
1590 protected renderProperties(props: {
1591 [key: string]: any;
1592 }): {
1593 [key: string]: any;
1594 };
1595}
1596export declare namespace CfnFunction {
1597 /**
1598 * The [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) for a Lambda function. To deploy a function defined as a container image, you specify the location of a container image in the Amazon ECR registry. For a .zip file deployment package, you can specify the location of an object in Amazon S3. For Node.js and Python functions, you can specify the function code inline in the template.
1599 *
1600 * Changes to a deployment package in Amazon S3 are not detected automatically during stack updates. To update the function code, change the object key or version in the template.
1601 *
1602 * @struct
1603 * @stability external
1604 *
1605 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html
1606 */
1607 interface CodeProperty {
1608 /**
1609 * URI of a [container image](https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html) in the Amazon ECR registry.
1610 *
1611 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-imageuri
1612 */
1613 readonly imageUri?: string;
1614 /**
1615 * An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account .
1616 *
1617 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3bucket
1618 */
1619 readonly s3Bucket?: string;
1620 /**
1621 * The Amazon S3 key of the deployment package.
1622 *
1623 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3key
1624 */
1625 readonly s3Key?: string;
1626 /**
1627 * For versioned objects, the version of the deployment package object to use.
1628 *
1629 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3objectversion
1630 */
1631 readonly s3ObjectVersion?: string;
1632 /**
1633 * (Node.js and Python) The source code of your Lambda function. If you include your function source inline with this parameter, AWS CloudFormation places it in a file named `index` and zips it to create a [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) . This zip file cannot exceed 4MB. For the `Handler` property, the first part of the handler identifier must be `index` . For example, `index.handler` .
1634 *
1635 * For JSON, you must escape quotes and special characters such as newline ( `\n` ) with a backslash.
1636 *
1637 * If you specify a function that interacts with an AWS CloudFormation custom resource, you don't have to write your own functions to send responses to the custom resource that invoked the function. AWS CloudFormation provides a response module ( [cfn-response](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-lambda-function-code-cfnresponsemodule.html) ) that simplifies sending responses. See [Using AWS Lambda with AWS CloudFormation](https://docs.aws.amazon.com/lambda/latest/dg/services-cloudformation.html) for details.
1638 *
1639 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-zipfile
1640 */
1641 readonly zipFile?: string;
1642 }
1643}
1644export declare namespace CfnFunction {
1645 /**
1646 * The [dead-letter queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed asynchronous invocations.
1647 *
1648 * @struct
1649 * @stability external
1650 *
1651 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-deadletterconfig.html
1652 */
1653 interface DeadLetterConfigProperty {
1654 /**
1655 * The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.
1656 *
1657 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-deadletterconfig.html#cfn-lambda-function-deadletterconfig-targetarn
1658 */
1659 readonly targetArn?: string;
1660 }
1661}
1662export declare namespace CfnFunction {
1663 /**
1664 * A function's environment variable settings. You can use environment variables to adjust your function's behavior without updating code. An environment variable is a pair of strings that are stored in a function's version-specific configuration.
1665 *
1666 * @struct
1667 * @stability external
1668 *
1669 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html
1670 */
1671 interface EnvironmentProperty {
1672 /**
1673 * Environment variable key-value pairs. For more information, see [Using Lambda environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html) .
1674 *
1675 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html#cfn-lambda-function-environment-variables
1676 */
1677 readonly variables?: {
1678 [key: string]: (string);
1679 } | cdk.IResolvable;
1680 }
1681}
1682export declare namespace CfnFunction {
1683 /**
1684 * The size of the function's `/tmp` directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.
1685 *
1686 * @struct
1687 * @stability external
1688 *
1689 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-ephemeralstorage.html
1690 */
1691 interface EphemeralStorageProperty {
1692 /**
1693 * The size of the function's `/tmp` directory.
1694 *
1695 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-ephemeralstorage.html#cfn-lambda-function-ephemeralstorage-size
1696 */
1697 readonly size: number;
1698 }
1699}
1700export declare namespace CfnFunction {
1701 /**
1702 * Details about the connection between a Lambda function and an [Amazon EFS file system](https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html) .
1703 *
1704 * @struct
1705 * @stability external
1706 *
1707 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-filesystemconfig.html
1708 */
1709 interface FileSystemConfigProperty {
1710 /**
1711 * The Amazon Resource Name (ARN) of the Amazon EFS access point that provides access to the file system.
1712 *
1713 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-filesystemconfig.html#cfn-lambda-function-filesystemconfig-arn
1714 */
1715 readonly arn: string;
1716 /**
1717 * The path where the function can access the file system, starting with `/mnt/` .
1718 *
1719 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-filesystemconfig.html#cfn-lambda-function-filesystemconfig-localmountpath
1720 */
1721 readonly localMountPath: string;
1722 }
1723}
1724export declare namespace CfnFunction {
1725 /**
1726 * Configuration values that override the container image Dockerfile settings. For more information, see [Container image settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) .
1727 *
1728 * @struct
1729 * @stability external
1730 *
1731 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-imageconfig.html
1732 */
1733 interface ImageConfigProperty {
1734 /**
1735 * Specifies parameters that you want to pass in with ENTRYPOINT. You can specify a maximum of 1,500 parameters in the list.
1736 *
1737 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-imageconfig.html#cfn-lambda-function-imageconfig-command
1738 */
1739 readonly command?: string[];
1740 /**
1741 * Specifies the entry point to their application, which is typically the location of the runtime executable. You can specify a maximum of 1,500 string entries in the list.
1742 *
1743 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-imageconfig.html#cfn-lambda-function-imageconfig-entrypoint
1744 */
1745 readonly entryPoint?: string[];
1746 /**
1747 * Specifies the working directory. The length of the directory string cannot exceed 1,000 characters.
1748 *
1749 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-imageconfig.html#cfn-lambda-function-imageconfig-workingdirectory
1750 */
1751 readonly workingDirectory?: string;
1752 }
1753}
1754export declare namespace CfnFunction {
1755 /**
1756 * Sets the runtime management configuration for a function's version. For more information, see [Runtime updates](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html) .
1757 *
1758 * @struct
1759 * @stability external
1760 *
1761 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-runtimemanagementconfig.html
1762 */
1763 interface RuntimeManagementConfigProperty {
1764 /**
1765 * The ARN of the runtime version you want the function to use.
1766 *
1767 * > This is only required if you're using the *Manual* runtime update mode.
1768 *
1769 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-runtimemanagementconfig.html#cfn-lambda-function-runtimemanagementconfig-runtimeversionarn
1770 */
1771 readonly runtimeVersionArn?: string;
1772 /**
1773 * Specify the runtime update mode.
1774 *
1775 * - *Auto (default)* - Automatically update to the most recent and secure runtime version using a [Two-phase runtime version rollout](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase) . This is the best choice for most customers to ensure they always benefit from runtime updates.
1776 * - *FunctionUpdate* - Lambda updates the runtime of you function to the most recent and secure runtime version when you update your function. This approach synchronizes runtime updates with function deployments, giving you control over when runtime updates are applied and allowing you to detect and mitigate rare runtime update incompatibilities early. When using this setting, you need to regularly update your functions to keep their runtime up-to-date.
1777 * - *Manual* - You specify a runtime version in your function configuration. The function will use this runtime version indefinitely. In the rare case where a new runtime version is incompatible with an existing function, this allows you to roll back your function to an earlier runtime version. For more information, see [Roll back a runtime version](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback) .
1778 *
1779 * *Valid Values* : `Auto` | `FunctionUpdate` | `Manual`
1780 *
1781 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-runtimemanagementconfig.html#cfn-lambda-function-runtimemanagementconfig-updateruntimeon
1782 */
1783 readonly updateRuntimeOn: string;
1784 }
1785}
1786export declare namespace CfnFunction {
1787 /**
1788 * The function's [AWS Lambda SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting.
1789 *
1790 * @struct
1791 * @stability external
1792 *
1793 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-snapstart.html
1794 */
1795 interface SnapStartProperty {
1796 /**
1797 * Set `ApplyOn` to `PublishedVersions` to create a snapshot of the initialized execution environment when you publish a function version.
1798 *
1799 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-snapstart.html#cfn-lambda-function-snapstart-applyon
1800 */
1801 readonly applyOn: string;
1802 }
1803}
1804export declare namespace CfnFunction {
1805 /**
1806 * The function's [SnapStart](https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html) setting.
1807 *
1808 * @struct
1809 * @stability external
1810 *
1811 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-snapstartresponse.html
1812 */
1813 interface SnapStartResponseProperty {
1814 /**
1815 * When set to `PublishedVersions` , Lambda creates a snapshot of the execution environment when you publish a function version.
1816 *
1817 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-snapstartresponse.html#cfn-lambda-function-snapstartresponse-applyon
1818 */
1819 readonly applyOn?: string;
1820 /**
1821 * When you provide a [qualified Amazon Resource Name (ARN)](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using) , this response element indicates whether SnapStart is activated for the specified function version.
1822 *
1823 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-snapstartresponse.html#cfn-lambda-function-snapstartresponse-optimizationstatus
1824 */
1825 readonly optimizationStatus?: string;
1826 }
1827}
1828export declare namespace CfnFunction {
1829 /**
1830 * The function's [AWS X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To sample and record incoming requests, set `Mode` to `Active` .
1831 *
1832 * @struct
1833 * @stability external
1834 *
1835 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-tracingconfig.html
1836 */
1837 interface TracingConfigProperty {
1838 /**
1839 * The tracing mode.
1840 *
1841 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-tracingconfig.html#cfn-lambda-function-tracingconfig-mode
1842 */
1843 readonly mode?: string;
1844 }
1845}
1846export declare namespace CfnFunction {
1847 /**
1848 * The VPC security groups and subnets that are attached to a Lambda function. When you connect a function to a VPC, Lambda creates an elastic network interface for each combination of security group and subnet in the function's VPC configuration. The function can only access resources and the internet through that VPC. For more information, see [VPC Settings](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html) .
1849 *
1850 * > When you delete a function, AWS CloudFormation monitors the state of its network interfaces and waits for Lambda to delete them before proceeding. If the VPC is defined in the same stack, the network interfaces need to be deleted by Lambda before AWS CloudFormation can delete the VPC's resources.
1851 * >
1852 * > To monitor network interfaces, AWS CloudFormation needs the `ec2:DescribeNetworkInterfaces` permission. It obtains this from the user or role that modifies the stack. If you don't provide this permission, AWS CloudFormation does not wait for network interfaces to be deleted.
1853 *
1854 * @struct
1855 * @stability external
1856 *
1857 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html
1858 */
1859 interface VpcConfigProperty {
1860 /**
1861 * A list of VPC security group IDs.
1862 *
1863 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html#cfn-lambda-function-vpcconfig-securitygroupids
1864 */
1865 readonly securityGroupIds?: string[];
1866 /**
1867 * A list of VPC subnet IDs.
1868 *
1869 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html#cfn-lambda-function-vpcconfig-subnetids
1870 */
1871 readonly subnetIds?: string[];
1872 }
1873}
1874/**
1875 * Properties for defining a `CfnLayerVersion`
1876 *
1877 * @struct
1878 * @stability external
1879 *
1880 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html
1881 */
1882export interface CfnLayerVersionProps {
1883 /**
1884 * The function layer archive.
1885 *
1886 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-content
1887 */
1888 readonly content: CfnLayerVersion.ContentProperty | cdk.IResolvable;
1889 /**
1890 * A list of compatible [instruction set architectures](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html) .
1891 *
1892 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-compatiblearchitectures
1893 */
1894 readonly compatibleArchitectures?: string[];
1895 /**
1896 * A list of compatible [function runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) . Used for filtering with [ListLayers](https://docs.aws.amazon.com/lambda/latest/dg/API_ListLayers.html) and [ListLayerVersions](https://docs.aws.amazon.com/lambda/latest/dg/API_ListLayerVersions.html) .
1897 *
1898 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-compatibleruntimes
1899 */
1900 readonly compatibleRuntimes?: string[];
1901 /**
1902 * The description of the version.
1903 *
1904 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-description
1905 */
1906 readonly description?: string;
1907 /**
1908 * The name or Amazon Resource Name (ARN) of the layer.
1909 *
1910 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-layername
1911 */
1912 readonly layerName?: string;
1913 /**
1914 * The layer's software license. It can be any of the following:
1915 *
1916 * - An [SPDX license identifier](https://docs.aws.amazon.com/https://spdx.org/licenses/) . For example, `MIT` .
1917 * - The URL of a license hosted on the internet. For example, `https://opensource.org/licenses/MIT` .
1918 * - The full text of the license.
1919 *
1920 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-licenseinfo
1921 */
1922 readonly licenseInfo?: string;
1923}
1924/**
1925 * A CloudFormation `AWS::Lambda::LayerVersion`
1926 *
1927 * The `AWS::Lambda::LayerVersion` resource creates a [Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) from a ZIP archive.
1928 *
1929 * @cloudformationResource AWS::Lambda::LayerVersion
1930 * @stability external
1931 *
1932 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html
1933 */
1934export declare class CfnLayerVersion extends cdk.CfnResource implements cdk.IInspectable {
1935 /**
1936 * The CloudFormation resource type name for this resource class.
1937 */
1938 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::LayerVersion";
1939 /**
1940 * A factory method that creates a new instance of this class from an object
1941 * containing the CloudFormation properties of this resource.
1942 * Used in the @aws-cdk/cloudformation-include module.
1943 *
1944 * @internal
1945 */
1946 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnLayerVersion;
1947 /**
1948 * The function layer archive.
1949 *
1950 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-content
1951 */
1952 content: CfnLayerVersion.ContentProperty | cdk.IResolvable;
1953 /**
1954 * A list of compatible [instruction set architectures](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html) .
1955 *
1956 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-compatiblearchitectures
1957 */
1958 compatibleArchitectures: string[] | undefined;
1959 /**
1960 * A list of compatible [function runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) . Used for filtering with [ListLayers](https://docs.aws.amazon.com/lambda/latest/dg/API_ListLayers.html) and [ListLayerVersions](https://docs.aws.amazon.com/lambda/latest/dg/API_ListLayerVersions.html) .
1961 *
1962 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-compatibleruntimes
1963 */
1964 compatibleRuntimes: string[] | undefined;
1965 /**
1966 * The description of the version.
1967 *
1968 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-description
1969 */
1970 description: string | undefined;
1971 /**
1972 * The name or Amazon Resource Name (ARN) of the layer.
1973 *
1974 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-layername
1975 */
1976 layerName: string | undefined;
1977 /**
1978 * The layer's software license. It can be any of the following:
1979 *
1980 * - An [SPDX license identifier](https://docs.aws.amazon.com/https://spdx.org/licenses/) . For example, `MIT` .
1981 * - The URL of a license hosted on the internet. For example, `https://opensource.org/licenses/MIT` .
1982 * - The full text of the license.
1983 *
1984 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-licenseinfo
1985 */
1986 licenseInfo: string | undefined;
1987 /**
1988 * Create a new `AWS::Lambda::LayerVersion`.
1989 *
1990 * @param scope - scope in which this resource is defined
1991 * @param id - scoped id of the resource
1992 * @param props - resource properties
1993 */
1994 constructor(scope: cdk.Construct, id: string, props: CfnLayerVersionProps);
1995 /**
1996 * Examines the CloudFormation resource and discloses attributes.
1997 *
1998 * @param inspector - tree inspector to collect and process attributes
1999 *
2000 */
2001 inspect(inspector: cdk.TreeInspector): void;
2002 protected get cfnProperties(): {
2003 [key: string]: any;
2004 };
2005 protected renderProperties(props: {
2006 [key: string]: any;
2007 }): {
2008 [key: string]: any;
2009 };
2010}
2011export declare namespace CfnLayerVersion {
2012 /**
2013 * A ZIP archive that contains the contents of an [Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) .
2014 *
2015 * @struct
2016 * @stability external
2017 *
2018 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-layerversion-content.html
2019 */
2020 interface ContentProperty {
2021 /**
2022 * The Amazon S3 bucket of the layer archive.
2023 *
2024 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-layerversion-content.html#cfn-lambda-layerversion-content-s3bucket
2025 */
2026 readonly s3Bucket: string;
2027 /**
2028 * The Amazon S3 key of the layer archive.
2029 *
2030 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-layerversion-content.html#cfn-lambda-layerversion-content-s3key
2031 */
2032 readonly s3Key: string;
2033 /**
2034 * For versioned objects, the version of the layer archive object to use.
2035 *
2036 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-layerversion-content.html#cfn-lambda-layerversion-content-s3objectversion
2037 */
2038 readonly s3ObjectVersion?: string;
2039 }
2040}
2041/**
2042 * Properties for defining a `CfnLayerVersionPermission`
2043 *
2044 * @struct
2045 * @stability external
2046 *
2047 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html
2048 */
2049export interface CfnLayerVersionPermissionProps {
2050 /**
2051 * The API action that grants access to the layer. For example, `lambda:GetLayerVersion` .
2052 *
2053 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-action
2054 */
2055 readonly action: string;
2056 /**
2057 * The name or Amazon Resource Name (ARN) of the layer.
2058 *
2059 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-layerversionarn
2060 */
2061 readonly layerVersionArn: string;
2062 /**
2063 * An account ID, or `*` to grant layer usage permission to all accounts in an organization, or all AWS accounts (if `organizationId` is not specified). For the last case, make sure that you really do want all AWS accounts to have usage permission to this layer.
2064 *
2065 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-principal
2066 */
2067 readonly principal: string;
2068 /**
2069 * With the principal set to `*` , grant permission to all accounts in the specified organization.
2070 *
2071 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-organizationid
2072 */
2073 readonly organizationId?: string;
2074}
2075/**
2076 * A CloudFormation `AWS::Lambda::LayerVersionPermission`
2077 *
2078 * The `AWS::Lambda::LayerVersionPermission` resource adds permissions to the resource-based policy of a version of an [Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) . Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all AWS accounts, or all accounts in an organization.
2079 *
2080 * > Since the release of the [UpdateReplacePolicy](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatereplacepolicy.html) both `UpdateReplacePolicy` and `DeletionPolicy` are required to protect your Resources/LayerPermissions from deletion.
2081 *
2082 * @cloudformationResource AWS::Lambda::LayerVersionPermission
2083 * @stability external
2084 *
2085 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html
2086 */
2087export declare class CfnLayerVersionPermission extends cdk.CfnResource implements cdk.IInspectable {
2088 /**
2089 * The CloudFormation resource type name for this resource class.
2090 */
2091 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::LayerVersionPermission";
2092 /**
2093 * A factory method that creates a new instance of this class from an object
2094 * containing the CloudFormation properties of this resource.
2095 * Used in the @aws-cdk/cloudformation-include module.
2096 *
2097 * @internal
2098 */
2099 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnLayerVersionPermission;
2100 /**
2101 * The API action that grants access to the layer. For example, `lambda:GetLayerVersion` .
2102 *
2103 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-action
2104 */
2105 action: string;
2106 /**
2107 * The name or Amazon Resource Name (ARN) of the layer.
2108 *
2109 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-layerversionarn
2110 */
2111 layerVersionArn: string;
2112 /**
2113 * An account ID, or `*` to grant layer usage permission to all accounts in an organization, or all AWS accounts (if `organizationId` is not specified). For the last case, make sure that you really do want all AWS accounts to have usage permission to this layer.
2114 *
2115 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-principal
2116 */
2117 principal: string;
2118 /**
2119 * With the principal set to `*` , grant permission to all accounts in the specified organization.
2120 *
2121 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-organizationid
2122 */
2123 organizationId: string | undefined;
2124 /**
2125 * Create a new `AWS::Lambda::LayerVersionPermission`.
2126 *
2127 * @param scope - scope in which this resource is defined
2128 * @param id - scoped id of the resource
2129 * @param props - resource properties
2130 */
2131 constructor(scope: cdk.Construct, id: string, props: CfnLayerVersionPermissionProps);
2132 /**
2133 * Examines the CloudFormation resource and discloses attributes.
2134 *
2135 * @param inspector - tree inspector to collect and process attributes
2136 *
2137 */
2138 inspect(inspector: cdk.TreeInspector): void;
2139 protected get cfnProperties(): {
2140 [key: string]: any;
2141 };
2142 protected renderProperties(props: {
2143 [key: string]: any;
2144 }): {
2145 [key: string]: any;
2146 };
2147}
2148/**
2149 * Properties for defining a `CfnPermission`
2150 *
2151 * @struct
2152 * @stability external
2153 *
2154 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html
2155 */
2156export interface CfnPermissionProps {
2157 /**
2158 * The action that the principal can use on the function. For example, `lambda:InvokeFunction` or `lambda:GetFunction` .
2159 *
2160 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-action
2161 */
2162 readonly action: string;
2163 /**
2164 * The name of the Lambda function, version, or alias.
2165 *
2166 * **Name formats** - *Function name* – `my-function` (name-only), `my-function:v1` (with alias).
2167 * - *Function ARN* – `arn:aws:lambda:us-west-2:123456789012:function:my-function` .
2168 * - *Partial ARN* – `123456789012:function:my-function` .
2169 *
2170 * You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
2171 *
2172 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-functionname
2173 */
2174 readonly functionName: string;
2175 /**
2176 * The AWS service or AWS account that invokes the function. If you specify a service, use `SourceArn` or `SourceAccount` to limit who can invoke the function through that service.
2177 *
2178 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-principal
2179 */
2180 readonly principal: string;
2181 /**
2182 * For Alexa Smart Home functions, a token that the invoker must supply.
2183 *
2184 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-eventsourcetoken
2185 */
2186 readonly eventSourceToken?: string;
2187 /**
2188 * The type of authentication that your function URL uses. Set to `AWS_IAM` if you want to restrict access to authenticated users only. Set to `NONE` if you want to bypass IAM authentication to create a public endpoint. For more information, see [Security and auth model for Lambda function URLs](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html) .
2189 *
2190 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-functionurlauthtype
2191 */
2192 readonly functionUrlAuthType?: string;
2193 /**
2194 * The identifier for your organization in AWS Organizations . Use this to grant permissions to all the AWS accounts under this organization.
2195 *
2196 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-principalorgid
2197 */
2198 readonly principalOrgId?: string;
2199 /**
2200 * For AWS service , the ID of the AWS account that owns the resource. Use this together with `SourceArn` to ensure that the specified account owns the resource. It is possible for an Amazon S3 bucket to be deleted by its owner and recreated by another account.
2201 *
2202 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-sourceaccount
2203 */
2204 readonly sourceAccount?: string;
2205 /**
2206 * For AWS services , the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.
2207 *
2208 * Note that Lambda configures the comparison using the `StringLike` operator.
2209 *
2210 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-sourcearn
2211 */
2212 readonly sourceArn?: string;
2213}
2214/**
2215 * A CloudFormation `AWS::Lambda::Permission`
2216 *
2217 * The `AWS::Lambda::Permission` resource grants an AWS service or another account permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function.
2218 *
2219 * To grant permission to another account, specify the account ID as the `Principal` . To grant permission to an organization defined in AWS Organizations , specify the organization ID as the `PrincipalOrgID` . For AWS services, the principal is a domain-style identifier defined by the service, like `s3.amazonaws.com` or `sns.amazonaws.com` . For AWS services, you can also specify the ARN of the associated resource as the `SourceArn` . If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.
2220 *
2221 * If your function has a function URL, you can specify the `FunctionUrlAuthType` parameter. This adds a condition to your permission that only applies when your function URL's `AuthType` matches the specified `FunctionUrlAuthType` . For more information about the `AuthType` parameter, see [Security and auth model for Lambda function URLs](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html) .
2222 *
2223 * This resource adds a statement to a resource-based permission policy for the function. For more information about function policies, see [Lambda Function Policies](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html) .
2224 *
2225 * @cloudformationResource AWS::Lambda::Permission
2226 * @stability external
2227 *
2228 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html
2229 */
2230export declare class CfnPermission extends cdk.CfnResource implements cdk.IInspectable {
2231 /**
2232 * The CloudFormation resource type name for this resource class.
2233 */
2234 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::Permission";
2235 /**
2236 * A factory method that creates a new instance of this class from an object
2237 * containing the CloudFormation properties of this resource.
2238 * Used in the @aws-cdk/cloudformation-include module.
2239 *
2240 * @internal
2241 */
2242 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnPermission;
2243 /**
2244 * The action that the principal can use on the function. For example, `lambda:InvokeFunction` or `lambda:GetFunction` .
2245 *
2246 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-action
2247 */
2248 action: string;
2249 /**
2250 * The name of the Lambda function, version, or alias.
2251 *
2252 * **Name formats** - *Function name* – `my-function` (name-only), `my-function:v1` (with alias).
2253 * - *Function ARN* – `arn:aws:lambda:us-west-2:123456789012:function:my-function` .
2254 * - *Partial ARN* – `123456789012:function:my-function` .
2255 *
2256 * You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
2257 *
2258 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-functionname
2259 */
2260 functionName: string;
2261 /**
2262 * The AWS service or AWS account that invokes the function. If you specify a service, use `SourceArn` or `SourceAccount` to limit who can invoke the function through that service.
2263 *
2264 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-principal
2265 */
2266 principal: string;
2267 /**
2268 * For Alexa Smart Home functions, a token that the invoker must supply.
2269 *
2270 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-eventsourcetoken
2271 */
2272 eventSourceToken: string | undefined;
2273 /**
2274 * The type of authentication that your function URL uses. Set to `AWS_IAM` if you want to restrict access to authenticated users only. Set to `NONE` if you want to bypass IAM authentication to create a public endpoint. For more information, see [Security and auth model for Lambda function URLs](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html) .
2275 *
2276 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-functionurlauthtype
2277 */
2278 functionUrlAuthType: string | undefined;
2279 /**
2280 * The identifier for your organization in AWS Organizations . Use this to grant permissions to all the AWS accounts under this organization.
2281 *
2282 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-principalorgid
2283 */
2284 principalOrgId: string | undefined;
2285 /**
2286 * For AWS service , the ID of the AWS account that owns the resource. Use this together with `SourceArn` to ensure that the specified account owns the resource. It is possible for an Amazon S3 bucket to be deleted by its owner and recreated by another account.
2287 *
2288 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-sourceaccount
2289 */
2290 sourceAccount: string | undefined;
2291 /**
2292 * For AWS services , the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.
2293 *
2294 * Note that Lambda configures the comparison using the `StringLike` operator.
2295 *
2296 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-sourcearn
2297 */
2298 sourceArn: string | undefined;
2299 /**
2300 * Create a new `AWS::Lambda::Permission`.
2301 *
2302 * @param scope - scope in which this resource is defined
2303 * @param id - scoped id of the resource
2304 * @param props - resource properties
2305 */
2306 constructor(scope: cdk.Construct, id: string, props: CfnPermissionProps);
2307 /**
2308 * Examines the CloudFormation resource and discloses attributes.
2309 *
2310 * @param inspector - tree inspector to collect and process attributes
2311 *
2312 */
2313 inspect(inspector: cdk.TreeInspector): void;
2314 protected get cfnProperties(): {
2315 [key: string]: any;
2316 };
2317 protected renderProperties(props: {
2318 [key: string]: any;
2319 }): {
2320 [key: string]: any;
2321 };
2322}
2323/**
2324 * Properties for defining a `CfnUrl`
2325 *
2326 * @struct
2327 * @stability external
2328 *
2329 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html
2330 */
2331export interface CfnUrlProps {
2332 /**
2333 * The type of authentication that your function URL uses. Set to `AWS_IAM` if you want to restrict access to authenticated users only. Set to `NONE` if you want to bypass IAM authentication to create a public endpoint. For more information, see [Security and auth model for Lambda function URLs](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html) .
2334 *
2335 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-authtype
2336 */
2337 readonly authType: string;
2338 /**
2339 * The name of the Lambda function.
2340 *
2341 * **Name formats** - *Function name* - `my-function` .
2342 * - *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:my-function` .
2343 * - *Partial ARN* - `123456789012:function:my-function` .
2344 *
2345 * The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
2346 *
2347 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-targetfunctionarn
2348 */
2349 readonly targetFunctionArn: string;
2350 /**
2351 * The [Cross-Origin Resource Sharing (CORS)](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) settings for your function URL.
2352 *
2353 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-cors
2354 */
2355 readonly cors?: CfnUrl.CorsProperty | cdk.IResolvable;
2356 /**
2357 * Use one of the following options:
2358 *
2359 * - `BUFFERED` – This is the default option. Lambda invokes your function using the `Invoke` API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB.
2360 * - `RESPONSE_STREAM` – Your function streams payload results as they become available. Lambda invokes your function using the `InvokeWithResponseStream` API operation. The maximum response payload size is 20 MB, however, you can [request a quota increase](https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html) .
2361 *
2362 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-invokemode
2363 */
2364 readonly invokeMode?: string;
2365 /**
2366 * The alias name.
2367 *
2368 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-qualifier
2369 */
2370 readonly qualifier?: string;
2371}
2372/**
2373 * A CloudFormation `AWS::Lambda::Url`
2374 *
2375 * The `AWS::Lambda::Url` resource creates a function URL with the specified configuration parameters. A [function URL](https://docs.aws.amazon.com/lambda/latest/dg/lambda-urls.html) is a dedicated HTTP(S) endpoint that you can use to invoke your function.
2376 *
2377 * @cloudformationResource AWS::Lambda::Url
2378 * @stability external
2379 *
2380 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html
2381 */
2382export declare class CfnUrl extends cdk.CfnResource implements cdk.IInspectable {
2383 /**
2384 * The CloudFormation resource type name for this resource class.
2385 */
2386 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::Url";
2387 /**
2388 * A factory method that creates a new instance of this class from an object
2389 * containing the CloudFormation properties of this resource.
2390 * Used in the @aws-cdk/cloudformation-include module.
2391 *
2392 * @internal
2393 */
2394 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnUrl;
2395 /**
2396 * The Amazon Resource Name (ARN) of the function.
2397 * @cloudformationAttribute FunctionArn
2398 */
2399 readonly attrFunctionArn: string;
2400 /**
2401 * The HTTP URL endpoint for your function.
2402 * @cloudformationAttribute FunctionUrl
2403 */
2404 readonly attrFunctionUrl: string;
2405 /**
2406 * The type of authentication that your function URL uses. Set to `AWS_IAM` if you want to restrict access to authenticated users only. Set to `NONE` if you want to bypass IAM authentication to create a public endpoint. For more information, see [Security and auth model for Lambda function URLs](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html) .
2407 *
2408 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-authtype
2409 */
2410 authType: string;
2411 /**
2412 * The name of the Lambda function.
2413 *
2414 * **Name formats** - *Function name* - `my-function` .
2415 * - *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:my-function` .
2416 * - *Partial ARN* - `123456789012:function:my-function` .
2417 *
2418 * The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
2419 *
2420 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-targetfunctionarn
2421 */
2422 targetFunctionArn: string;
2423 /**
2424 * The [Cross-Origin Resource Sharing (CORS)](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) settings for your function URL.
2425 *
2426 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-cors
2427 */
2428 cors: CfnUrl.CorsProperty | cdk.IResolvable | undefined;
2429 /**
2430 * Use one of the following options:
2431 *
2432 * - `BUFFERED` – This is the default option. Lambda invokes your function using the `Invoke` API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB.
2433 * - `RESPONSE_STREAM` – Your function streams payload results as they become available. Lambda invokes your function using the `InvokeWithResponseStream` API operation. The maximum response payload size is 20 MB, however, you can [request a quota increase](https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html) .
2434 *
2435 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-invokemode
2436 */
2437 invokeMode: string | undefined;
2438 /**
2439 * The alias name.
2440 *
2441 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-qualifier
2442 */
2443 qualifier: string | undefined;
2444 /**
2445 * Create a new `AWS::Lambda::Url`.
2446 *
2447 * @param scope - scope in which this resource is defined
2448 * @param id - scoped id of the resource
2449 * @param props - resource properties
2450 */
2451 constructor(scope: cdk.Construct, id: string, props: CfnUrlProps);
2452 /**
2453 * Examines the CloudFormation resource and discloses attributes.
2454 *
2455 * @param inspector - tree inspector to collect and process attributes
2456 *
2457 */
2458 inspect(inspector: cdk.TreeInspector): void;
2459 protected get cfnProperties(): {
2460 [key: string]: any;
2461 };
2462 protected renderProperties(props: {
2463 [key: string]: any;
2464 }): {
2465 [key: string]: any;
2466 };
2467}
2468export declare namespace CfnUrl {
2469 /**
2470 * The [Cross-Origin Resource Sharing (CORS)](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) settings for your function URL. Use CORS to grant access to your function URL from any origin. You can also use CORS to control access for specific HTTP headers and methods in requests to your function URL.
2471 *
2472 * @struct
2473 * @stability external
2474 *
2475 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-url-cors.html
2476 */
2477 interface CorsProperty {
2478 /**
2479 * Whether you want to allow cookies or other credentials in requests to your function URL. The default is `false` .
2480 *
2481 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-url-cors.html#cfn-lambda-url-cors-allowcredentials
2482 */
2483 readonly allowCredentials?: boolean | cdk.IResolvable;
2484 /**
2485 * The HTTP headers that origins can include in requests to your function URL. For example: `Date` , `Keep-Alive` , `X-Custom-Header` .
2486 *
2487 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-url-cors.html#cfn-lambda-url-cors-allowheaders
2488 */
2489 readonly allowHeaders?: string[];
2490 /**
2491 * The HTTP methods that are allowed when calling your function URL. For example: `GET` , `POST` , `DELETE` , or the wildcard character ( `*` ).
2492 *
2493 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-url-cors.html#cfn-lambda-url-cors-allowmethods
2494 */
2495 readonly allowMethods?: string[];
2496 /**
2497 * The origins that can access your function URL. You can list any number of specific origins, separated by a comma. For example: `https://www.example.com` , `http://localhost:60905` .
2498 *
2499 * Alternatively, you can grant access to all origins with the wildcard character ( `*` ).
2500 *
2501 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-url-cors.html#cfn-lambda-url-cors-alloworigins
2502 */
2503 readonly allowOrigins?: string[];
2504 /**
2505 * The HTTP headers in your function response that you want to expose to origins that call your function URL. For example: `Date` , `Keep-Alive` , `X-Custom-Header` .
2506 *
2507 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-url-cors.html#cfn-lambda-url-cors-exposeheaders
2508 */
2509 readonly exposeHeaders?: string[];
2510 /**
2511 * The maximum amount of time, in seconds, that browsers can cache results of a preflight request. By default, this is set to `0` , which means the browser will not cache results.
2512 *
2513 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-url-cors.html#cfn-lambda-url-cors-maxage
2514 */
2515 readonly maxAge?: number;
2516 }
2517}
2518/**
2519 * Properties for defining a `CfnVersion`
2520 *
2521 * @struct
2522 * @stability external
2523 *
2524 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html
2525 */
2526export interface CfnVersionProps {
2527 /**
2528 * The name of the Lambda function.
2529 *
2530 * **Name formats** - *Function name* - `MyFunction` .
2531 * - *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:MyFunction` .
2532 * - *Partial ARN* - `123456789012:function:MyFunction` .
2533 *
2534 * The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
2535 *
2536 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-functionname
2537 */
2538 readonly functionName: string;
2539 /**
2540 * Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. Updates are not supported for this property.
2541 *
2542 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-codesha256
2543 */
2544 readonly codeSha256?: string;
2545 /**
2546 * A description for the version to override the description in the function configuration. Updates are not supported for this property.
2547 *
2548 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-description
2549 */
2550 readonly description?: string;
2551 /**
2552 * Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
2553 *
2554 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-provisionedconcurrencyconfig
2555 */
2556 readonly provisionedConcurrencyConfig?: CfnVersion.ProvisionedConcurrencyConfigurationProperty | cdk.IResolvable;
2557}
2558/**
2559 * A CloudFormation `AWS::Lambda::Version`
2560 *
2561 * The `AWS::Lambda::Version` resource creates a [version](https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change.
2562 *
2563 * @cloudformationResource AWS::Lambda::Version
2564 * @stability external
2565 *
2566 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html
2567 */
2568export declare class CfnVersion extends cdk.CfnResource implements cdk.IInspectable {
2569 /**
2570 * The CloudFormation resource type name for this resource class.
2571 */
2572 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::Version";
2573 /**
2574 * A factory method that creates a new instance of this class from an object
2575 * containing the CloudFormation properties of this resource.
2576 * Used in the @aws-cdk/cloudformation-include module.
2577 *
2578 * @internal
2579 */
2580 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnVersion;
2581 /**
2582 * The version number.
2583 * @cloudformationAttribute Version
2584 */
2585 readonly attrVersion: string;
2586 /**
2587 * The name of the Lambda function.
2588 *
2589 * **Name formats** - *Function name* - `MyFunction` .
2590 * - *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:MyFunction` .
2591 * - *Partial ARN* - `123456789012:function:MyFunction` .
2592 *
2593 * The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
2594 *
2595 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-functionname
2596 */
2597 functionName: string;
2598 /**
2599 * Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. Updates are not supported for this property.
2600 *
2601 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-codesha256
2602 */
2603 codeSha256: string | undefined;
2604 /**
2605 * A description for the version to override the description in the function configuration. Updates are not supported for this property.
2606 *
2607 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-description
2608 */
2609 description: string | undefined;
2610 /**
2611 * Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
2612 *
2613 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-provisionedconcurrencyconfig
2614 */
2615 provisionedConcurrencyConfig: CfnVersion.ProvisionedConcurrencyConfigurationProperty | cdk.IResolvable | undefined;
2616 /**
2617 * Create a new `AWS::Lambda::Version`.
2618 *
2619 * @param scope - scope in which this resource is defined
2620 * @param id - scoped id of the resource
2621 * @param props - resource properties
2622 */
2623 constructor(scope: cdk.Construct, id: string, props: CfnVersionProps);
2624 /**
2625 * Examines the CloudFormation resource and discloses attributes.
2626 *
2627 * @param inspector - tree inspector to collect and process attributes
2628 *
2629 */
2630 inspect(inspector: cdk.TreeInspector): void;
2631 protected get cfnProperties(): {
2632 [key: string]: any;
2633 };
2634 protected renderProperties(props: {
2635 [key: string]: any;
2636 }): {
2637 [key: string]: any;
2638 };
2639}
2640export declare namespace CfnVersion {
2641 /**
2642 * A [provisioned concurrency](https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html) configuration for a function's version.
2643 *
2644 * @struct
2645 * @stability external
2646 *
2647 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-version-provisionedconcurrencyconfiguration.html
2648 */
2649 interface ProvisionedConcurrencyConfigurationProperty {
2650 /**
2651 * The amount of provisioned concurrency to allocate for the version.
2652 *
2653 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-version-provisionedconcurrencyconfiguration.html#cfn-lambda-version-provisionedconcurrencyconfiguration-provisionedconcurrentexecutions
2654 */
2655 readonly provisionedConcurrentExecutions: number;
2656 }
2657}