lambda

package
Version: v1.45.17 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 17 Imported by: 1,154

Documentation

Overview

Package lambda provides the client and types for making API requests to AWS Lambda.

Overview

Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any type of application or backend service. For more information about the Lambda service, see What is Lambda (https://docs.aws.amazon.com/lambda/latest/dg/welcome.html) in the Lambda Developer Guide.

The Lambda API Reference provides information about each of the API methods, including details about the parameters in each API request and response.

You can use Software Development Kits (SDKs), Integrated Development Environment (IDE) Toolkits, and command line tools to access the API. For installation instructions, see Tools for Amazon Web Services (http://aws.amazon.com/tools/).

For a list of Region-specific endpoints that Lambda supports, see Lambda endpoints and quotas (https://docs.aws.amazon.com/general/latest/gr/lambda-service.html/) in the Amazon Web Services General Reference..

When making the API calls, you will need to authenticate your request by providing a signature. Lambda supports signature version 4. For more information, see Signature Version 4 signing process (https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html) in the Amazon Web Services General Reference..

CA certificates

Because Amazon Web Services SDKs use the CA certificates from your computer, changes to the certificates on the Amazon Web Services servers can cause connection failures when you attempt to use an SDK. You can prevent these failures by keeping your computer's CA certificates and operating system up-to-date. If you encounter this issue in a corporate environment and do not manage your own computer, you might need to ask an administrator to assist with the update process. The following list shows minimum operating system and Java versions:

  • Microsoft Windows versions that have updates from January 2005 or later installed contain at least one of the required CAs in their trust list.

  • Mac OS X 10.4 with Java for Mac OS X 10.4 Release 5 (February 2007), Mac OS X 10.5 (October 2007), and later versions contain at least one of the required CAs in their trust list.

  • Red Hat Enterprise Linux 5 (March 2007), 6, and 7 and CentOS 5, 6, and 7 all contain at least one of the required CAs in their default trusted CA list.

  • Java 1.4.2_12 (May 2006), 5 Update 2 (March 2005), and all later versions, including Java 6 (December 2006), 7, and 8, contain at least one of the required CAs in their default trusted CA list.

When accessing the Lambda management console or Lambda API endpoints, whether through browsers or programmatically, you will need to ensure your client machines support any of the following CAs:

  • Amazon Root CA 1

  • Starfield Services Root Certificate Authority - G2

  • Starfield Class 2 Certification Authority

Root certificates from the first two authorities are available from Amazon trust services (https://www.amazontrust.com/repository/), but keeping your computer up-to-date is the more straightforward solution. To learn more about ACM-provided certificates, see Amazon Web Services Certificate Manager FAQs. (http://aws.amazon.com/certificate-manager/faqs/#certificates)

See https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31 for more information on this service.

See lambda package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/lambda/

Using the Client

To contact AWS Lambda with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the AWS Lambda client Lambda for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/lambda/#New

Index

Examples

Constants

View Source
const (
	// ArchitectureX8664 is a Architecture enum value
	ArchitectureX8664 = "x86_64"

	// ArchitectureArm64 is a Architecture enum value
	ArchitectureArm64 = "arm64"
)
View Source
const (
	// CodeSigningPolicyWarn is a CodeSigningPolicy enum value
	CodeSigningPolicyWarn = "Warn"

	// CodeSigningPolicyEnforce is a CodeSigningPolicy enum value
	CodeSigningPolicyEnforce = "Enforce"
)
View Source
const (
	// EventSourcePositionTrimHorizon is a EventSourcePosition enum value
	EventSourcePositionTrimHorizon = "TRIM_HORIZON"

	// EventSourcePositionLatest is a EventSourcePosition enum value
	EventSourcePositionLatest = "LATEST"

	// EventSourcePositionAtTimestamp is a EventSourcePosition enum value
	EventSourcePositionAtTimestamp = "AT_TIMESTAMP"
)
View Source
const (
	// FullDocumentUpdateLookup is a FullDocument enum value
	FullDocumentUpdateLookup = "UpdateLookup"

	// FullDocumentDefault is a FullDocument enum value
	FullDocumentDefault = "Default"
)
View Source
const (
	// FunctionUrlAuthTypeNone is a FunctionUrlAuthType enum value
	FunctionUrlAuthTypeNone = "NONE"

	// FunctionUrlAuthTypeAwsIam is a FunctionUrlAuthType enum value
	FunctionUrlAuthTypeAwsIam = "AWS_IAM"
)
View Source
const (
	// InvocationTypeEvent is a InvocationType enum value
	InvocationTypeEvent = "Event"

	// InvocationTypeRequestResponse is a InvocationType enum value
	InvocationTypeRequestResponse = "RequestResponse"

	// InvocationTypeDryRun is a InvocationType enum value
	InvocationTypeDryRun = "DryRun"
)
View Source
const (
	// InvokeModeBuffered is a InvokeMode enum value
	InvokeModeBuffered = "BUFFERED"

	// InvokeModeResponseStream is a InvokeMode enum value
	InvokeModeResponseStream = "RESPONSE_STREAM"
)
View Source
const (
	// LastUpdateStatusSuccessful is a LastUpdateStatus enum value
	LastUpdateStatusSuccessful = "Successful"

	// LastUpdateStatusFailed is a LastUpdateStatus enum value
	LastUpdateStatusFailed = "Failed"

	// LastUpdateStatusInProgress is a LastUpdateStatus enum value
	LastUpdateStatusInProgress = "InProgress"
)
View Source
const (
	// LastUpdateStatusReasonCodeEniLimitExceeded is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeEniLimitExceeded = "EniLimitExceeded"

	// LastUpdateStatusReasonCodeInsufficientRolePermissions is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeInsufficientRolePermissions = "InsufficientRolePermissions"

	// LastUpdateStatusReasonCodeInvalidConfiguration is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeInvalidConfiguration = "InvalidConfiguration"

	// LastUpdateStatusReasonCodeInternalError is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeInternalError = "InternalError"

	// LastUpdateStatusReasonCodeSubnetOutOfIpaddresses is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeSubnetOutOfIpaddresses = "SubnetOutOfIPAddresses"

	// LastUpdateStatusReasonCodeInvalidSubnet is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeInvalidSubnet = "InvalidSubnet"

	// LastUpdateStatusReasonCodeInvalidSecurityGroup is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeInvalidSecurityGroup = "InvalidSecurityGroup"

	// LastUpdateStatusReasonCodeImageDeleted is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeImageDeleted = "ImageDeleted"

	// LastUpdateStatusReasonCodeImageAccessDenied is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeImageAccessDenied = "ImageAccessDenied"

	// LastUpdateStatusReasonCodeInvalidImage is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeInvalidImage = "InvalidImage"

	// LastUpdateStatusReasonCodeKmskeyAccessDenied is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeKmskeyAccessDenied = "KMSKeyAccessDenied"

	// LastUpdateStatusReasonCodeKmskeyNotFound is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeKmskeyNotFound = "KMSKeyNotFound"

	// LastUpdateStatusReasonCodeInvalidStateKmskey is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeInvalidStateKmskey = "InvalidStateKMSKey"

	// LastUpdateStatusReasonCodeDisabledKmskey is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeDisabledKmskey = "DisabledKMSKey"

	// LastUpdateStatusReasonCodeEfsioerror is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeEfsioerror = "EFSIOError"

	// LastUpdateStatusReasonCodeEfsmountConnectivityError is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeEfsmountConnectivityError = "EFSMountConnectivityError"

	// LastUpdateStatusReasonCodeEfsmountFailure is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeEfsmountFailure = "EFSMountFailure"

	// LastUpdateStatusReasonCodeEfsmountTimeout is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeEfsmountTimeout = "EFSMountTimeout"

	// LastUpdateStatusReasonCodeInvalidRuntime is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeInvalidRuntime = "InvalidRuntime"

	// LastUpdateStatusReasonCodeInvalidZipFileException is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeInvalidZipFileException = "InvalidZipFileException"

	// LastUpdateStatusReasonCodeFunctionError is a LastUpdateStatusReasonCode enum value
	LastUpdateStatusReasonCodeFunctionError = "FunctionError"
)
View Source
const (
	// LogTypeNone is a LogType enum value
	LogTypeNone = "None"

	// LogTypeTail is a LogType enum value
	LogTypeTail = "Tail"
)
View Source
const (
	// PackageTypeZip is a PackageType enum value
	PackageTypeZip = "Zip"

	// PackageTypeImage is a PackageType enum value
	PackageTypeImage = "Image"
)
View Source
const (
	// ProvisionedConcurrencyStatusEnumInProgress is a ProvisionedConcurrencyStatusEnum enum value
	ProvisionedConcurrencyStatusEnumInProgress = "IN_PROGRESS"

	// ProvisionedConcurrencyStatusEnumReady is a ProvisionedConcurrencyStatusEnum enum value
	ProvisionedConcurrencyStatusEnumReady = "READY"

	// ProvisionedConcurrencyStatusEnumFailed is a ProvisionedConcurrencyStatusEnum enum value
	ProvisionedConcurrencyStatusEnumFailed = "FAILED"
)
View Source
const (
	// ResponseStreamingInvocationTypeRequestResponse is a ResponseStreamingInvocationType enum value
	ResponseStreamingInvocationTypeRequestResponse = "RequestResponse"

	// ResponseStreamingInvocationTypeDryRun is a ResponseStreamingInvocationType enum value
	ResponseStreamingInvocationTypeDryRun = "DryRun"
)
View Source
const (
	// RuntimeNodejs is a Runtime enum value
	RuntimeNodejs = "nodejs"

	// RuntimeNodejs43 is a Runtime enum value
	RuntimeNodejs43 = "nodejs4.3"

	// RuntimeNodejs610 is a Runtime enum value
	RuntimeNodejs610 = "nodejs6.10"

	// RuntimeNodejs810 is a Runtime enum value
	RuntimeNodejs810 = "nodejs8.10"

	// RuntimeNodejs10X is a Runtime enum value
	RuntimeNodejs10X = "nodejs10.x"

	// RuntimeNodejs12X is a Runtime enum value
	RuntimeNodejs12X = "nodejs12.x"

	// RuntimeNodejs14X is a Runtime enum value
	RuntimeNodejs14X = "nodejs14.x"

	// RuntimeNodejs16X is a Runtime enum value
	RuntimeNodejs16X = "nodejs16.x"

	// RuntimeJava8 is a Runtime enum value
	RuntimeJava8 = "java8"

	// RuntimeJava8Al2 is a Runtime enum value
	RuntimeJava8Al2 = "java8.al2"

	// RuntimeJava11 is a Runtime enum value
	RuntimeJava11 = "java11"

	// RuntimePython27 is a Runtime enum value
	RuntimePython27 = "python2.7"

	// RuntimePython36 is a Runtime enum value
	RuntimePython36 = "python3.6"

	// RuntimePython37 is a Runtime enum value
	RuntimePython37 = "python3.7"

	// RuntimePython38 is a Runtime enum value
	RuntimePython38 = "python3.8"

	// RuntimePython39 is a Runtime enum value
	RuntimePython39 = "python3.9"

	// RuntimeDotnetcore10 is a Runtime enum value
	RuntimeDotnetcore10 = "dotnetcore1.0"

	// RuntimeDotnetcore20 is a Runtime enum value
	RuntimeDotnetcore20 = "dotnetcore2.0"

	// RuntimeDotnetcore21 is a Runtime enum value
	RuntimeDotnetcore21 = "dotnetcore2.1"

	// RuntimeDotnetcore31 is a Runtime enum value
	RuntimeDotnetcore31 = "dotnetcore3.1"

	// RuntimeDotnet6 is a Runtime enum value
	RuntimeDotnet6 = "dotnet6"

	// RuntimeNodejs43Edge is a Runtime enum value
	RuntimeNodejs43Edge = "nodejs4.3-edge"

	// RuntimeGo1X is a Runtime enum value
	RuntimeGo1X = "go1.x"

	// RuntimeRuby25 is a Runtime enum value
	RuntimeRuby25 = "ruby2.5"

	// RuntimeRuby27 is a Runtime enum value
	RuntimeRuby27 = "ruby2.7"

	// RuntimeProvided is a Runtime enum value
	RuntimeProvided = "provided"

	// RuntimeProvidedAl2 is a Runtime enum value
	RuntimeProvidedAl2 = "provided.al2"

	// RuntimeNodejs18X is a Runtime enum value
	RuntimeNodejs18X = "nodejs18.x"

	// RuntimePython310 is a Runtime enum value
	RuntimePython310 = "python3.10"

	// RuntimeJava17 is a Runtime enum value
	RuntimeJava17 = "java17"

	// RuntimeRuby32 is a Runtime enum value
	RuntimeRuby32 = "ruby3.2"

	// RuntimePython311 is a Runtime enum value
	RuntimePython311 = "python3.11"
)
View Source
const (
	// SnapStartApplyOnPublishedVersions is a SnapStartApplyOn enum value
	SnapStartApplyOnPublishedVersions = "PublishedVersions"

	// SnapStartApplyOnNone is a SnapStartApplyOn enum value
	SnapStartApplyOnNone = "None"
)
View Source
const (
	// SnapStartOptimizationStatusOn is a SnapStartOptimizationStatus enum value
	SnapStartOptimizationStatusOn = "On"

	// SnapStartOptimizationStatusOff is a SnapStartOptimizationStatus enum value
	SnapStartOptimizationStatusOff = "Off"
)
View Source
const (
	// SourceAccessTypeBasicAuth is a SourceAccessType enum value
	SourceAccessTypeBasicAuth = "BASIC_AUTH"

	// SourceAccessTypeVpcSubnet is a SourceAccessType enum value
	SourceAccessTypeVpcSubnet = "VPC_SUBNET"

	// SourceAccessTypeVpcSecurityGroup is a SourceAccessType enum value
	SourceAccessTypeVpcSecurityGroup = "VPC_SECURITY_GROUP"

	// SourceAccessTypeSaslScram512Auth is a SourceAccessType enum value
	SourceAccessTypeSaslScram512Auth = "SASL_SCRAM_512_AUTH"

	// SourceAccessTypeSaslScram256Auth is a SourceAccessType enum value
	SourceAccessTypeSaslScram256Auth = "SASL_SCRAM_256_AUTH"

	// SourceAccessTypeVirtualHost is a SourceAccessType enum value
	SourceAccessTypeVirtualHost = "VIRTUAL_HOST"

	// SourceAccessTypeClientCertificateTlsAuth is a SourceAccessType enum value
	SourceAccessTypeClientCertificateTlsAuth = "CLIENT_CERTIFICATE_TLS_AUTH"

	// SourceAccessTypeServerRootCaCertificate is a SourceAccessType enum value
	SourceAccessTypeServerRootCaCertificate = "SERVER_ROOT_CA_CERTIFICATE"
)
View Source
const (
	// StatePending is a State enum value
	StatePending = "Pending"

	// StateActive is a State enum value
	StateActive = "Active"

	// StateInactive is a State enum value
	StateInactive = "Inactive"

	// StateFailed is a State enum value
	StateFailed = "Failed"
)
View Source
const (
	// StateReasonCodeIdle is a StateReasonCode enum value
	StateReasonCodeIdle = "Idle"

	// StateReasonCodeCreating is a StateReasonCode enum value
	StateReasonCodeCreating = "Creating"

	// StateReasonCodeRestoring is a StateReasonCode enum value
	StateReasonCodeRestoring = "Restoring"

	// StateReasonCodeEniLimitExceeded is a StateReasonCode enum value
	StateReasonCodeEniLimitExceeded = "EniLimitExceeded"

	// StateReasonCodeInsufficientRolePermissions is a StateReasonCode enum value
	StateReasonCodeInsufficientRolePermissions = "InsufficientRolePermissions"

	// StateReasonCodeInvalidConfiguration is a StateReasonCode enum value
	StateReasonCodeInvalidConfiguration = "InvalidConfiguration"

	// StateReasonCodeInternalError is a StateReasonCode enum value
	StateReasonCodeInternalError = "InternalError"

	// StateReasonCodeSubnetOutOfIpaddresses is a StateReasonCode enum value
	StateReasonCodeSubnetOutOfIpaddresses = "SubnetOutOfIPAddresses"

	// StateReasonCodeInvalidSubnet is a StateReasonCode enum value
	StateReasonCodeInvalidSubnet = "InvalidSubnet"

	// StateReasonCodeInvalidSecurityGroup is a StateReasonCode enum value
	StateReasonCodeInvalidSecurityGroup = "InvalidSecurityGroup"

	// StateReasonCodeImageDeleted is a StateReasonCode enum value
	StateReasonCodeImageDeleted = "ImageDeleted"

	// StateReasonCodeImageAccessDenied is a StateReasonCode enum value
	StateReasonCodeImageAccessDenied = "ImageAccessDenied"

	// StateReasonCodeInvalidImage is a StateReasonCode enum value
	StateReasonCodeInvalidImage = "InvalidImage"

	// StateReasonCodeKmskeyAccessDenied is a StateReasonCode enum value
	StateReasonCodeKmskeyAccessDenied = "KMSKeyAccessDenied"

	// StateReasonCodeKmskeyNotFound is a StateReasonCode enum value
	StateReasonCodeKmskeyNotFound = "KMSKeyNotFound"

	// StateReasonCodeInvalidStateKmskey is a StateReasonCode enum value
	StateReasonCodeInvalidStateKmskey = "InvalidStateKMSKey"

	// StateReasonCodeDisabledKmskey is a StateReasonCode enum value
	StateReasonCodeDisabledKmskey = "DisabledKMSKey"

	// StateReasonCodeEfsioerror is a StateReasonCode enum value
	StateReasonCodeEfsioerror = "EFSIOError"

	// StateReasonCodeEfsmountConnectivityError is a StateReasonCode enum value
	StateReasonCodeEfsmountConnectivityError = "EFSMountConnectivityError"

	// StateReasonCodeEfsmountFailure is a StateReasonCode enum value
	StateReasonCodeEfsmountFailure = "EFSMountFailure"

	// StateReasonCodeEfsmountTimeout is a StateReasonCode enum value
	StateReasonCodeEfsmountTimeout = "EFSMountTimeout"

	// StateReasonCodeInvalidRuntime is a StateReasonCode enum value
	StateReasonCodeInvalidRuntime = "InvalidRuntime"

	// StateReasonCodeInvalidZipFileException is a StateReasonCode enum value
	StateReasonCodeInvalidZipFileException = "InvalidZipFileException"

	// StateReasonCodeFunctionError is a StateReasonCode enum value
	StateReasonCodeFunctionError = "FunctionError"
)
View Source
const (
	// ThrottleReasonConcurrentInvocationLimitExceeded is a ThrottleReason enum value
	ThrottleReasonConcurrentInvocationLimitExceeded = "ConcurrentInvocationLimitExceeded"

	// ThrottleReasonFunctionInvocationRateLimitExceeded is a ThrottleReason enum value
	ThrottleReasonFunctionInvocationRateLimitExceeded = "FunctionInvocationRateLimitExceeded"

	// ThrottleReasonReservedFunctionConcurrentInvocationLimitExceeded is a ThrottleReason enum value
	ThrottleReasonReservedFunctionConcurrentInvocationLimitExceeded = "ReservedFunctionConcurrentInvocationLimitExceeded"

	// ThrottleReasonReservedFunctionInvocationRateLimitExceeded is a ThrottleReason enum value
	ThrottleReasonReservedFunctionInvocationRateLimitExceeded = "ReservedFunctionInvocationRateLimitExceeded"

	// ThrottleReasonCallerRateLimitExceeded is a ThrottleReason enum value
	ThrottleReasonCallerRateLimitExceeded = "CallerRateLimitExceeded"

	// ThrottleReasonConcurrentSnapshotCreateLimitExceeded is a ThrottleReason enum value
	ThrottleReasonConcurrentSnapshotCreateLimitExceeded = "ConcurrentSnapshotCreateLimitExceeded"
)
View Source
const (
	// TracingModeActive is a TracingMode enum value
	TracingModeActive = "Active"

	// TracingModePassThrough is a TracingMode enum value
	TracingModePassThrough = "PassThrough"
)
View Source
const (
	// UpdateRuntimeOnAuto is a UpdateRuntimeOn enum value
	UpdateRuntimeOnAuto = "Auto"

	// UpdateRuntimeOnManual is a UpdateRuntimeOn enum value
	UpdateRuntimeOnManual = "Manual"

	// UpdateRuntimeOnFunctionUpdate is a UpdateRuntimeOn enum value
	UpdateRuntimeOnFunctionUpdate = "FunctionUpdate"
)
View Source
const (

	// ErrCodeCodeSigningConfigNotFoundException for service response error code
	// "CodeSigningConfigNotFoundException".
	//
	// The specified code signing configuration does not exist.
	ErrCodeCodeSigningConfigNotFoundException = "CodeSigningConfigNotFoundException"

	// ErrCodeCodeStorageExceededException for service response error code
	// "CodeStorageExceededException".
	//
	// Your Amazon Web Services account has exceeded its maximum total code size.
	// For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html).
	ErrCodeCodeStorageExceededException = "CodeStorageExceededException"

	// ErrCodeCodeVerificationFailedException for service response error code
	// "CodeVerificationFailedException".
	//
	// The code signature failed one or more of the validation checks for signature
	// mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda
	// blocks the deployment.
	ErrCodeCodeVerificationFailedException = "CodeVerificationFailedException"

	// ErrCodeEC2AccessDeniedException for service response error code
	// "EC2AccessDeniedException".
	//
	// Need additional permissions to configure VPC settings.
	ErrCodeEC2AccessDeniedException = "EC2AccessDeniedException"

	// ErrCodeEC2ThrottledException for service response error code
	// "EC2ThrottledException".
	//
	// Amazon EC2 throttled Lambda during Lambda function initialization using the
	// execution role provided for the function.
	ErrCodeEC2ThrottledException = "EC2ThrottledException"

	// ErrCodeEC2UnexpectedException for service response error code
	// "EC2UnexpectedException".
	//
	// Lambda received an unexpected Amazon EC2 client exception while setting up
	// for the Lambda function.
	ErrCodeEC2UnexpectedException = "EC2UnexpectedException"

	// ErrCodeEFSIOException for service response error code
	// "EFSIOException".
	//
	// An error occurred when reading from or writing to a connected file system.
	ErrCodeEFSIOException = "EFSIOException"

	// ErrCodeEFSMountConnectivityException for service response error code
	// "EFSMountConnectivityException".
	//
	// The Lambda function couldn't make a network connection to the configured
	// file system.
	ErrCodeEFSMountConnectivityException = "EFSMountConnectivityException"

	// ErrCodeEFSMountFailureException for service response error code
	// "EFSMountFailureException".
	//
	// The Lambda function couldn't mount the configured file system due to a permission
	// or configuration issue.
	ErrCodeEFSMountFailureException = "EFSMountFailureException"

	// ErrCodeEFSMountTimeoutException for service response error code
	// "EFSMountTimeoutException".
	//
	// The Lambda function made a network connection to the configured file system,
	// but the mount operation timed out.
	ErrCodeEFSMountTimeoutException = "EFSMountTimeoutException"

	// ErrCodeENILimitReachedException for service response error code
	// "ENILimitReachedException".
	//
	// Lambda couldn't create an elastic network interface in the VPC, specified
	// as part of Lambda function configuration, because the limit for network interfaces
	// has been reached. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html).
	ErrCodeENILimitReachedException = "ENILimitReachedException"

	// ErrCodeInvalidCodeSignatureException for service response error code
	// "InvalidCodeSignatureException".
	//
	// The code signature failed the integrity check. If the integrity check fails,
	// then Lambda blocks deployment, even if the code signing policy is set to
	// WARN.
	ErrCodeInvalidCodeSignatureException = "InvalidCodeSignatureException"

	// ErrCodeInvalidParameterValueException for service response error code
	// "InvalidParameterValueException".
	//
	// One of the parameters in the request is not valid.
	ErrCodeInvalidParameterValueException = "InvalidParameterValueException"

	// ErrCodeInvalidRequestContentException for service response error code
	// "InvalidRequestContentException".
	//
	// The request body could not be parsed as JSON.
	ErrCodeInvalidRequestContentException = "InvalidRequestContentException"

	// ErrCodeInvalidRuntimeException for service response error code
	// "InvalidRuntimeException".
	//
	// The runtime or runtime version specified is not supported.
	ErrCodeInvalidRuntimeException = "InvalidRuntimeException"

	// ErrCodeInvalidSecurityGroupIDException for service response error code
	// "InvalidSecurityGroupIDException".
	//
	// The security group ID provided in the Lambda function VPC configuration is
	// not valid.
	ErrCodeInvalidSecurityGroupIDException = "InvalidSecurityGroupIDException"

	// ErrCodeInvalidSubnetIDException for service response error code
	// "InvalidSubnetIDException".
	//
	// The subnet ID provided in the Lambda function VPC configuration is not valid.
	ErrCodeInvalidSubnetIDException = "InvalidSubnetIDException"

	// ErrCodeInvalidZipFileException for service response error code
	// "InvalidZipFileException".
	//
	// Lambda could not unzip the deployment package.
	ErrCodeInvalidZipFileException = "InvalidZipFileException"

	// ErrCodeKMSAccessDeniedException for service response error code
	// "KMSAccessDeniedException".
	//
	// Lambda couldn't decrypt the environment variables because KMS access was
	// denied. Check the Lambda function's KMS permissions.
	ErrCodeKMSAccessDeniedException = "KMSAccessDeniedException"

	// ErrCodeKMSDisabledException for service response error code
	// "KMSDisabledException".
	//
	// Lambda couldn't decrypt the environment variables because the KMS key used
	// is disabled. Check the Lambda function's KMS key settings.
	ErrCodeKMSDisabledException = "KMSDisabledException"

	// ErrCodeKMSInvalidStateException for service response error code
	// "KMSInvalidStateException".
	//
	// Lambda couldn't decrypt the environment variables because the state of the
	// KMS key used is not valid for Decrypt. Check the function's KMS key settings.
	ErrCodeKMSInvalidStateException = "KMSInvalidStateException"

	// ErrCodeKMSNotFoundException for service response error code
	// "KMSNotFoundException".
	//
	// Lambda couldn't decrypt the environment variables because the KMS key was
	// not found. Check the function's KMS key settings.
	ErrCodeKMSNotFoundException = "KMSNotFoundException"

	// ErrCodePolicyLengthExceededException for service response error code
	// "PolicyLengthExceededException".
	//
	// The permissions policy for the resource is too large. For more information,
	// see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html).
	ErrCodePolicyLengthExceededException = "PolicyLengthExceededException"

	// ErrCodePreconditionFailedException for service response error code
	// "PreconditionFailedException".
	//
	// The RevisionId provided does not match the latest RevisionId for the Lambda
	// function or alias. Call the GetFunction or the GetAlias API operation to
	// retrieve the latest RevisionId for your resource.
	ErrCodePreconditionFailedException = "PreconditionFailedException"

	// ErrCodeProvisionedConcurrencyConfigNotFoundException for service response error code
	// "ProvisionedConcurrencyConfigNotFoundException".
	//
	// The specified configuration does not exist.
	ErrCodeProvisionedConcurrencyConfigNotFoundException = "ProvisionedConcurrencyConfigNotFoundException"

	// ErrCodeRecursiveInvocationException for service response error code
	// "RecursiveInvocationException".
	//
	// Lambda has detected your function being invoked in a recursive loop with
	// other Amazon Web Services resources and stopped your function's invocation.
	ErrCodeRecursiveInvocationException = "RecursiveInvocationException"

	// ErrCodeRequestTooLargeException for service response error code
	// "RequestTooLargeException".
	//
	// The request payload exceeded the Invoke request body JSON input quota. For
	// more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html).
	ErrCodeRequestTooLargeException = "RequestTooLargeException"

	// ErrCodeResourceConflictException for service response error code
	// "ResourceConflictException".
	//
	// The resource already exists, or another operation is in progress.
	ErrCodeResourceConflictException = "ResourceConflictException"

	// ErrCodeResourceInUseException for service response error code
	// "ResourceInUseException".
	//
	// The operation conflicts with the resource's availability. For example, you
	// tried to update an event source mapping in the CREATING state, or you tried
	// to delete an event source mapping currently UPDATING.
	ErrCodeResourceInUseException = "ResourceInUseException"

	// ErrCodeResourceNotFoundException for service response error code
	// "ResourceNotFoundException".
	//
	// The resource specified in the request does not exist.
	ErrCodeResourceNotFoundException = "ResourceNotFoundException"

	// ErrCodeResourceNotReadyException for service response error code
	// "ResourceNotReadyException".
	//
	// The function is inactive and its VPC connection is no longer available. Wait
	// for the VPC connection to reestablish and try again.
	ErrCodeResourceNotReadyException = "ResourceNotReadyException"

	// ErrCodeServiceException for service response error code
	// "ServiceException".
	//
	// The Lambda service encountered an internal error.
	ErrCodeServiceException = "ServiceException"

	// ErrCodeSnapStartException for service response error code
	// "SnapStartException".
	//
	// The afterRestore() runtime hook (https://docs.aws.amazon.com/lambda/latest/dg/snapstart-runtime-hooks.html)
	// encountered an error. For more information, check the Amazon CloudWatch logs.
	ErrCodeSnapStartException = "SnapStartException"

	// ErrCodeSnapStartNotReadyException for service response error code
	// "SnapStartNotReadyException".
	//
	// Lambda is initializing your function. You can invoke the function when the
	// function state (https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html)
	// becomes Active.
	ErrCodeSnapStartNotReadyException = "SnapStartNotReadyException"

	// ErrCodeSnapStartTimeoutException for service response error code
	// "SnapStartTimeoutException".
	//
	// Lambda couldn't restore the snapshot within the timeout limit.
	ErrCodeSnapStartTimeoutException = "SnapStartTimeoutException"

	// ErrCodeSubnetIPAddressLimitReachedException for service response error code
	// "SubnetIPAddressLimitReachedException".
	//
	// Lambda couldn't set up VPC access for the Lambda function because one or
	// more configured subnets has no available IP addresses.
	ErrCodeSubnetIPAddressLimitReachedException = "SubnetIPAddressLimitReachedException"

	// ErrCodeTooManyRequestsException for service response error code
	// "TooManyRequestsException".
	//
	// The request throughput limit was exceeded. For more information, see Lambda
	// quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests).
	ErrCodeTooManyRequestsException = "TooManyRequestsException"

	// ErrCodeUnsupportedMediaTypeException for service response error code
	// "UnsupportedMediaTypeException".
	//
	// The content type of the Invoke request body is not JSON.
	ErrCodeUnsupportedMediaTypeException = "UnsupportedMediaTypeException"
)
View Source
const (
	ServiceName = "lambda"    // Name of service.
	EndpointsID = ServiceName // ID to lookup a service endpoint with.
	ServiceID   = "Lambda"    // ServiceID is a unique identifier of a specific service.
)

Service information constants

View Source
const (
	// EndPointTypeKafkaBootstrapServers is a EndPointType enum value
	EndPointTypeKafkaBootstrapServers = "KAFKA_BOOTSTRAP_SERVERS"
)
View Source
const (
	// FunctionResponseTypeReportBatchItemFailures is a FunctionResponseType enum value
	FunctionResponseTypeReportBatchItemFailures = "ReportBatchItemFailures"
)
View Source
const (
	// FunctionVersionAll is a FunctionVersion enum value
	FunctionVersionAll = "ALL"
)

Variables

This section is empty.

Functions

func Architecture_Values added in v1.40.52

func Architecture_Values() []string

Architecture_Values returns all elements of the Architecture enum

func CodeSigningPolicy_Values added in v1.35.34

func CodeSigningPolicy_Values() []string

CodeSigningPolicy_Values returns all elements of the CodeSigningPolicy enum

func EndPointType_Values added in v1.36.9

func EndPointType_Values() []string

EndPointType_Values returns all elements of the EndPointType enum

func EventSourcePosition_Values added in v1.34.3

func EventSourcePosition_Values() []string

EventSourcePosition_Values returns all elements of the EventSourcePosition enum

func FullDocument_Values added in v1.44.210

func FullDocument_Values() []string

FullDocument_Values returns all elements of the FullDocument enum

func FunctionResponseType_Values added in v1.36.9

func FunctionResponseType_Values() []string

FunctionResponseType_Values returns all elements of the FunctionResponseType enum

func FunctionUrlAuthType_Values added in v1.43.34

func FunctionUrlAuthType_Values() []string

FunctionUrlAuthType_Values returns all elements of the FunctionUrlAuthType enum

func FunctionVersion_Values added in v1.34.3

func FunctionVersion_Values() []string

FunctionVersion_Values returns all elements of the FunctionVersion enum

func InvocationType_Values added in v1.34.3

func InvocationType_Values() []string

InvocationType_Values returns all elements of the InvocationType enum

func InvokeMode_Values added in v1.44.239

func InvokeMode_Values() []string

InvokeMode_Values returns all elements of the InvokeMode enum

func LastUpdateStatusReasonCode_Values added in v1.34.3

func LastUpdateStatusReasonCode_Values() []string

LastUpdateStatusReasonCode_Values returns all elements of the LastUpdateStatusReasonCode enum

func LastUpdateStatus_Values added in v1.34.3

func LastUpdateStatus_Values() []string

LastUpdateStatus_Values returns all elements of the LastUpdateStatus enum

func LogType_Values added in v1.34.3

func LogType_Values() []string

LogType_Values returns all elements of the LogType enum

func PackageType_Values added in v1.35.37

func PackageType_Values() []string

PackageType_Values returns all elements of the PackageType enum

func ProvisionedConcurrencyStatusEnum_Values added in v1.34.3

func ProvisionedConcurrencyStatusEnum_Values() []string

ProvisionedConcurrencyStatusEnum_Values returns all elements of the ProvisionedConcurrencyStatusEnum enum

func ResponseStreamingInvocationType_Values added in v1.44.239

func ResponseStreamingInvocationType_Values() []string

ResponseStreamingInvocationType_Values returns all elements of the ResponseStreamingInvocationType enum

func Runtime_Values added in v1.34.3

func Runtime_Values() []string

Runtime_Values returns all elements of the Runtime enum

func SnapStartApplyOn_Values added in v1.44.147

func SnapStartApplyOn_Values() []string

SnapStartApplyOn_Values returns all elements of the SnapStartApplyOn enum

func SnapStartOptimizationStatus_Values added in v1.44.147

func SnapStartOptimizationStatus_Values() []string

SnapStartOptimizationStatus_Values returns all elements of the SnapStartOptimizationStatus enum

func SourceAccessType_Values added in v1.35.22

func SourceAccessType_Values() []string

SourceAccessType_Values returns all elements of the SourceAccessType enum

func StateReasonCode_Values added in v1.34.3

func StateReasonCode_Values() []string

StateReasonCode_Values returns all elements of the StateReasonCode enum

func State_Values added in v1.34.3

func State_Values() []string

State_Values returns all elements of the State enum

func ThrottleReason_Values added in v1.34.3

func ThrottleReason_Values() []string

ThrottleReason_Values returns all elements of the ThrottleReason enum

func TracingMode_Values added in v1.34.3

func TracingMode_Values() []string

TracingMode_Values returns all elements of the TracingMode enum

func UpdateRuntimeOn_Values added in v1.44.185

func UpdateRuntimeOn_Values() []string

UpdateRuntimeOn_Values returns all elements of the UpdateRuntimeOn enum

Types

type AccountLimit added in v1.5.13

type AccountLimit struct {

	// The maximum size of a function's deployment package and layers when they're
	// extracted.
	CodeSizeUnzipped *int64 `type:"long"`

	// The maximum size of a deployment package when it's uploaded directly to Lambda.
	// Use Amazon S3 for larger files.
	CodeSizeZipped *int64 `type:"long"`

	// The maximum number of simultaneous function executions.
	ConcurrentExecutions *int64 `type:"integer"`

	// The amount of storage space that you can use for all deployment packages
	// and layer archives.
	TotalCodeSize *int64 `type:"long"`

	// The maximum number of simultaneous function executions, minus the capacity
	// that's reserved for individual functions with PutFunctionConcurrency.
	UnreservedConcurrentExecutions *int64 `type:"integer"`
	// contains filtered or unexported fields
}

Limits that are related to concurrency and storage. All file and storage sizes are in bytes.

func (AccountLimit) GoString added in v1.5.13

func (s AccountLimit) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AccountLimit) SetCodeSizeUnzipped added in v1.5.13

func (s *AccountLimit) SetCodeSizeUnzipped(v int64) *AccountLimit

SetCodeSizeUnzipped sets the CodeSizeUnzipped field's value.

func (*AccountLimit) SetCodeSizeZipped added in v1.5.13

func (s *AccountLimit) SetCodeSizeZipped(v int64) *AccountLimit

SetCodeSizeZipped sets the CodeSizeZipped field's value.

func (*AccountLimit) SetConcurrentExecutions added in v1.5.13

func (s *AccountLimit) SetConcurrentExecutions(v int64) *AccountLimit

SetConcurrentExecutions sets the ConcurrentExecutions field's value.

func (*AccountLimit) SetTotalCodeSize added in v1.5.13

func (s *AccountLimit) SetTotalCodeSize(v int64) *AccountLimit

SetTotalCodeSize sets the TotalCodeSize field's value.

func (*AccountLimit) SetUnreservedConcurrentExecutions added in v1.12.38

func (s *AccountLimit) SetUnreservedConcurrentExecutions(v int64) *AccountLimit

SetUnreservedConcurrentExecutions sets the UnreservedConcurrentExecutions field's value.

func (AccountLimit) String added in v1.5.13

func (s AccountLimit) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type AccountUsage added in v1.5.13

type AccountUsage struct {

	// The number of Lambda functions.
	FunctionCount *int64 `type:"long"`

	// The amount of storage space, in bytes, that's being used by deployment packages
	// and layer archives.
	TotalCodeSize *int64 `type:"long"`
	// contains filtered or unexported fields
}

The number of functions and amount of storage in use.

func (AccountUsage) GoString added in v1.5.13

func (s AccountUsage) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AccountUsage) SetFunctionCount added in v1.5.13

func (s *AccountUsage) SetFunctionCount(v int64) *AccountUsage

SetFunctionCount sets the FunctionCount field's value.

func (*AccountUsage) SetTotalCodeSize added in v1.5.13

func (s *AccountUsage) SetTotalCodeSize(v int64) *AccountUsage

SetTotalCodeSize sets the TotalCodeSize field's value.

func (AccountUsage) String added in v1.5.13

func (s AccountUsage) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type AddLayerVersionPermissionInput added in v1.15.87

type AddLayerVersionPermissionInput struct {

	// The API action that grants access to the layer. For example, lambda:GetLayerVersion.
	//
	// Action is a required field
	Action *string `type:"string" required:"true"`

	// The name or Amazon Resource Name (ARN) of the layer.
	//
	// LayerName is a required field
	LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"`

	// With the principal set to *, grant permission to all accounts in the specified
	// organization.
	OrganizationId *string `type:"string"`

	// An account ID, or * to grant layer usage permission to all accounts in an
	// organization, or all Amazon Web Services accounts (if organizationId is not
	// specified). For the last case, make sure that you really do want all Amazon
	// Web Services accounts to have usage permission to this layer.
	//
	// Principal is a required field
	Principal *string `type:"string" required:"true"`

	// Only update the policy if the revision ID matches the ID specified. Use this
	// option to avoid modifying a policy that has changed since you last read it.
	RevisionId *string `location:"querystring" locationName:"RevisionId" type:"string"`

	// An identifier that distinguishes the policy from others on the same layer
	// version.
	//
	// StatementId is a required field
	StatementId *string `min:"1" type:"string" required:"true"`

	// The version number.
	//
	// VersionNumber is a required field
	VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"`
	// contains filtered or unexported fields
}

func (AddLayerVersionPermissionInput) GoString added in v1.15.87

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AddLayerVersionPermissionInput) SetAction added in v1.15.87

SetAction sets the Action field's value.

func (*AddLayerVersionPermissionInput) SetLayerName added in v1.15.87

SetLayerName sets the LayerName field's value.

func (*AddLayerVersionPermissionInput) SetOrganizationId added in v1.15.87

SetOrganizationId sets the OrganizationId field's value.

func (*AddLayerVersionPermissionInput) SetPrincipal added in v1.15.87

SetPrincipal sets the Principal field's value.

func (*AddLayerVersionPermissionInput) SetRevisionId added in v1.15.87

SetRevisionId sets the RevisionId field's value.

func (*AddLayerVersionPermissionInput) SetStatementId added in v1.15.87

SetStatementId sets the StatementId field's value.

func (*AddLayerVersionPermissionInput) SetVersionNumber added in v1.15.87

SetVersionNumber sets the VersionNumber field's value.

func (AddLayerVersionPermissionInput) String added in v1.15.87

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AddLayerVersionPermissionInput) Validate added in v1.15.87

