Package-level declarations

Types

Link copied to clipboard
class Alias : KotlinCustomResource

Resource Type definition for AWS::Lambda::Alias

Link copied to clipboard
data class AliasArgs(val description: Output<String>? = null, val functionName: Output<String>? = null, val functionVersion: Output<String>? = null, val name: Output<String>? = null, val provisionedConcurrencyConfig: Output<AliasProvisionedConcurrencyConfigurationArgs>? = null, val routingConfig: Output<AliasRoutingConfigurationArgs>? = null) : ConvertibleToJava<AliasArgs>

Resource Type definition for AWS::Lambda::Alias

Link copied to clipboard

Builder for AliasArgs.

Link copied to clipboard
object AliasMapper : ResourceMapper<Alias>
Link copied to clipboard

Builder for Alias.

Link copied to clipboard
class CodeSigningConfig : KotlinCustomResource

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

Link copied to clipboard
data class CodeSigningConfigArgs(val allowedPublishers: Output<CodeSigningConfigAllowedPublishersArgs>? = null, val codeSigningPolicies: Output<CodeSigningConfigCodeSigningPoliciesArgs>? = null, val description: Output<String>? = null, val tags: Output<List<TagArgs>>? = null) : ConvertibleToJava<CodeSigningConfigArgs>

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

Link copied to clipboard
object CodeSigningConfigMapper : ResourceMapper<CodeSigningConfig>
Link copied to clipboard
class EventInvokeConfig : KotlinCustomResource

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

Link copied to clipboard
data class EventInvokeConfigArgs(val destinationConfig: Output<EventInvokeConfigDestinationConfigArgs>? = null, val functionName: Output<String>? = null, val maximumEventAgeInSeconds: Output<Int>? = null, val maximumRetryAttempts: Output<Int>? = null, val qualifier: Output<String>? = null) : ConvertibleToJava<EventInvokeConfigArgs>

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

Link copied to clipboard
object EventInvokeConfigMapper : ResourceMapper<EventInvokeConfig>
Link copied to clipboard
class EventSourceMapping : KotlinCustomResource

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
data class EventSourceMappingArgs(val amazonManagedKafkaEventSourceConfig: Output<EventSourceMappingAmazonManagedKafkaEventSourceConfigArgs>? = null, val batchSize: Output<Int>? = null, val bisectBatchOnFunctionError: Output<Boolean>? = null, val destinationConfig: Output<EventSourceMappingDestinationConfigArgs>? = null, val documentDbEventSourceConfig: Output<EventSourceMappingDocumentDbEventSourceConfigArgs>? = null, val enabled: Output<Boolean>? = null, val eventSourceArn: Output<String>? = null, val filterCriteria: Output<EventSourceMappingFilterCriteriaArgs>? = null, val functionName: Output<String>? = null, val functionResponseTypes: Output<List<EventSourceMappingFunctionResponseTypesItem>>? = null, val kmsKeyArn: Output<String>? = null, val maximumBatchingWindowInSeconds: Output<Int>? = null, val maximumRecordAgeInSeconds: Output<Int>? = null, val maximumRetryAttempts: Output<Int>? = null, val parallelizationFactor: Output<Int>? = null, val queues: Output<List<String>>? = null, val scalingConfig: Output<EventSourceMappingScalingConfigArgs>? = null, val selfManagedEventSource: Output<EventSourceMappingSelfManagedEventSourceArgs>? = null, val selfManagedKafkaEventSourceConfig: Output<EventSourceMappingSelfManagedKafkaEventSourceConfigArgs>? = null, val sourceAccessConfigurations: Output<List<EventSourceMappingSourceAccessConfigurationArgs>>? = null, val startingPosition: Output<String>? = null, val startingPositionTimestamp: Output<Double>? = null, val tags: Output<List<TagArgs>>? = null, val topics: Output<List<String>>? = null, val tumblingWindowInSeconds: Output<Int>? = null) : ConvertibleToJava<EventSourceMappingArgs>

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
Link copied to clipboard
class Function : KotlinCustomResource

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.

