LambdaFunctions

Functions

Link copied to clipboard
suspend fun getAlias(argument: GetAliasPlainArgs): GetAliasResult

Resource Type definition for AWS::Lambda::Alias

suspend fun getAlias(aliasArn: String): GetAliasResult
suspend fun getAlias(argument: suspend GetAliasPlainArgsBuilder.() -> Unit): GetAliasResult
Link copied to clipboard

Resource Type definition for AWS::Lambda::CodeSigningConfig.

suspend fun getCodeSigningConfig(codeSigningConfigArn: String): GetCodeSigningConfigResult
Link copied to clipboard

The AWS::Lambda::EventInvokeConfig resource configures options for asynchronous invocation on a version or an alias.

suspend fun getEventInvokeConfig(functionName: String, qualifier: String): GetEventInvokeConfigResult
Link copied to clipboard

The `AWS::Lambda::EventSourceMapping` resource creates a mapping between an event source and an LAMlong function. LAM reads items from the event source and triggers the function. 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.

Link copied to clipboard

The `AWS::Lambda::Function` resource creates a Lambda function. To create a function, you need a deployment package and an execution role. 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. You set the package type to `Image` if the deployment package is a container image. 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. You set the package type to `Zip` if the deployment package is a .zip file archive. 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. You can use code signing 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. Note that you configure provisioned concurrency on a `AWS::Lambda::Version` or a `AWS::Lambda::Alias`. For a complete introduction to Lambda functions, see What is Lambda? in the Lambda developer guide.

suspend fun getFunction(functionName: String): GetFunctionResult
suspend fun getFunction(argument: suspend GetFunctionPlainArgsBuilder.() -> Unit): GetFunctionResult
Link copied to clipboard

Resource Type definition for AWS::Lambda::LayerVersion

suspend fun getLayerVersion(layerVersionArn: String): GetLayerVersionResult
Link copied to clipboard

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. To grant permission to another account, specify the account ID as the `Principal`. To grant permission to an organization defined in AOlong, 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. 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 function URLs. This resource adds a statement to a resource-based permission policy for the function. For more information about function policies, see Lambda Function Policies.

suspend fun getPermission(functionName: String, id: String): GetPermissionResult
Link copied to clipboard
suspend fun getUrl(argument: GetUrlPlainArgs): GetUrlResult

Resource Type definition for AWS::Lambda::Url

suspend fun getUrl(functionArn: String): GetUrlResult
suspend fun getUrl(argument: suspend GetUrlPlainArgsBuilder.() -> Unit): GetUrlResult
Link copied to clipboard

Resource Type definition for AWS::Lambda::Version

suspend fun getVersion(functionArn: String): GetVersionResult
suspend fun getVersion(argument: suspend GetVersionPlainArgsBuilder.() -> Unit): GetVersionResult