func (s *AddLayerVersionPermissionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AddLayerVersionPermissionOutput added in v1.15.87

type AddLayerVersionPermissionOutput struct {

	// A unique identifier for the current revision of the policy.
	RevisionId *string `type:"string"`

	// The permission statement.
	Statement *string `type:"string"`
	// contains filtered or unexported fields
}

func (AddLayerVersionPermissionOutput) GoString added in v1.15.87

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AddLayerVersionPermissionOutput) SetRevisionId added in v1.15.87

SetRevisionId sets the RevisionId field's value.

func (*AddLayerVersionPermissionOutput) SetStatement added in v1.15.87

SetStatement sets the Statement field's value.

func (AddLayerVersionPermissionOutput) String added in v1.15.87

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type AddPermissionInput

type AddPermissionInput struct {

	// The action that the principal can use on the function. For example, lambda:InvokeFunction
	// or lambda:GetFunction.
	//
	// Action is a required field
	Action *string `type:"string" required:"true"`

	// For Alexa Smart Home functions, a token that the invoker must supply.
	EventSourceToken *string `type:"string"`

	// The name of the Lambda function, version, or alias.
	//
	// Name formats
	//
	//    * Function name – my-function (name-only), my-function:v1 (with alias).
	//
	//    * Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//    * Partial ARN – 123456789012:function:my-function.
	//
	// You can append a version number or alias to any of the formats. The length
	// constraint applies only to the full ARN. If you specify only the function
	// name, it is limited to 64 characters in length.
	//
	// FunctionName is a required field
	FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"`

	// The type of authentication that your function URL uses. Set to AWS_IAM if
	// you want to restrict access to authenticated users only. Set to NONE if you
	// want to bypass IAM authentication to create a public endpoint. For more information,
	// see Security and auth model for Lambda function URLs (https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html).
	FunctionUrlAuthType *string `type:"string" enum:"FunctionUrlAuthType"`

	// The Amazon Web Service or Amazon Web Services account that invokes the function.
	// If you specify a service, use SourceArn or SourceAccount to limit who can
	// invoke the function through that service.
	//
	// Principal is a required field
	Principal *string `type:"string" required:"true"`

	// The identifier for your organization in Organizations. Use this to grant
	// permissions to all the Amazon Web Services accounts under this organization.
	PrincipalOrgID *string `min:"12" type:"string"`

	// Specify a version or alias to add permissions to a published version of the
	// function.
	Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`

	// Update the policy only if the revision ID matches the ID that's specified.
	// Use this option to avoid modifying a policy that has changed since you last
	// read it.
	RevisionId *string `type:"string"`

	// For Amazon Web Service, the ID of the Amazon Web Services account that owns
	// the resource. Use this together with SourceArn to ensure that the specified
	// account owns the resource. It is possible for an Amazon S3 bucket to be deleted
	// by its owner and recreated by another account.
	SourceAccount *string `type:"string"`

	// For Amazon Web Services, the ARN of the Amazon Web Services resource that
	// invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.
	//
	// Note that Lambda configures the comparison using the StringLike operator.
	SourceArn *string `type:"string"`

	// A statement identifier that differentiates the statement from others in the
	// same policy.
	//
	// StatementId is a required field
	StatementId *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AddPermissionInput) GoString added in v0.6.5

func (s AddPermissionInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AddPermissionInput) SetAction added in v1.5.0

func (s *AddPermissionInput) SetAction(v string) *AddPermissionInput

SetAction sets the Action field's value.

func (*AddPermissionInput) SetEventSourceToken added in v1.5.0

func (s *AddPermissionInput) SetEventSourceToken(v string) *AddPermissionInput

SetEventSourceToken sets the EventSourceToken field's value.

func (*AddPermissionInput) SetFunctionName added in v1.5.0

func (s *AddPermissionInput) SetFunctionName(v string) *AddPermissionInput

SetFunctionName sets the FunctionName field's value.

func (*AddPermissionInput) SetFunctionUrlAuthType added in v1.43.34

func (s *AddPermissionInput) SetFunctionUrlAuthType(v string) *AddPermissionInput

SetFunctionUrlAuthType sets the FunctionUrlAuthType field's value.

func (*AddPermissionInput) SetPrincipal added in v1.5.0

func (s *AddPermissionInput) SetPrincipal(v string) *AddPermissionInput

SetPrincipal sets the Principal field's value.

func (*AddPermissionInput) SetPrincipalOrgID added in v1.43.17

func (s *AddPermissionInput) SetPrincipalOrgID(v string) *AddPermissionInput

SetPrincipalOrgID sets the PrincipalOrgID field's value.

func (*AddPermissionInput) SetQualifier added in v1.5.0

func (s *AddPermissionInput) SetQualifier(v string) *AddPermissionInput

SetQualifier sets the Qualifier field's value.

func (*AddPermissionInput) SetRevisionId added in v1.12.69

func (s *AddPermissionInput) SetRevisionId(v string) *AddPermissionInput

SetRevisionId sets the RevisionId field's value.

func (*AddPermissionInput) SetSourceAccount added in v1.5.0

func (s *AddPermissionInput) SetSourceAccount(v string) *AddPermissionInput

SetSourceAccount sets the SourceAccount field's value.

func (*AddPermissionInput) SetSourceArn added in v1.5.0

func (s *AddPermissionInput) SetSourceArn(v string) *AddPermissionInput

SetSourceArn sets the SourceArn field's value.

func (*AddPermissionInput) SetStatementId added in v1.5.0

func (s *AddPermissionInput) SetStatementId(v string) *AddPermissionInput

SetStatementId sets the StatementId field's value.

func (AddPermissionInput) String added in v0.6.5

func (s AddPermissionInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AddPermissionInput) Validate added in v1.1.21

func (s *AddPermissionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AddPermissionOutput

type AddPermissionOutput struct {

	// The permission statement that's added to the function policy.
	Statement *string `type:"string"`
	// contains filtered or unexported fields
}

func (AddPermissionOutput) GoString added in v0.6.5

func (s AddPermissionOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AddPermissionOutput) SetStatement added in v1.5.0

func (s *AddPermissionOutput) SetStatement(v string) *AddPermissionOutput

SetStatement sets the Statement field's value.

func (AddPermissionOutput) String added in v0.6.5

func (s AddPermissionOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type AliasConfiguration added in v0.9.14

type AliasConfiguration struct {

	// The Amazon Resource Name (ARN) of the alias.
	AliasArn *string `type:"string"`

	// A description of the alias.
	Description *string `type:"string"`

	// The function version that the alias invokes.
	FunctionVersion *string `min:"1" type:"string"`

	// The name of the alias.
	Name *string `min:"1" type:"string"`

	// A unique identifier that changes when you update the alias.
	RevisionId *string `type:"string"`

	// The routing configuration (https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html)
	// of the alias.
	RoutingConfig *AliasRoutingConfiguration `type:"structure"`
	// contains filtered or unexported fields
}

Provides configuration information about a Lambda function alias (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html).

func (AliasConfiguration) GoString added in v0.9.14

func (s AliasConfiguration) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AliasConfiguration) SetAliasArn added in v1.5.0

func (s *AliasConfiguration) SetAliasArn(v string) *AliasConfiguration

SetAliasArn sets the AliasArn field's value.

func (*AliasConfiguration) SetDescription added in v1.5.0

func (s *AliasConfiguration) SetDescription(v string) *AliasConfiguration

SetDescription sets the Description field's value.

func (*AliasConfiguration) SetFunctionVersion added in v1.5.0

func (s *AliasConfiguration) SetFunctionVersion(v string) *AliasConfiguration

SetFunctionVersion sets the FunctionVersion field's value.

func (*AliasConfiguration) SetName added in v1.5.0

SetName sets the Name field's value.

func (*AliasConfiguration) SetRevisionId added in v1.12.69

func (s *AliasConfiguration) SetRevisionId(v string) *AliasConfiguration

SetRevisionId sets the RevisionId field's value.

func (*AliasConfiguration) SetRoutingConfig added in v1.12.35

SetRoutingConfig sets the RoutingConfig field's value.

func (AliasConfiguration) String added in v0.9.14

func (s AliasConfiguration) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type AliasRoutingConfiguration added in v1.12.35

type AliasRoutingConfiguration struct {

	// The second version, and the percentage of traffic that's routed to it.
	AdditionalVersionWeights map[string]*float64 `type:"map"`
	// contains filtered or unexported fields
}

The traffic-shifting (https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html) configuration of a Lambda function alias.

func (AliasRoutingConfiguration) GoString added in v1.12.35

func (s AliasRoutingConfiguration) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AliasRoutingConfiguration) SetAdditionalVersionWeights added in v1.12.35

func (s *AliasRoutingConfiguration) SetAdditionalVersionWeights(v map[string]*float64) *AliasRoutingConfiguration

SetAdditionalVersionWeights sets the AdditionalVersionWeights field's value.

func (AliasRoutingConfiguration) String added in v1.12.35

func (s AliasRoutingConfiguration) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type AllowedPublishers added in v1.35.34

type AllowedPublishers struct {

	// The Amazon Resource Name (ARN) for each of the signing profiles. A signing
	// profile defines a trusted user who can sign a code package.
	//
	// SigningProfileVersionArns is a required field
	SigningProfileVersionArns []*string `min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

List of signing profiles that can sign a code package.

func (AllowedPublishers) GoString added in v1.35.34

func (s AllowedPublishers) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AllowedPublishers) SetSigningProfileVersionArns added in v1.35.34

