Skip to main content

LambdaFunctionCloudFrontPermissionSchema

The LambdaFunctionCloudFrontPermissionSchema class is the schema for the LambdaFunctionCloudFrontPermission resource, which admits one CloudFront distribution to invoke one Lambda function through its URL. The function may belong to another app, such as one an extended state holds; the permission is created in the function's account. Terraform provisions it as two aws_lambda_permission blocks.

@group

Resources/LambdaFunctionCloudFrontPermission

@overrideProperty

parents - This resource has parents.

@overrideProperty

resourceId - The resource id is of format lambda-function-cloudfront-permission-<distribution-name>-<origin-id>

Hierarchy

  • BaseResourceSchema
    • LambdaFunctionCloudFrontPermissionSchema

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; distributionName: string; functionName: string }

Input properties.

  • properties.awsAccountId - The AWS account of the function.
  • properties.awsRegionId - The AWS region of the function.
  • properties.distributionName - The name of the distribution admitted. It is part of the permission's statement id, so it holds only letters, digits, - and _, at most 59 of them.
  • properties.functionName - The name of the function.

Type declaration

  • awsAccountId: string
  • awsRegionId: string
  • distributionName: string
  • functionName: 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