UNPKG

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