func (s *AllowedPublishers) SetSigningProfileVersionArns(v []*string) *AllowedPublishers

SetSigningProfileVersionArns sets the SigningProfileVersionArns field's value.

func (AllowedPublishers) String added in v1.35.34

func (s AllowedPublishers) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AllowedPublishers) Validate added in v1.35.34

func (s *AllowedPublishers) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AmazonManagedKafkaEventSourceConfig added in v1.44.79

type AmazonManagedKafkaEventSourceConfig struct {

	// The identifier for the Kafka consumer group to join. The consumer group ID
	// must be unique among all your Kafka event sources. After creating a Kafka
	// event source mapping with the consumer group ID specified, you cannot update
	// this value. For more information, see Customizable consumer group ID (https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id).
	ConsumerGroupId *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.

func (AmazonManagedKafkaEventSourceConfig) GoString added in v1.44.79

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AmazonManagedKafkaEventSourceConfig) SetConsumerGroupId added in v1.44.79

SetConsumerGroupId sets the ConsumerGroupId field's value.

func (AmazonManagedKafkaEventSourceConfig) String added in v1.44.79

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AmazonManagedKafkaEventSourceConfig) Validate added in v1.44.79

Validate inspects the fields of the type to determine if they are valid.

type CodeSigningConfig added in v1.35.34

