UNPKG

130 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 an SQS queue.
383 * - *Topic* - The ARN of an 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 an SQS queue.
454 * - *Topic* - The ARN of an 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 * `AWS::Lambda::EventSourceMapping.AmazonManagedKafkaEventSourceConfig`
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 *
594 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-batchsize
595 */
596 readonly batchSize?: number;
597 /**
598 * (Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
599 *
600 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-bisectbatchonfunctionerror
601 */
602 readonly bisectBatchOnFunctionError?: boolean | cdk.IResolvable;
603 /**
604 * (Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
605 *
606 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-destinationconfig
607 */
608 readonly destinationConfig?: CfnEventSourceMapping.DestinationConfigProperty | cdk.IResolvable;
609 /**
610 * When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
611 *
612 * Default: True
613 *
614 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-enabled
615 */
616 readonly enabled?: boolean | cdk.IResolvable;
617 /**
618 * The Amazon Resource Name (ARN) of the event source.
619 *
620 * - *Amazon Kinesis* - The ARN of the data stream or a stream consumer.
621 * - *Amazon DynamoDB Streams* - The ARN of the stream.
622 * - *Amazon Simple Queue Service* - The ARN of the queue.
623 * - *Amazon Managed Streaming for Apache Kafka* - The ARN of the cluster.
624 *
625 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-eventsourcearn
626 */
627 readonly eventSourceArn?: string;
628 /**
629 * (Streams and Amazon SQS) 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) .
630 *
631 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-filtercriteria
632 */
633 readonly filterCriteria?: CfnEventSourceMapping.FilterCriteriaProperty | cdk.IResolvable;
634 /**
635 * (Streams and SQS) A list of current response type enums applied to the event source mapping.
636 *
637 * Valid Values: `ReportBatchItemFailures`
638 *
639 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionresponsetypes
640 */
641 readonly functionResponseTypes?: string[];
642 /**
643 * The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
644 *
645 * *Default ( Kinesis , DynamoDB , Amazon SQS event sources)* : 0
646 *
647 * *Default ( Amazon MSK , Kafka, Amazon MQ event sources)* : 500 ms
648 *
649 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumbatchingwindowinseconds
650 */
651 readonly maximumBatchingWindowInSeconds?: number;
652 /**
653 * (Streams only) Discard records older than the specified age. The default value is -1,
654 * which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.
655 *
656 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumrecordageinseconds
657 */
658 readonly maximumRecordAgeInSeconds?: number;
659 /**
660 * (Streams only) Discard records after the specified number of retries. The default value is -1,
661 * 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.
662 *
663 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumretryattempts
664 */
665 readonly maximumRetryAttempts?: number;
666 /**
667 * (Streams only) The number of batches to process concurrently from each shard. The default value is 1.
668 *
669 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-parallelizationfactor
670 */
671 readonly parallelizationFactor?: number;
672 /**
673 * (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
674 *
675 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-queues
676 */
677 readonly queues?: string[];
678 /**
679 * The self-managed Apache Kafka cluster for your event source.
680 *
681 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource
682 */
683 readonly selfManagedEventSource?: CfnEventSourceMapping.SelfManagedEventSourceProperty | cdk.IResolvable;
684 /**
685 * `AWS::Lambda::EventSourceMapping.SelfManagedKafkaEventSourceConfig`
686 *
687 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig
688 */
689 readonly selfManagedKafkaEventSourceConfig?: CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty | cdk.IResolvable;
690 /**
691 * An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
692 *
693 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-sourceaccessconfigurations
694 */
695 readonly sourceAccessConfigurations?: Array<CfnEventSourceMapping.SourceAccessConfigurationProperty | cdk.IResolvable> | cdk.IResolvable;
696 /**
697 * The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB.
698 *
699 * - *LATEST* - Read only new records.
700 * - *TRIM_HORIZON* - Process all available records.
701 * - *AT_TIMESTAMP* - Specify a time from which to start reading records.
702 *
703 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingposition
704 */
705 readonly startingPosition?: string;
706 /**
707 * With `StartingPosition` set to `AT_TIMESTAMP` , the time from which to start reading, in Unix time seconds.
708 *
709 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingpositiontimestamp
710 */
711 readonly startingPositionTimestamp?: number;
712 /**
713 * The name of the Kafka topic.
714 *
715 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-topics
716 */
717 readonly topics?: string[];
718 /**
719 * (Streams only) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds.
720 *
721 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-tumblingwindowinseconds
722 */
723 readonly tumblingWindowInSeconds?: number;
724}
725/**
726 * A CloudFormation `AWS::Lambda::EventSourceMapping`
727 *
728 * 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.
729 *
730 * 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.
731 *
732 * - [Configuring a Dynamo DB stream as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping)
733 * - [Configuring a Kinesis stream as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping)
734 * - [Configuring an SQS queue as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource)
735 * - [Configuring an MQ broker as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping)
736 * - [Configuring MSK as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html)
737 * - [Configuring Self-Managed Apache Kafka as an event source](https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html)
738 *
739 * @cloudformationResource AWS::Lambda::EventSourceMapping
740 * @stability external
741 *
742 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
743 */
744export declare class CfnEventSourceMapping extends cdk.CfnResource implements cdk.IInspectable {
745 /**
746 * The CloudFormation resource type name for this resource class.
747 */
748 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::EventSourceMapping";
749 /**
750 * A factory method that creates a new instance of this class from an object
751 * containing the CloudFormation properties of this resource.
752 * Used in the @aws-cdk/cloudformation-include module.
753 *
754 * @internal
755 */
756 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnEventSourceMapping;
757 /**
758 * The event source mapping's ID.
759 * @cloudformationAttribute Id
760 */
761 readonly attrId: string;
762 /**
763 * The name of the Lambda function.
764 *
765 * **Name formats** - *Function name* - `MyFunction` .
766 * - *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:MyFunction` .
767 * - *Version or Alias ARN* - `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD` .
768 * - *Partial ARN* - `123456789012:function:MyFunction` .
769 *
770 * The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
771 *
772 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionname
773 */
774 functionName: string;
775 /**
776 * `AWS::Lambda::EventSourceMapping.AmazonManagedKafkaEventSourceConfig`
777 *
778 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig
779 */
780 amazonManagedKafkaEventSourceConfig: CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty | cdk.IResolvable | undefined;
781 /**
782 * 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).
783 *
784 * - *Amazon Kinesis* - Default 100. Max 10,000.
785 * - *Amazon DynamoDB Streams* - Default 100. Max 10,000.
786 * - *Amazon Simple Queue Service* - Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.
787 * - *Amazon Managed Streaming for Apache Kafka* - Default 100. Max 10,000.
788 * - *Self-Managed Apache Kafka* - Default 100. Max 10,000.
789 * - *Amazon MQ (ActiveMQ and RabbitMQ)* - Default 100. Max 10,000.
790 *
791 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-batchsize
792 */
793 batchSize: number | undefined;
794 /**
795 * (Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
796 *
797 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-bisectbatchonfunctionerror
798 */
799 bisectBatchOnFunctionError: boolean | cdk.IResolvable | undefined;
800 /**
801 * (Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
802 *
803 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-destinationconfig
804 */
805 destinationConfig: CfnEventSourceMapping.DestinationConfigProperty | cdk.IResolvable | undefined;
806 /**
807 * When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
808 *
809 * Default: True
810 *
811 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-enabled
812 */
813 enabled: boolean | cdk.IResolvable | undefined;
814 /**
815 * The Amazon Resource Name (ARN) of the event source.
816 *
817 * - *Amazon Kinesis* - The ARN of the data stream or a stream consumer.
818 * - *Amazon DynamoDB Streams* - The ARN of the stream.
819 * - *Amazon Simple Queue Service* - The ARN of the queue.
820 * - *Amazon Managed Streaming for Apache Kafka* - The ARN of the cluster.
821 *
822 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-eventsourcearn
823 */
824 eventSourceArn: string | undefined;
825 /**
826 * (Streams and Amazon SQS) 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) .
827 *
828 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-filtercriteria
829 */
830 filterCriteria: CfnEventSourceMapping.FilterCriteriaProperty | cdk.IResolvable | undefined;
831 /**
832 * (Streams and SQS) A list of current response type enums applied to the event source mapping.
833 *
834 * Valid Values: `ReportBatchItemFailures`
835 *
836 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionresponsetypes
837 */
838 functionResponseTypes: string[] | undefined;
839 /**
840 * The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
841 *
842 * *Default ( Kinesis , DynamoDB , Amazon SQS event sources)* : 0
843 *
844 * *Default ( Amazon MSK , Kafka, Amazon MQ event sources)* : 500 ms
845 *
846 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumbatchingwindowinseconds
847 */
848 maximumBatchingWindowInSeconds: number | undefined;
849 /**
850 * (Streams only) Discard records older than the specified age. The default value is -1,
851 * which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.
852 *
853 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumrecordageinseconds
854 */
855 maximumRecordAgeInSeconds: number | undefined;
856 /**
857 * (Streams only) Discard records after the specified number of retries. The default value is -1,
858 * 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.
859 *
860 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumretryattempts
861 */
862 maximumRetryAttempts: number | undefined;
863 /**
864 * (Streams only) The number of batches to process concurrently from each shard. The default value is 1.
865 *
866 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-parallelizationfactor
867 */
868 parallelizationFactor: number | undefined;
869 /**
870 * (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
871 *
872 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-queues
873 */
874 queues: string[] | undefined;
875 /**
876 * The self-managed Apache Kafka cluster for your event source.
877 *
878 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource
879 */
880 selfManagedEventSource: CfnEventSourceMapping.SelfManagedEventSourceProperty | cdk.IResolvable | undefined;
881 /**
882 * `AWS::Lambda::EventSourceMapping.SelfManagedKafkaEventSourceConfig`
883 *
884 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig
885 */
886 selfManagedKafkaEventSourceConfig: CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty | cdk.IResolvable | undefined;
887 /**
888 * An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
889 *
890 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-sourceaccessconfigurations
891 */
892 sourceAccessConfigurations: Array<CfnEventSourceMapping.SourceAccessConfigurationProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
893 /**
894 * The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB.
895 *
896 * - *LATEST* - Read only new records.
897 * - *TRIM_HORIZON* - Process all available records.
898 * - *AT_TIMESTAMP* - Specify a time from which to start reading records.
899 *
900 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingposition
901 */
902 startingPosition: string | undefined;
903 /**
904 * With `StartingPosition` set to `AT_TIMESTAMP` , the time from which to start reading, in Unix time seconds.
905 *
906 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingpositiontimestamp
907 */
908 startingPositionTimestamp: number | undefined;
909 /**
910 * The name of the Kafka topic.
911 *
912 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-topics
913 */
914 topics: string[] | undefined;
915 /**
916 * (Streams only) The duration in seconds of a processing window. The range is between 1 second up to 900 seconds.
917 *
918 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-tumblingwindowinseconds
919 */
920 tumblingWindowInSeconds: number | undefined;
921 /**
922 * Create a new `AWS::Lambda::EventSourceMapping`.
923 *
924 * @param scope - scope in which this resource is defined
925 * @param id - scoped id of the resource
926 * @param props - resource properties
927 */
928 constructor(scope: cdk.Construct, id: string, props: CfnEventSourceMappingProps);
929 /**
930 * Examines the CloudFormation resource and discloses attributes.
931 *
932 * @param inspector - tree inspector to collect and process attributes
933 *
934 */
935 inspect(inspector: cdk.TreeInspector): void;
936 protected get cfnProperties(): {
937 [key: string]: any;
938 };
939 protected renderProperties(props: {
940 [key: string]: any;
941 }): {
942 [key: string]: any;
943 };
944}
945export declare namespace CfnEventSourceMapping {
946 /**
947 *
948 *
949 * @struct
950 * @stability external
951 *
952 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig.html
953 */
954 interface AmazonManagedKafkaEventSourceConfigProperty {
955 /**
956 * `CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty.ConsumerGroupId`
957 *
958 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig-consumergroupid
959 */
960 readonly consumerGroupId?: string;
961 }
962}
963export declare namespace CfnEventSourceMapping {
964 /**
965 * A configuration object that specifies the destination of an event after Lambda processes it.
966 *
967 * @struct
968 * @stability external
969 *
970 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-destinationconfig.html
971 */
972 interface DestinationConfigProperty {
973 /**
974 * The destination configuration for failed invocations.
975 *
976 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-destinationconfig.html#cfn-lambda-eventsourcemapping-destinationconfig-onfailure
977 */
978 readonly onFailure?: CfnEventSourceMapping.OnFailureProperty | cdk.IResolvable;
979 }
980}
981export declare namespace CfnEventSourceMapping {
982 /**
983 * The list of bootstrap servers for your Kafka brokers in the following format: `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` .
984 *
985 * @struct
986 * @stability external
987 *
988 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-endpoints.html
989 */
990 interface EndpointsProperty {
991 /**
992 * The list of bootstrap servers for your Kafka brokers in the following format: `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` .
993 *
994 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-endpoints.html#cfn-lambda-eventsourcemapping-endpoints-kafkabootstrapservers
995 */
996 readonly kafkaBootstrapServers?: string[];
997 }
998}
999export declare namespace CfnEventSourceMapping {
1000 /**
1001 * A structure within a `FilterCriteria` object that defines an event filtering pattern.
1002 *
1003 * @struct
1004 * @stability external
1005 *
1006 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filter.html
1007 */
1008 interface FilterProperty {
1009 /**
1010 * 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) .
1011 *
1012 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filter.html#cfn-lambda-eventsourcemapping-filter-pattern
1013 */
1014 readonly pattern?: string;
1015 }
1016}
1017export declare namespace CfnEventSourceMapping {
1018 /**
1019 * An object that contains the filters for an event source.
1020 *
1021 * @struct
1022 * @stability external
1023 *
1024 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filtercriteria.html
1025 */
1026 interface FilterCriteriaProperty {
1027 /**
1028 * A list of filters.
1029 *
1030 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filtercriteria.html#cfn-lambda-eventsourcemapping-filtercriteria-filters
1031 */
1032 readonly filters?: Array<CfnEventSourceMapping.FilterProperty | cdk.IResolvable> | cdk.IResolvable;
1033 }
1034}
1035export declare namespace CfnEventSourceMapping {
1036 /**
1037 * A destination for events that failed processing.
1038 *
1039 * @struct
1040 * @stability external
1041 *
1042 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-onfailure.html
1043 */
1044 interface OnFailureProperty {
1045 /**
1046 * The Amazon Resource Name (ARN) of the destination resource.
1047 *
1048 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-onfailure.html#cfn-lambda-eventsourcemapping-onfailure-destination
1049 */
1050 readonly destination?: string;
1051 }
1052}
1053export declare namespace CfnEventSourceMapping {
1054 /**
1055 * The self-managed Apache Kafka cluster for your event source.
1056 *
1057 * @struct
1058 * @stability external
1059 *
1060 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedeventsource.html
1061 */
1062 interface SelfManagedEventSourceProperty {
1063 /**
1064 * The list of bootstrap servers for your Kafka brokers in the following format: `"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]` .
1065 *
1066 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedeventsource.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource-endpoints
1067 */
1068 readonly endpoints?: CfnEventSourceMapping.EndpointsProperty | cdk.IResolvable;
1069 }
1070}
1071export declare namespace CfnEventSourceMapping {
1072 /**
1073 *
1074 *
1075 * @struct
1076 * @stability external
1077 *
1078 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig.html
1079 */
1080 interface SelfManagedKafkaEventSourceConfigProperty {
1081 /**
1082 * `CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty.ConsumerGroupId`
1083 *
1084 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig-consumergroupid
1085 */
1086 readonly consumerGroupId?: string;
1087 }
1088}
1089export declare namespace CfnEventSourceMapping {
1090 /**
1091 * An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
1092 *
1093 * @struct
1094 * @stability external
1095 *
1096 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-sourceaccessconfiguration.html
1097 */
1098 interface SourceAccessConfigurationProperty {
1099 /**
1100 * The type of authentication protocol, VPC components, or virtual host for your event source. For example: `"Type":"SASL_SCRAM_512_AUTH"` .
1101 *
1102 * - `BASIC_AUTH` - (Amazon MQ) The AWS Secrets Manager secret that stores your broker credentials.
1103 * - `BASIC_AUTH` - (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL/PLAIN authentication of your Apache Kafka brokers.
1104 * - `VPC_SUBNET` - The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster.
1105 * - `VPC_SECURITY_GROUP` - The VPC security group used to manage access to your self-managed Apache Kafka brokers.
1106 * - `SASL_SCRAM_256_AUTH` - The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers.
1107 * - `SASL_SCRAM_512_AUTH` - The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers.
1108 * - `VIRTUAL_HOST` - (Amazon MQ) 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.
1109 * - `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.
1110 * - `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.
1111 *
1112 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-sourceaccessconfiguration.html#cfn-lambda-eventsourcemapping-sourceaccessconfiguration-type
1113 */
1114 readonly type?: string;
1115 /**
1116 * The value for your chosen configuration in `Type` . For example: `"URI": "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName"` .
1117 *
1118 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-sourceaccessconfiguration.html#cfn-lambda-eventsourcemapping-sourceaccessconfiguration-uri
1119 */
1120 readonly uri?: string;
1121 }
1122}
1123/**
1124 * Properties for defining a `CfnFunction`
1125 *
1126 * @struct
1127 * @stability external
1128 *
1129 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html
1130 */
1131export interface CfnFunctionProps {
1132 /**
1133 * The code for the function.
1134 *
1135 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-code
1136 */
1137 readonly code: CfnFunction.CodeProperty | cdk.IResolvable;
1138 /**
1139 * The Amazon Resource Name (ARN) of the function's execution role.
1140 *
1141 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-role
1142 */
1143 readonly role: string;
1144 /**
1145 * 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` .
1146 *
1147 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-architectures
1148 */
1149 readonly architectures?: string[];
1150 /**
1151 * To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration
1152 * includes a set of signing profiles, which define the trusted publishers for this function.
1153 *
1154 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-codesigningconfigarn
1155 */
1156 readonly codeSigningConfigArn?: string;
1157 /**
1158 * 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#dlq) .
1159 *
1160 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig
1161 */
1162 readonly deadLetterConfig?: CfnFunction.DeadLetterConfigProperty | cdk.IResolvable;
1163 /**
1164 * A description of the function.
1165 *
1166 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-description
1167 */
1168 readonly description?: string;
1169 /**
1170 * Environment variables that are accessible from function code during execution.
1171 *
1172 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment
1173 */
1174 readonly environment?: CfnFunction.EnvironmentProperty | cdk.IResolvable;
1175 /**
1176 * The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.
1177 *
1178 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-ephemeralstorage
1179 */
1180 readonly ephemeralStorage?: CfnFunction.EphemeralStorageProperty | cdk.IResolvable;
1181 /**
1182 * 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.
1183 *
1184 * For more information about using the `DependsOn` attribute, see [DependsOn Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) .
1185 *
1186 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-filesystemconfigs
1187 */
1188 readonly fileSystemConfigs?: Array<CfnFunction.FileSystemConfigProperty | cdk.IResolvable> | cdk.IResolvable;
1189 /**
1190 * The name of the Lambda function, up to 64 characters in length. If you don't specify a name, AWS CloudFormation generates one.
1191 *
1192 * 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.
1193 *
1194 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-functionname
1195 */
1196 readonly functionName?: string;
1197 /**
1198 * The name of the method within your code that Lambda calls to execute 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 [Programming Model](https://docs.aws.amazon.com/lambda/latest/dg/programming-model-v2.html) .
1199 *
1200 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-handler
1201 */
1202 readonly handler?: string;
1203 /**
1204 * Configuration values that override the container image Dockerfile settings. See [Container settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) .
1205 *
1206 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-imageconfig
1207 */
1208 readonly imageConfig?: CfnFunction.ImageConfigProperty | cdk.IResolvable;
1209 /**
1210 * The ARN of the AWS Key Management Service ( AWS KMS ) key that's used to encrypt your function's environment variables. If it's not provided, AWS Lambda uses a default service key.
1211 *
1212 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-kmskeyarn
1213 */
1214 readonly kmsKeyArn?: string;
1215 /**
1216 * 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.
1217 *
1218 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-layers
1219 */
1220 readonly layers?: string[];
1221 /**
1222 * The amount of [memory available to the function](https://docs.aws.amazon.com/lambda/latest/dg/configuration-memory.html) 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.
1223 *
1224 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-memorysize
1225 */
1226 readonly memorySize?: number;
1227 /**
1228 * The type of deployment package. Set to `Image` for container image and set `Zip` for .zip file archive.
1229 *
1230 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-packagetype
1231 */
1232 readonly packageType?: string;
1233 /**
1234 * The number of simultaneous executions to reserve for the function.
1235 *
1236 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-reservedconcurrentexecutions
1237 */
1238 readonly reservedConcurrentExecutions?: number;
1239 /**
1240 * 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.
1241 *
1242 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtime
1243 */
1244 readonly runtime?: string;
1245 /**
1246 * A list of [tags](https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to apply to the function.
1247 *
1248 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tags
1249 */
1250 readonly tags?: cdk.CfnTag[];
1251 /**
1252 * 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 additional information, see [Lambda execution environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html) .
1253 *
1254 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-timeout
1255 */
1256 readonly timeout?: number;
1257 /**
1258 * 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) .
1259 *
1260 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig
1261 */
1262 readonly tracingConfig?: CfnFunction.TracingConfigProperty | cdk.IResolvable;
1263 /**
1264 * For network connectivity to AWS resources in a [VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-network.html) , specify a list of security groups and subnets in the VPC.
1265 *
1266 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig
1267 */
1268 readonly vpcConfig?: CfnFunction.VpcConfigProperty | cdk.IResolvable;
1269}
1270/**
1271 * A CloudFormation `AWS::Lambda::Function`
1272 *
1273 * 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.
1274 *
1275 * 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.
1276 *
1277 * 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) .
1278 *
1279 * 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.
1280 *
1281 * Note that you configure [provisioned concurrency](https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html) on a `AWS::Lambda::Version` or a `AWS::Lambda::Alias` .
1282 *
1283 * 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.*
1284 *
1285 * @cloudformationResource AWS::Lambda::Function
1286 * @stability external
1287 *
1288 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html
1289 */
1290export declare class CfnFunction extends cdk.CfnResource implements cdk.IInspectable {
1291 /**
1292 * The CloudFormation resource type name for this resource class.
1293 */
1294 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::Function";
1295 /**
1296 * A factory method that creates a new instance of this class from an object
1297 * containing the CloudFormation properties of this resource.
1298 * Used in the @aws-cdk/cloudformation-include module.
1299 *
1300 * @internal
1301 */
1302 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnFunction;
1303 /**
1304 * The Amazon Resource Name (ARN) of the function.
1305 * @cloudformationAttribute Arn
1306 */
1307 readonly attrArn: string;
1308 /**
1309 * The code for the function.
1310 *
1311 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-code
1312 */
1313 code: CfnFunction.CodeProperty | cdk.IResolvable;
1314 /**
1315 * The Amazon Resource Name (ARN) of the function's execution role.
1316 *
1317 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-role
1318 */
1319 role: string;
1320 /**
1321 * 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` .
1322 *
1323 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-architectures
1324 */
1325 architectures: string[] | undefined;
1326 /**
1327 * To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration
1328 * includes a set of signing profiles, which define the trusted publishers for this function.
1329 *
1330 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-codesigningconfigarn
1331 */
1332 codeSigningConfigArn: string | undefined;
1333 /**
1334 * 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#dlq) .
1335 *
1336 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-deadletterconfig
1337 */
1338 deadLetterConfig: CfnFunction.DeadLetterConfigProperty | cdk.IResolvable | undefined;
1339 /**
1340 * A description of the function.
1341 *
1342 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-description
1343 */
1344 description: string | undefined;
1345 /**
1346 * Environment variables that are accessible from function code during execution.
1347 *
1348 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-environment
1349 */
1350 environment: CfnFunction.EnvironmentProperty | cdk.IResolvable | undefined;
1351 /**
1352 * The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.
1353 *
1354 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-ephemeralstorage
1355 */
1356 ephemeralStorage: CfnFunction.EphemeralStorageProperty | cdk.IResolvable | undefined;
1357 /**
1358 * 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.
1359 *
1360 * For more information about using the `DependsOn` attribute, see [DependsOn Attribute](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) .
1361 *
1362 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-filesystemconfigs
1363 */
1364 fileSystemConfigs: Array<CfnFunction.FileSystemConfigProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
1365 /**
1366 * The name of the Lambda function, up to 64 characters in length. If you don't specify a name, AWS CloudFormation generates one.
1367 *
1368 * 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.
1369 *
1370 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-functionname
1371 */
1372 functionName: string | undefined;
1373 /**
1374 * The name of the method within your code that Lambda calls to execute 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 [Programming Model](https://docs.aws.amazon.com/lambda/latest/dg/programming-model-v2.html) .
1375 *
1376 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-handler
1377 */
1378 handler: string | undefined;
1379 /**
1380 * Configuration values that override the container image Dockerfile settings. See [Container settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) .
1381 *
1382 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-imageconfig
1383 */
1384 imageConfig: CfnFunction.ImageConfigProperty | cdk.IResolvable | undefined;
1385 /**
1386 * The ARN of the AWS Key Management Service ( AWS KMS ) key that's used to encrypt your function's environment variables. If it's not provided, AWS Lambda uses a default service key.
1387 *
1388 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-kmskeyarn
1389 */
1390 kmsKeyArn: string | undefined;
1391 /**
1392 * 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.
1393 *
1394 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-layers
1395 */
1396 layers: string[] | undefined;
1397 /**
1398 * The amount of [memory available to the function](https://docs.aws.amazon.com/lambda/latest/dg/configuration-memory.html) 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.
1399 *
1400 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-memorysize
1401 */
1402 memorySize: number | undefined;
1403 /**
1404 * The type of deployment package. Set to `Image` for container image and set `Zip` for .zip file archive.
1405 *
1406 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-packagetype
1407 */
1408 packageType: string | undefined;
1409 /**
1410 * The number of simultaneous executions to reserve for the function.
1411 *
1412 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-reservedconcurrentexecutions
1413 */
1414 reservedConcurrentExecutions: number | undefined;
1415 /**
1416 * 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.
1417 *
1418 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtime
1419 */
1420 runtime: string | undefined;
1421 /**
1422 * A list of [tags](https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to apply to the function.
1423 *
1424 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tags
1425 */
1426 readonly tags: cdk.TagManager;
1427 /**
1428 * 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 additional information, see [Lambda execution environment](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html) .
1429 *
1430 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-timeout
1431 */
1432 timeout: number | undefined;
1433 /**
1434 * 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) .
1435 *
1436 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig
1437 */
1438 tracingConfig: CfnFunction.TracingConfigProperty | cdk.IResolvable | undefined;
1439 /**
1440 * For network connectivity to AWS resources in a [VPC](https://docs.aws.amazon.com/lambda/latest/dg/configuration-network.html) , specify a list of security groups and subnets in the VPC.
1441 *
1442 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-vpcconfig
1443 */
1444 vpcConfig: CfnFunction.VpcConfigProperty | cdk.IResolvable | undefined;
1445 /**
1446 * Create a new `AWS::Lambda::Function`.
1447 *
1448 * @param scope - scope in which this resource is defined
1449 * @param id - scoped id of the resource
1450 * @param props - resource properties
1451 */
1452 constructor(scope: cdk.Construct, id: string, props: CfnFunctionProps);
1453 /**
1454 * Examines the CloudFormation resource and discloses attributes.
1455 *
1456 * @param inspector - tree inspector to collect and process attributes
1457 *
1458 */
1459 inspect(inspector: cdk.TreeInspector): void;
1460 protected get cfnProperties(): {
1461 [key: string]: any;
1462 };
1463 protected renderProperties(props: {
1464 [key: string]: any;
1465 }): {
1466 [key: string]: any;
1467 };
1468}
1469export declare namespace CfnFunction {
1470 /**
1471 * 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.
1472 *
1473 * 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.
1474 *
1475 * @struct
1476 * @stability external
1477 *
1478 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html
1479 */
1480 interface CodeProperty {
1481 /**
1482 * URI of a [container image](https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html) in the Amazon ECR registry.
1483 *
1484 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-imageuri
1485 */
1486 readonly imageUri?: string;
1487 /**
1488 * An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.
1489 *
1490 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3bucket
1491 */
1492 readonly s3Bucket?: string;
1493 /**
1494 * The Amazon S3 key of the deployment package.
1495 *
1496 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3key
1497 */
1498 readonly s3Key?: string;
1499 /**
1500 * For versioned objects, the version of the deployment package object to use.
1501 *
1502 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-s3objectversion
1503 */
1504 readonly s3ObjectVersion?: string;
1505 /**
1506 * (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` .
1507 *
1508 * For JSON, you must escape quotes and special characters such as newline ( `\n` ) with a backslash.
1509 *
1510 * 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.
1511 *
1512 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-zipfile
1513 */
1514 readonly zipFile?: string;
1515 }
1516}
1517export declare namespace CfnFunction {
1518 /**
1519 * The [dead-letter queue](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed asynchronous invocations.
1520 *
1521 * @struct
1522 * @stability external
1523 *
1524 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-deadletterconfig.html
1525 */
1526 interface DeadLetterConfigProperty {
1527 /**
1528 * The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.
1529 *
1530 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-deadletterconfig.html#cfn-lambda-function-deadletterconfig-targetarn
1531 */
1532 readonly targetArn?: string;
1533 }
1534}
1535export declare namespace CfnFunction {
1536 /**
1537 * 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.
1538 *
1539 * @struct
1540 * @stability external
1541 *
1542 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html
1543 */
1544 interface EnvironmentProperty {
1545 /**
1546 * Environment variable key-value pairs. For more information, see [Using Lambda environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html) .
1547 *
1548 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html#cfn-lambda-function-environment-variables
1549 */
1550 readonly variables?: {
1551 [key: string]: (string);
1552 } | cdk.IResolvable;
1553 }
1554}
1555export declare namespace CfnFunction {
1556 /**
1557 * The size of the function’s /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10240 MB.
1558 *
1559 * @struct
1560 * @stability external
1561 *
1562 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-ephemeralstorage.html
1563 */
1564 interface EphemeralStorageProperty {
1565 /**
1566 * The size of the function’s /tmp directory.
1567 *
1568 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-ephemeralstorage.html#cfn-lambda-function-ephemeralstorage-size
1569 */
1570 readonly size: number;
1571 }
1572}
1573export declare namespace CfnFunction {
1574 /**
1575 * 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) .
1576 *
1577 * @struct
1578 * @stability external
1579 *
1580 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-filesystemconfig.html
1581 */
1582 interface FileSystemConfigProperty {
1583 /**
1584 * The Amazon Resource Name (ARN) of the Amazon EFS access point that provides access to the file system.
1585 *
1586 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-filesystemconfig.html#cfn-lambda-function-filesystemconfig-arn
1587 */
1588 readonly arn: string;
1589 /**
1590 * The path where the function can access the file system, starting with `/mnt/` .
1591 *
1592 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-filesystemconfig.html#cfn-lambda-function-filesystemconfig-localmountpath
1593 */
1594 readonly localMountPath: string;
1595 }
1596}
1597export declare namespace CfnFunction {
1598 /**
1599 * Configuration values that override the container image Dockerfile settings. See [Container settings](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms) .
1600 *
1601 * @struct
1602 * @stability external
1603 *
1604 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-imageconfig.html
1605 */
1606 interface ImageConfigProperty {
1607 /**
1608 * Specifies parameters that you want to pass in with ENTRYPOINT.
1609 *
1610 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-imageconfig.html#cfn-lambda-function-imageconfig-command
1611 */
1612 readonly command?: string[];
1613 /**
1614 * Specifies the entry point to their application, which is typically the location of the runtime executable.
1615 *
1616 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-imageconfig.html#cfn-lambda-function-imageconfig-entrypoint
1617 */
1618 readonly entryPoint?: string[];
1619 /**
1620 * Specifies the working directory.
1621 *
1622 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-imageconfig.html#cfn-lambda-function-imageconfig-workingdirectory
1623 */
1624 readonly workingDirectory?: string;
1625 }
1626}
1627export declare namespace CfnFunction {
1628 /**
1629 * 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` .
1630 *
1631 * @struct
1632 * @stability external
1633 *
1634 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-tracingconfig.html
1635 */
1636 interface TracingConfigProperty {
1637 /**
1638 * The tracing mode.
1639 *
1640 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-tracingconfig.html#cfn-lambda-function-tracingconfig-mode
1641 */
1642 readonly mode?: string;
1643 }
1644}
1645export declare namespace CfnFunction {
1646 /**
1647 * 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) .
1648 *
1649 * > 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.
1650 * >
1651 * > 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.
1652 *
1653 * @struct
1654 * @stability external
1655 *
1656 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html
1657 */
1658 interface VpcConfigProperty {
1659 /**
1660 * A list of VPC security groups IDs.
1661 *
1662 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html#cfn-lambda-function-vpcconfig-securitygroupids
1663 */
1664 readonly securityGroupIds?: string[];
1665 /**
1666 * A list of VPC subnet IDs.
1667 *
1668 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-vpcconfig.html#cfn-lambda-function-vpcconfig-subnetids
1669 */
1670 readonly subnetIds?: string[];
1671 }
1672}
1673/**
1674 * Properties for defining a `CfnLayerVersion`
1675 *
1676 * @struct
1677 * @stability external
1678 *
1679 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html
1680 */
1681export interface CfnLayerVersionProps {
1682 /**
1683 * The function layer archive.
1684 *
1685 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-content
1686 */
1687 readonly content: CfnLayerVersion.ContentProperty | cdk.IResolvable;
1688 /**
1689 * A list of compatible [instruction set architectures](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html) .
1690 *
1691 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-compatiblearchitectures
1692 */
1693 readonly compatibleArchitectures?: string[];
1694 /**
1695 * 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) .
1696 *
1697 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-compatibleruntimes
1698 */
1699 readonly compatibleRuntimes?: string[];
1700 /**
1701 * The description of the version.
1702 *
1703 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-description
1704 */
1705 readonly description?: string;
1706 /**
1707 * The name or Amazon Resource Name (ARN) of the layer.
1708 *
1709 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-layername
1710 */
1711 readonly layerName?: string;
1712 /**
1713 * The layer's software license. It can be any of the following:
1714 *
1715 * - An [SPDX license identifier](https://docs.aws.amazon.com/https://spdx.org/licenses/) . For example, `MIT` .
1716 * - The URL of a license hosted on the internet. For example, `https://opensource.org/licenses/MIT` .
1717 * - The full text of the license.
1718 *
1719 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-licenseinfo
1720 */
1721 readonly licenseInfo?: string;
1722}
1723/**
1724 * A CloudFormation `AWS::Lambda::LayerVersion`
1725 *
1726 * The `AWS::Lambda::LayerVersion` resource creates a [Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) from a ZIP archive.
1727 *
1728 * @cloudformationResource AWS::Lambda::LayerVersion
1729 * @stability external
1730 *
1731 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html
1732 */
1733export declare class CfnLayerVersion extends cdk.CfnResource implements cdk.IInspectable {
1734 /**
1735 * The CloudFormation resource type name for this resource class.
1736 */
1737 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::LayerVersion";
1738 /**
1739 * A factory method that creates a new instance of this class from an object
1740 * containing the CloudFormation properties of this resource.
1741 * Used in the @aws-cdk/cloudformation-include module.
1742 *
1743 * @internal
1744 */
1745 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnLayerVersion;
1746 /**
1747 * The function layer archive.
1748 *
1749 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-content
1750 */
1751 content: CfnLayerVersion.ContentProperty | cdk.IResolvable;
1752 /**
1753 * A list of compatible [instruction set architectures](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html) .
1754 *
1755 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-compatiblearchitectures
1756 */
1757 compatibleArchitectures: string[] | undefined;
1758 /**
1759 * 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) .
1760 *
1761 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-compatibleruntimes
1762 */
1763 compatibleRuntimes: string[] | undefined;
1764 /**
1765 * The description of the version.
1766 *
1767 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-description
1768 */
1769 description: string | undefined;
1770 /**
1771 * The name or Amazon Resource Name (ARN) of the layer.
1772 *
1773 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-layername
1774 */
1775 layerName: string | undefined;
1776 /**
1777 * The layer's software license. It can be any of the following:
1778 *
1779 * - An [SPDX license identifier](https://docs.aws.amazon.com/https://spdx.org/licenses/) . For example, `MIT` .
1780 * - The URL of a license hosted on the internet. For example, `https://opensource.org/licenses/MIT` .
1781 * - The full text of the license.
1782 *
1783 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html#cfn-lambda-layerversion-licenseinfo
1784 */
1785 licenseInfo: string | undefined;
1786 /**
1787 * Create a new `AWS::Lambda::LayerVersion`.
1788 *
1789 * @param scope - scope in which this resource is defined
1790 * @param id - scoped id of the resource
1791 * @param props - resource properties
1792 */
1793 constructor(scope: cdk.Construct, id: string, props: CfnLayerVersionProps);
1794 /**
1795 * Examines the CloudFormation resource and discloses attributes.
1796 *
1797 * @param inspector - tree inspector to collect and process attributes
1798 *
1799 */
1800 inspect(inspector: cdk.TreeInspector): void;
1801 protected get cfnProperties(): {
1802 [key: string]: any;
1803 };
1804 protected renderProperties(props: {
1805 [key: string]: any;
1806 }): {
1807 [key: string]: any;
1808 };
1809}
1810export declare namespace CfnLayerVersion {
1811 /**
1812 * A ZIP archive that contains the contents of an [Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) .
1813 *
1814 * @struct
1815 * @stability external
1816 *
1817 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-layerversion-content.html
1818 */
1819 interface ContentProperty {
1820 /**
1821 * The Amazon S3 bucket of the layer archive.
1822 *
1823 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-layerversion-content.html#cfn-lambda-layerversion-content-s3bucket
1824 */
1825 readonly s3Bucket: string;
1826 /**
1827 * The Amazon S3 key of the layer archive.
1828 *
1829 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-layerversion-content.html#cfn-lambda-layerversion-content-s3key
1830 */
1831 readonly s3Key: string;
1832 /**
1833 * For versioned objects, the version of the layer archive object to use.
1834 *
1835 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-layerversion-content.html#cfn-lambda-layerversion-content-s3objectversion
1836 */
1837 readonly s3ObjectVersion?: string;
1838 }
1839}
1840/**
1841 * Properties for defining a `CfnLayerVersionPermission`
1842 *
1843 * @struct
1844 * @stability external
1845 *
1846 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html
1847 */
1848export interface CfnLayerVersionPermissionProps {
1849 /**
1850 * The API action that grants access to the layer. For example, `lambda:GetLayerVersion` .
1851 *
1852 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-action
1853 */
1854 readonly action: string;
1855 /**
1856 * The name or Amazon Resource Name (ARN) of the layer.
1857 *
1858 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-layerversionarn
1859 */
1860 readonly layerVersionArn: string;
1861 /**
1862 * 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.
1863 *
1864 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-principal
1865 */
1866 readonly principal: string;
1867 /**
1868 * With the principal set to `*` , grant permission to all accounts in the specified organization.
1869 *
1870 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-organizationid
1871 */
1872 readonly organizationId?: string;
1873}
1874/**
1875 * A CloudFormation `AWS::Lambda::LayerVersionPermission`
1876 *
1877 * 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.
1878 *
1879 * > 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.
1880 *
1881 * @cloudformationResource AWS::Lambda::LayerVersionPermission
1882 * @stability external
1883 *
1884 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html
1885 */
1886export declare class CfnLayerVersionPermission extends cdk.CfnResource implements cdk.IInspectable {
1887 /**
1888 * The CloudFormation resource type name for this resource class.
1889 */
1890 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::LayerVersionPermission";
1891 /**
1892 * A factory method that creates a new instance of this class from an object
1893 * containing the CloudFormation properties of this resource.
1894 * Used in the @aws-cdk/cloudformation-include module.
1895 *
1896 * @internal
1897 */
1898 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnLayerVersionPermission;
1899 /**
1900 * The API action that grants access to the layer. For example, `lambda:GetLayerVersion` .
1901 *
1902 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-action
1903 */
1904 action: string;
1905 /**
1906 * The name or Amazon Resource Name (ARN) of the layer.
1907 *
1908 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-layerversionarn
1909 */
1910 layerVersionArn: string;
1911 /**
1912 * 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.
1913 *
1914 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-principal
1915 */
1916 principal: string;
1917 /**
1918 * With the principal set to `*` , grant permission to all accounts in the specified organization.
1919 *
1920 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversionpermission.html#cfn-lambda-layerversionpermission-organizationid
1921 */
1922 organizationId: string | undefined;
1923 /**
1924 * Create a new `AWS::Lambda::LayerVersionPermission`.
1925 *
1926 * @param scope - scope in which this resource is defined
1927 * @param id - scoped id of the resource
1928 * @param props - resource properties
1929 */
1930 constructor(scope: cdk.Construct, id: string, props: CfnLayerVersionPermissionProps);
1931 /**
1932 * Examines the CloudFormation resource and discloses attributes.
1933 *
1934 * @param inspector - tree inspector to collect and process attributes
1935 *
1936 */
1937 inspect(inspector: cdk.TreeInspector): void;
1938 protected get cfnProperties(): {
1939 [key: string]: any;
1940 };
1941 protected renderProperties(props: {
1942 [key: string]: any;
1943 }): {
1944 [key: string]: any;
1945 };
1946}
1947/**
1948 * Properties for defining a `CfnPermission`
1949 *
1950 * @struct
1951 * @stability external
1952 *
1953 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html
1954 */
1955export interface CfnPermissionProps {
1956 /**
1957 * The action that the principal can use on the function. For example, `lambda:InvokeFunction` or `lambda:GetFunction` .
1958 *
1959 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-action
1960 */
1961 readonly action: string;
1962 /**
1963 * The name of the Lambda function, version, or alias.
1964 *
1965 * **Name formats** - *Function name* - `my-function` (name-only), `my-function:v1` (with alias).
1966 * - *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:my-function` .
1967 * - *Partial ARN* - `123456789012:function:my-function` .
1968 *
1969 * 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.
1970 *
1971 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-functionname
1972 */
1973 readonly functionName: string;
1974 /**
1975 * The AWS service or account that invokes the function. If you specify a service, use `SourceArn` or `SourceAccount` to limit who can invoke the function through that service.
1976 *
1977 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-principal
1978 */
1979 readonly principal: string;
1980 /**
1981 * For Alexa Smart Home functions, a token that must be supplied by the invoker.
1982 *
1983 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-eventsourcetoken
1984 */
1985 readonly eventSourceToken?: string;
1986 /**
1987 * The type of authentication that your function URL uses. Set to `AWS_IAM` if you want to restrict access to authenticated `IAM` 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) .
1988 *
1989 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-functionurlauthtype
1990 */
1991 readonly functionUrlAuthType?: string;
1992 /**
1993 * The identifier for your organization in AWS Organizations . Use this to grant permissions to all the AWS accounts under this organization.
1994 *
1995 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-principalorgid
1996 */
1997 readonly principalOrgId?: string;
1998 /**
1999 * For Amazon S3, the ID of the account that owns the resource. Use this together with `SourceArn` to ensure that the resource is owned by the specified account. It is possible for an Amazon S3 bucket to be deleted by its owner and recreated by another account.
2000 *
2001 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-sourceaccount
2002 */
2003 readonly sourceAccount?: string;
2004 /**
2005 * For AWS services, the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.
2006 *
2007 * Note that Lambda configures the comparison using the `StringLike` operator.
2008 *
2009 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-sourcearn
2010 */
2011 readonly sourceArn?: string;
2012}
2013/**
2014 * A CloudFormation `AWS::Lambda::Permission`
2015 *
2016 * 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.
2017 *
2018 * 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.
2019 *
2020 * 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) .
2021 *
2022 * 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) .
2023 *
2024 * @cloudformationResource AWS::Lambda::Permission
2025 * @stability external
2026 *
2027 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html
2028 */
2029export declare class CfnPermission extends cdk.CfnResource implements cdk.IInspectable {
2030 /**
2031 * The CloudFormation resource type name for this resource class.
2032 */
2033 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::Permission";
2034 /**
2035 * A factory method that creates a new instance of this class from an object
2036 * containing the CloudFormation properties of this resource.
2037 * Used in the @aws-cdk/cloudformation-include module.
2038 *
2039 * @internal
2040 */
2041 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnPermission;
2042 /**
2043 * The action that the principal can use on the function. For example, `lambda:InvokeFunction` or `lambda:GetFunction` .
2044 *
2045 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-action
2046 */
2047 action: string;
2048 /**
2049 * The name of the Lambda function, version, or alias.
2050 *
2051 * **Name formats** - *Function name* - `my-function` (name-only), `my-function:v1` (with alias).
2052 * - *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:my-function` .
2053 * - *Partial ARN* - `123456789012:function:my-function` .
2054 *
2055 * 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.
2056 *
2057 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-functionname
2058 */
2059 functionName: string;
2060 /**
2061 * The AWS service or account that invokes the function. If you specify a service, use `SourceArn` or `SourceAccount` to limit who can invoke the function through that service.
2062 *
2063 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-principal
2064 */
2065 principal: string;
2066 /**
2067 * For Alexa Smart Home functions, a token that must be supplied by the invoker.
2068 *
2069 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-eventsourcetoken
2070 */
2071 eventSourceToken: string | undefined;
2072 /**
2073 * The type of authentication that your function URL uses. Set to `AWS_IAM` if you want to restrict access to authenticated `IAM` 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) .
2074 *
2075 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-functionurlauthtype
2076 */
2077 functionUrlAuthType: string | undefined;
2078 /**
2079 * The identifier for your organization in AWS Organizations . Use this to grant permissions to all the AWS accounts under this organization.
2080 *
2081 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-principalorgid
2082 */
2083 principalOrgId: string | undefined;
2084 /**
2085 * For Amazon S3, the ID of the account that owns the resource. Use this together with `SourceArn` to ensure that the resource is owned by the specified account. It is possible for an Amazon S3 bucket to be deleted by its owner and recreated by another account.
2086 *
2087 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-sourceaccount
2088 */
2089 sourceAccount: string | undefined;
2090 /**
2091 * For AWS services, the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.
2092 *
2093 * Note that Lambda configures the comparison using the `StringLike` operator.
2094 *
2095 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html#cfn-lambda-permission-sourcearn
2096 */
2097 sourceArn: string | undefined;
2098 /**
2099 * Create a new `AWS::Lambda::Permission`.
2100 *
2101 * @param scope - scope in which this resource is defined
2102 * @param id - scoped id of the resource
2103 * @param props - resource properties
2104 */
2105 constructor(scope: cdk.Construct, id: string, props: CfnPermissionProps);
2106 /**
2107 * Examines the CloudFormation resource and discloses attributes.
2108 *
2109 * @param inspector - tree inspector to collect and process attributes
2110 *
2111 */
2112 inspect(inspector: cdk.TreeInspector): void;
2113 protected get cfnProperties(): {
2114 [key: string]: any;
2115 };
2116 protected renderProperties(props: {
2117 [key: string]: any;
2118 }): {
2119 [key: string]: any;
2120 };
2121}
2122/**
2123 * Properties for defining a `CfnUrl`
2124 *
2125 * @struct
2126 * @stability external
2127 *
2128 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html
2129 */
2130export interface CfnUrlProps {
2131 /**
2132 * The type of authentication that your function URL uses. Set to `AWS_IAM` if you want to restrict access to authenticated `IAM` 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) .
2133 *
2134 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-authtype
2135 */
2136 readonly authType: string;
2137 /**
2138 * The name of the Lambda function.
2139 *
2140 * **Name formats** - *Function name* - `my-function` .
2141 * - *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:my-function` .
2142 * - *Partial ARN* - `123456789012:function:my-function` .
2143 *
2144 * The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
2145 *
2146 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-targetfunctionarn
2147 */
2148 readonly targetFunctionArn: string;
2149 /**
2150 * 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.
2151 *
2152 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-cors
2153 */
2154 readonly cors?: CfnUrl.CorsProperty | cdk.IResolvable;
2155 /**
2156 * `AWS::Lambda::Url.InvokeMode`
2157 *
2158 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-invokemode
2159 */
2160 readonly invokeMode?: string;
2161 /**
2162 * The alias name.
2163 *
2164 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-qualifier
2165 */
2166 readonly qualifier?: string;
2167}
2168/**
2169 * A CloudFormation `AWS::Lambda::Url`
2170 *
2171 * 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.
2172 *
2173 * @cloudformationResource AWS::Lambda::Url
2174 * @stability external
2175 *
2176 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html
2177 */
2178export declare class CfnUrl extends cdk.CfnResource implements cdk.IInspectable {
2179 /**
2180 * The CloudFormation resource type name for this resource class.
2181 */
2182 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::Url";
2183 /**
2184 * A factory method that creates a new instance of this class from an object
2185 * containing the CloudFormation properties of this resource.
2186 * Used in the @aws-cdk/cloudformation-include module.
2187 *
2188 * @internal
2189 */
2190 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnUrl;
2191 /**
2192 * The Amazon Resource Name (ARN) of the function.
2193 * @cloudformationAttribute FunctionArn
2194 */
2195 readonly attrFunctionArn: string;
2196 /**
2197 * The HTTP URL endpoint for your function.
2198 * @cloudformationAttribute FunctionUrl
2199 */
2200 readonly attrFunctionUrl: string;
2201 /**
2202 * The type of authentication that your function URL uses. Set to `AWS_IAM` if you want to restrict access to authenticated `IAM` 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) .
2203 *
2204 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-authtype
2205 */
2206 authType: string;
2207 /**
2208 * The name of the Lambda function.
2209 *
2210 * **Name formats** - *Function name* - `my-function` .
2211 * - *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:my-function` .
2212 * - *Partial ARN* - `123456789012:function:my-function` .
2213 *
2214 * The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
2215 *
2216 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-targetfunctionarn
2217 */
2218 targetFunctionArn: string;
2219 /**
2220 * 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.
2221 *
2222 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-cors
2223 */
2224 cors: CfnUrl.CorsProperty | cdk.IResolvable | undefined;
2225 /**
2226 * `AWS::Lambda::Url.InvokeMode`
2227 *
2228 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-invokemode
2229 */
2230 invokeMode: string | undefined;
2231 /**
2232 * The alias name.
2233 *
2234 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-qualifier
2235 */
2236 qualifier: string | undefined;
2237 /**
2238 * Create a new `AWS::Lambda::Url`.
2239 *
2240 * @param scope - scope in which this resource is defined
2241 * @param id - scoped id of the resource
2242 * @param props - resource properties
2243 */
2244 constructor(scope: cdk.Construct, id: string, props: CfnUrlProps);
2245 /**
2246 * Examines the CloudFormation resource and discloses attributes.
2247 *
2248 * @param inspector - tree inspector to collect and process attributes
2249 *
2250 */
2251 inspect(inspector: cdk.TreeInspector): void;
2252 protected get cfnProperties(): {
2253 [key: string]: any;
2254 };
2255 protected renderProperties(props: {
2256 [key: string]: any;
2257 }): {
2258 [key: string]: any;
2259 };
2260}
2261export declare namespace CfnUrl {
2262 /**
2263 * 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.
2264 *
2265 * @struct
2266 * @stability external
2267 *
2268 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-url-cors.html
2269 */
2270 interface CorsProperty {
2271 /**
2272 * Whether you want to allow cookies or other credentials in requests to your function URL. The default is `false` .
2273 *
2274 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-url-cors.html#cfn-lambda-url-cors-allowcredentials
2275 */
2276 readonly allowCredentials?: boolean | cdk.IResolvable;
2277 /**
2278 * The HTTP headers that origins can include in requests to your function URL. For example: `Date` , `Keep-Alive` , `X-Custom-Header` .
2279 *
2280 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-url-cors.html#cfn-lambda-url-cors-allowheaders
2281 */
2282 readonly allowHeaders?: string[];
2283 /**
2284 * The HTTP methods that are allowed when calling your function URL. For example: `GET` , `POST` , `DELETE` , or the wildcard character ( `*` ).
2285 *
2286 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-url-cors.html#cfn-lambda-url-cors-allowmethods
2287 */
2288 readonly allowMethods?: string[];
2289 /**
2290 * 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` .
2291 *
2292 * Alternatively, you can grant access to all origins with the wildcard character ( `*` ).
2293 *
2294 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-url-cors.html#cfn-lambda-url-cors-alloworigins
2295 */
2296 readonly allowOrigins?: string[];
2297 /**
2298 * 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` .
2299 *
2300 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-url-cors.html#cfn-lambda-url-cors-exposeheaders
2301 */
2302 readonly exposeHeaders?: string[];
2303 /**
2304 * 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.
2305 *
2306 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-url-cors.html#cfn-lambda-url-cors-maxage
2307 */
2308 readonly maxAge?: number;
2309 }
2310}
2311/**
2312 * Properties for defining a `CfnVersion`
2313 *
2314 * @struct
2315 * @stability external
2316 *
2317 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html
2318 */
2319export interface CfnVersionProps {
2320 /**
2321 * The name of the Lambda function.
2322 *
2323 * **Name formats** - *Function name* - `MyFunction` .
2324 * - *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:MyFunction` .
2325 * - *Partial ARN* - `123456789012:function:MyFunction` .
2326 *
2327 * The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
2328 *
2329 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-functionname
2330 */
2331 readonly functionName: string;
2332 /**
2333 * 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.
2334 *
2335 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-codesha256
2336 */
2337 readonly codeSha256?: string;
2338 /**
2339 * A description for the version to override the description in the function configuration. Updates are not supported for this property.
2340 *
2341 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-description
2342 */
2343 readonly description?: string;
2344 /**
2345 * Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
2346 *
2347 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-provisionedconcurrencyconfig
2348 */
2349 readonly provisionedConcurrencyConfig?: CfnVersion.ProvisionedConcurrencyConfigurationProperty | cdk.IResolvable;
2350}
2351/**
2352 * A CloudFormation `AWS::Lambda::Version`
2353 *
2354 * 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.
2355 *
2356 * @cloudformationResource AWS::Lambda::Version
2357 * @stability external
2358 *
2359 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html
2360 */
2361export declare class CfnVersion extends cdk.CfnResource implements cdk.IInspectable {
2362 /**
2363 * The CloudFormation resource type name for this resource class.
2364 */
2365 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::Lambda::Version";
2366 /**
2367 * A factory method that creates a new instance of this class from an object
2368 * containing the CloudFormation properties of this resource.
2369 * Used in the @aws-cdk/cloudformation-include module.
2370 *
2371 * @internal
2372 */
2373 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnVersion;
2374 /**
2375 * The version number.
2376 * @cloudformationAttribute Version
2377 */
2378 readonly attrVersion: string;
2379 /**
2380 * The name of the Lambda function.
2381 *
2382 * **Name formats** - *Function name* - `MyFunction` .
2383 * - *Function ARN* - `arn:aws:lambda:us-west-2:123456789012:function:MyFunction` .
2384 * - *Partial ARN* - `123456789012:function:MyFunction` .
2385 *
2386 * The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
2387 *
2388 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-functionname
2389 */
2390 functionName: string;
2391 /**
2392 * 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.
2393 *
2394 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-codesha256
2395 */
2396 codeSha256: string | undefined;
2397 /**
2398 * A description for the version to override the description in the function configuration. Updates are not supported for this property.
2399 *
2400 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-description
2401 */
2402 description: string | undefined;
2403 /**
2404 * Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
2405 *
2406 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html#cfn-lambda-version-provisionedconcurrencyconfig
2407 */
2408 provisionedConcurrencyConfig: CfnVersion.ProvisionedConcurrencyConfigurationProperty | cdk.IResolvable | undefined;
2409 /**
2410 * Create a new `AWS::Lambda::Version`.
2411 *
2412 * @param scope - scope in which this resource is defined
2413 * @param id - scoped id of the resource
2414 * @param props - resource properties
2415 */
2416 constructor(scope: cdk.Construct, id: string, props: CfnVersionProps);
2417 /**
2418 * Examines the CloudFormation resource and discloses attributes.
2419 *
2420 * @param inspector - tree inspector to collect and process attributes
2421 *
2422 */
2423 inspect(inspector: cdk.TreeInspector): void;
2424 protected get cfnProperties(): {
2425 [key: string]: any;
2426 };
2427 protected renderProperties(props: {
2428 [key: string]: any;
2429 }): {
2430 [key: string]: any;
2431 };
2432}
2433export declare namespace CfnVersion {
2434 /**
2435 * A [provisioned concurrency](https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html) configuration for a function's version.
2436 *
2437 * @struct
2438 * @stability external
2439 *
2440 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-version-provisionedconcurrencyconfiguration.html
2441 */
2442 interface ProvisionedConcurrencyConfigurationProperty {
2443 /**
2444 * The amount of provisioned concurrency to allocate for the version.
2445 *
2446 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-version-provisionedconcurrencyconfiguration.html#cfn-lambda-version-provisionedconcurrencyconfiguration-provisionedconcurrentexecutions
2447 */
2448 readonly provisionedConcurrentExecutions: number;
2449 }
2450}