UNPKG

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