type CodeSigningConfig struct {

	// List of allowed publishers.
	//
	// AllowedPublishers is a required field
	AllowedPublishers *AllowedPublishers `type:"structure" required:"true"`

	// The Amazon Resource Name (ARN) of the Code signing configuration.
	//
	// CodeSigningConfigArn is a required field
	CodeSigningConfigArn *string `type:"string" required:"true"`

	// Unique identifer for the Code signing configuration.
	//
	// CodeSigningConfigId is a required field
	CodeSigningConfigId *string `type:"string" required:"true"`

	// The code signing policy controls the validation failure action for signature
	// mismatch or expiry.
	//
	// CodeSigningPolicies is a required field
	CodeSigningPolicies *CodeSigningPolicies `type:"structure" required:"true"`

	// Code signing configuration description.
	Description *string `type:"string"`

	// The date and time that the Code signing configuration was last modified,
	// in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
	//
	// LastModified is a required field
	LastModified *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Details about a Code signing configuration (https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html).

func (CodeSigningConfig) GoString added in v1.35.34

func (s CodeSigningConfig) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CodeSigningConfig) SetAllowedPublishers added in v1.35.34

func (s *CodeSigningConfig) SetAllowedPublishers(v *AllowedPublishers) *CodeSigningConfig

SetAllowedPublishers sets the AllowedPublishers field's value.

