lambda

package
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const AwsIamRoleResourceName = "aws_iam_role"
View Source
const AwsResourceName = "aws_lambda_function"
View Source
const AzureAppServicePlanResourceName = "azurerm_app_service_plan"
View Source
const AzureResourceName = "azurerm_function_app"
View Source
const LambdaBasicExecutionRole = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"

Variables

View Source
var DefaultLambdaPolicy = iam.NewAssumeRolePolicy("lambda.amazonaws.com")

Functions

This section is empty.

Types

type AwsApiGatewayDeployment

type AwsApiGatewayDeployment struct {
	*common.AwsResource `hcl:",squash" default:"name=aws_api_gateway_deployment"`
	RestApiId           string `hcl:"rest_api_id,expr"`
	StageName           string `hcl:"stage_name"`

	DependsOn []string `hcl:"depends_on,expr"`
}

type AwsApiGatewayIntegration

type AwsApiGatewayIntegration struct {
	*common.AwsResource `hcl:",squash" default:"name=aws_api_gateway_integration"`
	RestApiId           string `hcl:"rest_api_id,expr"`
	ResourceId          string `hcl:"resource_id,expr"`
	HttpMethod          string `hcl:"http_method,expr"`

	IntegrationHttpMethod string `hcl:"integration_http_method"`
	Type                  string `hcl:"type"`
	Uri                   string `hcl:"uri,expr"`
}

type AwsApiGatewayMethod

type AwsApiGatewayMethod struct {
	*common.AwsResource `hcl:",squash"  default:"name=aws_api_gateway_method"`
	RestApiId           string `hcl:"rest_api_id,expr"`
	ResourceId          string `hcl:"resource_id,expr"`
	HttpMethod          string `hcl:"http_method"`
	Authorization       string `hcl:"authorization"`
}

type AwsApiGatewayResource

type AwsApiGatewayResource struct {
	*common.AwsResource `hcl:",squash" default:"name=aws_api_gateway_resource"`
	RestApiId           string `hcl:"rest_api_id,expr"`
	ParentId            string `hcl:"parent_id,expr"`
	PathPart            string `hcl:"path_part"`
}

type AwsApiGatewayRestApi

type AwsApiGatewayRestApi struct {
	*common.AwsResource `hcl:",squash" default:"name=aws_api_gateway_rest_api"`
	Name                string `hcl:"name"`
	Description         string `hcl:"description"`
}

type AwsLambdaFunction

type AwsLambdaFunction struct {
	*common.AwsResource `hcl:",squash" default:"name=aws_lambda_function"`
	FunctionName        string `hcl:"function_name"`
	Role                string `hcl:"role,expr"`
	Filename            string `hcl:"filename" hcle:"omitempty"`
	SourceCodeHash      string `hcl:"source_code_hash,expr" hcle:"omitempty"`
	Runtime             string `hcl:"runtime" hcle:"omitempty"`
	Handler             string `hcl:"handler"  hcle:"omitempty"`
	S3Bucket            string `hcl:"s3_bucket,expr" hcle:"omitempty"`
	S3Key               string `hcl:"s3_key,expr" hcle:"omitempty"`
}

type AwsLambdaPermission

type AwsLambdaPermission struct {
	*common.AwsResource `hcl:",squash" default:"name=aws_lambda_permission"`
	StatementId         string `hcl:"statement_id"`
	Action              string `hcl:"action"`
	FunctionName        string `hcl:"function_name"`
	Principal           string `hcl:"principal"`
	SourceArn           string `hcl:"source_arn"`
}

type AzureAppServicePlan

type AzureAppServicePlan struct {
	*common.AzResource `hcl:",squash" default:"name=azurerm_app_service_plan"`
	Kind               string   `hcl:"kind"`
	Reserved           bool     `hcl:"reserved"`
	Sku                AzureSku `hcl:"sku"`
}

type AzureFunctionApp

type AzureFunctionApp struct {
	*common.AzResource      `hcl:",squash" default:"name=azurerm_function_app"`
	StorageAccountName      string               `hcl:"storage_account_name,expr"`
	StorageAccountAccessKey string               `hcl:"storage_account_access_key,expr"`
	AppServicePlanId        string               `hcl:"app_service_plan_id,expr"`
	OperatingSystem         string               `hcl:"os_type" hcle:"omitempty"`
	LocalExec               local_exec.LocalExec `hcl:"provisioner" hcle:"omitempty"`
	AppSettings             map[string]string    `hcl:"app_settings" hcle:"omitempty"`
}

type AzureSku

type AzureSku struct {
	Tier string `hcl:"tier"`
	Size string `hcl:"size"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL