MCPcopy Index your code
hub / github.com/cargo-lambda/cargo-lambda-cdk / RustFunction

Interface RustFunction

cargolambdacdk/RustFunction.go:20–220  ·  view source on GitHub ↗

A Rust Lambda function.

Source from the content-addressed store, hash-verified

18
19// A Rust Lambda function.
20type RustFunction interface {
21 awslambda.Function
22 // The architecture of this Lambda Function (this is an optional attribute and defaults to X86_64).
23 Architecture() awslambda.Architecture
24 // Whether the addPermission() call adds any permissions.
25 //
26 // True for new Lambdas, false for version $LATEST and imported Lambdas
27 // from different accounts.
28 CanCreatePermissions() *bool
29 // Access the Connections object.
30 //
31 // Will fail if not a VPC-enabled Lambda Function.
32 Connections() awsec2.Connections
33 // Returns a `lambda.Version` which represents the current version of this Lambda function. A new version will be created every time the function's configuration changes.
34 //
35 // You can specify options for this version using the `currentVersionOptions`
36 // prop when initializing the `lambda.Function`.
37 CurrentVersion() awslambda.Version
38 // The DLQ (as queue) associated with this Lambda Function (this is an optional attribute).
39 DeadLetterQueue() awssqs.IQueue
40 // The DLQ (as topic) associated with this Lambda Function (this is an optional attribute).
41 DeadLetterTopic() awssns.ITopic
42 // The environment this resource belongs to.
43 //
44 // For resources that are created and managed by the CDK
45 // (generally, those created by creating new class instances like Role, Bucket, etc.),
46 // this is always the same as the environment of the stack they belong to;
47 // however, for imported resources
48 // (those obtained from static methods like fromRoleArn, fromBucketName, etc.),
49 // that might be different than the stack they were imported into.
50 Env() *awscdk.ResourceEnvironment
51 // ARN of this function.
52 FunctionArn() *string
53 // Name of this function.
54 FunctionName() *string
55 // The principal this Lambda Function is running as.
56 GrantPrincipal() awsiam.IPrincipal
57 // Whether or not this Lambda function was bound to a VPC.
58 //
59 // If this is is `false`, trying to access the `connections` object will fail.
60 IsBoundToVpc() *bool
61 // The `$LATEST` version of this function.
62 //
63 // Note that this is reference to a non-specific AWS Lambda version, which
64 // means the function this version refers to can return different results in
65 // different invocations.
66 //
67 // To obtain a reference to an explicit version which references the current
68 // function configuration, use `lambdaFunction.currentVersion` instead.
69 LatestVersion() awslambda.IVersion
70 // The LogGroup where the Lambda function's logs are made available.
71 //
72 // If either `logRetention` is set or this property is called, a CloudFormation custom resource is added to the stack that
73 // pre-creates the log group as part of the stack deployment, if it already doesn't exist, and sets the correct log retention
74 // period (never expire, by default).
75 //
76 // Further, if the log group already exists and the `logRetention` is not set, the custom resource will reset the log retention
77 // to never expire even if it was configured with a different value.

Callers 3

Implementers 1

jsiiProxy_RustFunctioncargolambdacdk/RustFunction.go

Calls

no outgoing calls

Tested by

no test coverage detected