lambda

package
Version: v1.44.152 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 11 Imported by: 794

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 (
	// 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 (
	// 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 (
	// 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"
)
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 (

	// 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"

	// 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 runtime restore hook 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".
	//
	// The runtime restore hook failed to complete within the timeout limit (2 seconds).
	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 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 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 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

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 IAM 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/versioning-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

func (s *CodeStorageExceededException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*CodeStorageExceededException) StatusCode added in v1.28.0

func (s *CodeStorageExceededException) StatusCode() int

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

func (CodeStorageExceededException) String added in v1.28.0

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 CodeVerificationFailedException added in v1.35.34

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

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

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

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.

func (*CodeVerificationFailedException) Code added in v1.35.34

Code returns the exception type name.

func (*CodeVerificationFailedException) Error added in v1.35.34

func (CodeVerificationFailedException) 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 (*CodeVerificationFailedException) Message added in v1.35.34

Message returns the exception's message.

func (*CodeVerificationFailedException) OrigErr added in v1.35.34

OrigErr always returns nil, satisfies awserr.Error interface.

func (*CodeVerificationFailedException) RequestID added in v1.35.34

func (s *CodeVerificationFailedException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*CodeVerificationFailedException) StatusCode added in v1.35.34

func (s *CodeVerificationFailedException) StatusCode() int

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

func (CodeVerificationFailedException) 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 Cors added in v1.42.9

type Cors struct {

	// Whether to allow cookies or other credentials in requests to your function
	// URL. The default is false.
	AllowCredentials *bool `type:"boolean"`

	// The HTTP headers that origins can include in requests to your function URL.
	// For example: Date, Keep-Alive, X-Custom-Header.
	AllowHeaders []*string `type:"list"`

	// The HTTP methods that are allowed when calling your function URL. For example:
	// GET, POST, DELETE, or the wildcard character (*).
	AllowMethods []*string `type:"list"`

	// The origins that can access your function URL. You can list any number of
	// specific origins, separated by a comma. For example: https://www.example.com,
	// http://localhost:60905.
	//
	// Alternatively, you can grant access to all origins using the wildcard character
	// (*).
	AllowOrigins []*string `type:"list"`

	// The HTTP headers in your function response that you want to expose to origins
	// that call your function URL. For example: Date, Keep-Alive, X-Custom-Header.
	ExposeHeaders []*string `type:"list"`

	// The maximum amount of time, in seconds, that web browsers can cache results
	// of a preflight request. By default, this is set to 0, which means that the
	// browser doesn't cache results.
	MaxAge *int64 `type:"integer"`
	// contains filtered or unexported fields
}

The cross-origin resource sharing (CORS) (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) settings for your Lambda function URL. Use CORS to grant access to your function URL from any origin. You can also use CORS to control access for specific HTTP headers and methods in requests to your function URL.

func (Cors) GoString added in v1.42.9

func (s Cors) 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 (*Cors) SetAllowCredentials added in v1.42.9

func (s *Cors) SetAllowCredentials(v bool) *Cors

SetAllowCredentials sets the AllowCredentials field's value.

func (*Cors) SetAllowHeaders added in v1.42.9

func (s *Cors) SetAllowHeaders(v []*string) *Cors

SetAllowHeaders sets the AllowHeaders field's value.

func (*Cors) SetAllowMethods added in v1.42.9

func (s *Cors) SetAllowMethods(v []*string) *Cors

SetAllowMethods sets the AllowMethods field's value.

func (*Cors) SetAllowOrigins added in v1.42.9

func (s *Cors) SetAllowOrigins(v []*string) *Cors

SetAllowOrigins sets the AllowOrigins field's value.

func (*Cors) SetExposeHeaders added in v1.42.9

func (s *Cors) SetExposeHeaders(v []*string) *Cors

SetExposeHeaders sets the ExposeHeaders field's value.

func (*Cors) SetMaxAge added in v1.42.9

func (s *Cors) SetMaxAge(v int64) *Cors

SetMaxAge sets the MaxAge field's value.

func (Cors) String added in v1.42.9

func (s Cors) 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 CreateAliasInput added in v0.9.14

type CreateAliasInput struct {

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

	// The name of the Lambda function.
	//
	// Name formats
	//
	//    * Function name - MyFunction.
	//
	//    * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
	//
	//    * Partial ARN - 123456789012:function:MyFunction.
	//
	// 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 function version that the alias invokes.
	//
	// FunctionVersion is a required field
	FunctionVersion *string `min:"1" type:"string" required:"true"`

	// The name of the alias.
	//
	// Name is a required field
	Name *string `min:"1" type:"string" required:"true"`

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

func (CreateAliasInput) GoString added in v0.9.14

func (s CreateAliasInput) 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 (*CreateAliasInput) SetDescription added in v1.5.0

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

SetDescription sets the Description field's value.

func (*CreateAliasInput) SetFunctionName added in v1.5.0

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

SetFunctionName sets the FunctionName field's value.

func (*CreateAliasInput) SetFunctionVersion added in v1.5.0

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

SetFunctionVersion sets the FunctionVersion field's value.

func (*CreateAliasInput) SetName added in v1.5.0

func (s *CreateAliasInput) SetName(v string) *CreateAliasInput

SetName sets the Name field's value.

func (*CreateAliasInput) SetRoutingConfig added in v1.12.35

SetRoutingConfig sets the RoutingConfig field's value.

func (CreateAliasInput) String added in v0.9.14

func (s CreateAliasInput) 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 (*CreateAliasInput) Validate added in v1.1.21

func (s *CreateAliasInput) Validate() error

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

type CreateCodeSigningConfigInput added in v1.35.34

type CreateCodeSigningConfigInput struct {

	// Signing profiles for this code signing configuration.
	//
	// AllowedPublishers is a required field
	AllowedPublishers *AllowedPublishers `type:"structure" required:"true"`

	// The code signing policies define the actions to take if the validation checks
	// fail.
	CodeSigningPolicies *CodeSigningPolicies `type:"structure"`

	// Descriptive name for this code signing configuration.
	Description *string `type:"string"`
	// contains filtered or unexported fields
}

func (CreateCodeSigningConfigInput) GoString added in v1.35.34

func (s CreateCodeSigningConfigInput) 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 (*CreateCodeSigningConfigInput) SetAllowedPublishers added in v1.35.34

SetAllowedPublishers sets the AllowedPublishers field's value.

func (*CreateCodeSigningConfigInput) SetCodeSigningPolicies added in v1.35.34

SetCodeSigningPolicies sets the CodeSigningPolicies field's value.

func (*CreateCodeSigningConfigInput) SetDescription added in v1.35.34

SetDescription sets the Description field's value.

func (CreateCodeSigningConfigInput) 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".

func (*CreateCodeSigningConfigInput) Validate added in v1.35.34

func (s *CreateCodeSigningConfigInput) Validate() error

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

type CreateCodeSigningConfigOutput added in v1.35.34

type CreateCodeSigningConfigOutput struct {

	// The code signing configuration.
	//
	// CodeSigningConfig is a required field
	CodeSigningConfig *CodeSigningConfig `type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (CreateCodeSigningConfigOutput) 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 (*CreateCodeSigningConfigOutput) SetCodeSigningConfig added in v1.35.34

SetCodeSigningConfig sets the CodeSigningConfig field's value.

func (CreateCodeSigningConfigOutput) 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 CreateEventSourceMappingInput

type CreateEventSourceMappingInput struct {

	// Specific configuration settings for an Amazon Managed Streaming for Apache
	// Kafka (Amazon MSK) event source.
	AmazonManagedKafkaEventSourceConfig *AmazonManagedKafkaEventSourceConfig `type:"structure"`

	// The maximum number of records in each batch that Lambda pulls from your stream
	// or queue and sends to your function. Lambda passes all of the records in
	// the batch to the function in a single call, up to the payload limit for synchronous
	// invocation (6 MB).
	//
	//    * Amazon Kinesis - Default 100. Max 10,000.
	//
	//    * Amazon DynamoDB Streams - Default 100. Max 10,000.
	//
	//    * Amazon Simple Queue Service - Default 10. For standard queues the max
	//    is 10,000. For FIFO queues the max is 10.
	//
	//    * Amazon Managed Streaming for Apache Kafka - Default 100. Max 10,000.
	//
	//    * Self-managed Apache Kafka - Default 100. Max 10,000.
	//
	//    * Amazon MQ (ActiveMQ and RabbitMQ) - Default 100. Max 10,000.
	BatchSize *int64 `min:"1" type:"integer"`

	// (Streams only) If the function returns an error, split the batch in two and
	// retry.
	BisectBatchOnFunctionError *bool `type:"boolean"`

	// (Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded
	// records.
	DestinationConfig *DestinationConfig `type:"structure"`

	// When true, the event source mapping is active. When false, Lambda pauses
	// polling and invocation.
	//
	// Default: True
	Enabled *bool `type:"boolean"`

	// The Amazon Resource Name (ARN) of the event source.
	//
	//    * Amazon Kinesis - The ARN of the data stream or a stream consumer.
	//
	//    * Amazon DynamoDB Streams - The ARN of the stream.
	//
	//    * Amazon Simple Queue Service - The ARN of the queue.
	//
	//    * Amazon Managed Streaming for Apache Kafka - The ARN of the cluster.
	//
	//    * Amazon MQ - The ARN of the broker.
	EventSourceArn *string `type:"string"`

	// An object that defines the filter criteria that determine whether Lambda
	// should process an event. For more information, see Lambda event filtering
	// (https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html).
	FilterCriteria *FilterCriteria `type:"structure"`

	// The name of the Lambda function.
	//
	// Name formats
	//
	//    * Function name - MyFunction.
	//
	//    * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
	//
	//    * Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.
	//
	//    * Partial ARN - 123456789012:function:MyFunction.
	//
	// The length constraint applies only to the full ARN. If you specify only the
	// function name, it's limited to 64 characters in length.
	//
	// FunctionName is a required field
	FunctionName *string `min:"1" type:"string" required:"true"`

	// (Streams and Amazon SQS) A list of current response type enums applied to
	// the event source mapping.
	FunctionResponseTypes []*string `type:"list" enum:"FunctionResponseType"`

	// The maximum amount of time, in seconds, that Lambda spends gathering records
	// before invoking the function. You can configure MaximumBatchingWindowInSeconds
	// to any value from 0 seconds to 300 seconds in increments of seconds.
	//
	// For streams and Amazon SQS event sources, the default batching window is
	// 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and Amazon MQ event
	// sources, the default batching window is 500 ms. Note that because you can
	// only change MaximumBatchingWindowInSeconds in increments of seconds, you
	// cannot revert back to the 500 ms default batching window after you have changed
	// it. To restore the default batching window, you must create a new event source
	// mapping.
	//
	// Related setting: For streams and Amazon SQS event sources, when you set BatchSize
	// to a value greater than 10, you must set MaximumBatchingWindowInSeconds to
	// at least 1.
	MaximumBatchingWindowInSeconds *int64 `type:"integer"`

	// (Streams only) Discard records older than the specified age. The default
	// value is infinite (-1).
	MaximumRecordAgeInSeconds *int64 `type:"integer"`

	// (Streams only) Discard records after the specified number of retries. The
	// default value is infinite (-1). When set to infinite (-1), failed records
	// are retried until the record expires.
	MaximumRetryAttempts *int64 `type:"integer"`

	// (Streams only) The number of batches to process from each shard concurrently.
	ParallelizationFactor *int64 `min:"1" type:"integer"`

	// (MQ) The name of the Amazon MQ broker destination queue to consume.
	Queues []*string `min:"1" type:"list"`

	// The self-managed Apache Kafka cluster to receive records from.
	SelfManagedEventSource *SelfManagedEventSource `type:"structure"`

	// Specific configuration settings for a self-managed Apache Kafka event source.
	SelfManagedKafkaEventSourceConfig *SelfManagedKafkaEventSourceConfig `type:"structure"`

	// An array of authentication protocols or VPC components required to secure
	// your event source.
	SourceAccessConfigurations []*SourceAccessConfiguration `type:"list"`

	// The position in a stream from which to start reading. Required for Amazon
	// Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is
	// supported only for Amazon Kinesis streams.
	StartingPosition *string `type:"string" enum:"EventSourcePosition"`

	// With StartingPosition set to AT_TIMESTAMP, the time from which to start reading.
	StartingPositionTimestamp *time.Time `type:"timestamp"`

	// The name of the Kafka topic.
	Topics []*string `min:"1" type:"list"`

	// (Streams only) The duration in seconds of a processing window. The range
	// is between 1 second and 900 seconds.
	TumblingWindowInSeconds *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (CreateEventSourceMappingInput) GoString added in v0.6.5

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 (*CreateEventSourceMappingInput) SetAmazonManagedKafkaEventSourceConfig added in v1.44.79

SetAmazonManagedKafkaEventSourceConfig sets the AmazonManagedKafkaEventSourceConfig field's value.

func (*CreateEventSourceMappingInput) SetBatchSize added in v1.5.0

SetBatchSize sets the BatchSize field's value.

func (*CreateEventSourceMappingInput) SetBisectBatchOnFunctionError added in v1.25.42

func (s *CreateEventSourceMappingInput) SetBisectBatchOnFunctionError(v bool) *CreateEventSourceMappingInput

SetBisectBatchOnFunctionError sets the BisectBatchOnFunctionError field's value.

func (*CreateEventSourceMappingInput) SetDestinationConfig added in v1.25.42

SetDestinationConfig sets the DestinationConfig field's value.

func (*CreateEventSourceMappingInput) SetEnabled