Link copied to clipboard
data class FunctionArgs(val architectures: Output<List<FunctionArchitecturesItem>>? = null, val code: Output<FunctionCodeArgs>? = null, val codeSigningConfigArn: Output<String>? = null, val deadLetterConfig: Output<FunctionDeadLetterConfigArgs>? = null, val description: Output<String>? = null, val environment: Output<FunctionEnvironmentArgs>? = null, val ephemeralStorage: Output<FunctionEphemeralStorageArgs>? = null, val fileSystemConfigs: Output<List<FunctionFileSystemConfigArgs>>? = null, val functionName: Output<String>? = null, val handler: Output<String>? = null, val imageConfig: Output<FunctionImageConfigArgs>? = null, val kmsKeyArn: Output<String>? = null, val layers: Output<List<String>>? = null, val loggingConfig: Output<FunctionLoggingConfigArgs>? = null, val memorySize: Output<Int>? = null, val packageType: Output<FunctionPackageType>? = null, val recursiveLoop: Output<FunctionRecursiveLoop>? = null, val reservedConcurrentExecutions: Output<Int>? = null, val role: Output<String>? = null, val runtime: Output<String>? = null, val runtimeManagementConfig: Output<FunctionRuntimeManagementConfigArgs>? = null, val snapStart: Output<FunctionSnapStartArgs>? = null, val tags: Output<List<TagArgs>>? = null, val timeout: Output<Int>? = null, val tracingConfig: Output<FunctionTracingConfigArgs>? = null, val vpcConfig: Output<FunctionVpcConfigArgs>? = null) : ConvertibleToJava<FunctionArgs>

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.

Link copied to clipboard
Link copied to clipboard
object FunctionMapper : ResourceMapper<Function>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class LayerVersion : KotlinCustomResource

Resource Type definition for AWS::Lambda::LayerVersion

Link copied to clipboard
data class LayerVersionArgs(val compatibleArchitectures: Output<List<String>>? = null, val compatibleRuntimes: Output<List<String>>? = null, val content: Output<LayerVersionContentArgs>? = null, val description: Output<String>? = null, val layerName: Output<String>? = null, val licenseInfo: Output<String>? = null) : ConvertibleToJava<LayerVersionArgs>

Resource Type definition for AWS::Lambda::LayerVersion

Link copied to clipboard
Link copied to clipboard
object LayerVersionMapper : ResourceMapper<LayerVersion>
Link copied to clipboard
class LayerVersionPermission : KotlinCustomResource

Schema for Lambda LayerVersionPermission

Link copied to clipboard
data class LayerVersionPermissionArgs(val action: Output<String>? = null, val layerVersionArn: Output<String>? = null, val organizationId: Output<String>? = null, val principal: Output<String>? = null) : ConvertibleToJava<LayerVersionPermissionArgs>

Schema for Lambda LayerVersionPermission

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class Permission : KotlinCustomResource

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.

Link copied to clipboard
data class PermissionArgs(val action: Output<String>? = null, val eventSourceToken: Output<String>? = null, val functionName: Output<String>? = null, val functionUrlAuthType: Output<PermissionFunctionUrlAuthType>? = null, val principal: Output<String>? = null, val principalOrgId: Output<String>? = null, val sourceAccount: Output<String>? = null, val sourceArn: Output<String>? = null) : ConvertibleToJava<PermissionArgs>

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.

Link copied to clipboard
Link copied to clipboard
object PermissionMapper : ResourceMapper<Permission>
Link copied to clipboard
Link copied to clipboard
class Url : KotlinCustomResource

Resource Type definition for AWS::Lambda::Url

Link copied to clipboard
data class UrlArgs(val authType: Output<UrlAuthType>? = null, val cors: Output<UrlCorsArgs>? = null, val invokeMode: Output<UrlInvokeMode>? = null, val qualifier: Output<String>? = null, val targetFunctionArn: Output<String>? = null) : ConvertibleToJava<UrlArgs>

Resource Type definition for AWS::Lambda::Url

Link copied to clipboard

Builder for UrlArgs.

Link copied to clipboard
object UrlMapper : ResourceMapper<Url>
Link copied to clipboard

Builder for Url.

Link copied to clipboard
class Version : KotlinCustomResource

Resource Type definition for AWS::Lambda::Version

Link copied to clipboard
data class VersionArgs(val codeSha256: Output<String>? = null, val description: Output<String>? = null, val functionName: Output<String>? = null, val policy: Output<Any>? = null, val provisionedConcurrencyConfig: Output<VersionProvisionedConcurrencyConfigurationArgs>? = null, val runtimePolicy: Output<VersionRuntimePolicyArgs>? = null) : ConvertibleToJava<VersionArgs>

Resource Type definition for AWS::Lambda::Version

Link copied to clipboard
Link copied to clipboard
object VersionMapper : ResourceMapper<Version>
Link copied to clipboard

Functions

Link copied to clipboard
fun alias(name: String): Alias
suspend fun alias(name: String, block: suspend AliasResourceBuilder.() -> Unit): Alias
Link copied to clipboard
suspend fun function(name: String, block: suspend FunctionResourceBuilder.() -> Unit): Function
Link copied to clipboard
Link copied to clipboard
suspend fun permission(name: String, block: suspend PermissionResourceBuilder.() -> Unit): Permission
Link copied to clipboard
fun url(name: String): Url
suspend fun url(name: String, block: suspend UrlResourceBuilder.() -> Unit): Url
Link copied to clipboard
fun version(name: String): Version
suspend fun version(name: String, block: suspend VersionResourceBuilder.() -> Unit): Version