func (*CodeSigningConfig) SetCodeSigningConfigArn added in v1.35.34

func (s *CodeSigningConfig) SetCodeSigningConfigArn(v string) *CodeSigningConfig

SetCodeSigningConfigArn sets the CodeSigningConfigArn field's value.

func (*CodeSigningConfig) SetCodeSigningConfigId added in v1.35.34

func (s *CodeSigningConfig) SetCodeSigningConfigId(v string) *CodeSigningConfig

SetCodeSigningConfigId sets the CodeSigningConfigId field's value.

func (*CodeSigningConfig) SetCodeSigningPolicies added in v1.35.34

func (s *CodeSigningConfig) SetCodeSigningPolicies(v *CodeSigningPolicies) *CodeSigningConfig

SetCodeSigningPolicies sets the CodeSigningPolicies field's value.

func (*CodeSigningConfig) SetDescription added in v1.35.34

func (s *CodeSigningConfig) SetDescription(v string) *CodeSigningConfig

SetDescription sets the Description field's value.

func (*CodeSigningConfig) SetLastModified added in v1.35.34

func (s *CodeSigningConfig) SetLastModified(v string) *CodeSigningConfig

SetLastModified sets the LastModified field's value.

func (CodeSigningConfig) String added in v1.35.34

func (s CodeSigningConfig) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type CodeSigningConfigNotFoundException added in v1.35.34

