Skip to main content

LambdaFunctionPermissionSchema

The LambdaFunctionPermissionSchema class is the schema for the LambdaFunctionPermission resource, which admits one IAM role to invoke one Lambda function through its URL. The function may be in another account, such as one an imported state holds; the permission is created there. Terraform provisions it as two aws_lambda_permission blocks.

@group

Resources/LambdaFunctionPermission

@overrideProperty

parents - This resource has parents.

@overrideProperty

resourceId - The resource id is of format lambda-function-permission-<execution-id>-<function-name>

Hierarchy

  • BaseResourceSchema
    • LambdaFunctionPermissionSchema

Index

Properties

inheritedlocalResourceId

localResourceId: string

The ID the resource was created with, unique within its scope.

inheritedparents

parents: IResourceReference[]

The resources this one is built on top of.

properties

properties: { awsAccountId: string; awsRegionId: string; functionName: string; roleName: string }

Input properties.

  • properties.awsAccountId - The AWS account of the function.
  • properties.awsRegionId - The AWS region of the function.
  • properties.functionName - The name of the function.
  • properties.roleName - The name of the role admitted.

Type declaration

  • awsAccountId: string
  • awsRegionId: string
  • functionName: string
  • roleName: string

inheritedresourceId

resourceId: string

The ID of the resource, unique across the infrastructure: its localResourceId, followed by a hash of its scope when it has one.

response

response: Record<never, never> = {}

Saved response. A permission reports nothing.

inheritedscope

scope: string[]

The contexts of the models the resource is placed under, derived from where the node creating it sits in the model graph. Octo sets it; a resource created outside a model action has none.

inheritedtags

tags: {}

The tags applied to the resource.


Type declaration

  • [key string]: string