type CodeSigningConfigNotFoundException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"Message" type:"string"`

	Type *string `type:"string"`
	// contains filtered or unexported fields
}

The specified code signing configuration does not exist.

func (*CodeSigningConfigNotFoundException) Code added in v1.35.34

Code returns the exception type name.

func (*CodeSigningConfigNotFoundException) Error added in v1.35.34

func (CodeSigningConfigNotFoundException) GoString added in v1.35.34

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CodeSigningConfigNotFoundException) Message added in v1.35.34

Message returns the exception's message.

func (*CodeSigningConfigNotFoundException) OrigErr added in v1.35.34

OrigErr always returns nil, satisfies awserr.Error interface.

func (*CodeSigningConfigNotFoundException) RequestID added in v1.35.34

RequestID returns the service's response RequestID for request.

func (*CodeSigningConfigNotFoundException) StatusCode added in v1.35.34

func (s *CodeSigningConfigNotFoundException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (CodeSigningConfigNotFoundException) String added in v1.35.34

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type CodeSigningPolicies added in v1.35.34

type CodeSigningPolicies struct {

	// Code signing configuration policy for deployment validation failure. If you
	// set the policy to Enforce, Lambda blocks the deployment request if signature
	// validation checks fail. If you set the policy to Warn, Lambda allows the
	// deployment and creates a CloudWatch log.
	//
	// Default value: Warn
	UntrustedArtifactOnDeployment *string `type:"string" enum:"CodeSigningPolicy"`
	// contains filtered or unexported fields
}

Code signing configuration policies (https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html#config-codesigning-policies) specify the validation failure action for signature mismatch or expiry.

func (CodeSigningPolicies) GoString added in v1.35.34

func (s CodeSigningPolicies) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CodeSigningPolicies) SetUntrustedArtifactOnDeployment added in v1.35.34

func (s *CodeSigningPolicies) SetUntrustedArtifactOnDeployment(v string) *CodeSigningPolicies

SetUntrustedArtifactOnDeployment sets the UntrustedArtifactOnDeployment field's value.

func (CodeSigningPolicies) String added in v1.35.34

func (s CodeSigningPolicies) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type CodeStorageExceededException added in v1.28.0

type CodeStorageExceededException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`

	// The exception type.
	Type *string `type:"string"`
	// contains filtered or unexported fields
}

Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html).

func (*CodeStorageExceededException) Code added in v1.28.0

Code returns the exception type name.

func (*CodeStorageExceededException) Error added in v1.28.0

func (CodeStorageExceededException) GoString added in v1.28.0

func (s CodeStorageExceededException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CodeStorageExceededException) Message added in v1.28.0

func (s *CodeStorageExceededException) Message() string

Message returns the exception's message.

func (*CodeStorageExceededException) OrigErr added in v1.28.0

func (s *CodeStorageExceededException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*CodeStorageExceededException) RequestID added in v1.28.0