lambda

package
v1.42.6 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

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

Overview

This is the Lambda API Reference. The Lambda Developer Guide provides additional information. For the service overview, see What is Lambda (https://docs.aws.amazon.com/lambda/latest/dg/welcome.html), and for information about how the service works, see Lambda: How it Works (https://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html) in the Lambda Developer Guide.

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

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

	// 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"
)
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"
)
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"
)
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"
)
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".
	//
	// You have exceeded your maximum total code size per account. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/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".
	//
	// Lambda was throttled by Amazon EC2 during Lambda function initialization
	// using the execution role provided for the Lambda function.
	ErrCodeEC2ThrottledException = "EC2ThrottledException"

	// ErrCodeEC2UnexpectedException for service response error code
	// "EC2UnexpectedException".
	//
	// Lambda received an unexpected 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 function couldn't make a network connection to the configured file system.
	ErrCodeEFSMountConnectivityException = "EFSMountConnectivityException"

	// ErrCodeEFSMountFailureException for service response error code
	// "EFSMountFailureException".
	//
	// The 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 function was able to make a network connection to the configured file
	// system, but the mount operation timed out.
	ErrCodeEFSMountTimeoutException = "EFSMountTimeoutException"

	// ErrCodeENILimitReachedException for service response error code
	// "ENILimitReachedException".
	//
	// Lambda was not able to create an elastic network interface in the VPC, specified
	// as part of Lambda function configuration, because the limit for network interfaces
	// has been reached.
	ErrCodeENILimitReachedException = "ENILimitReachedException"

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

	// ErrCodeInvalidParameterValueException for service response error code
	// "InvalidParameterValueException".
	//
	// One of the parameters in the request is invalid.
	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
	// invalid.
	ErrCodeInvalidSecurityGroupIDException = "InvalidSecurityGroupIDException"

	// ErrCodeInvalidSubnetIDException for service response error code
	// "InvalidSubnetIDException".
	//
	// The Subnet ID provided in the Lambda function VPC configuration is invalid.
	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 was unable to 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 was unable to 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 was unable to decrypt the environment variables because the KMS key
	// used is in an invalid state for Decrypt. Check the function's KMS key settings.
	ErrCodeKMSInvalidStateException = "KMSInvalidStateException"

	// ErrCodeKMSNotFoundException for service response error code
	// "KMSNotFoundException".
	//
	// Lambda was unable to 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. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/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 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 limit. For
	// more information, see Limits (https://docs.aws.amazon.com/lambda/latest/dg/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
	// attempted to update an EventSource Mapping in CREATING, or tried to delete
	// a EventSource mapping currently in the UPDATING state.
	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"

	// ErrCodeSubnetIPAddressLimitReachedException for service response error code
	// "SubnetIPAddressLimitReachedException".
	//
	// Lambda was not able to 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.
	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

func Architecture_Values() []string

Architecture_Values returns all elements of the Architecture enum

func CodeSigningPolicy_Values

func CodeSigningPolicy_Values() []string

CodeSigningPolicy_Values returns all elements of the CodeSigningPolicy enum

func EndPointType_Values

func EndPointType_Values() []string

EndPointType_Values returns all elements of the EndPointType enum

func EventSourcePosition_Values

func EventSourcePosition_Values() []string

EventSourcePosition_Values returns all elements of the EventSourcePosition enum

func FunctionResponseType_Values

func FunctionResponseType_Values() []string

FunctionResponseType_Values returns all elements of the FunctionResponseType enum

func FunctionVersion_Values

func FunctionVersion_Values() []string

FunctionVersion_Values returns all elements of the FunctionVersion enum

func InvocationType_Values

func InvocationType_Values() []string

InvocationType_Values returns all elements of the InvocationType enum

func LastUpdateStatusReasonCode_Values

func LastUpdateStatusReasonCode_Values() []string

LastUpdateStatusReasonCode_Values returns all elements of the LastUpdateStatusReasonCode enum

func LastUpdateStatus_Values

func LastUpdateStatus_Values() []string

LastUpdateStatus_Values returns all elements of the LastUpdateStatus enum

func LogType_Values

func LogType_Values() []string

LogType_Values returns all elements of the LogType enum

func PackageType_Values

func PackageType_Values() []string

PackageType_Values returns all elements of the PackageType enum

func ProvisionedConcurrencyStatusEnum_Values

func ProvisionedConcurrencyStatusEnum_Values() []string

ProvisionedConcurrencyStatusEnum_Values returns all elements of the ProvisionedConcurrencyStatusEnum enum

func Runtime_Values

func Runtime_Values() []string

Runtime_Values returns all elements of the Runtime enum

func SourceAccessType_Values

func SourceAccessType_Values() []string

SourceAccessType_Values returns all elements of the SourceAccessType enum

func StateReasonCode_Values

func StateReasonCode_Values() []string

StateReasonCode_Values returns all elements of the StateReasonCode enum

func State_Values

func State_Values() []string

State_Values returns all elements of the State enum

func ThrottleReason_Values

func ThrottleReason_Values() []string

ThrottleReason_Values returns all elements of the ThrottleReason enum

func TracingMode_Values

func TracingMode_Values() []string

TracingMode_Values returns all elements of the TracingMode enum

Types

type AccountLimit

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

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

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

SetCodeSizeUnzipped sets the CodeSizeUnzipped field's value.

func (*AccountLimit) SetCodeSizeZipped

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

SetCodeSizeZipped sets the CodeSizeZipped field's value.

func (*AccountLimit) SetConcurrentExecutions

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

SetConcurrentExecutions sets the ConcurrentExecutions field's value.

func (*AccountLimit) SetTotalCodeSize

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

SetTotalCodeSize sets the TotalCodeSize field's value.

func (*AccountLimit) SetUnreservedConcurrentExecutions

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

SetUnreservedConcurrentExecutions sets the UnreservedConcurrentExecutions field's value.

func (AccountLimit) String

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

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

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

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

SetFunctionCount sets the FunctionCount field's value.

func (*AccountUsage) SetTotalCodeSize

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

SetTotalCodeSize sets the TotalCodeSize field's value.

func (AccountUsage) String

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

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

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

SetAction sets the Action field's value.

func (*AddLayerVersionPermissionInput) SetLayerName

SetLayerName sets the LayerName field's value.

func (*AddLayerVersionPermissionInput) SetOrganizationId

SetOrganizationId sets the OrganizationId field's value.

func (*AddLayerVersionPermissionInput) SetPrincipal

SetPrincipal sets the Principal field's value.

func (*AddLayerVersionPermissionInput) SetRevisionId

SetRevisionId sets the RevisionId field's value.

func (*AddLayerVersionPermissionInput) SetStatementId

SetStatementId sets the StatementId field's value.

func (*AddLayerVersionPermissionInput) SetVersionNumber

SetVersionNumber sets the VersionNumber field's value.

func (AddLayerVersionPermissionInput) 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 (*AddLayerVersionPermissionInput) Validate

func (s *AddLayerVersionPermissionInput) Validate() error

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

type AddLayerVersionPermissionOutput

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

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

SetRevisionId sets the RevisionId field's value.

func (*AddLayerVersionPermissionOutput) SetStatement

SetStatement sets the Statement field's value.

func (AddLayerVersionPermissionOutput) 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 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 must be supplied by the invoker.
	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 Amazon Web Services service or 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"`

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

	// Only update the policy 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 S3, the ID of the account that owns the resource. Use this together
	// with SourceArn to ensure that the resource is owned by the specified account.
	// 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 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

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

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

SetAction sets the Action field's value.

func (*AddPermissionInput) SetEventSourceToken

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

SetEventSourceToken sets the EventSourceToken field's value.

func (*AddPermissionInput) SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

func (*AddPermissionInput) SetPrincipal

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

SetPrincipal sets the Principal field's value.

func (*AddPermissionInput) SetQualifier

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

SetQualifier sets the Qualifier field's value.

func (*AddPermissionInput) SetRevisionId

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

SetRevisionId sets the RevisionId field's value.

func (*AddPermissionInput) SetSourceAccount

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

SetSourceAccount sets the SourceAccount field's value.

func (*AddPermissionInput) SetSourceArn

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

SetSourceArn sets the SourceArn field's value.

func (*AddPermissionInput) SetStatementId

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

SetStatementId sets the StatementId field's value.

func (AddPermissionInput) String

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

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

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

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

SetStatement sets the Statement field's value.

func (AddPermissionOutput) String

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

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

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

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

SetAliasArn sets the AliasArn field's value.

func (*AliasConfiguration) SetDescription

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

SetDescription sets the Description field's value.

func (*AliasConfiguration) SetFunctionVersion

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

SetFunctionVersion sets the FunctionVersion field's value.

func (*AliasConfiguration) SetName

SetName sets the Name field's value.

func (*AliasConfiguration) SetRevisionId

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

SetRevisionId sets the RevisionId field's value.

func (*AliasConfiguration) SetRoutingConfig

SetRoutingConfig sets the RoutingConfig field's value.

func (AliasConfiguration) String

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

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

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

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

SetAdditionalVersionWeights sets the AdditionalVersionWeights field's value.

func (AliasRoutingConfiguration) String

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

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

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

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

SetSigningProfileVersionArns sets the SigningProfileVersionArns field's value.

func (AllowedPublishers) String

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

func (s *AllowedPublishers) Validate() error

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

type CodeSigningConfig

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

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

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

SetAllowedPublishers sets the AllowedPublishers field's value.

func (*CodeSigningConfig) SetCodeSigningConfigArn

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

SetCodeSigningConfigArn sets the CodeSigningConfigArn field's value.

func (*CodeSigningConfig) SetCodeSigningConfigId

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

SetCodeSigningConfigId sets the CodeSigningConfigId field's value.

func (*CodeSigningConfig) SetCodeSigningPolicies

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

SetCodeSigningPolicies sets the CodeSigningPolicies field's value.

func (*CodeSigningConfig) SetDescription

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

SetDescription sets the Description field's value.

func (*CodeSigningConfig) SetLastModified

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

SetLastModified sets the LastModified field's value.

func (CodeSigningConfig) String

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

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

Code returns the exception type name.

func (*CodeSigningConfigNotFoundException) Error

func (CodeSigningConfigNotFoundException) GoString

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

Message returns the exception's message.

func (*CodeSigningConfigNotFoundException) OrigErr

OrigErr always returns nil, satisfies awserr.Error interface.

func (*CodeSigningConfigNotFoundException) RequestID

RequestID returns the service's response RequestID for request.

func (*CodeSigningConfigNotFoundException) StatusCode

func (s *CodeSigningConfigNotFoundException) StatusCode() int

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

func (CodeSigningConfigNotFoundException) 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 CodeSigningPolicies

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

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

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

SetUntrustedArtifactOnDeployment sets the UntrustedArtifactOnDeployment field's value.

func (CodeSigningPolicies) String

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

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
}

You have exceeded your maximum total code size per account. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html)

func (*CodeStorageExceededException) Code

Code returns the exception type name.

func (*CodeStorageExceededException) Error

func (CodeStorageExceededException) GoString

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

func (s *CodeStorageExceededException) Message() string

Message returns the exception's message.

func (*CodeStorageExceededException) OrigErr

func (s *CodeStorageExceededException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*CodeStorageExceededException) RequestID

func (s *CodeStorageExceededException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*CodeStorageExceededException) StatusCode

func (s *CodeStorageExceededException) StatusCode() int

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

func (CodeStorageExceededException) 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 CodeVerificationFailedException

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

Code returns the exception type name.

func (*CodeVerificationFailedException) Error

func (CodeVerificationFailedException) GoString

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

Message returns the exception's message.

func (*CodeVerificationFailedException) OrigErr

OrigErr always returns nil, satisfies awserr.Error interface.

func (*CodeVerificationFailedException) RequestID

func (s *CodeVerificationFailedException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*CodeVerificationFailedException) StatusCode

func (s *CodeVerificationFailedException) StatusCode() int

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

func (CodeVerificationFailedException) 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

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

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

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

SetDescription sets the Description field's value.

func (*CreateAliasInput) SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

func (*CreateAliasInput) SetFunctionVersion

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

SetFunctionVersion sets the FunctionVersion field's value.

func (*CreateAliasInput) SetName

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

SetName sets the Name field's value.

func (*CreateAliasInput) SetRoutingConfig

SetRoutingConfig sets the RoutingConfig field's value.

func (CreateAliasInput) String

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

func (s *CreateAliasInput) Validate() error

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

type CreateCodeSigningConfigInput

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

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

SetAllowedPublishers sets the AllowedPublishers field's value.

func (*CreateCodeSigningConfigInput) SetCodeSigningPolicies

SetCodeSigningPolicies sets the CodeSigningPolicies field's value.

func (*CreateCodeSigningConfigInput) SetDescription

SetDescription sets the Description field's value.

func (CreateCodeSigningConfigInput) 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 (*CreateCodeSigningConfigInput) Validate

func (s *CreateCodeSigningConfigInput) Validate() error

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

type CreateCodeSigningConfigOutput

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

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

SetCodeSigningConfig sets the CodeSigningConfig field's value.

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

type CreateEventSourceMappingInput struct {

	// 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 1,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.
	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.
	EventSourceArn *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.
	//
	//    * 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 only) A list of current response type enums applied to the event
	// source mapping.
	FunctionResponseTypes []*string `type:"list"`

	// (Streams and Amazon SQS standard queues) The maximum amount of time, in seconds,
	// that Lambda spends gathering records before invoking the function.
	//
	// Default: 0
	//
	// Related setting: 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
	// will be 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 send records.
	SelfManagedEventSource *SelfManagedEventSource `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
	// only supported 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 up to 900 seconds.
	TumblingWindowInSeconds *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (CreateEventSourceMappingInput) GoString

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) SetBatchSize

SetBatchSize sets the BatchSize field's value.

func (*CreateEventSourceMappingInput) SetBisectBatchOnFunctionError

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

SetBisectBatchOnFunctionError sets the BisectBatchOnFunctionError field's value.

func (*CreateEventSourceMappingInput) SetDestinationConfig

SetDestinationConfig sets the DestinationConfig field's value.

func (*CreateEventSourceMappingInput) SetEnabled

SetEnabled sets the Enabled field's value.

func (*CreateEventSourceMappingInput) SetEventSourceArn

SetEventSourceArn sets the EventSourceArn field's value.

func (*CreateEventSourceMappingInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*CreateEventSourceMappingInput) SetFunctionResponseTypes

func (s *CreateEventSourceMappingInput) SetFunctionResponseTypes(v []*string) *CreateEventSourceMappingInput

SetFunctionResponseTypes sets the FunctionResponseTypes field's value.

func (*CreateEventSourceMappingInput) SetMaximumBatchingWindowInSeconds

func (s *CreateEventSourceMappingInput) SetMaximumBatchingWindowInSeconds(v int64) *CreateEventSourceMappingInput

SetMaximumBatchingWindowInSeconds sets the MaximumBatchingWindowInSeconds field's value.

func (*CreateEventSourceMappingInput) SetMaximumRecordAgeInSeconds

func (s *CreateEventSourceMappingInput) SetMaximumRecordAgeInSeconds(v int64) *CreateEventSourceMappingInput

SetMaximumRecordAgeInSeconds sets the MaximumRecordAgeInSeconds field's value.

func (*CreateEventSourceMappingInput) SetMaximumRetryAttempts

func (s *CreateEventSourceMappingInput) SetMaximumRetryAttempts(v int64) *CreateEventSourceMappingInput

SetMaximumRetryAttempts sets the MaximumRetryAttempts field's value.

func (*CreateEventSourceMappingInput) SetParallelizationFactor

func (s *CreateEventSourceMappingInput) SetParallelizationFactor(v int64) *CreateEventSourceMappingInput

SetParallelizationFactor sets the ParallelizationFactor field's value.

func (*CreateEventSourceMappingInput) SetQueues

SetQueues sets the Queues field's value.

func (*CreateEventSourceMappingInput) SetSelfManagedEventSource

SetSelfManagedEventSource sets the SelfManagedEventSource field's value.

func (*CreateEventSourceMappingInput) SetSourceAccessConfigurations

SetSourceAccessConfigurations sets the SourceAccessConfigurations field's value.

func (*CreateEventSourceMappingInput) SetStartingPosition

SetStartingPosition sets the StartingPosition field's value.

func (*CreateEventSourceMappingInput) SetStartingPositionTimestamp

func (s *CreateEventSourceMappingInput) SetStartingPositionTimestamp(v time.Time) *CreateEventSourceMappingInput

SetStartingPositionTimestamp sets the StartingPositionTimestamp field's value.

func (*CreateEventSourceMappingInput) SetTopics

SetTopics sets the Topics field's value.

func (*CreateEventSourceMappingInput) SetTumblingWindowInSeconds

func (s *CreateEventSourceMappingInput) SetTumblingWindowInSeconds(v int64) *CreateEventSourceMappingInput

SetTumblingWindowInSeconds sets the TumblingWindowInSeconds field's value.

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

func (s *CreateEventSourceMappingInput) Validate() error

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

type CreateFunctionInput

type CreateFunctionInput struct {

	// The instruction set architecture that the function supports. Enter a string
	// array with one of the valid values. The default value is x86_64.
	Architectures []*string `min:"1" type:"list"`

	// The code for the function.
	//
	// Code is a required field
	Code *FunctionCode `type:"structure" required:"true"`

	// To enable code signing for this function, specify the ARN of a code-signing
	// configuration. A code-signing configuration includes a set of signing profiles,
	// which define the trusted publishers for this function.
	CodeSigningConfigArn *string `type:"string"`

	// A dead letter queue configuration that specifies the queue or topic where
	// Lambda sends asynchronous events when they fail processing. For more information,
	// see Dead Letter Queues (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq).
	DeadLetterConfig *DeadLetterConfig `type:"structure"`

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

	// Environment variables that are accessible from function code during execution.
	Environment *Environment `type:"structure"`

	// Connection settings for an Amazon EFS file system.
	FileSystemConfigs []*FileSystemConfig `type:"list"`

	// The name of the Lambda function.
	//
	// Name formats
	//
	//    * Function name - my-function.
	//
	//    * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//    * Partial ARN - 123456789012:function:my-function.
	//
	// 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 `min:"1" type:"string" required:"true"`

	// The name of the method within your code that Lambda calls to execute your
	// function. The format includes the file name. It can also include namespaces
	// and other qualifiers, depending on the runtime. For more information, see
	// Programming Model (https://docs.aws.amazon.com/lambda/latest/dg/programming-model-v2.html).
	Handler *string `type:"string"`

	// Container image configuration values (https://docs.aws.amazon.com/lambda/latest/dg/configuration-images.html#configuration-images-settings)
	// that override the values in the container image Dockerfile.
	ImageConfig *ImageConfig `type:"structure"`

	// The ARN of the Amazon Web Services Key Management Service (KMS) key that's
	// used to encrypt your function's environment variables. If it's not provided,
	// Lambda uses a default service key.
	KMSKeyArn *string `type:"string"`

	// A list of function layers (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html)
	// to add to the function's execution environment. Specify each layer by its
	// ARN, including the version.
	Layers []*string `type:"list"`

	// The amount of memory available to the function (https://docs.aws.amazon.com/lambda/latest/dg/configuration-memory.html)
	// at runtime. Increasing the function memory also increases its CPU allocation.
	// The default value is 128 MB. The value can be any multiple of 1 MB.
	MemorySize *int64 `min:"128" type:"integer"`

	// The type of deployment package. Set to Image for container image and set
	// Zip for ZIP archive.
	PackageType *string `type:"string" enum:"PackageType"`

	// Set to true to publish the first version of the function during creation.
	Publish *bool `type:"boolean"`

	// The Amazon Resource Name (ARN) of the function's execution role.
	//
	// Role is a required field
	Role *string `type:"string" required:"true"`

	// The identifier of the function's runtime (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html).
	Runtime *string `type:"string" enum:"Runtime"`

	// A list of tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html)
	// to apply to the function.
	Tags map[string]*string `type:"map"`

	// The amount of time that Lambda allows a function to run before stopping it.
	// The default is 3 seconds. The maximum allowed value is 900 seconds. For additional
	// information, see Lambda execution environment (https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html).
	Timeout *int64 `min:"1" type:"integer"`

	// Set Mode to Active to sample and trace a subset of incoming requests with
	// X-Ray (https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html).
	TracingConfig *TracingConfig `type:"structure"`

	// For network connectivity to Amazon Web Services resources in a VPC, specify
	// a list of security groups and subnets in the VPC. When you connect a function
	// to a VPC, it can only access resources and the internet through that VPC.
	// For more information, see VPC Settings (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html).
	VpcConfig *VpcConfig `type:"structure"`
	// contains filtered or unexported fields
}

func (CreateFunctionInput) GoString

func (s CreateFunctionInput) 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 (*CreateFunctionInput) SetArchitectures

func (s *CreateFunctionInput) SetArchitectures(v []*string) *CreateFunctionInput

SetArchitectures sets the Architectures field's value.

func (*CreateFunctionInput) SetCode

SetCode sets the Code field's value.

func (*CreateFunctionInput) SetCodeSigningConfigArn

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

SetCodeSigningConfigArn sets the CodeSigningConfigArn field's value.

func (*CreateFunctionInput) SetDeadLetterConfig

func (s *CreateFunctionInput) SetDeadLetterConfig(v *DeadLetterConfig) *CreateFunctionInput

SetDeadLetterConfig sets the DeadLetterConfig field's value.

func (*CreateFunctionInput) SetDescription

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

SetDescription sets the Description field's value.

func (*CreateFunctionInput) SetEnvironment

func (s *CreateFunctionInput) SetEnvironment(v *Environment) *CreateFunctionInput

SetEnvironment sets the Environment field's value.

func (*CreateFunctionInput) SetFileSystemConfigs

func (s *CreateFunctionInput) SetFileSystemConfigs(v []*FileSystemConfig) *CreateFunctionInput

SetFileSystemConfigs sets the FileSystemConfigs field's value.

func (*CreateFunctionInput) SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

func (*CreateFunctionInput) SetHandler

SetHandler sets the Handler field's value.

func (*CreateFunctionInput) SetImageConfig

func (s *CreateFunctionInput) SetImageConfig(v *ImageConfig) *CreateFunctionInput

SetImageConfig sets the ImageConfig field's value.

func (*CreateFunctionInput) SetKMSKeyArn

func (s *CreateFunctionInput) SetKMSKeyArn(v string) *CreateFunctionInput

SetKMSKeyArn sets the KMSKeyArn field's value.

func (*CreateFunctionInput) SetLayers

func (s *CreateFunctionInput) SetLayers(v []*string) *CreateFunctionInput

SetLayers sets the Layers field's value.

func (*CreateFunctionInput) SetMemorySize

func (s *CreateFunctionInput) SetMemorySize(v int64) *CreateFunctionInput

SetMemorySize sets the MemorySize field's value.

func (*CreateFunctionInput) SetPackageType

func (s *CreateFunctionInput) SetPackageType(v string) *CreateFunctionInput

SetPackageType sets the PackageType field's value.

func (*CreateFunctionInput) SetPublish

func (s *CreateFunctionInput) SetPublish(v bool) *CreateFunctionInput

SetPublish sets the Publish field's value.

func (*CreateFunctionInput) SetRole

SetRole sets the Role field's value.

func (*CreateFunctionInput) SetRuntime

SetRuntime sets the Runtime field's value.

func (*CreateFunctionInput) SetTags

SetTags sets the Tags field's value.

func (*CreateFunctionInput) SetTimeout

func (s *CreateFunctionInput) SetTimeout(v int64) *CreateFunctionInput

SetTimeout sets the Timeout field's value.

func (*CreateFunctionInput) SetTracingConfig

func (s *CreateFunctionInput) SetTracingConfig(v *TracingConfig) *CreateFunctionInput

SetTracingConfig sets the TracingConfig field's value.

func (*CreateFunctionInput) SetVpcConfig

func (s *CreateFunctionInput) SetVpcConfig(v *VpcConfig) *CreateFunctionInput

SetVpcConfig sets the VpcConfig field's value.

func (CreateFunctionInput) String

func (s CreateFunctionInput) 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 (*CreateFunctionInput) Validate

func (s *CreateFunctionInput) Validate() error

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

type DeadLetterConfig

type DeadLetterConfig struct {

	// The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.
	TargetArn *string `type:"string"`
	// contains filtered or unexported fields
}

The dead-letter queue (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq) for failed asynchronous invocations.

func (DeadLetterConfig) GoString

func (s DeadLetterConfig) 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 (*DeadLetterConfig) SetTargetArn

func (s *DeadLetterConfig) SetTargetArn(v string) *DeadLetterConfig

SetTargetArn sets the TargetArn field's value.

func (DeadLetterConfig) String

func (s DeadLetterConfig) 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 DeleteAliasInput

type DeleteAliasInput struct {

	// 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 name of the alias.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteAliasInput) GoString

func (s DeleteAliasInput) 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 (*DeleteAliasInput) SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

func (*DeleteAliasInput) SetName

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

SetName sets the Name field's value.

func (DeleteAliasInput) String

func (s DeleteAliasInput) 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 (*DeleteAliasInput) Validate

func (s *DeleteAliasInput) Validate() error

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

type DeleteAliasOutput

type DeleteAliasOutput struct {
	// contains filtered or unexported fields
}

func (DeleteAliasOutput) GoString

func (s DeleteAliasOutput) 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 (DeleteAliasOutput) String

func (s DeleteAliasOutput) 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 DeleteCodeSigningConfigInput

type DeleteCodeSigningConfigInput struct {

	// The The Amazon Resource Name (ARN) of the code signing configuration.
	//
	// CodeSigningConfigArn is a required field
	CodeSigningConfigArn *string `location:"uri" locationName:"CodeSigningConfigArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteCodeSigningConfigInput) GoString

func (s DeleteCodeSigningConfigInput) 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 (*DeleteCodeSigningConfigInput) SetCodeSigningConfigArn

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

SetCodeSigningConfigArn sets the CodeSigningConfigArn field's value.

func (DeleteCodeSigningConfigInput) 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 (*DeleteCodeSigningConfigInput) Validate

func (s *DeleteCodeSigningConfigInput) Validate() error

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

type DeleteCodeSigningConfigOutput

type DeleteCodeSigningConfigOutput struct {
	// contains filtered or unexported fields
}

func (DeleteCodeSigningConfigOutput) GoString

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 (DeleteCodeSigningConfigOutput) 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 DeleteEventSourceMappingInput

type DeleteEventSourceMappingInput struct {

	// The identifier of the event source mapping.
	//
	// UUID is a required field
	UUID *string `location:"uri" locationName:"UUID" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteEventSourceMappingInput) GoString

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 (*DeleteEventSourceMappingInput) SetUUID

SetUUID sets the UUID field's value.

func (DeleteEventSourceMappingInput) 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 (*DeleteEventSourceMappingInput) Validate

func (s *DeleteEventSourceMappingInput) Validate() error

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

type DeleteFunctionCodeSigningConfigInput

type DeleteFunctionCodeSigningConfigInput struct {

	// 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"`
	// contains filtered or unexported fields
}

func (DeleteFunctionCodeSigningConfigInput) GoString

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 (*DeleteFunctionCodeSigningConfigInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (DeleteFunctionCodeSigningConfigInput) 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 (*DeleteFunctionCodeSigningConfigInput) Validate

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

type DeleteFunctionCodeSigningConfigOutput

type DeleteFunctionCodeSigningConfigOutput struct {
	// contains filtered or unexported fields
}

func (DeleteFunctionCodeSigningConfigOutput) GoString

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 (DeleteFunctionCodeSigningConfigOutput) 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 DeleteFunctionConcurrencyInput

type DeleteFunctionConcurrencyInput struct {

	// The name of the Lambda function.
	//
	// Name formats
	//
	//    * Function name - my-function.
	//
	//    * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//    * Partial ARN - 123456789012:function:my-function.
	//
	// 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"`
	// contains filtered or unexported fields
}

func (DeleteFunctionConcurrencyInput) GoString

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 (*DeleteFunctionConcurrencyInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (DeleteFunctionConcurrencyInput) 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 (*DeleteFunctionConcurrencyInput) Validate

func (s *DeleteFunctionConcurrencyInput) Validate() error

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

type DeleteFunctionConcurrencyOutput

type DeleteFunctionConcurrencyOutput struct {
	// contains filtered or unexported fields
}

func (DeleteFunctionConcurrencyOutput) GoString

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 (DeleteFunctionConcurrencyOutput) 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 DeleteFunctionEventInvokeConfigInput

type DeleteFunctionEventInvokeConfigInput struct {

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

	// A version number or alias name.
	Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (DeleteFunctionEventInvokeConfigInput) GoString

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 (*DeleteFunctionEventInvokeConfigInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*DeleteFunctionEventInvokeConfigInput) SetQualifier

SetQualifier sets the Qualifier field's value.

func (DeleteFunctionEventInvokeConfigInput) 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 (*DeleteFunctionEventInvokeConfigInput) Validate

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

type DeleteFunctionEventInvokeConfigOutput

type DeleteFunctionEventInvokeConfigOutput struct {
	// contains filtered or unexported fields
}

func (DeleteFunctionEventInvokeConfigOutput) GoString

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 (DeleteFunctionEventInvokeConfigOutput) 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 DeleteFunctionInput

type DeleteFunctionInput struct {

	// The name of the Lambda function or version.
	//
	// Name formats
	//
	//    * Function name - my-function (name-only), my-function:1 (with version).
	//
	//    * 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"`

	// Specify a version to delete. You can't delete a version that's referenced
	// by an alias.
	Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (DeleteFunctionInput) GoString

func (s DeleteFunctionInput) 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 (*DeleteFunctionInput) SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

func (*DeleteFunctionInput) SetQualifier

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

SetQualifier sets the Qualifier field's value.

func (DeleteFunctionInput) String

func (s DeleteFunctionInput) 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 (*DeleteFunctionInput) Validate

func (s *DeleteFunctionInput) Validate() error

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

type DeleteFunctionOutput

type DeleteFunctionOutput struct {
	// contains filtered or unexported fields
}

func (DeleteFunctionOutput) GoString

func (s DeleteFunctionOutput) 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 (DeleteFunctionOutput) String

func (s DeleteFunctionOutput) 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 DeleteLayerVersionInput

type DeleteLayerVersionInput struct {

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

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

func (DeleteLayerVersionInput) GoString

func (s DeleteLayerVersionInput) 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 (*DeleteLayerVersionInput) SetLayerName

SetLayerName sets the LayerName field's value.

func (*DeleteLayerVersionInput) SetVersionNumber

func (s *DeleteLayerVersionInput) SetVersionNumber(v int64) *DeleteLayerVersionInput

SetVersionNumber sets the VersionNumber field's value.

func (DeleteLayerVersionInput) String

func (s DeleteLayerVersionInput) 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 (*DeleteLayerVersionInput) Validate

func (s *DeleteLayerVersionInput) Validate() error

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

type DeleteLayerVersionOutput

type DeleteLayerVersionOutput struct {
	// contains filtered or unexported fields
}

func (DeleteLayerVersionOutput) GoString

func (s DeleteLayerVersionOutput) 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 (DeleteLayerVersionOutput) String

func (s DeleteLayerVersionOutput) 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 DeleteProvisionedConcurrencyConfigInput

type DeleteProvisionedConcurrencyConfigInput struct {

	// The name of the Lambda function.
	//
	// Name formats
	//
	//    * Function name - my-function.
	//
	//    * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//    * Partial ARN - 123456789012:function:my-function.
	//
	// 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 version number or alias name.
	//
	// Qualifier is a required field
	Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteProvisionedConcurrencyConfigInput) GoString

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 (*DeleteProvisionedConcurrencyConfigInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*DeleteProvisionedConcurrencyConfigInput) SetQualifier

SetQualifier sets the Qualifier field's value.

func (DeleteProvisionedConcurrencyConfigInput) 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 (*DeleteProvisionedConcurrencyConfigInput) Validate

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

type DeleteProvisionedConcurrencyConfigOutput

type DeleteProvisionedConcurrencyConfigOutput struct {
	// contains filtered or unexported fields
}

func (DeleteProvisionedConcurrencyConfigOutput) GoString

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 (DeleteProvisionedConcurrencyConfigOutput) 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 DestinationConfig

type DestinationConfig struct {

	// The destination configuration for failed invocations.
	OnFailure *OnFailure `type:"structure"`

	// The destination configuration for successful invocations.
	OnSuccess *OnSuccess `type:"structure"`
	// contains filtered or unexported fields
}

A configuration object that specifies the destination of an event after Lambda processes it.

func (DestinationConfig) GoString

func (s DestinationConfig) 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 (*DestinationConfig) SetOnFailure

func (s *DestinationConfig) SetOnFailure(v *OnFailure) *DestinationConfig

SetOnFailure sets the OnFailure field's value.

func (*DestinationConfig) SetOnSuccess

func (s *DestinationConfig) SetOnSuccess(v *OnSuccess) *DestinationConfig

SetOnSuccess sets the OnSuccess field's value.

func (DestinationConfig) String

func (s DestinationConfig) 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 EC2AccessDeniedException

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

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

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

Need additional permissions to configure VPC settings.

func (*EC2AccessDeniedException) Code

func (s *EC2AccessDeniedException) Code() string

Code returns the exception type name.

func (*EC2AccessDeniedException) Error

func (s *EC2AccessDeniedException) Error() string

func (EC2AccessDeniedException) GoString

func (s EC2AccessDeniedException) 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 (*EC2AccessDeniedException) Message

func (s *EC2AccessDeniedException) Message() string

Message returns the exception's message.

func (*EC2AccessDeniedException) OrigErr

func (s *EC2AccessDeniedException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*EC2AccessDeniedException) RequestID

func (s *EC2AccessDeniedException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*EC2AccessDeniedException) StatusCode

func (s *EC2AccessDeniedException) StatusCode() int

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

func (EC2AccessDeniedException) String

func (s EC2AccessDeniedException) 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 EC2ThrottledException

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

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

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

Lambda was throttled by Amazon EC2 during Lambda function initialization using the execution role provided for the Lambda function.

func (*EC2ThrottledException) Code

func (s *EC2ThrottledException) Code() string

Code returns the exception type name.

func (*EC2ThrottledException) Error

func (s *EC2ThrottledException) Error() string

func (EC2ThrottledException) GoString

func (s EC2ThrottledException) 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 (*EC2ThrottledException) Message

func (s *EC2ThrottledException) Message() string

Message returns the exception's message.

func (*EC2ThrottledException) OrigErr

func (s *EC2ThrottledException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*EC2ThrottledException) RequestID

func (s *EC2ThrottledException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*EC2ThrottledException) StatusCode

func (s *EC2ThrottledException) StatusCode() int

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

func (EC2ThrottledException) String

func (s EC2ThrottledException) 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 EC2UnexpectedException

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

	EC2ErrorCode *string `type:"string"`

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

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

Lambda received an unexpected EC2 client exception while setting up for the Lambda function.

func (*EC2UnexpectedException) Code

func (s *EC2UnexpectedException) Code() string

Code returns the exception type name.

func (*EC2UnexpectedException) Error

func (s *EC2UnexpectedException) Error() string

func (EC2UnexpectedException) GoString

func (s EC2UnexpectedException) 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 (*EC2UnexpectedException) Message

func (s *EC2UnexpectedException) Message() string

Message returns the exception's message.

func (*EC2UnexpectedException) OrigErr

func (s *EC2UnexpectedException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*EC2UnexpectedException) RequestID

func (s *EC2UnexpectedException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*EC2UnexpectedException) StatusCode

func (s *EC2UnexpectedException) StatusCode() int

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

func (EC2UnexpectedException) String

func (s EC2UnexpectedException) 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 EFSIOException

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

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

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

An error occurred when reading from or writing to a connected file system.

func (*EFSIOException) Code

func (s *EFSIOException) Code() string

Code returns the exception type name.

func (*EFSIOException) Error

func (s *EFSIOException) Error() string

func (EFSIOException) GoString

func (s EFSIOException) 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 (*EFSIOException) Message

func (s *EFSIOException) Message() string

Message returns the exception's message.

func (*EFSIOException) OrigErr

func (s *EFSIOException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*EFSIOException) RequestID

func (s *EFSIOException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*EFSIOException) StatusCode

func (s *EFSIOException) StatusCode() int

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

func (EFSIOException) String

func (s EFSIOException) 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 EFSMountConnectivityException

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

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

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

The function couldn't make a network connection to the configured file system.

func (*EFSMountConnectivityException) Code

Code returns the exception type name.

func (*EFSMountConnectivityException) Error

func (EFSMountConnectivityException) GoString

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 (*EFSMountConnectivityException) Message

Message returns the exception's message.

func (*EFSMountConnectivityException) OrigErr

func (s *EFSMountConnectivityException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*EFSMountConnectivityException) RequestID

func (s *EFSMountConnectivityException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*EFSMountConnectivityException) StatusCode

func (s *EFSMountConnectivityException) StatusCode() int

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

func (EFSMountConnectivityException) 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 EFSMountFailureException

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

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

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

The function couldn't mount the configured file system due to a permission or configuration issue.

func (*EFSMountFailureException) Code

func (s *EFSMountFailureException) Code() string

Code returns the exception type name.

func (*EFSMountFailureException) Error

func (s *EFSMountFailureException) Error() string

func (EFSMountFailureException) GoString

func (s EFSMountFailureException) 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 (*EFSMountFailureException) Message

func (s *EFSMountFailureException) Message() string

Message returns the exception's message.

func (*EFSMountFailureException) OrigErr

func (s *EFSMountFailureException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*EFSMountFailureException) RequestID

func (s *EFSMountFailureException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*EFSMountFailureException) StatusCode

func (s *EFSMountFailureException) StatusCode() int

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

func (EFSMountFailureException) String

func (s EFSMountFailureException) 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 EFSMountTimeoutException

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

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

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

The function was able to make a network connection to the configured file system, but the mount operation timed out.

func (*EFSMountTimeoutException) Code

func (s *EFSMountTimeoutException) Code() string

Code returns the exception type name.

func (*EFSMountTimeoutException) Error

func (s *EFSMountTimeoutException) Error() string

func (EFSMountTimeoutException) GoString

func (s EFSMountTimeoutException) 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 (*EFSMountTimeoutException) Message

func (s *EFSMountTimeoutException) Message() string

Message returns the exception's message.

func (*EFSMountTimeoutException) OrigErr

func (s *EFSMountTimeoutException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*EFSMountTimeoutException) RequestID

func (s *EFSMountTimeoutException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*EFSMountTimeoutException) StatusCode

func (s *EFSMountTimeoutException) StatusCode() int

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

func (EFSMountTimeoutException) String

func (s EFSMountTimeoutException) 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 ENILimitReachedException

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

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

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

Lambda was not able to create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached.

func (*ENILimitReachedException) Code

func (s *ENILimitReachedException) Code() string

Code returns the exception type name.

func (*ENILimitReachedException) Error

func (s *ENILimitReachedException) Error() string

func (ENILimitReachedException) GoString

func (s ENILimitReachedException) 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 (*ENILimitReachedException) Message

func (s *ENILimitReachedException) Message() string

Message returns the exception's message.

func (*ENILimitReachedException) OrigErr

func (s *ENILimitReachedException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ENILimitReachedException) RequestID

func (s *ENILimitReachedException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ENILimitReachedException) StatusCode

func (s *ENILimitReachedException) StatusCode() int

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

func (ENILimitReachedException) String

func (s ENILimitReachedException) 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 Environment

type Environment struct {

	// Environment variable key-value pairs. For more information, see Using Lambda
	// environment variables (https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html).
	//
	// Variables is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by Environment's
	// String and GoString methods.
	Variables map[string]*string `type:"map" sensitive:"true"`
	// contains filtered or unexported fields
}

A function's environment variable settings. You can use environment variables to adjust your function's behavior without updating code. An environment variable is a pair of strings that are stored in a function's version-specific configuration.

func (Environment) GoString

func (s Environment) 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 (*Environment) SetVariables

func (s *Environment) SetVariables(v map[string]*string) *Environment

SetVariables sets the Variables field's value.

func (Environment) String

func (s Environment) 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 EnvironmentError

type EnvironmentError struct {

	// The error code.
	ErrorCode *string `type:"string"`

	// The error message.
	//
	// Message is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by EnvironmentError's
	// String and GoString methods.
	Message *string `type:"string" sensitive:"true"`
	// contains filtered or unexported fields
}

Error messages for environment variables that couldn't be applied.

func (EnvironmentError) GoString

func (s EnvironmentError) 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 (*EnvironmentError) SetErrorCode

func (s *EnvironmentError) SetErrorCode(v string) *EnvironmentError

SetErrorCode sets the ErrorCode field's value.

func (*EnvironmentError) SetMessage

func (s *EnvironmentError) SetMessage(v string) *EnvironmentError

SetMessage sets the Message field's value.

func (EnvironmentError) String

func (s EnvironmentError) 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 EnvironmentResponse

type EnvironmentResponse struct {

	// Error messages for environment variables that couldn't be applied.
	Error *EnvironmentError `type:"structure"`

	// Environment variable key-value pairs.
	//
	// Variables is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by EnvironmentResponse's
	// String and GoString methods.
	Variables map[string]*string `type:"map" sensitive:"true"`
	// contains filtered or unexported fields
}

The results of an operation to update or read environment variables. If the operation is successful, the response contains the environment variables. If it failed, the response contains details about the error.

func (EnvironmentResponse) GoString

func (s EnvironmentResponse) 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 (*EnvironmentResponse) SetError

SetError sets the Error field's value.

func (*EnvironmentResponse) SetVariables

func (s *EnvironmentResponse) SetVariables(v map[string]*string) *EnvironmentResponse

SetVariables sets the Variables field's value.

func (EnvironmentResponse) String

func (s EnvironmentResponse) 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 EventSourceMappingConfiguration

type EventSourceMappingConfiguration struct {

	// 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).
	//
	// Default value: Varies by service. For Amazon SQS, the default is 10. For
	// all other services, the default is 100.
	//
	// Related setting: When you set BatchSize to a value greater than 10, you must
	// set MaximumBatchingWindowInSeconds to at least 1.
	BatchSize *int64 `min:"1" type:"integer"`

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

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

	// The Amazon Resource Name (ARN) of the event source.
	EventSourceArn *string `type:"string"`

	// The ARN of the Lambda function.
	FunctionArn *string `type:"string"`

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

	// The date that the event source mapping was last updated or that its state
	// changed.
	LastModified *time.Time `type:"timestamp"`

	// The result of the last Lambda invocation of your function.
	LastProcessingResult *string `type:"string"`

	// (Streams and Amazon SQS standard queues) The maximum amount of time, in seconds,
	// that Lambda spends gathering records before invoking the function.
	//
	// Default: 0
	//
	// Related setting: 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 -1, which sets the maximum age to infinite. When the value is set
	// to infinite, Lambda never discards old records.
	MaximumRecordAgeInSeconds *int64 `type:"integer"`

	// (Streams only) Discard records after the specified number of retries. The
	// default value is -1, which sets the maximum number of retries to infinite.
	// When MaximumRetryAttempts is infinite, Lambda retries failed records until
	// the record expires in the event source.
	MaximumRetryAttempts *int64 `type:"integer"`

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

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

	// The self-managed Apache Kafka cluster for your event source.
	SelfManagedEventSource *SelfManagedEventSource `type:"structure"`

	// An array of the authentication protocol, VPC components, or virtual host
	// to secure and define 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 stream 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 state of the event source mapping. It can be one of the following: Creating,
	// Enabling, Enabled, Disabling, Disabled, Updating, or Deleting.
	State *string `type:"string"`

	// Indicates whether a user or Lambda made the last change to the event source
	// mapping.
	StateTransitionReason *string `type:"string"`

	// 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 1–900 seconds.
	TumblingWindowInSeconds *int64 `type:"integer"`

	// The identifier of the event source mapping.
	UUID *string `type:"string"`
	// contains filtered or unexported fields
}

A mapping between an Amazon Web Services resource and a Lambda function. For details, see CreateEventSourceMapping.

func (EventSourceMappingConfiguration) GoString

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 (*EventSourceMappingConfiguration) SetBatchSize

SetBatchSize sets the BatchSize field's value.

func (*EventSourceMappingConfiguration) SetBisectBatchOnFunctionError

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

SetBisectBatchOnFunctionError sets the BisectBatchOnFunctionError field's value.

func (*EventSourceMappingConfiguration) SetDestinationConfig

SetDestinationConfig sets the DestinationConfig field's value.

func (*EventSourceMappingConfiguration) SetEventSourceArn

SetEventSourceArn sets the EventSourceArn field's value.

func (*EventSourceMappingConfiguration) SetFunctionArn

SetFunctionArn sets the FunctionArn field's value.

func (*EventSourceMappingConfiguration) SetFunctionResponseTypes

func (s *EventSourceMappingConfiguration) SetFunctionResponseTypes(v []*string) *EventSourceMappingConfiguration

SetFunctionResponseTypes sets the FunctionResponseTypes field's value.

func (*EventSourceMappingConfiguration) SetLastModified

SetLastModified sets the LastModified field's value.

func (*EventSourceMappingConfiguration) SetLastProcessingResult

SetLastProcessingResult sets the LastProcessingResult field's value.

func (*EventSourceMappingConfiguration) SetMaximumBatchingWindowInSeconds

func (s *EventSourceMappingConfiguration) SetMaximumBatchingWindowInSeconds(v int64) *EventSourceMappingConfiguration

SetMaximumBatchingWindowInSeconds sets the MaximumBatchingWindowInSeconds field's value.

func (*EventSourceMappingConfiguration) SetMaximumRecordAgeInSeconds

func (s *EventSourceMappingConfiguration) SetMaximumRecordAgeInSeconds(v int64) *EventSourceMappingConfiguration

SetMaximumRecordAgeInSeconds sets the MaximumRecordAgeInSeconds field's value.

func (*EventSourceMappingConfiguration) SetMaximumRetryAttempts

SetMaximumRetryAttempts sets the MaximumRetryAttempts field's value.

func (*EventSourceMappingConfiguration) SetParallelizationFactor

SetParallelizationFactor sets the ParallelizationFactor field's value.

func (*EventSourceMappingConfiguration) SetQueues

SetQueues sets the Queues field's value.

func (*EventSourceMappingConfiguration) SetSelfManagedEventSource

SetSelfManagedEventSource sets the SelfManagedEventSource field's value.

func (*EventSourceMappingConfiguration) SetSourceAccessConfigurations

SetSourceAccessConfigurations sets the SourceAccessConfigurations field's value.

func (*EventSourceMappingConfiguration) SetStartingPosition

SetStartingPosition sets the StartingPosition field's value.

func (*EventSourceMappingConfiguration) SetStartingPositionTimestamp

func (s *EventSourceMappingConfiguration) SetStartingPositionTimestamp(v time.Time) *EventSourceMappingConfiguration

SetStartingPositionTimestamp sets the StartingPositionTimestamp field's value.

func (*EventSourceMappingConfiguration) SetState

SetState sets the State field's value.

func (*EventSourceMappingConfiguration) SetStateTransitionReason

SetStateTransitionReason sets the StateTransitionReason field's value.

func (*EventSourceMappingConfiguration) SetTopics

SetTopics sets the Topics field's value.

func (*EventSourceMappingConfiguration) SetTumblingWindowInSeconds

func (s *EventSourceMappingConfiguration) SetTumblingWindowInSeconds(v int64) *EventSourceMappingConfiguration

SetTumblingWindowInSeconds sets the TumblingWindowInSeconds field's value.

func (*EventSourceMappingConfiguration) SetUUID

SetUUID sets the UUID field's value.

func (EventSourceMappingConfiguration) 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 FileSystemConfig

type FileSystemConfig struct {

	// The Amazon Resource Name (ARN) of the Amazon EFS access point that provides
	// access to the file system.
	//
	// Arn is a required field
	Arn *string `type:"string" required:"true"`

	// The path where the function can access the file system, starting with /mnt/.
	//
	// LocalMountPath is a required field
	LocalMountPath *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Details about the connection between a Lambda function and an Amazon EFS file system (https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html).

func (FileSystemConfig) GoString

func (s FileSystemConfig) 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 (*FileSystemConfig) SetArn

SetArn sets the Arn field's value.

func (*FileSystemConfig) SetLocalMountPath

func (s *FileSystemConfig) SetLocalMountPath(v string) *FileSystemConfig

SetLocalMountPath sets the LocalMountPath field's value.

func (FileSystemConfig) String

func (s FileSystemConfig) 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 (*FileSystemConfig) Validate

func (s *FileSystemConfig) Validate() error

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

type FunctionCode

type FunctionCode struct {

	// URI of a container image (https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html)
	// in the Amazon ECR registry.
	ImageUri *string `type:"string"`

	// An Amazon S3 bucket in the same Amazon Web Services Region as your function.
	// The bucket can be in a different Amazon Web Services account.
	S3Bucket *string `min:"3" type:"string"`

	// The Amazon S3 key of the deployment package.
	S3Key *string `min:"1" type:"string"`

	// For versioned objects, the version of the deployment package object to use.
	S3ObjectVersion *string `min:"1" type:"string"`

	// The base64-encoded contents of the deployment package. Amazon Web Services
	// SDK and Amazon Web Services CLI clients handle the encoding for you.
	//
	// ZipFile is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by FunctionCode's
	// String and GoString methods.
	//
	// ZipFile is automatically base64 encoded/decoded by the SDK.
	ZipFile []byte `type:"blob" sensitive:"true"`
	// contains filtered or unexported fields
}

The code for the Lambda function. You can specify either an object in Amazon S3, upload a .zip file archive deployment package directly, or specify the URI of a container image.

func (FunctionCode) GoString

func (s FunctionCode) 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 (*FunctionCode) SetImageUri

func (s *FunctionCode) SetImageUri(v string) *FunctionCode

SetImageUri sets the ImageUri field's value.

func (*FunctionCode) SetS3Bucket

func (s *FunctionCode) SetS3Bucket(v string) *FunctionCode

SetS3Bucket sets the S3Bucket field's value.

func (*FunctionCode) SetS3Key

func (s *FunctionCode) SetS3Key(v string) *FunctionCode

SetS3Key sets the S3Key field's value.

func (*FunctionCode) SetS3ObjectVersion

func (s *FunctionCode) SetS3ObjectVersion(v string) *FunctionCode

SetS3ObjectVersion sets the S3ObjectVersion field's value.

func (*FunctionCode) SetZipFile

func (s *FunctionCode) SetZipFile(v []byte) *FunctionCode

SetZipFile sets the ZipFile field's value.

func (FunctionCode) String

func (s FunctionCode) 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 (*FunctionCode) Validate

func (s *FunctionCode) Validate() error

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

type FunctionCodeLocation

type FunctionCodeLocation struct {

	// URI of a container image in the Amazon ECR registry.
	ImageUri *string `type:"string"`

	// A presigned URL that you can use to download the deployment package.
	Location *string `type:"string"`

	// The service that's hosting the file.
	RepositoryType *string `type:"string"`

	// The resolved URI for the image.
	ResolvedImageUri *string `type:"string"`
	// contains filtered or unexported fields
}

Details about a function's deployment package.

func (FunctionCodeLocation) GoString

func (s FunctionCodeLocation) 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 (*FunctionCodeLocation) SetImageUri

SetImageUri sets the ImageUri field's value.

func (*FunctionCodeLocation) SetLocation

SetLocation sets the Location field's value.

func (*FunctionCodeLocation) SetRepositoryType

func (s *FunctionCodeLocation) SetRepositoryType(v string) *FunctionCodeLocation

SetRepositoryType sets the RepositoryType field's value.

func (*FunctionCodeLocation) SetResolvedImageUri

func (s *FunctionCodeLocation) SetResolvedImageUri(v string) *FunctionCodeLocation

SetResolvedImageUri sets the ResolvedImageUri field's value.

func (FunctionCodeLocation) String

func (s FunctionCodeLocation) 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 FunctionConfiguration

type FunctionConfiguration struct {

	// The instruction set architecture that the function supports. Architecture
	// is a string array with one of the valid values. The default architecture
	// value is x86_64.
	Architectures []*string `min:"1" type:"list"`

	// The SHA256 hash of the function's deployment package.
	CodeSha256 *string `type:"string"`

	// The size of the function's deployment package, in bytes.
	CodeSize *int64 `type:"long"`

	// The function's dead letter queue.
	DeadLetterConfig *DeadLetterConfig `type:"structure"`

	// The function's description.
	Description *string `type:"string"`

	// The function's environment variables (https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html).
	Environment *EnvironmentResponse `type:"structure"`

	// Connection settings for an Amazon EFS file system (https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html).
	FileSystemConfigs []*FileSystemConfig `type:"list"`

	// The function's Amazon Resource Name (ARN).
	FunctionArn *string `type:"string"`

	// The name of the function.
	FunctionName *string `min:"1" type:"string"`

	// The function that Lambda calls to begin executing your function.
	Handler *string `type:"string"`

	// The function's image configuration values.
	ImageConfigResponse *ImageConfigResponse `type:"structure"`

	// The KMS key that's used to encrypt the function's environment variables.
	// This key is only returned if you've configured a customer managed CMK.
	KMSKeyArn *string `type:"string"`

	// The date and time that the function was last updated, in ISO-8601 format
	// (https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD).
	LastModified *string `type:"string"`

	// The status of the last update that was performed on the function. This is
	// first set to Successful after function creation completes.
	LastUpdateStatus *string `type:"string" enum:"LastUpdateStatus"`

	// The reason for the last update that was performed on the function.
	LastUpdateStatusReason *string `type:"string"`

	// The reason code for the last update that was performed on the function.
	LastUpdateStatusReasonCode *string `type:"string" enum:"LastUpdateStatusReasonCode"`

	// The function's layers (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).
	Layers []*Layer `type:"list"`

	// For Lambda@Edge functions, the ARN of the master function.
	MasterArn *string `type:"string"`

	// The amount of memory available to the function at runtime.
	MemorySize *int64 `min:"128" type:"integer"`

	// The type of deployment package. Set to Image for container image and set
	// Zip for .zip file archive.
	PackageType *string `type:"string" enum:"PackageType"`

	// The latest updated revision of the function or alias.
	RevisionId *string `type:"string"`

	// The function's execution role.
	Role *string `type:"string"`

	// The runtime environment for the Lambda function.
	Runtime *string `type:"string" enum:"Runtime"`

	// The ARN of the signing job.
	SigningJobArn *string `type:"string"`

	// The ARN of the signing profile version.
	SigningProfileVersionArn *string `type:"string"`

	// The current state of the function. When the state is Inactive, you can reactivate
	// the function by invoking it.
	State *string `type:"string" enum:"State"`

	// The reason for the function's current state.
	StateReason *string `type:"string"`

	// The reason code for the function's current state. When the code is Creating,
	// you can't invoke or modify the function.
	StateReasonCode *string `type:"string" enum:"StateReasonCode"`

	// The amount of time in seconds that Lambda allows a function to run before
	// stopping it.
	Timeout *int64 `min:"1" type:"integer"`

	// The function's X-Ray tracing configuration.
	TracingConfig *TracingConfigResponse `type:"structure"`

	// The version of the Lambda function.
	Version *string `min:"1" type:"string"`

	// The function's networking configuration.
	VpcConfig *VpcConfigResponse `type:"structure"`
	// contains filtered or unexported fields
}

Details about a function's configuration.

func (FunctionConfiguration) GoString

func (s FunctionConfiguration) 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 (*FunctionConfiguration) SetArchitectures

func (s *FunctionConfiguration) SetArchitectures(v []*string) *FunctionConfiguration

SetArchitectures sets the Architectures field's value.

func (*FunctionConfiguration) SetCodeSha256

func (s *FunctionConfiguration) SetCodeSha256(v string) *FunctionConfiguration

SetCodeSha256 sets the CodeSha256 field's value.

func (*FunctionConfiguration) SetCodeSize

SetCodeSize sets the CodeSize field's value.

func (*FunctionConfiguration) SetDeadLetterConfig

func (s *FunctionConfiguration) SetDeadLetterConfig(v *DeadLetterConfig) *FunctionConfiguration

SetDeadLetterConfig sets the DeadLetterConfig field's value.

func (*FunctionConfiguration) SetDescription

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

SetDescription sets the Description field's value.

func (*FunctionConfiguration) SetEnvironment

SetEnvironment sets the Environment field's value.

func (*FunctionConfiguration) SetFileSystemConfigs

func (s *FunctionConfiguration) SetFileSystemConfigs(v []*FileSystemConfig) *FunctionConfiguration

SetFileSystemConfigs sets the FileSystemConfigs field's value.

func (*FunctionConfiguration) SetFunctionArn

func (s *FunctionConfiguration) SetFunctionArn(v string) *FunctionConfiguration

SetFunctionArn sets the FunctionArn field's value.

func (*FunctionConfiguration) SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

func (*FunctionConfiguration) SetHandler

SetHandler sets the Handler field's value.

func (*FunctionConfiguration) SetImageConfigResponse

func (s *FunctionConfiguration) SetImageConfigResponse(v *ImageConfigResponse) *FunctionConfiguration

SetImageConfigResponse sets the ImageConfigResponse field's value.

func (*FunctionConfiguration) SetKMSKeyArn

SetKMSKeyArn sets the KMSKeyArn field's value.

func (*FunctionConfiguration) SetLastModified

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

SetLastModified sets the LastModified field's value.

func (*FunctionConfiguration) SetLastUpdateStatus

func (s *FunctionConfiguration) SetLastUpdateStatus(v string) *FunctionConfiguration

SetLastUpdateStatus sets the LastUpdateStatus field's value.

func (*FunctionConfiguration) SetLastUpdateStatusReason

func (s *FunctionConfiguration) SetLastUpdateStatusReason(v string) *FunctionConfiguration

SetLastUpdateStatusReason sets the LastUpdateStatusReason field's value.

func (*FunctionConfiguration) SetLastUpdateStatusReasonCode

func (s *FunctionConfiguration) SetLastUpdateStatusReasonCode(v string) *FunctionConfiguration

SetLastUpdateStatusReasonCode sets the LastUpdateStatusReasonCode field's value.

func (*FunctionConfiguration) SetLayers

SetLayers sets the Layers field's value.

func (*FunctionConfiguration) SetMasterArn

SetMasterArn sets the MasterArn field's value.

func (*FunctionConfiguration) SetMemorySize

func (s *FunctionConfiguration) SetMemorySize(v int64) *FunctionConfiguration

SetMemorySize sets the MemorySize field's value.

func (*FunctionConfiguration) SetPackageType

func (s *FunctionConfiguration) SetPackageType(v string) *FunctionConfiguration

SetPackageType sets the PackageType field's value.

func (*FunctionConfiguration) SetRevisionId

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

SetRevisionId sets the RevisionId field's value.

func (*FunctionConfiguration) SetRole

SetRole sets the Role field's value.

func (*FunctionConfiguration) SetRuntime

SetRuntime sets the Runtime field's value.

func (*FunctionConfiguration) SetSigningJobArn

func (s *FunctionConfiguration) SetSigningJobArn(v string) *FunctionConfiguration

SetSigningJobArn sets the SigningJobArn field's value.

func (*FunctionConfiguration) SetSigningProfileVersionArn

func (s *FunctionConfiguration) SetSigningProfileVersionArn(v string) *FunctionConfiguration

SetSigningProfileVersionArn sets the SigningProfileVersionArn field's value.

func (*FunctionConfiguration) SetState

SetState sets the State field's value.

func (*FunctionConfiguration) SetStateReason

func (s *FunctionConfiguration) SetStateReason(v string) *FunctionConfiguration

SetStateReason sets the StateReason field's value.

func (*FunctionConfiguration) SetStateReasonCode

func (s *FunctionConfiguration) SetStateReasonCode(v string) *FunctionConfiguration

SetStateReasonCode sets the StateReasonCode field's value.

func (*FunctionConfiguration) SetTimeout

SetTimeout sets the Timeout field's value.

func (*FunctionConfiguration) SetTracingConfig

SetTracingConfig sets the TracingConfig field's value.

func (*FunctionConfiguration) SetVersion

SetVersion sets the Version field's value.

func (*FunctionConfiguration) SetVpcConfig

SetVpcConfig sets the VpcConfig field's value.

func (FunctionConfiguration) String

func (s FunctionConfiguration) 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 FunctionEventInvokeConfig

type FunctionEventInvokeConfig struct {

	// A destination for events after they have been sent to a function for processing.
	//
	// Destinations
	//
	//    * Function - The Amazon Resource Name (ARN) of a Lambda function.
	//
	//    * Queue - The ARN of an SQS queue.
	//
	//    * Topic - The ARN of an SNS topic.
	//
	//    * Event Bus - The ARN of an Amazon EventBridge event bus.
	DestinationConfig *DestinationConfig `type:"structure"`

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

	// The date and time that the configuration was last updated.
	LastModified *time.Time `type:"timestamp"`

	// The maximum age of a request that Lambda sends to a function for processing.
	MaximumEventAgeInSeconds *int64 `min:"60" type:"integer"`

	// The maximum number of times to retry when the function returns an error.
	MaximumRetryAttempts *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (FunctionEventInvokeConfig) GoString

func (s FunctionEventInvokeConfig) 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 (*FunctionEventInvokeConfig) SetDestinationConfig

SetDestinationConfig sets the DestinationConfig field's value.

func (*FunctionEventInvokeConfig) SetFunctionArn

SetFunctionArn sets the FunctionArn field's value.

func (*FunctionEventInvokeConfig) SetLastModified

SetLastModified sets the LastModified field's value.

func (*FunctionEventInvokeConfig) SetMaximumEventAgeInSeconds

func (s *FunctionEventInvokeConfig) SetMaximumEventAgeInSeconds(v int64) *FunctionEventInvokeConfig

SetMaximumEventAgeInSeconds sets the MaximumEventAgeInSeconds field's value.

func (*FunctionEventInvokeConfig) SetMaximumRetryAttempts

func (s *FunctionEventInvokeConfig) SetMaximumRetryAttempts(v int64) *FunctionEventInvokeConfig

SetMaximumRetryAttempts sets the MaximumRetryAttempts field's value.

func (FunctionEventInvokeConfig) String

func (s FunctionEventInvokeConfig) 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 GetAccountSettingsInput

type GetAccountSettingsInput struct {
	// contains filtered or unexported fields
}

func (GetAccountSettingsInput) GoString

func (s GetAccountSettingsInput) 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 (GetAccountSettingsInput) String

func (s GetAccountSettingsInput) 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 GetAccountSettingsOutput

type GetAccountSettingsOutput struct {

	// Limits that are related to concurrency and code storage.
	AccountLimit *AccountLimit `type:"structure"`

	// The number of functions and amount of storage in use.
	AccountUsage *AccountUsage `type:"structure"`
	// contains filtered or unexported fields
}

func (GetAccountSettingsOutput) GoString

func (s GetAccountSettingsOutput) 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 (*GetAccountSettingsOutput) SetAccountLimit

SetAccountLimit sets the AccountLimit field's value.

func (*GetAccountSettingsOutput) SetAccountUsage

SetAccountUsage sets the AccountUsage field's value.

func (GetAccountSettingsOutput) String

func (s GetAccountSettingsOutput) 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 GetAliasInput

type GetAliasInput struct {

	// 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 name of the alias.
	//
	// Name is a required field
	Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetAliasInput) GoString

func (s GetAliasInput) 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 (*GetAliasInput) SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

func (*GetAliasInput) SetName

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

SetName sets the Name field's value.

func (GetAliasInput) String

func (s GetAliasInput) 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 (*GetAliasInput) Validate

func (s *GetAliasInput) Validate() error

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

type GetCodeSigningConfigInput

type GetCodeSigningConfigInput struct {

	// The The Amazon Resource Name (ARN) of the code signing configuration.
	//
	// CodeSigningConfigArn is a required field
	CodeSigningConfigArn *string `location:"uri" locationName:"CodeSigningConfigArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetCodeSigningConfigInput) GoString

func (s GetCodeSigningConfigInput) 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 (*GetCodeSigningConfigInput) SetCodeSigningConfigArn

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

SetCodeSigningConfigArn sets the CodeSigningConfigArn field's value.

func (GetCodeSigningConfigInput) String

func (s GetCodeSigningConfigInput) 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 (*GetCodeSigningConfigInput) Validate

func (s *GetCodeSigningConfigInput) Validate() error

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

type GetCodeSigningConfigOutput

type GetCodeSigningConfigOutput struct {

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

func (GetCodeSigningConfigOutput) GoString

func (s GetCodeSigningConfigOutput) 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 (*GetCodeSigningConfigOutput) SetCodeSigningConfig

SetCodeSigningConfig sets the CodeSigningConfig field's value.

func (GetCodeSigningConfigOutput) 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 GetEventSourceMappingInput

type GetEventSourceMappingInput struct {

	// The identifier of the event source mapping.
	//
	// UUID is a required field
	UUID *string `location:"uri" locationName:"UUID" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetEventSourceMappingInput) GoString

func (s GetEventSourceMappingInput) 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 (*GetEventSourceMappingInput) SetUUID

SetUUID sets the UUID field's value.

func (GetEventSourceMappingInput) 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 (*GetEventSourceMappingInput) Validate

func (s *GetEventSourceMappingInput) Validate() error

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

type GetFunctionCodeSigningConfigInput

type GetFunctionCodeSigningConfigInput struct {

	// 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"`
	// contains filtered or unexported fields
}

func (GetFunctionCodeSigningConfigInput) GoString

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 (*GetFunctionCodeSigningConfigInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (GetFunctionCodeSigningConfigInput) 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 (*GetFunctionCodeSigningConfigInput) Validate

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

type GetFunctionCodeSigningConfigOutput

type GetFunctionCodeSigningConfigOutput struct {

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

	// 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 `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetFunctionCodeSigningConfigOutput) GoString

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 (*GetFunctionCodeSigningConfigOutput) SetCodeSigningConfigArn

SetCodeSigningConfigArn sets the CodeSigningConfigArn field's value.

func (*GetFunctionCodeSigningConfigOutput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (GetFunctionCodeSigningConfigOutput) 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 GetFunctionConcurrencyInput

type GetFunctionConcurrencyInput struct {

	// The name of the Lambda function.
	//
	// Name formats
	//
	//    * Function name - my-function.
	//
	//    * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//    * Partial ARN - 123456789012:function:my-function.
	//
	// 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"`
	// contains filtered or unexported fields
}

func (GetFunctionConcurrencyInput) GoString

func (s GetFunctionConcurrencyInput) 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 (*GetFunctionConcurrencyInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (GetFunctionConcurrencyInput) 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 (*GetFunctionConcurrencyInput) Validate

func (s *GetFunctionConcurrencyInput) Validate() error

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

type GetFunctionConcurrencyOutput

type GetFunctionConcurrencyOutput struct {

	// The number of simultaneous executions that are reserved for the function.
	ReservedConcurrentExecutions *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (GetFunctionConcurrencyOutput) GoString

func (s GetFunctionConcurrencyOutput) 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 (*GetFunctionConcurrencyOutput) SetReservedConcurrentExecutions

func (s *GetFunctionConcurrencyOutput) SetReservedConcurrentExecutions(v int64) *GetFunctionConcurrencyOutput

SetReservedConcurrentExecutions sets the ReservedConcurrentExecutions field's value.

func (GetFunctionConcurrencyOutput) 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 GetFunctionConfigurationInput

type GetFunctionConfigurationInput struct {

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

	// Specify a version or alias to get details about a published version of the
	// function.
	Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (GetFunctionConfigurationInput) GoString

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 (*GetFunctionConfigurationInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*GetFunctionConfigurationInput) SetQualifier

SetQualifier sets the Qualifier field's value.

func (GetFunctionConfigurationInput) 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 (*GetFunctionConfigurationInput) Validate

func (s *GetFunctionConfigurationInput) Validate() error

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

type GetFunctionEventInvokeConfigInput

type GetFunctionEventInvokeConfigInput struct {

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

	// A version number or alias name.
	Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (GetFunctionEventInvokeConfigInput) GoString

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 (*GetFunctionEventInvokeConfigInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*GetFunctionEventInvokeConfigInput) SetQualifier

SetQualifier sets the Qualifier field's value.

func (GetFunctionEventInvokeConfigInput) 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 (*GetFunctionEventInvokeConfigInput) Validate

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

type GetFunctionEventInvokeConfigOutput

type GetFunctionEventInvokeConfigOutput struct {

	// A destination for events after they have been sent to a function for processing.
	//
	// Destinations
	//
	//    * Function - The Amazon Resource Name (ARN) of a Lambda function.
	//
	//    * Queue - The ARN of an SQS queue.
	//
	//    * Topic - The ARN of an SNS topic.
	//
	//    * Event Bus - The ARN of an Amazon EventBridge event bus.
	DestinationConfig *DestinationConfig `type:"structure"`

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

	// The date and time that the configuration was last updated.
	LastModified *time.Time `type:"timestamp"`

	// The maximum age of a request that Lambda sends to a function for processing.
	MaximumEventAgeInSeconds *int64 `min:"60" type:"integer"`

	// The maximum number of times to retry when the function returns an error.
	MaximumRetryAttempts *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (GetFunctionEventInvokeConfigOutput) GoString

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 (*GetFunctionEventInvokeConfigOutput) SetDestinationConfig

SetDestinationConfig sets the DestinationConfig field's value.

func (*GetFunctionEventInvokeConfigOutput) SetFunctionArn

SetFunctionArn sets the FunctionArn field's value.

func (*GetFunctionEventInvokeConfigOutput) SetLastModified

SetLastModified sets the LastModified field's value.

func (*GetFunctionEventInvokeConfigOutput) SetMaximumEventAgeInSeconds

SetMaximumEventAgeInSeconds sets the MaximumEventAgeInSeconds field's value.

func (*GetFunctionEventInvokeConfigOutput) SetMaximumRetryAttempts

SetMaximumRetryAttempts sets the MaximumRetryAttempts field's value.

func (GetFunctionEventInvokeConfigOutput) 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 GetFunctionInput

type GetFunctionInput struct {

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

	// Specify a version or alias to get details about a published version of the
	// function.
	Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (GetFunctionInput) GoString

func (s GetFunctionInput) 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 (*GetFunctionInput) SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

func (*GetFunctionInput) SetQualifier

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

SetQualifier sets the Qualifier field's value.

func (GetFunctionInput) String

func (s GetFunctionInput) 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 (*GetFunctionInput) Validate

func (s *GetFunctionInput) Validate() error

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

type GetFunctionOutput

type GetFunctionOutput struct {

	// The deployment package of the function or version.
	Code *FunctionCodeLocation `type:"structure"`

	// The function's reserved concurrency (https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html).
	Concurrency *PutFunctionConcurrencyOutput `type:"structure"`

	// The configuration of the function or version.
	Configuration *FunctionConfiguration `type:"structure"`

	// The function's tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html).
	Tags map[string]*string `type:"map"`
	// contains filtered or unexported fields
}

func (GetFunctionOutput) GoString

func (s GetFunctionOutput) 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 (*GetFunctionOutput) SetCode

SetCode sets the Code field's value.

func (*GetFunctionOutput) SetConcurrency

SetConcurrency sets the Concurrency field's value.

func (*GetFunctionOutput) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*GetFunctionOutput) SetTags

func (s *GetFunctionOutput) SetTags(v map[string]*string) *GetFunctionOutput

SetTags sets the Tags field's value.

func (GetFunctionOutput) String

func (s GetFunctionOutput) 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 GetLayerVersionByArnInput

type GetLayerVersionByArnInput struct {

	// The ARN of the layer version.
	//
	// Arn is a required field
	Arn *string `location:"querystring" locationName:"Arn" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetLayerVersionByArnInput) GoString

func (s GetLayerVersionByArnInput) 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 (*GetLayerVersionByArnInput) SetArn

SetArn sets the Arn field's value.

func (GetLayerVersionByArnInput) String

func (s GetLayerVersionByArnInput) 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 (*GetLayerVersionByArnInput) Validate

func (s *GetLayerVersionByArnInput) Validate() error

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

type GetLayerVersionByArnOutput

type GetLayerVersionByArnOutput struct {

	// A list of compatible instruction set architectures (https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html).
	CompatibleArchitectures []*string `type:"list"`

	// The layer's compatible runtimes.
	CompatibleRuntimes []*string `type:"list"`

	// Details about the layer version.
	Content *LayerVersionContentOutput `type:"structure"`

	// The date that the layer version was created, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime)
	// (YYYY-MM-DDThh:mm:ss.sTZD).
	CreatedDate *string `type:"string"`

	// The description of the version.
	Description *string `type:"string"`

	// The ARN of the layer.
	LayerArn *string `min:"1" type:"string"`

	// The ARN of the layer version.
	LayerVersionArn *string `min:"1" type:"string"`

	// The layer's software license.
	LicenseInfo *string `type:"string"`

	// The version number.
	Version *int64 `type:"long"`
	// contains filtered or unexported fields
}

func (GetLayerVersionByArnOutput) GoString

func (s GetLayerVersionByArnOutput) 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 (*GetLayerVersionByArnOutput) SetCompatibleArchitectures

func (s *GetLayerVersionByArnOutput) SetCompatibleArchitectures(v []*string) *GetLayerVersionByArnOutput

SetCompatibleArchitectures sets the CompatibleArchitectures field's value.

func (*GetLayerVersionByArnOutput) SetCompatibleRuntimes

func (s *GetLayerVersionByArnOutput) SetCompatibleRuntimes(v []*string) *GetLayerVersionByArnOutput

SetCompatibleRuntimes sets the CompatibleRuntimes field's value.

func (*GetLayerVersionByArnOutput) SetContent

SetContent sets the Content field's value.

func (*GetLayerVersionByArnOutput) SetCreatedDate

SetCreatedDate sets the CreatedDate field's value.

func (*GetLayerVersionByArnOutput) SetDescription

SetDescription sets the Description field's value.

func (*GetLayerVersionByArnOutput) SetLayerArn

SetLayerArn sets the LayerArn field's value.

func (*GetLayerVersionByArnOutput) SetLayerVersionArn

SetLayerVersionArn sets the LayerVersionArn field's value.

func (*GetLayerVersionByArnOutput) SetLicenseInfo

SetLicenseInfo sets the LicenseInfo field's value.

func (*GetLayerVersionByArnOutput) SetVersion

SetVersion sets the Version field's value.

func (GetLayerVersionByArnOutput) 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 GetLayerVersionInput

type GetLayerVersionInput struct {

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

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

func (GetLayerVersionInput) GoString

func (s GetLayerVersionInput) 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 (*GetLayerVersionInput) SetLayerName

func (s *GetLayerVersionInput) SetLayerName(v string) *GetLayerVersionInput

SetLayerName sets the LayerName field's value.

func (*GetLayerVersionInput) SetVersionNumber

func (s *GetLayerVersionInput) SetVersionNumber(v int64) *GetLayerVersionInput

SetVersionNumber sets the VersionNumber field's value.

func (GetLayerVersionInput) String

func (s GetLayerVersionInput) 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 (*GetLayerVersionInput) Validate

func (s *GetLayerVersionInput) Validate() error

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

type GetLayerVersionOutput

type GetLayerVersionOutput struct {

	// A list of compatible instruction set architectures (https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html).
	CompatibleArchitectures []*string `type:"list"`

	// The layer's compatible runtimes.
	CompatibleRuntimes []*string `type:"list"`

	// Details about the layer version.
	Content *LayerVersionContentOutput `type:"structure"`

	// The date that the layer version was created, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime)
	// (YYYY-MM-DDThh:mm:ss.sTZD).
	CreatedDate *string `type:"string"`

	// The description of the version.
	Description *string `type:"string"`

	// The ARN of the layer.
	LayerArn *string `min:"1" type:"string"`

	// The ARN of the layer version.
	LayerVersionArn *string `min:"1" type:"string"`

	// The layer's software license.
	LicenseInfo *string `type:"string"`

	// The version number.
	Version *int64 `type:"long"`
	// contains filtered or unexported fields
}

func (GetLayerVersionOutput) GoString

func (s GetLayerVersionOutput) 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 (*GetLayerVersionOutput) SetCompatibleArchitectures

func (s *GetLayerVersionOutput) SetCompatibleArchitectures(v []*string) *GetLayerVersionOutput

SetCompatibleArchitectures sets the CompatibleArchitectures field's value.

func (*GetLayerVersionOutput) SetCompatibleRuntimes

func (s *GetLayerVersionOutput) SetCompatibleRuntimes(v []*string) *GetLayerVersionOutput

SetCompatibleRuntimes sets the CompatibleRuntimes field's value.

func (*GetLayerVersionOutput) SetContent

SetContent sets the Content field's value.

func (*GetLayerVersionOutput) SetCreatedDate

func (s *GetLayerVersionOutput) SetCreatedDate(v string) *GetLayerVersionOutput

SetCreatedDate sets the CreatedDate field's value.

func (*GetLayerVersionOutput) SetDescription

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

SetDescription sets the Description field's value.

func (*GetLayerVersionOutput) SetLayerArn

SetLayerArn sets the LayerArn field's value.

func (*GetLayerVersionOutput) SetLayerVersionArn

func (s *GetLayerVersionOutput) SetLayerVersionArn(v string) *GetLayerVersionOutput

SetLayerVersionArn sets the LayerVersionArn field's value.

func (*GetLayerVersionOutput) SetLicenseInfo

func (s *GetLayerVersionOutput) SetLicenseInfo(v string) *GetLayerVersionOutput

SetLicenseInfo sets the LicenseInfo field's value.

func (*GetLayerVersionOutput) SetVersion

SetVersion sets the Version field's value.

func (GetLayerVersionOutput) String

func (s GetLayerVersionOutput) 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 GetLayerVersionPolicyInput

type GetLayerVersionPolicyInput struct {

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

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

func (GetLayerVersionPolicyInput) GoString

func (s GetLayerVersionPolicyInput) 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 (*GetLayerVersionPolicyInput) SetLayerName

SetLayerName sets the LayerName field's value.

func (*GetLayerVersionPolicyInput) SetVersionNumber

SetVersionNumber sets the VersionNumber field's value.

func (GetLayerVersionPolicyInput) 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 (*GetLayerVersionPolicyInput) Validate

func (s *GetLayerVersionPolicyInput) Validate() error

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

type GetLayerVersionPolicyOutput

type GetLayerVersionPolicyOutput struct {

	// The policy document.
	Policy *string `type:"string"`

	// A unique identifier for the current revision of the policy.
	RevisionId *string `type:"string"`
	// contains filtered or unexported fields
}

func (GetLayerVersionPolicyOutput) GoString

func (s GetLayerVersionPolicyOutput) 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 (*GetLayerVersionPolicyOutput) SetPolicy

SetPolicy sets the Policy field's value.

func (*GetLayerVersionPolicyOutput) SetRevisionId

SetRevisionId sets the RevisionId field's value.

func (GetLayerVersionPolicyOutput) 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 GetPolicyInput

type GetPolicyInput struct {

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

	// Specify a version or alias to get the policy for that resource.
	Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (GetPolicyInput) GoString

func (s GetPolicyInput) 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 (*GetPolicyInput) SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

func (*GetPolicyInput) SetQualifier

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

SetQualifier sets the Qualifier field's value.

func (GetPolicyInput) String

func (s GetPolicyInput) 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 (*GetPolicyInput) Validate

func (s *GetPolicyInput) Validate() error

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

type GetPolicyOutput

type GetPolicyOutput struct {

	// The resource-based policy.
	Policy *string `type:"string"`

	// A unique identifier for the current revision of the policy.
	RevisionId *string `type:"string"`
	// contains filtered or unexported fields
}

func (GetPolicyOutput) GoString

func (s GetPolicyOutput) 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 (*GetPolicyOutput) SetPolicy

func (s *GetPolicyOutput) SetPolicy(v string) *GetPolicyOutput

SetPolicy sets the Policy field's value.

func (*GetPolicyOutput) SetRevisionId

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

SetRevisionId sets the RevisionId field's value.

func (GetPolicyOutput) String

func (s GetPolicyOutput) 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 GetProvisionedConcurrencyConfigInput

type GetProvisionedConcurrencyConfigInput struct {

	// The name of the Lambda function.
	//
	// Name formats
	//
	//    * Function name - my-function.
	//
	//    * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//    * Partial ARN - 123456789012:function:my-function.
	//
	// 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 version number or alias name.
	//
	// Qualifier is a required field
	Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetProvisionedConcurrencyConfigInput) GoString

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 (*GetProvisionedConcurrencyConfigInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*GetProvisionedConcurrencyConfigInput) SetQualifier

SetQualifier sets the Qualifier field's value.

func (GetProvisionedConcurrencyConfigInput) 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 (*GetProvisionedConcurrencyConfigInput) Validate

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

type GetProvisionedConcurrencyConfigOutput

type GetProvisionedConcurrencyConfigOutput struct {

	// The amount of provisioned concurrency allocated.
	AllocatedProvisionedConcurrentExecutions *int64 `type:"integer"`

	// The amount of provisioned concurrency available.
	AvailableProvisionedConcurrentExecutions *int64 `type:"integer"`

	// The date and time that a user last updated the configuration, in ISO 8601
	// format (https://www.iso.org/iso-8601-date-and-time-format.html).
	LastModified *string `type:"string"`

	// The amount of provisioned concurrency requested.
	RequestedProvisionedConcurrentExecutions *int64 `min:"1" type:"integer"`

	// The status of the allocation process.
	Status *string `type:"string" enum:"ProvisionedConcurrencyStatusEnum"`

	// For failed allocations, the reason that provisioned concurrency could not
	// be allocated.
	StatusReason *string `type:"string"`
	// contains filtered or unexported fields
}

func (GetProvisionedConcurrencyConfigOutput) GoString

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 (*GetProvisionedConcurrencyConfigOutput) SetAllocatedProvisionedConcurrentExecutions

func (s *GetProvisionedConcurrencyConfigOutput) SetAllocatedProvisionedConcurrentExecutions(v int64) *GetProvisionedConcurrencyConfigOutput

SetAllocatedProvisionedConcurrentExecutions sets the AllocatedProvisionedConcurrentExecutions field's value.

func (*GetProvisionedConcurrencyConfigOutput) SetAvailableProvisionedConcurrentExecutions

func (s *GetProvisionedConcurrencyConfigOutput) SetAvailableProvisionedConcurrentExecutions(v int64) *GetProvisionedConcurrencyConfigOutput

SetAvailableProvisionedConcurrentExecutions sets the AvailableProvisionedConcurrentExecutions field's value.

func (*GetProvisionedConcurrencyConfigOutput) SetLastModified

SetLastModified sets the LastModified field's value.

func (*GetProvisionedConcurrencyConfigOutput) SetRequestedProvisionedConcurrentExecutions

func (s *GetProvisionedConcurrencyConfigOutput) SetRequestedProvisionedConcurrentExecutions(v int64) *GetProvisionedConcurrencyConfigOutput

SetRequestedProvisionedConcurrentExecutions sets the RequestedProvisionedConcurrentExecutions field's value.

func (*GetProvisionedConcurrencyConfigOutput) SetStatus

SetStatus sets the Status field's value.

func (*GetProvisionedConcurrencyConfigOutput) SetStatusReason

SetStatusReason sets the StatusReason field's value.

func (GetProvisionedConcurrencyConfigOutput) 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 ImageConfig

type ImageConfig struct {

	// Specifies parameters that you want to pass in with ENTRYPOINT.
	Command []*string `type:"list"`

	// Specifies the entry point to their application, which is typically the location
	// of the runtime executable.
	EntryPoint []*string `type:"list"`

	// Specifies the working directory.
	WorkingDirectory *string `type:"string"`
	// contains filtered or unexported fields
}

Configuration values that override the container image Dockerfile settings. See Container settings (https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms).

func (ImageConfig) GoString

func (s ImageConfig) 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 (*ImageConfig) SetCommand

func (s *ImageConfig) SetCommand(v []*string) *ImageConfig

SetCommand sets the Command field's value.

func (*ImageConfig) SetEntryPoint

func (s *ImageConfig) SetEntryPoint(v []*string) *ImageConfig

SetEntryPoint sets the EntryPoint field's value.

func (*ImageConfig) SetWorkingDirectory

func (s *ImageConfig) SetWorkingDirectory(v string) *ImageConfig

SetWorkingDirectory sets the WorkingDirectory field's value.

func (ImageConfig) String

func (s ImageConfig) 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 ImageConfigError

type ImageConfigError struct {

	// Error code.
	ErrorCode *string `type:"string"`

	// Error message.
	//
	// Message is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by ImageConfigError's
	// String and GoString methods.
	Message *string `type:"string" sensitive:"true"`
	// contains filtered or unexported fields
}

Error response to GetFunctionConfiguration.

func (ImageConfigError) GoString

func (s ImageConfigError) 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 (*ImageConfigError) SetErrorCode

func (s *ImageConfigError) SetErrorCode(v string) *ImageConfigError

SetErrorCode sets the ErrorCode field's value.

func (*ImageConfigError) SetMessage

func (s *ImageConfigError) SetMessage(v string) *ImageConfigError

SetMessage sets the Message field's value.

func (ImageConfigError) String

func (s ImageConfigError) 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 ImageConfigResponse

type ImageConfigResponse struct {

	// Error response to GetFunctionConfiguration.
	Error *ImageConfigError `type:"structure"`

	// Configuration values that override the container image Dockerfile.
	ImageConfig *ImageConfig `type:"structure"`
	// contains filtered or unexported fields
}

Response to GetFunctionConfiguration request.

func (ImageConfigResponse) GoString

func (s ImageConfigResponse) 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 (*ImageConfigResponse) SetError

SetError sets the Error field's value.

func (*ImageConfigResponse) SetImageConfig

func (s *ImageConfigResponse) SetImageConfig(v *ImageConfig) *ImageConfigResponse

SetImageConfig sets the ImageConfig field's value.

func (ImageConfigResponse) String

func (s ImageConfigResponse) 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 InvalidCodeSignatureException

type InvalidCodeSignatureException 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 the integrity check. Lambda always blocks deployment if the integrity check fails, even if code signing policy is set to WARN.

func (*InvalidCodeSignatureException) Code

Code returns the exception type name.

func (*InvalidCodeSignatureException) Error

func (InvalidCodeSignatureException) GoString

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 (*InvalidCodeSignatureException) Message

Message returns the exception's message.

func (*InvalidCodeSignatureException) OrigErr

func (s *InvalidCodeSignatureException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*InvalidCodeSignatureException) RequestID

func (s *InvalidCodeSignatureException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*InvalidCodeSignatureException) StatusCode

func (s *InvalidCodeSignatureException) StatusCode() int

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

func (InvalidCodeSignatureException) 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 InvalidParameterValueException

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

	// The exception message.
	Message_ *string `locationName:"message" type:"string"`

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

One of the parameters in the request is invalid.

func (*InvalidParameterValueException) Code

Code returns the exception type name.

func (*InvalidParameterValueException) Error

func (InvalidParameterValueException) GoString

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 (*InvalidParameterValueException) Message

Message returns the exception's message.

func (*InvalidParameterValueException) OrigErr

OrigErr always returns nil, satisfies awserr.Error interface.

func (*InvalidParameterValueException) RequestID

func (s *InvalidParameterValueException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*InvalidParameterValueException) StatusCode

func (s *InvalidParameterValueException) StatusCode() int

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

func (InvalidParameterValueException) 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 InvalidRequestContentException

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

	// The exception message.
	Message_ *string `locationName:"message" type:"string"`

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

The request body could not be parsed as JSON.

func (*InvalidRequestContentException) Code

Code returns the exception type name.

func (*InvalidRequestContentException) Error

func (InvalidRequestContentException) GoString

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 (*InvalidRequestContentException) Message

Message returns the exception's message.

func (*InvalidRequestContentException) OrigErr

OrigErr always returns nil, satisfies awserr.Error interface.

func (*InvalidRequestContentException) RequestID

func (s *InvalidRequestContentException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*InvalidRequestContentException) StatusCode

func (s *InvalidRequestContentException) StatusCode() int

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

func (InvalidRequestContentException) 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 InvalidRuntimeException

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

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

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

The runtime or runtime version specified is not supported.

func (*InvalidRuntimeException) Code

func (s *InvalidRuntimeException) Code() string

Code returns the exception type name.

func (*InvalidRuntimeException) Error

func (s *InvalidRuntimeException) Error() string

func (InvalidRuntimeException) GoString

func (s InvalidRuntimeException) 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 (*InvalidRuntimeException) Message

func (s *InvalidRuntimeException) Message() string

Message returns the exception's message.

func (*InvalidRuntimeException) OrigErr

func (s *InvalidRuntimeException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*InvalidRuntimeException) RequestID

func (s *InvalidRuntimeException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*InvalidRuntimeException) StatusCode

func (s *InvalidRuntimeException) StatusCode() int

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

func (InvalidRuntimeException) String

func (s InvalidRuntimeException) 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 InvalidSecurityGroupIDException

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

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

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

The Security Group ID provided in the Lambda function VPC configuration is invalid.

func (*InvalidSecurityGroupIDException) Code

Code returns the exception type name.

func (*InvalidSecurityGroupIDException) Error

func (InvalidSecurityGroupIDException) GoString

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 (*InvalidSecurityGroupIDException) Message

Message returns the exception's message.

func (*InvalidSecurityGroupIDException) OrigErr

OrigErr always returns nil, satisfies awserr.Error interface.

func (*InvalidSecurityGroupIDException) RequestID

func (s *InvalidSecurityGroupIDException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*InvalidSecurityGroupIDException) StatusCode

func (s *InvalidSecurityGroupIDException) StatusCode() int

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

func (InvalidSecurityGroupIDException) 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 InvalidSubnetIDException

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

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

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

The Subnet ID provided in the Lambda function VPC configuration is invalid.

func (*InvalidSubnetIDException) Code

func (s *InvalidSubnetIDException) Code() string

Code returns the exception type name.

func (*InvalidSubnetIDException) Error

func (s *InvalidSubnetIDException) Error() string

func (InvalidSubnetIDException) GoString

func (s InvalidSubnetIDException) 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 (*InvalidSubnetIDException) Message

func (s *InvalidSubnetIDException) Message() string

Message returns the exception's message.

func (*InvalidSubnetIDException) OrigErr

func (s *InvalidSubnetIDException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*InvalidSubnetIDException) RequestID

func (s *InvalidSubnetIDException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*InvalidSubnetIDException) StatusCode

func (s *InvalidSubnetIDException) StatusCode() int

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

func (InvalidSubnetIDException) String

func (s InvalidSubnetIDException) 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 InvalidZipFileException

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

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

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

Lambda could not unzip the deployment package.

func (*InvalidZipFileException) Code

func (s *InvalidZipFileException) Code() string

Code returns the exception type name.

func (*InvalidZipFileException) Error

func (s *InvalidZipFileException) Error() string

func (InvalidZipFileException) GoString

func (s InvalidZipFileException) 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 (*InvalidZipFileException) Message

func (s *InvalidZipFileException) Message() string

Message returns the exception's message.

func (*InvalidZipFileException) OrigErr

func (s *InvalidZipFileException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*InvalidZipFileException) RequestID

func (s *InvalidZipFileException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*InvalidZipFileException) StatusCode

func (s *InvalidZipFileException) StatusCode() int

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

func (InvalidZipFileException) String

func (s InvalidZipFileException) 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 InvokeAsyncInput deprecated

type InvokeAsyncInput struct {

	// The name of the Lambda function.
	//
	// Name formats
	//
	//    * Function name - my-function.
	//
	//    * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//    * Partial ARN - 123456789012:function:my-function.
	//
	// 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 JSON that you want to provide to your Lambda function as input.
	//
	// InvokeArgs is a required field
	InvokeArgs io.ReadSeeker `type:"blob" required:"true"`
	// contains filtered or unexported fields
}

Deprecated: InvokeAsyncInput has been deprecated

func (InvokeAsyncInput) GoString

func (s InvokeAsyncInput) 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 (*InvokeAsyncInput) SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

func (*InvokeAsyncInput) SetInvokeArgs

func (s *InvokeAsyncInput) SetInvokeArgs(v io.ReadSeeker) *InvokeAsyncInput

SetInvokeArgs sets the InvokeArgs field's value.

func (InvokeAsyncInput) String

func (s InvokeAsyncInput) 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 (*InvokeAsyncInput) Validate

func (s *InvokeAsyncInput) Validate() error

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

type InvokeAsyncOutput deprecated

type InvokeAsyncOutput struct {

	// The status code.
	Status *int64 `location:"statusCode" type:"integer"`
	// contains filtered or unexported fields
}

A success response (202 Accepted) indicates that the request is queued for invocation.

Deprecated: InvokeAsyncOutput has been deprecated

func (InvokeAsyncOutput) GoString

func (s InvokeAsyncOutput) 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 (*InvokeAsyncOutput) SetStatus

func (s *InvokeAsyncOutput) SetStatus(v int64) *InvokeAsyncOutput

SetStatus sets the Status field's value.

func (InvokeAsyncOutput) String

func (s InvokeAsyncOutput) 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 InvokeInput

type InvokeInput struct {

	// Up to 3583 bytes of base64-encoded data about the invoking client to pass
	// to the function in the context object.
	ClientContext *string `location:"header" locationName:"X-Amz-Client-Context" 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"`

	// Choose from the following options.
	//
	//    * RequestResponse (default) - Invoke the function synchronously. Keep
	//    the connection open until the function returns a response or times out.
	//    The API response includes the function response and additional data.
	//
	//    * Event - Invoke the function asynchronously. Send events that fail multiple
	//    times to the function's dead-letter queue (if it's configured). The API
	//    response only includes a status code.
	//
	//    * DryRun - Validate parameter values and verify that the user or role
	//    has permission to invoke the function.
	InvocationType *string `location:"header" locationName:"X-Amz-Invocation-Type" type:"string" enum:"InvocationType"`

	// Set to Tail to include the execution log in the response. Applies to synchronously
	// invoked functions only.
	LogType *string `location:"header" locationName:"X-Amz-Log-Type" type:"string" enum:"LogType"`

	// The JSON that you want to provide to your Lambda function as input.
	//
	// Payload is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by InvokeInput's
	// String and GoString methods.
	Payload []byte `type:"blob" sensitive:"true"`

	// Specify a version or alias to invoke a published version of the function.
	Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (InvokeInput) GoString

func (s InvokeInput) 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 (*InvokeInput) SetClientContext

func (s *InvokeInput) SetClientContext(v string) *InvokeInput

SetClientContext sets the ClientContext field's value.

func (*InvokeInput) SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

func (*InvokeInput) SetInvocationType

func (s *InvokeInput) SetInvocationType(v string) *InvokeInput

SetInvocationType sets the InvocationType field's value.

func (*InvokeInput) SetLogType

func (s *InvokeInput) SetLogType(v string) *InvokeInput

SetLogType sets the LogType field's value.

func (*InvokeInput) SetPayload

func (s *InvokeInput) SetPayload(v []byte) *InvokeInput

SetPayload sets the Payload field's value.

func (*InvokeInput) SetQualifier

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

SetQualifier sets the Qualifier field's value.

func (InvokeInput) String

func (s InvokeInput) 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 (*InvokeInput) Validate

func (s *InvokeInput) Validate() error

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

type InvokeOutput

type InvokeOutput struct {

	// The version of the function that executed. When you invoke a function with
	// an alias, this indicates which version the alias resolved to.
	ExecutedVersion *string `location:"header" locationName:"X-Amz-Executed-Version" min:"1" type:"string"`

	// If present, indicates that an error occurred during function execution. Details
	// about the error are included in the response payload.
	FunctionError *string `location:"header" locationName:"X-Amz-Function-Error" type:"string"`

	// The last 4 KB of the execution log, which is base64 encoded.
	LogResult *string `location:"header" locationName:"X-Amz-Log-Result" type:"string"`

	// The response from the function, or an error object.
	//
	// Payload is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by InvokeOutput's
	// String and GoString methods.
	Payload []byte `type:"blob" sensitive:"true"`

	// The HTTP status code is in the 200 range for a successful request. For the
	// RequestResponse invocation type, this status code is 200. For the Event invocation
	// type, this status code is 202. For the DryRun invocation type, the status
	// code is 204.
	StatusCode *int64 `location:"statusCode" type:"integer"`
	// contains filtered or unexported fields
}

func (InvokeOutput) GoString

func (s InvokeOutput) 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 (*InvokeOutput) SetExecutedVersion

func (s *InvokeOutput) SetExecutedVersion(v string) *InvokeOutput

SetExecutedVersion sets the ExecutedVersion field's value.

func (*InvokeOutput) SetFunctionError

func (s *InvokeOutput) SetFunctionError(v string) *InvokeOutput

SetFunctionError sets the FunctionError field's value.

func (*InvokeOutput) SetLogResult

func (s *InvokeOutput) SetLogResult(v string) *InvokeOutput

SetLogResult sets the LogResult field's value.

func (*InvokeOutput) SetPayload

func (s *InvokeOutput) SetPayload(v []byte) *InvokeOutput

SetPayload sets the Payload field's value.

func (*InvokeOutput) SetStatusCode

func (s *InvokeOutput) SetStatusCode(v int64) *InvokeOutput

SetStatusCode sets the StatusCode field's value.

func (InvokeOutput) String

func (s InvokeOutput) 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 KMSAccessDeniedException

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

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

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

Lambda was unable to decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.

func (*KMSAccessDeniedException) Code

func (s *KMSAccessDeniedException) Code() string

Code returns the exception type name.

func (*KMSAccessDeniedException) Error

func (s *KMSAccessDeniedException) Error() string

func (KMSAccessDeniedException) GoString

func (s KMSAccessDeniedException) 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 (*KMSAccessDeniedException) Message

func (s *KMSAccessDeniedException) Message() string

Message returns the exception's message.

func (*KMSAccessDeniedException) OrigErr

func (s *KMSAccessDeniedException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*KMSAccessDeniedException) RequestID

func (s *KMSAccessDeniedException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*KMSAccessDeniedException) StatusCode

func (s *KMSAccessDeniedException) StatusCode() int

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

func (KMSAccessDeniedException) String

func (s KMSAccessDeniedException) 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 KMSDisabledException

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

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

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

Lambda was unable to decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.

func (*KMSDisabledException) Code

func (s *KMSDisabledException) Code() string

Code returns the exception type name.

func (*KMSDisabledException) Error

func (s *KMSDisabledException) Error() string

func (KMSDisabledException) GoString

func (s KMSDisabledException) 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 (*KMSDisabledException) Message

func (s *KMSDisabledException) Message() string

Message returns the exception's message.

func (*KMSDisabledException) OrigErr

func (s *KMSDisabledException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*KMSDisabledException) RequestID

func (s *KMSDisabledException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*KMSDisabledException) StatusCode

func (s *KMSDisabledException) StatusCode() int

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

func (KMSDisabledException) String

func (s KMSDisabledException) 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 KMSInvalidStateException

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

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

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

Lambda was unable to decrypt the environment variables because the KMS key used is in an invalid state for Decrypt. Check the function's KMS key settings.

func (*KMSInvalidStateException) Code

func (s *KMSInvalidStateException) Code() string

Code returns the exception type name.

func (*KMSInvalidStateException) Error

func (s *KMSInvalidStateException) Error() string

func (KMSInvalidStateException) GoString

func (s KMSInvalidStateException) 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 (*KMSInvalidStateException) Message

func (s *KMSInvalidStateException) Message() string

Message returns the exception's message.

func (*KMSInvalidStateException) OrigErr

func (s *KMSInvalidStateException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*KMSInvalidStateException) RequestID

func (s *KMSInvalidStateException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*KMSInvalidStateException) StatusCode

func (s *KMSInvalidStateException) StatusCode() int

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

func (KMSInvalidStateException) String

func (s KMSInvalidStateException) 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 KMSNotFoundException

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

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

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

Lambda was unable to decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.

func (*KMSNotFoundException) Code

func (s *KMSNotFoundException) Code() string

Code returns the exception type name.

func (*KMSNotFoundException) Error

func (s *KMSNotFoundException) Error() string

func (KMSNotFoundException) GoString

func (s KMSNotFoundException) 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 (*KMSNotFoundException) Message

func (s *KMSNotFoundException) Message() string

Message returns the exception's message.

func (*KMSNotFoundException) OrigErr

func (s *KMSNotFoundException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*KMSNotFoundException) RequestID

func (s *KMSNotFoundException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*KMSNotFoundException) StatusCode

func (s *KMSNotFoundException) StatusCode() int

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

func (KMSNotFoundException) String

func (s KMSNotFoundException) 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 Lambda

type Lambda struct {
	*client.Client
}

Lambda provides the API operation methods for making requests to AWS Lambda. See this package's package overview docs for details on the service.

Lambda methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *Lambda

New creates a new instance of the Lambda client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

mySession := session.Must(session.NewSession())

// Create a Lambda client from just a session.
svc := lambda.New(mySession)

// Create a Lambda client with additional configuration
svc := lambda.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*Lambda) AddLayerVersionPermission

func (c *Lambda) AddLayerVersionPermission(input *AddLayerVersionPermissionInput) (*AddLayerVersionPermissionOutput, error)

AddLayerVersionPermission API operation for AWS Lambda.

Adds permissions to the resource-based policy of a version of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all accounts in an organization, or all Amazon Web Services accounts.

To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation AddLayerVersionPermission for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • ResourceConflictException The resource already exists, or another operation is in progress.

  • TooManyRequestsException The request throughput limit was exceeded.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • PolicyLengthExceededException The permissions policy for the resource is too large. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html)

  • PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction or the GetAlias API to retrieve the latest RevisionId for your resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddLayerVersionPermission

Example (Shared00)

To add permissions to a layer version

The following example grants permission for the account 223456789012 to use version 1 of a layer named my-layer.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.AddLayerVersionPermissionInput{
		Action:        aws.String("lambda:GetLayerVersion"),
		LayerName:     aws.String("my-layer"),
		Principal:     aws.String("223456789012"),
		StatementId:   aws.String("xaccount"),
		VersionNumber: aws.Int64(1),
	}

	result, err := svc.AddLayerVersionPermission(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodePolicyLengthExceededException:
				fmt.Println(lambda.ErrCodePolicyLengthExceededException, aerr.Error())
			case lambda.ErrCodePreconditionFailedException:
				fmt.Println(lambda.ErrCodePreconditionFailedException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) AddLayerVersionPermissionRequest

func (c *Lambda) AddLayerVersionPermissionRequest(input *AddLayerVersionPermissionInput) (req *request.Request, output *AddLayerVersionPermissionOutput)

AddLayerVersionPermissionRequest generates a "aws/request.Request" representing the client's request for the AddLayerVersionPermission operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AddLayerVersionPermission for more information on using the AddLayerVersionPermission API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AddLayerVersionPermissionRequest method.
req, resp := client.AddLayerVersionPermissionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddLayerVersionPermission

func (*Lambda) AddLayerVersionPermissionWithContext

func (c *Lambda) AddLayerVersionPermissionWithContext(ctx aws.Context, input *AddLayerVersionPermissionInput, opts ...request.Option) (*AddLayerVersionPermissionOutput, error)

AddLayerVersionPermissionWithContext is the same as AddLayerVersionPermission with the addition of the ability to pass a context and additional request options.

See AddLayerVersionPermission for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) AddPermission

func (c *Lambda) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error)

AddPermission API operation for AWS Lambda.

Grants an Amazon Web Services service or another account permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies to version $LATEST.

To grant permission to another account, specify the account ID as the Principal. For Amazon Web Services services, the principal is a domain-style identifier defined by the service, like s3.amazonaws.com or sns.amazonaws.com. For Amazon Web Services services, you can also specify the ARN of the associated resource as the SourceArn. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function.

This action adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Lambda Function Policies (https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation AddPermission for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • ResourceConflictException The resource already exists, or another operation is in progress.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • PolicyLengthExceededException The permissions policy for the resource is too large. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html)

  • TooManyRequestsException The request throughput limit was exceeded.

  • PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction or the GetAlias API to retrieve the latest RevisionId for your resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermission

Example (Shared00)

To grant Amazon S3 permission to invoke a function

The following example adds permission for Amazon S3 to invoke a Lambda function named my-function for notifications from a bucket named my-bucket-1xpuxmplzrlbh in account 123456789012.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.AddPermissionInput{
		Action:        aws.String("lambda:InvokeFunction"),
		FunctionName:  aws.String("my-function"),
		Principal:     aws.String("s3.amazonaws.com"),
		SourceAccount: aws.String("123456789012"),
		SourceArn:     aws.String("arn:aws:s3:::my-bucket-1xpuxmplzrlbh/*"),
		StatementId:   aws.String("s3"),
	}

	result, err := svc.AddPermission(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodePolicyLengthExceededException:
				fmt.Println(lambda.ErrCodePolicyLengthExceededException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodePreconditionFailedException:
				fmt.Println(lambda.ErrCodePreconditionFailedException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To grant another account permission to invoke a function

The following example adds permission for account 223456789012 invoke a Lambda function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.AddPermissionInput{
		Action:       aws.String("lambda:InvokeFunction"),
		FunctionName: aws.String("my-function"),
		Principal:    aws.String("223456789012"),
		StatementId:  aws.String("xaccount"),
	}

	result, err := svc.AddPermission(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodePolicyLengthExceededException:
				fmt.Println(lambda.ErrCodePolicyLengthExceededException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodePreconditionFailedException:
				fmt.Println(lambda.ErrCodePreconditionFailedException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) AddPermissionRequest

func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.Request, output *AddPermissionOutput)

AddPermissionRequest generates a "aws/request.Request" representing the client's request for the AddPermission operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AddPermission for more information on using the AddPermission API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AddPermissionRequest method.
req, resp := client.AddPermissionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermission

func (*Lambda) AddPermissionWithContext

func (c *Lambda) AddPermissionWithContext(ctx aws.Context, input *AddPermissionInput, opts ...request.Option) (*AddPermissionOutput, error)

AddPermissionWithContext is the same as AddPermission with the addition of the ability to pass a context and additional request options.

See AddPermission for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) CreateAlias

func (c *Lambda) CreateAlias(input *CreateAliasInput) (*AliasConfiguration, error)

CreateAlias API operation for AWS Lambda.

Creates an alias (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version.

You can also map an alias to split invocation requests between two versions. Use the RoutingConfig parameter to specify a second version and the percentage of invocation requests that it receives.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation CreateAlias for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • ResourceConflictException The resource already exists, or another operation is in progress.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAlias

Example (Shared00)

To create an alias for a Lambda function

The following example creates an alias named LIVE that points to version 1 of the my-function Lambda function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.CreateAliasInput{
		Description:     aws.String("alias for live version of function"),
		FunctionName:    aws.String("my-function"),
		FunctionVersion: aws.String("1"),
		Name:            aws.String("LIVE"),
	}

	result, err := svc.CreateAlias(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) CreateAliasRequest

func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *AliasConfiguration)

CreateAliasRequest generates a "aws/request.Request" representing the client's request for the CreateAlias operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateAlias for more information on using the CreateAlias API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateAliasRequest method.
req, resp := client.CreateAliasRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAlias

func (*Lambda) CreateAliasWithContext

func (c *Lambda) CreateAliasWithContext(ctx aws.Context, input *CreateAliasInput, opts ...request.Option) (*AliasConfiguration, error)

CreateAliasWithContext is the same as CreateAlias with the addition of the ability to pass a context and additional request options.

See CreateAlias for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) CreateCodeSigningConfig

func (c *Lambda) CreateCodeSigningConfig(input *CreateCodeSigningConfigInput) (*CreateCodeSigningConfigOutput, error)

CreateCodeSigningConfig API operation for AWS Lambda.

Creates a code signing configuration. A code signing configuration (https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html) defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation CreateCodeSigningConfig for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • InvalidParameterValueException One of the parameters in the request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateCodeSigningConfig

func (*Lambda) CreateCodeSigningConfigRequest

func (c *Lambda) CreateCodeSigningConfigRequest(input *CreateCodeSigningConfigInput) (req *request.Request, output *CreateCodeSigningConfigOutput)

CreateCodeSigningConfigRequest generates a "aws/request.Request" representing the client's request for the CreateCodeSigningConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateCodeSigningConfig for more information on using the CreateCodeSigningConfig API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateCodeSigningConfigRequest method.
req, resp := client.CreateCodeSigningConfigRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateCodeSigningConfig

func (*Lambda) CreateCodeSigningConfigWithContext

func (c *Lambda) CreateCodeSigningConfigWithContext(ctx aws.Context, input *CreateCodeSigningConfigInput, opts ...request.Option) (*CreateCodeSigningConfigOutput, error)

CreateCodeSigningConfigWithContext is the same as CreateCodeSigningConfig with the addition of the ability to pass a context and additional request options.

See CreateCodeSigningConfig for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) CreateEventSourceMapping

func (c *Lambda) CreateEventSourceMapping(input *CreateEventSourceMappingInput) (*EventSourceMappingConfiguration, error)

CreateEventSourceMapping API operation for AWS Lambda.

Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and triggers the function.

For details about each event source type, see the following topics.

The following error handling options are only available for stream sources (DynamoDB and Kinesis):

  • BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry.

  • DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic.

  • MaximumRecordAgeInSeconds - Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires

  • MaximumRetryAttempts - 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.

  • ParallelizationFactor - Process multiple batches from each shard concurrently.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation CreateEventSourceMapping for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceConflictException The resource already exists, or another operation is in progress.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ResourceNotFoundException The resource specified in the request does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping

Example (Shared00)

To create a mapping between an event source and an AWS Lambda function

The following example creates a mapping between an SQS queue and the my-function Lambda function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.CreateEventSourceMappingInput{
		BatchSize:      aws.Int64(5),
		EventSourceArn: aws.String("arn:aws:sqs:us-west-2:123456789012:my-queue"),
		FunctionName:   aws.String("my-function"),
	}

	result, err := svc.CreateEventSourceMapping(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) CreateEventSourceMappingRequest

func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration)

CreateEventSourceMappingRequest generates a "aws/request.Request" representing the client's request for the CreateEventSourceMapping operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateEventSourceMapping for more information on using the CreateEventSourceMapping API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateEventSourceMappingRequest method.
req, resp := client.CreateEventSourceMappingRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping

func (*Lambda) CreateEventSourceMappingWithContext

func (c *Lambda) CreateEventSourceMappingWithContext(ctx aws.Context, input *CreateEventSourceMappingInput, opts ...request.Option) (*EventSourceMappingConfiguration, error)

CreateEventSourceMappingWithContext is the same as CreateEventSourceMapping with the addition of the ability to pass a context and additional request options.

See CreateEventSourceMapping for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) CreateFunction

func (c *Lambda) CreateFunction(input *CreateFunctionInput) (*FunctionConfiguration, error)

CreateFunction API operation for AWS Lambda.

Creates a Lambda function. To create a function, you need a deployment package (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) and an execution role (https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role). The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.

You set the package type to Image if the deployment package is a container image (https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html). For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.

You set the package type to Zip if the deployment package is a .zip file archive (https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip). For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64 or arm64). If you do not specify the architecture, the default value is x86-64.

When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify the function. The State, StateReason, and StateReasonCode fields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Function States (https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html).

A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the Publish parameter to create version 1 of your function from its initial configuration.

The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).

You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set set of signing profiles, which define the trusted publishers for this function.

If another account or an Amazon Web Services service invokes your function, use AddPermission to grant permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version, or on an alias.

To invoke your function directly, use Invoke. To invoke your function in response to events in other Amazon Web Services services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Functions (https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation CreateFunction for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • ResourceConflictException The resource already exists, or another operation is in progress.

  • TooManyRequestsException The request throughput limit was exceeded.

  • CodeStorageExceededException You have exceeded your maximum total code size per account. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html)

  • 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.

  • InvalidCodeSignatureException The code signature failed the integrity check. Lambda always blocks deployment if the integrity check fails, even if code signing policy is set to WARN.

  • CodeSigningConfigNotFoundException The specified code signing configuration does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction

Example (Shared00)

To create a function

The following example creates a function with a deployment package in Amazon S3 and enables X-Ray tracing and environment variable encryption.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.CreateFunctionInput{
		Code: &lambda.FunctionCode{
			S3Bucket: aws.String("my-bucket-1xpuxmplzrlbh"),
			S3Key:    aws.String("function.zip"),
		},
		Description: aws.String("Process image objects from Amazon S3."),
		Environment: &lambda.Environment{
			Variables: map[string]*string{
				"BUCKET": aws.String("my-bucket-1xpuxmplzrlbh"),
				"PREFIX": aws.String("inbound"),
			},
		},
		FunctionName: aws.String("my-function"),
		Handler:      aws.String("index.handler"),
		KMSKeyArn:    aws.String("arn:aws:kms:us-west-2:123456789012:key/b0844d6c-xmpl-4463-97a4-d49f50839966"),
		MemorySize:   aws.Int64(256),
		Publish:      aws.Bool(true),
		Role:         aws.String("arn:aws:iam::123456789012:role/lambda-role"),
		Runtime:      aws.String("nodejs12.x"),
		Tags: map[string]*string{
			"DEPARTMENT": aws.String("Assets"),
		},
		Timeout: aws.Int64(15),
		TracingConfig: &lambda.TracingConfig{
			Mode: aws.String("Active"),
		},
	}

	result, err := svc.CreateFunction(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeCodeStorageExceededException:
				fmt.Println(lambda.ErrCodeCodeStorageExceededException, aerr.Error())
			case lambda.ErrCodeCodeVerificationFailedException:
				fmt.Println(lambda.ErrCodeCodeVerificationFailedException, aerr.Error())
			case lambda.ErrCodeInvalidCodeSignatureException:
				fmt.Println(lambda.ErrCodeInvalidCodeSignatureException, aerr.Error())
			case lambda.ErrCodeCodeSigningConfigNotFoundException:
				fmt.Println(lambda.ErrCodeCodeSigningConfigNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) CreateFunctionRequest

func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request.Request, output *FunctionConfiguration)

CreateFunctionRequest generates a "aws/request.Request" representing the client's request for the CreateFunction operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateFunction for more information on using the CreateFunction API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateFunctionRequest method.
req, resp := client.CreateFunctionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction

func (*Lambda) CreateFunctionWithContext

func (c *Lambda) CreateFunctionWithContext(ctx aws.Context, input *CreateFunctionInput, opts ...request.Option) (*FunctionConfiguration, error)

CreateFunctionWithContext is the same as CreateFunction with the addition of the ability to pass a context and additional request options.

See CreateFunction for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) DeleteAlias

func (c *Lambda) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error)

DeleteAlias API operation for AWS Lambda.

Deletes a Lambda function alias (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation DeleteAlias for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceConflictException The resource already exists, or another operation is in progress.

  • TooManyRequestsException The request throughput limit was exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteAlias

Example (Shared00)

To delete a Lambda function alias

The following example deletes an alias named BLUE from a function named my-function

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.DeleteAliasInput{
		FunctionName: aws.String("my-function"),
		Name:         aws.String("BLUE"),
	}

	result, err := svc.DeleteAlias(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) DeleteAliasRequest

func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, output *DeleteAliasOutput)

DeleteAliasRequest generates a "aws/request.Request" representing the client's request for the DeleteAlias operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteAlias for more information on using the DeleteAlias API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteAliasRequest method.
req, resp := client.DeleteAliasRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteAlias

func (*Lambda) DeleteAliasWithContext

func (c *Lambda) DeleteAliasWithContext(ctx aws.Context, input *DeleteAliasInput, opts ...request.Option) (*DeleteAliasOutput, error)

DeleteAliasWithContext is the same as DeleteAlias with the addition of the ability to pass a context and additional request options.

See DeleteAlias for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) DeleteCodeSigningConfig

func (c *Lambda) DeleteCodeSigningConfig(input *DeleteCodeSigningConfigInput) (*DeleteCodeSigningConfigOutput, error)

DeleteCodeSigningConfig API operation for AWS Lambda.

Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation DeleteCodeSigningConfig for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • ResourceConflictException The resource already exists, or another operation is in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteCodeSigningConfig

func (*Lambda) DeleteCodeSigningConfigRequest

func (c *Lambda) DeleteCodeSigningConfigRequest(input *DeleteCodeSigningConfigInput) (req *request.Request, output *DeleteCodeSigningConfigOutput)

DeleteCodeSigningConfigRequest generates a "aws/request.Request" representing the client's request for the DeleteCodeSigningConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteCodeSigningConfig for more information on using the DeleteCodeSigningConfig API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteCodeSigningConfigRequest method.
req, resp := client.DeleteCodeSigningConfigRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteCodeSigningConfig

func (*Lambda) DeleteCodeSigningConfigWithContext

func (c *Lambda) DeleteCodeSigningConfigWithContext(ctx aws.Context, input *DeleteCodeSigningConfigInput, opts ...request.Option) (*DeleteCodeSigningConfigOutput, error)

DeleteCodeSigningConfigWithContext is the same as DeleteCodeSigningConfig with the addition of the ability to pass a context and additional request options.

See DeleteCodeSigningConfig for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) DeleteEventSourceMapping

func (c *Lambda) DeleteEventSourceMapping(input *DeleteEventSourceMappingInput) (*EventSourceMappingConfiguration, error)

DeleteEventSourceMapping API operation for AWS Lambda.

Deletes an event source mapping (https://docs.aws.amazon.com/lambda/latest/dg/intro-invocation-modes.html). You can get the identifier of a mapping from the output of ListEventSourceMappings.

When you delete an event source mapping, it enters a Deleting state and might not be completely deleted for several seconds.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation DeleteEventSourceMapping for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ResourceInUseException The operation conflicts with the resource's availability. For example, you attempted to update an EventSource Mapping in CREATING, or tried to delete a EventSource mapping currently in the UPDATING state.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping

Example (Shared00)

To delete a Lambda function event source mapping

The following example deletes an event source mapping. To get a mapping's UUID, use ListEventSourceMappings.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.DeleteEventSourceMappingInput{
		UUID: aws.String("14e0db71-xmpl-4eb5-b481-8945cf9d10c2"),
	}

	result, err := svc.DeleteEventSourceMapping(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeResourceInUseException:
				fmt.Println(lambda.ErrCodeResourceInUseException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) DeleteEventSourceMappingRequest

func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration)

DeleteEventSourceMappingRequest generates a "aws/request.Request" representing the client's request for the DeleteEventSourceMapping operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteEventSourceMapping for more information on using the DeleteEventSourceMapping API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteEventSourceMappingRequest method.
req, resp := client.DeleteEventSourceMappingRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping

func (*Lambda) DeleteEventSourceMappingWithContext

func (c *Lambda) DeleteEventSourceMappingWithContext(ctx aws.Context, input *DeleteEventSourceMappingInput, opts ...request.Option) (*EventSourceMappingConfiguration, error)

DeleteEventSourceMappingWithContext is the same as DeleteEventSourceMapping with the addition of the ability to pass a context and additional request options.

See DeleteEventSourceMapping for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) DeleteFunction

func (c *Lambda) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutput, error)

DeleteFunction API operation for AWS Lambda.

Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted.

To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For Amazon Web Services services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation DeleteFunction for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • TooManyRequestsException The request throughput limit was exceeded.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceConflictException The resource already exists, or another operation is in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunction

Example (Shared00)

To delete a version of a Lambda function

The following example deletes version 1 of a Lambda function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.DeleteFunctionInput{
		FunctionName: aws.String("my-function"),
		Qualifier:    aws.String("1"),
	}

	result, err := svc.DeleteFunction(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) DeleteFunctionCodeSigningConfig

func (c *Lambda) DeleteFunctionCodeSigningConfig(input *DeleteFunctionCodeSigningConfigInput) (*DeleteFunctionCodeSigningConfigOutput, error)

DeleteFunctionCodeSigningConfig API operation for AWS Lambda.

Removes the code signing configuration from the function.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation DeleteFunctionCodeSigningConfig for usage and error information.

Returned Error Types:

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • CodeSigningConfigNotFoundException The specified code signing configuration does not exist.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • ServiceException The Lambda service encountered an internal error.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ResourceConflictException The resource already exists, or another operation is in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionCodeSigningConfig

func (*Lambda) DeleteFunctionCodeSigningConfigRequest

func (c *Lambda) DeleteFunctionCodeSigningConfigRequest(input *DeleteFunctionCodeSigningConfigInput) (req *request.Request, output *DeleteFunctionCodeSigningConfigOutput)

DeleteFunctionCodeSigningConfigRequest generates a "aws/request.Request" representing the client's request for the DeleteFunctionCodeSigningConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteFunctionCodeSigningConfig for more information on using the DeleteFunctionCodeSigningConfig API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteFunctionCodeSigningConfigRequest method.
req, resp := client.DeleteFunctionCodeSigningConfigRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionCodeSigningConfig

func (*Lambda) DeleteFunctionCodeSigningConfigWithContext

func (c *Lambda) DeleteFunctionCodeSigningConfigWithContext(ctx aws.Context, input *DeleteFunctionCodeSigningConfigInput, opts ...request.Option) (*DeleteFunctionCodeSigningConfigOutput, error)

DeleteFunctionCodeSigningConfigWithContext is the same as DeleteFunctionCodeSigningConfig with the addition of the ability to pass a context and additional request options.

See DeleteFunctionCodeSigningConfig for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) DeleteFunctionConcurrency

func (c *Lambda) DeleteFunctionConcurrency(input *DeleteFunctionConcurrencyInput) (*DeleteFunctionConcurrencyOutput, error)

DeleteFunctionConcurrency API operation for AWS Lambda.

Removes a concurrent execution limit from a function.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation DeleteFunctionConcurrency for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • TooManyRequestsException The request throughput limit was exceeded.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceConflictException The resource already exists, or another operation is in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionConcurrency

Example (Shared00)

To remove the reserved concurrent execution limit from a function

The following example deletes the reserved concurrent execution limit from a function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.DeleteFunctionConcurrencyInput{
		FunctionName: aws.String("my-function"),
	}

	result, err := svc.DeleteFunctionConcurrency(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) DeleteFunctionConcurrencyRequest

func (c *Lambda) DeleteFunctionConcurrencyRequest(input *DeleteFunctionConcurrencyInput) (req *request.Request, output *DeleteFunctionConcurrencyOutput)

DeleteFunctionConcurrencyRequest generates a "aws/request.Request" representing the client's request for the DeleteFunctionConcurrency operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteFunctionConcurrency for more information on using the DeleteFunctionConcurrency API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteFunctionConcurrencyRequest method.
req, resp := client.DeleteFunctionConcurrencyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionConcurrency

func (*Lambda) DeleteFunctionConcurrencyWithContext

func (c *Lambda) DeleteFunctionConcurrencyWithContext(ctx aws.Context, input *DeleteFunctionConcurrencyInput, opts ...request.Option) (*DeleteFunctionConcurrencyOutput, error)

DeleteFunctionConcurrencyWithContext is the same as DeleteFunctionConcurrency with the addition of the ability to pass a context and additional request options.

See DeleteFunctionConcurrency for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) DeleteFunctionEventInvokeConfig

func (c *Lambda) DeleteFunctionEventInvokeConfig(input *DeleteFunctionEventInvokeConfigInput) (*DeleteFunctionEventInvokeConfigOutput, error)

DeleteFunctionEventInvokeConfig API operation for AWS Lambda.

Deletes the configuration for asynchronous invocation for a function, version, or alias.

To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation DeleteFunctionEventInvokeConfig for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ResourceConflictException The resource already exists, or another operation is in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionEventInvokeConfig

Example (Shared00)

To delete an asynchronous invocation configuration

The following example deletes the asynchronous invocation configuration for the GREEN alias of a function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.DeleteFunctionEventInvokeConfigInput{
		FunctionName: aws.String("my-function"),
		Qualifier:    aws.String("GREEN"),
	}

	result, err := svc.DeleteFunctionEventInvokeConfig(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) DeleteFunctionEventInvokeConfigRequest

func (c *Lambda) DeleteFunctionEventInvokeConfigRequest(input *DeleteFunctionEventInvokeConfigInput) (req *request.Request, output *DeleteFunctionEventInvokeConfigOutput)

DeleteFunctionEventInvokeConfigRequest generates a "aws/request.Request" representing the client's request for the DeleteFunctionEventInvokeConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteFunctionEventInvokeConfig for more information on using the DeleteFunctionEventInvokeConfig API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteFunctionEventInvokeConfigRequest method.
req, resp := client.DeleteFunctionEventInvokeConfigRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionEventInvokeConfig

func (*Lambda) DeleteFunctionEventInvokeConfigWithContext

func (c *Lambda) DeleteFunctionEventInvokeConfigWithContext(ctx aws.Context, input *DeleteFunctionEventInvokeConfigInput, opts ...request.Option) (*DeleteFunctionEventInvokeConfigOutput, error)

DeleteFunctionEventInvokeConfigWithContext is the same as DeleteFunctionEventInvokeConfig with the addition of the ability to pass a context and additional request options.

See DeleteFunctionEventInvokeConfig for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) DeleteFunctionRequest

func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request.Request, output *DeleteFunctionOutput)

DeleteFunctionRequest generates a "aws/request.Request" representing the client's request for the DeleteFunction operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteFunction for more information on using the DeleteFunction API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteFunctionRequest method.
req, resp := client.DeleteFunctionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunction

func (*Lambda) DeleteFunctionWithContext

func (c *Lambda) DeleteFunctionWithContext(ctx aws.Context, input *DeleteFunctionInput, opts ...request.Option) (*DeleteFunctionOutput, error)

DeleteFunctionWithContext is the same as DeleteFunction with the addition of the ability to pass a context and additional request options.

See DeleteFunction for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) DeleteLayerVersion

func (c *Lambda) DeleteLayerVersion(input *DeleteLayerVersionInput) (*DeleteLayerVersionOutput, error)

DeleteLayerVersion API operation for AWS Lambda.

Deletes a version of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation DeleteLayerVersion for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • TooManyRequestsException The request throughput limit was exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteLayerVersion

Example (Shared00)

To delete a version of a Lambda layer

The following example deletes version 2 of a layer named my-layer.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.DeleteLayerVersionInput{
		LayerName:     aws.String("my-layer"),
		VersionNumber: aws.Int64(2),
	}

	result, err := svc.DeleteLayerVersion(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) DeleteLayerVersionRequest

func (c *Lambda) DeleteLayerVersionRequest(input *DeleteLayerVersionInput) (req *request.Request, output *DeleteLayerVersionOutput)

DeleteLayerVersionRequest generates a "aws/request.Request" representing the client's request for the DeleteLayerVersion operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteLayerVersion for more information on using the DeleteLayerVersion API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteLayerVersionRequest method.
req, resp := client.DeleteLayerVersionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteLayerVersion

func (*Lambda) DeleteLayerVersionWithContext

func (c *Lambda) DeleteLayerVersionWithContext(ctx aws.Context, input *DeleteLayerVersionInput, opts ...request.Option) (*DeleteLayerVersionOutput, error)

DeleteLayerVersionWithContext is the same as DeleteLayerVersion with the addition of the ability to pass a context and additional request options.

See DeleteLayerVersion for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) DeleteProvisionedConcurrencyConfig

func (c *Lambda) DeleteProvisionedConcurrencyConfig(input *DeleteProvisionedConcurrencyConfigInput) (*DeleteProvisionedConcurrencyConfigOutput, error)

DeleteProvisionedConcurrencyConfig API operation for AWS Lambda.

Deletes the provisioned concurrency configuration for a function.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation DeleteProvisionedConcurrencyConfig for usage and error information.

Returned Error Types:

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceConflictException The resource already exists, or another operation is in progress.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ServiceException The Lambda service encountered an internal error.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteProvisionedConcurrencyConfig

Example (Shared00)

To delete a provisioned concurrency configuration

The following example deletes the provisioned concurrency configuration for the GREEN alias of a function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.DeleteProvisionedConcurrencyConfigInput{
		FunctionName: aws.String("my-function"),
		Qualifier:    aws.String("GREEN"),
	}

	result, err := svc.DeleteProvisionedConcurrencyConfig(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) DeleteProvisionedConcurrencyConfigRequest

func (c *Lambda) DeleteProvisionedConcurrencyConfigRequest(input *DeleteProvisionedConcurrencyConfigInput) (req *request.Request, output *DeleteProvisionedConcurrencyConfigOutput)

DeleteProvisionedConcurrencyConfigRequest generates a "aws/request.Request" representing the client's request for the DeleteProvisionedConcurrencyConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteProvisionedConcurrencyConfig for more information on using the DeleteProvisionedConcurrencyConfig API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteProvisionedConcurrencyConfigRequest method.
req, resp := client.DeleteProvisionedConcurrencyConfigRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteProvisionedConcurrencyConfig

func (*Lambda) DeleteProvisionedConcurrencyConfigWithContext

func (c *Lambda) DeleteProvisionedConcurrencyConfigWithContext(ctx aws.Context, input *DeleteProvisionedConcurrencyConfigInput, opts ...request.Option) (*DeleteProvisionedConcurrencyConfigOutput, error)

DeleteProvisionedConcurrencyConfigWithContext is the same as DeleteProvisionedConcurrencyConfig with the addition of the ability to pass a context and additional request options.

See DeleteProvisionedConcurrencyConfig for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) GetAccountSettings

func (c *Lambda) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error)

GetAccountSettings API operation for AWS Lambda.

Retrieves details about your account's limits (https://docs.aws.amazon.com/lambda/latest/dg/limits.html) and usage in an Amazon Web Services Region.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation GetAccountSettings for usage and error information.

Returned Error Types:

  • TooManyRequestsException The request throughput limit was exceeded.

  • ServiceException The Lambda service encountered an internal error.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettings

Example (Shared00)

To get account settings

This operation takes no parameters and returns details about storage and concurrency quotas in the current Region.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.GetAccountSettingsInput{}

	result, err := svc.GetAccountSettings(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) GetAccountSettingsRequest

func (c *Lambda) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req *request.Request, output *GetAccountSettingsOutput)

GetAccountSettingsRequest generates a "aws/request.Request" representing the client's request for the GetAccountSettings operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetAccountSettings for more information on using the GetAccountSettings API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetAccountSettingsRequest method.
req, resp := client.GetAccountSettingsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettings

func (*Lambda) GetAccountSettingsWithContext

func (c *Lambda) GetAccountSettingsWithContext(ctx aws.Context, input *GetAccountSettingsInput, opts ...request.Option) (*GetAccountSettingsOutput, error)

GetAccountSettingsWithContext is the same as GetAccountSettings with the addition of the ability to pass a context and additional request options.

See GetAccountSettings for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) GetAlias

func (c *Lambda) GetAlias(input *GetAliasInput) (*AliasConfiguration, error)

GetAlias API operation for AWS Lambda.

Returns details about a Lambda function alias (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation GetAlias for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAlias

Example (Shared00)

To get a Lambda function alias

The following example returns details about an alias named BLUE for a function named my-function

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.GetAliasInput{
		FunctionName: aws.String("my-function"),
		Name:         aws.String("BLUE"),
	}

	result, err := svc.GetAlias(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) GetAliasRequest

func (c *Lambda) GetAliasRequest(input *GetAliasInput) (req *request.Request, output *AliasConfiguration)

GetAliasRequest generates a "aws/request.Request" representing the client's request for the GetAlias operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetAlias for more information on using the GetAlias API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetAliasRequest method.
req, resp := client.GetAliasRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAlias

func (*Lambda) GetAliasWithContext

func (c *Lambda) GetAliasWithContext(ctx aws.Context, input *GetAliasInput, opts ...request.Option) (*AliasConfiguration, error)

GetAliasWithContext is the same as GetAlias with the addition of the ability to pass a context and additional request options.

See GetAlias for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) GetCodeSigningConfig

func (c *Lambda) GetCodeSigningConfig(input *GetCodeSigningConfigInput) (*GetCodeSigningConfigOutput, error)

GetCodeSigningConfig API operation for AWS Lambda.

Returns information about the specified code signing configuration.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation GetCodeSigningConfig for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceNotFoundException The resource specified in the request does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetCodeSigningConfig

func (*Lambda) GetCodeSigningConfigRequest

func (c *Lambda) GetCodeSigningConfigRequest(input *GetCodeSigningConfigInput) (req *request.Request, output *GetCodeSigningConfigOutput)

GetCodeSigningConfigRequest generates a "aws/request.Request" representing the client's request for the GetCodeSigningConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetCodeSigningConfig for more information on using the GetCodeSigningConfig API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetCodeSigningConfigRequest method.
req, resp := client.GetCodeSigningConfigRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetCodeSigningConfig

func (*Lambda) GetCodeSigningConfigWithContext

func (c *Lambda) GetCodeSigningConfigWithContext(ctx aws.Context, input *GetCodeSigningConfigInput, opts ...request.Option) (*GetCodeSigningConfigOutput, error)

GetCodeSigningConfigWithContext is the same as GetCodeSigningConfig with the addition of the ability to pass a context and additional request options.

See GetCodeSigningConfig for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) GetEventSourceMapping

func (c *Lambda) GetEventSourceMapping(input *GetEventSourceMappingInput) (*EventSourceMappingConfiguration, error)

GetEventSourceMapping API operation for AWS Lambda.

Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation GetEventSourceMapping for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping

Example (Shared00)

To get a Lambda function's event source mapping

The following example returns details about an event source mapping. To get a mapping's UUID, use ListEventSourceMappings.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.GetEventSourceMappingInput{
		UUID: aws.String("14e0db71-xmpl-4eb5-b481-8945cf9d10c2"),
	}

	result, err := svc.GetEventSourceMapping(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) GetEventSourceMappingRequest

func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration)

GetEventSourceMappingRequest generates a "aws/request.Request" representing the client's request for the GetEventSourceMapping operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetEventSourceMapping for more information on using the GetEventSourceMapping API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetEventSourceMappingRequest method.
req, resp := client.GetEventSourceMappingRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping

func (*Lambda) GetEventSourceMappingWithContext

func (c *Lambda) GetEventSourceMappingWithContext(ctx aws.Context, input *GetEventSourceMappingInput, opts ...request.Option) (*EventSourceMappingConfiguration, error)

GetEventSourceMappingWithContext is the same as GetEventSourceMapping with the addition of the ability to pass a context and additional request options.

See GetEventSourceMapping for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) GetFunction

func (c *Lambda) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error)

GetFunction API operation for AWS Lambda.

Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation GetFunction for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • TooManyRequestsException The request throughput limit was exceeded.

  • InvalidParameterValueException One of the parameters in the request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunction

Example (Shared00)

To get a Lambda function

The following example returns code and configuration details for version 1 of a function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.GetFunctionInput{
		FunctionName: aws.String("my-function"),
		Qualifier:    aws.String("1"),
	}

	result, err := svc.GetFunction(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) GetFunctionCodeSigningConfig

func (c *Lambda) GetFunctionCodeSigningConfig(input *GetFunctionCodeSigningConfigInput) (*GetFunctionCodeSigningConfigOutput, error)

GetFunctionCodeSigningConfig API operation for AWS Lambda.

Returns the code signing configuration for the specified function.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation GetFunctionCodeSigningConfig for usage and error information.

Returned Error Types:

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • ServiceException The Lambda service encountered an internal error.

  • TooManyRequestsException The request throughput limit was exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionCodeSigningConfig

func (*Lambda) GetFunctionCodeSigningConfigRequest

func (c *Lambda) GetFunctionCodeSigningConfigRequest(input *GetFunctionCodeSigningConfigInput) (req *request.Request, output *GetFunctionCodeSigningConfigOutput)

GetFunctionCodeSigningConfigRequest generates a "aws/request.Request" representing the client's request for the GetFunctionCodeSigningConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetFunctionCodeSigningConfig for more information on using the GetFunctionCodeSigningConfig API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetFunctionCodeSigningConfigRequest method.
req, resp := client.GetFunctionCodeSigningConfigRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionCodeSigningConfig

func (*Lambda) GetFunctionCodeSigningConfigWithContext

func (c *Lambda) GetFunctionCodeSigningConfigWithContext(ctx aws.Context, input *GetFunctionCodeSigningConfigInput, opts ...request.Option) (*GetFunctionCodeSigningConfigOutput, error)

GetFunctionCodeSigningConfigWithContext is the same as GetFunctionCodeSigningConfig with the addition of the ability to pass a context and additional request options.

See GetFunctionCodeSigningConfig for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) GetFunctionConcurrency

func (c *Lambda) GetFunctionConcurrency(input *GetFunctionConcurrencyInput) (*GetFunctionConcurrencyOutput, error)

GetFunctionConcurrency API operation for AWS Lambda.

Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation GetFunctionConcurrency for usage and error information.

Returned Error Types:

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ServiceException The Lambda service encountered an internal error.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConcurrency

Example (Shared00)

To get the reserved concurrency setting for a function

The following example returns the reserved concurrency setting for a function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.GetFunctionConcurrencyInput{
		FunctionName: aws.String("my-function"),
	}

	result, err := svc.GetFunctionConcurrency(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) GetFunctionConcurrencyRequest

func (c *Lambda) GetFunctionConcurrencyRequest(input *GetFunctionConcurrencyInput) (req *request.Request, output *GetFunctionConcurrencyOutput)

GetFunctionConcurrencyRequest generates a "aws/request.Request" representing the client's request for the GetFunctionConcurrency operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetFunctionConcurrency for more information on using the GetFunctionConcurrency API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetFunctionConcurrencyRequest method.
req, resp := client.GetFunctionConcurrencyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConcurrency

func (*Lambda) GetFunctionConcurrencyWithContext

func (c *Lambda) GetFunctionConcurrencyWithContext(ctx aws.Context, input *GetFunctionConcurrencyInput, opts ...request.Option) (*GetFunctionConcurrencyOutput, error)

GetFunctionConcurrencyWithContext is the same as GetFunctionConcurrency with the addition of the ability to pass a context and additional request options.

See GetFunctionConcurrency for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) GetFunctionConfiguration

func (c *Lambda) GetFunctionConfiguration(input *GetFunctionConfigurationInput) (*FunctionConfiguration, error)

GetFunctionConfiguration API operation for AWS Lambda.

Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration.

To get all of a function's details, including function-level settings, use GetFunction.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation GetFunctionConfiguration for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • TooManyRequestsException The request throughput limit was exceeded.

  • InvalidParameterValueException One of the parameters in the request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfiguration

Example (Shared00)

To get a Lambda function's event source mapping

The following example returns and configuration details for version 1 of a function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.GetFunctionConfigurationInput{
		FunctionName: aws.String("my-function"),
		Qualifier:    aws.String("1"),
	}

	result, err := svc.GetFunctionConfiguration(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) GetFunctionConfigurationRequest

func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration)

GetFunctionConfigurationRequest generates a "aws/request.Request" representing the client's request for the GetFunctionConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetFunctionConfiguration for more information on using the GetFunctionConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetFunctionConfigurationRequest method.
req, resp := client.GetFunctionConfigurationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfiguration

func (*Lambda) GetFunctionConfigurationWithContext

func (c *Lambda) GetFunctionConfigurationWithContext(ctx aws.Context, input *GetFunctionConfigurationInput, opts ...request.Option) (*FunctionConfiguration, error)

GetFunctionConfigurationWithContext is the same as GetFunctionConfiguration with the addition of the ability to pass a context and additional request options.

See GetFunctionConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) GetFunctionEventInvokeConfig

func (c *Lambda) GetFunctionEventInvokeConfig(input *GetFunctionEventInvokeConfigInput) (*GetFunctionEventInvokeConfigOutput, error)

GetFunctionEventInvokeConfig API operation for AWS Lambda.

Retrieves the configuration for asynchronous invocation for a function, version, or alias.

To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation GetFunctionEventInvokeConfig for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionEventInvokeConfig

Example (Shared00)

To get an asynchronous invocation configuration

The following example returns the asynchronous invocation configuration for the BLUE alias of a function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.GetFunctionEventInvokeConfigInput{
		FunctionName: aws.String("my-function"),
		Qualifier:    aws.String("BLUE"),
	}

	result, err := svc.GetFunctionEventInvokeConfig(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) GetFunctionEventInvokeConfigRequest

func (c *Lambda) GetFunctionEventInvokeConfigRequest(input *GetFunctionEventInvokeConfigInput) (req *request.Request, output *GetFunctionEventInvokeConfigOutput)

GetFunctionEventInvokeConfigRequest generates a "aws/request.Request" representing the client's request for the GetFunctionEventInvokeConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetFunctionEventInvokeConfig for more information on using the GetFunctionEventInvokeConfig API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetFunctionEventInvokeConfigRequest method.
req, resp := client.GetFunctionEventInvokeConfigRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionEventInvokeConfig

func (*Lambda) GetFunctionEventInvokeConfigWithContext

func (c *Lambda) GetFunctionEventInvokeConfigWithContext(ctx aws.Context, input *GetFunctionEventInvokeConfigInput, opts ...request.Option) (*GetFunctionEventInvokeConfigOutput, error)

GetFunctionEventInvokeConfigWithContext is the same as GetFunctionEventInvokeConfig with the addition of the ability to pass a context and additional request options.

See GetFunctionEventInvokeConfig for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) GetFunctionRequest

func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Request, output *GetFunctionOutput)

GetFunctionRequest generates a "aws/request.Request" representing the client's request for the GetFunction operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetFunction for more information on using the GetFunction API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetFunctionRequest method.
req, resp := client.GetFunctionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunction

func (*Lambda) GetFunctionWithContext

func (c *Lambda) GetFunctionWithContext(ctx aws.Context, input *GetFunctionInput, opts ...request.Option) (*GetFunctionOutput, error)

GetFunctionWithContext is the same as GetFunction with the addition of the ability to pass a context and additional request options.

See GetFunction for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) GetLayerVersion

func (c *Lambda) GetLayerVersion(input *GetLayerVersionInput) (*GetLayerVersionOutput, error)

GetLayerVersion API operation for AWS Lambda.

Returns information about a version of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html), with a link to download the layer archive that's valid for 10 minutes.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation GetLayerVersion for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ResourceNotFoundException The resource specified in the request does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersion

Example (Shared00)

To get information about a Lambda layer version

The following example returns information for version 1 of a layer named my-layer.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.GetLayerVersionInput{
		LayerName:     aws.String("my-layer"),
		VersionNumber: aws.Int64(1),
	}

	result, err := svc.GetLayerVersion(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) GetLayerVersionByArn

func (c *Lambda) GetLayerVersionByArn(input *GetLayerVersionByArnInput) (*GetLayerVersionByArnOutput, error)

GetLayerVersionByArn API operation for AWS Lambda.

Returns information about a version of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html), with a link to download the layer archive that's valid for 10 minutes.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation GetLayerVersionByArn for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ResourceNotFoundException The resource specified in the request does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionByArn

Example (Shared00)

To get information about a Lambda layer version

The following example returns information about the layer version with the specified Amazon Resource Name (ARN).

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.GetLayerVersionByArnInput{
		Arn: aws.String("arn:aws:lambda:ca-central-1:123456789012:layer:blank-python-lib:3"),
	}

	result, err := svc.GetLayerVersionByArn(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) GetLayerVersionByArnRequest

func (c *Lambda) GetLayerVersionByArnRequest(input *GetLayerVersionByArnInput) (req *request.Request, output *GetLayerVersionByArnOutput)

GetLayerVersionByArnRequest generates a "aws/request.Request" representing the client's request for the GetLayerVersionByArn operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetLayerVersionByArn for more information on using the GetLayerVersionByArn API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetLayerVersionByArnRequest method.
req, resp := client.GetLayerVersionByArnRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionByArn

func (*Lambda) GetLayerVersionByArnWithContext

func (c *Lambda) GetLayerVersionByArnWithContext(ctx aws.Context, input *GetLayerVersionByArnInput, opts ...request.Option) (*GetLayerVersionByArnOutput, error)

GetLayerVersionByArnWithContext is the same as GetLayerVersionByArn with the addition of the ability to pass a context and additional request options.

See GetLayerVersionByArn for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) GetLayerVersionPolicy

func (c *Lambda) GetLayerVersionPolicy(input *GetLayerVersionPolicyInput) (*GetLayerVersionPolicyOutput, error)

GetLayerVersionPolicy API operation for AWS Lambda.

Returns the permission policy for a version of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). For more information, see AddLayerVersionPermission.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation GetLayerVersionPolicy for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • TooManyRequestsException The request throughput limit was exceeded.

  • InvalidParameterValueException One of the parameters in the request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionPolicy

func (*Lambda) GetLayerVersionPolicyRequest

func (c *Lambda) GetLayerVersionPolicyRequest(input *GetLayerVersionPolicyInput) (req *request.Request, output *GetLayerVersionPolicyOutput)

GetLayerVersionPolicyRequest generates a "aws/request.Request" representing the client's request for the GetLayerVersionPolicy operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetLayerVersionPolicy for more information on using the GetLayerVersionPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetLayerVersionPolicyRequest method.
req, resp := client.GetLayerVersionPolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionPolicy

func (*Lambda) GetLayerVersionPolicyWithContext

func (c *Lambda) GetLayerVersionPolicyWithContext(ctx aws.Context, input *GetLayerVersionPolicyInput, opts ...request.Option) (*GetLayerVersionPolicyOutput, error)

GetLayerVersionPolicyWithContext is the same as GetLayerVersionPolicy with the addition of the ability to pass a context and additional request options.

See GetLayerVersionPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) GetLayerVersionRequest

func (c *Lambda) GetLayerVersionRequest(input *GetLayerVersionInput) (req *request.Request, output *GetLayerVersionOutput)

GetLayerVersionRequest generates a "aws/request.Request" representing the client's request for the GetLayerVersion operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetLayerVersion for more information on using the GetLayerVersion API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetLayerVersionRequest method.
req, resp := client.GetLayerVersionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersion

func (*Lambda) GetLayerVersionWithContext

func (c *Lambda) GetLayerVersionWithContext(ctx aws.Context, input *GetLayerVersionInput, opts ...request.Option) (*GetLayerVersionOutput, error)

GetLayerVersionWithContext is the same as GetLayerVersion with the addition of the ability to pass a context and additional request options.

See GetLayerVersion for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) GetPolicy

func (c *Lambda) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error)

GetPolicy API operation for AWS Lambda.

Returns the resource-based IAM policy (https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html) for a function, version, or alias.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation GetPolicy for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • TooManyRequestsException The request throughput limit was exceeded.

  • InvalidParameterValueException One of the parameters in the request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicy

Example (Shared00)

To retrieve a Lambda function policy

The following example returns the resource-based policy for version 1 of a Lambda function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.GetPolicyInput{
		FunctionName: aws.String("my-function"),
		Qualifier:    aws.String("1"),
	}

	result, err := svc.GetPolicy(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) GetPolicyRequest

func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, output *GetPolicyOutput)

GetPolicyRequest generates a "aws/request.Request" representing the client's request for the GetPolicy operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetPolicy for more information on using the GetPolicy API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetPolicyRequest method.
req, resp := client.GetPolicyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicy

func (*Lambda) GetPolicyWithContext

func (c *Lambda) GetPolicyWithContext(ctx aws.Context, input *GetPolicyInput, opts ...request.Option) (*GetPolicyOutput, error)

GetPolicyWithContext is the same as GetPolicy with the addition of the ability to pass a context and additional request options.

See GetPolicy for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) GetProvisionedConcurrencyConfig

func (c *Lambda) GetProvisionedConcurrencyConfig(input *GetProvisionedConcurrencyConfigInput) (*GetProvisionedConcurrencyConfigOutput, error)

GetProvisionedConcurrencyConfig API operation for AWS Lambda.

Retrieves the provisioned concurrency configuration for a function's alias or version.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation GetProvisionedConcurrencyConfig for usage and error information.

Returned Error Types:

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ServiceException The Lambda service encountered an internal error.

  • ProvisionedConcurrencyConfigNotFoundException The specified configuration does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetProvisionedConcurrencyConfig

Example (Shared00)

To get a provisioned concurrency configuration

The following example returns details for the provisioned concurrency configuration for the BLUE alias of the specified function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.GetProvisionedConcurrencyConfigInput{
		FunctionName: aws.String("my-function"),
		Qualifier:    aws.String("BLUE"),
	}

	result, err := svc.GetProvisionedConcurrencyConfig(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeProvisionedConcurrencyConfigNotFoundException:
				fmt.Println(lambda.ErrCodeProvisionedConcurrencyConfigNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To view a provisioned concurrency configuration

The following example displays details for the provisioned concurrency configuration for the BLUE alias of the specified function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.GetProvisionedConcurrencyConfigInput{
		FunctionName: aws.String("my-function"),
		Qualifier:    aws.String("BLUE"),
	}

	result, err := svc.GetProvisionedConcurrencyConfig(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeProvisionedConcurrencyConfigNotFoundException:
				fmt.Println(lambda.ErrCodeProvisionedConcurrencyConfigNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) GetProvisionedConcurrencyConfigRequest

func (c *Lambda) GetProvisionedConcurrencyConfigRequest(input *GetProvisionedConcurrencyConfigInput) (req *request.Request, output *GetProvisionedConcurrencyConfigOutput)

GetProvisionedConcurrencyConfigRequest generates a "aws/request.Request" representing the client's request for the GetProvisionedConcurrencyConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetProvisionedConcurrencyConfig for more information on using the GetProvisionedConcurrencyConfig API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetProvisionedConcurrencyConfigRequest method.
req, resp := client.GetProvisionedConcurrencyConfigRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetProvisionedConcurrencyConfig

func (*Lambda) GetProvisionedConcurrencyConfigWithContext

func (c *Lambda) GetProvisionedConcurrencyConfigWithContext(ctx aws.Context, input *GetProvisionedConcurrencyConfigInput, opts ...request.Option) (*GetProvisionedConcurrencyConfigOutput, error)

GetProvisionedConcurrencyConfigWithContext is the same as GetProvisionedConcurrencyConfig with the addition of the ability to pass a context and additional request options.

See GetProvisionedConcurrencyConfig for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) Invoke

func (c *Lambda) Invoke(input *InvokeInput) (*InvokeOutput, error)

Invoke API operation for AWS Lambda.

Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. To invoke a function asynchronously, set InvocationType to Event.

For synchronous invocation (https://docs.aws.amazon.com/lambda/latest/dg/invocation-sync.html), details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the execution log (https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions.html) and trace (https://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html).

When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see Retry Behavior (https://docs.aws.amazon.com/lambda/latest/dg/retries-on-errors.html).

For asynchronous invocation (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html), Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a dead-letter queue (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq).

The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your function from executing, such as permissions errors, limit errors (https://docs.aws.amazon.com/lambda/latest/dg/limits.html), or issues with your function's code and configuration. For example, Lambda returns TooManyRequestsException if executing the function would cause you to exceed a concurrency limit at either the account level (ConcurrentInvocationLimitExceeded) or function level (ReservedFunctionConcurrentInvocationLimitExceeded).

For functions with a long timeout, your client might be disconnected during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.

This operation requires permission for the lambda:InvokeFunction (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html) action.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation Invoke for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidRequestContentException The request body could not be parsed as JSON.

  • RequestTooLargeException The request payload exceeded the Invoke request body JSON input limit. For more information, see Limits (https://docs.aws.amazon.com/lambda/latest/dg/limits.html).

  • UnsupportedMediaTypeException The content type of the Invoke request body is not JSON.

  • TooManyRequestsException The request throughput limit was exceeded.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • EC2UnexpectedException Lambda received an unexpected EC2 client exception while setting up for the Lambda function.

  • SubnetIPAddressLimitReachedException Lambda was not able to set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.

  • ENILimitReachedException Lambda was not able to create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached.

  • EFSMountConnectivityException The function couldn't make a network connection to the configured file system.

  • EFSMountFailureException The function couldn't mount the configured file system due to a permission or configuration issue.

  • EFSMountTimeoutException The function was able to make a network connection to the configured file system, but the mount operation timed out.

  • EFSIOException An error occurred when reading from or writing to a connected file system.

  • EC2ThrottledException Lambda was throttled by Amazon EC2 during Lambda function initialization using the execution role provided for the Lambda function.

  • EC2AccessDeniedException Need additional permissions to configure VPC settings.

  • InvalidSubnetIDException The Subnet ID provided in the Lambda function VPC configuration is invalid.

  • InvalidSecurityGroupIDException The Security Group ID provided in the Lambda function VPC configuration is invalid.

  • InvalidZipFileException Lambda could not unzip the deployment package.

  • KMSDisabledException Lambda was unable to decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.

  • KMSInvalidStateException Lambda was unable to decrypt the environment variables because the KMS key used is in an invalid state for Decrypt. Check the function's KMS key settings.

  • KMSAccessDeniedException Lambda was unable to decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.

  • KMSNotFoundException Lambda was unable to decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.

  • InvalidRuntimeException The runtime or runtime version specified is not supported.

  • ResourceConflictException The resource already exists, or another operation is in progress.

  • ResourceNotReadyException The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Invoke

Example (Shared00)

To invoke a Lambda function

The following example invokes version 1 of a function named my-function with an empty event payload.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.InvokeInput{
		FunctionName: aws.String("my-function"),
		Payload:      []byte("{}"),
		Qualifier:    aws.String("1"),
	}

	result, err := svc.Invoke(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidRequestContentException:
				fmt.Println(lambda.ErrCodeInvalidRequestContentException, aerr.Error())
			case lambda.ErrCodeRequestTooLargeException:
				fmt.Println(lambda.ErrCodeRequestTooLargeException, aerr.Error())
			case lambda.ErrCodeUnsupportedMediaTypeException:
				fmt.Println(lambda.ErrCodeUnsupportedMediaTypeException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeEC2UnexpectedException:
				fmt.Println(lambda.ErrCodeEC2UnexpectedException, aerr.Error())
			case lambda.ErrCodeSubnetIPAddressLimitReachedException:
				fmt.Println(lambda.ErrCodeSubnetIPAddressLimitReachedException, aerr.Error())
			case lambda.ErrCodeENILimitReachedException:
				fmt.Println(lambda.ErrCodeENILimitReachedException, aerr.Error())
			case lambda.ErrCodeEFSMountConnectivityException:
				fmt.Println(lambda.ErrCodeEFSMountConnectivityException, aerr.Error())
			case lambda.ErrCodeEFSMountFailureException:
				fmt.Println(lambda.ErrCodeEFSMountFailureException, aerr.Error())
			case lambda.ErrCodeEFSMountTimeoutException:
				fmt.Println(lambda.ErrCodeEFSMountTimeoutException, aerr.Error())
			case lambda.ErrCodeEFSIOException:
				fmt.Println(lambda.ErrCodeEFSIOException, aerr.Error())
			case lambda.ErrCodeEC2ThrottledException:
				fmt.Println(lambda.ErrCodeEC2ThrottledException, aerr.Error())
			case lambda.ErrCodeEC2AccessDeniedException:
				fmt.Println(lambda.ErrCodeEC2AccessDeniedException, aerr.Error())
			case lambda.ErrCodeInvalidSubnetIDException:
				fmt.Println(lambda.ErrCodeInvalidSubnetIDException, aerr.Error())
			case lambda.ErrCodeInvalidSecurityGroupIDException:
				fmt.Println(lambda.ErrCodeInvalidSecurityGroupIDException, aerr.Error())
			case lambda.ErrCodeInvalidZipFileException:
				fmt.Println(lambda.ErrCodeInvalidZipFileException, aerr.Error())
			case lambda.ErrCodeKMSDisabledException:
				fmt.Println(lambda.ErrCodeKMSDisabledException, aerr.Error())
			case lambda.ErrCodeKMSInvalidStateException:
				fmt.Println(lambda.ErrCodeKMSInvalidStateException, aerr.Error())
			case lambda.ErrCodeKMSAccessDeniedException:
				fmt.Println(lambda.ErrCodeKMSAccessDeniedException, aerr.Error())
			case lambda.ErrCodeKMSNotFoundException:
				fmt.Println(lambda.ErrCodeKMSNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidRuntimeException:
				fmt.Println(lambda.ErrCodeInvalidRuntimeException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			case lambda.ErrCodeResourceNotReadyException:
				fmt.Println(lambda.ErrCodeResourceNotReadyException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

Example (Shared01)

To invoke a Lambda function asynchronously

The following example invokes version 1 of a function named my-function asynchronously.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.InvokeInput{
		FunctionName:   aws.String("my-function"),
		InvocationType: aws.String("Event"),
		Payload:        []byte("{}"),
		Qualifier:      aws.String("1"),
	}

	result, err := svc.Invoke(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidRequestContentException:
				fmt.Println(lambda.ErrCodeInvalidRequestContentException, aerr.Error())
			case lambda.ErrCodeRequestTooLargeException:
				fmt.Println(lambda.ErrCodeRequestTooLargeException, aerr.Error())
			case lambda.ErrCodeUnsupportedMediaTypeException:
				fmt.Println(lambda.ErrCodeUnsupportedMediaTypeException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeEC2UnexpectedException:
				fmt.Println(lambda.ErrCodeEC2UnexpectedException, aerr.Error())
			case lambda.ErrCodeSubnetIPAddressLimitReachedException:
				fmt.Println(lambda.ErrCodeSubnetIPAddressLimitReachedException, aerr.Error())
			case lambda.ErrCodeENILimitReachedException:
				fmt.Println(lambda.ErrCodeENILimitReachedException, aerr.Error())
			case lambda.ErrCodeEFSMountConnectivityException:
				fmt.Println(lambda.ErrCodeEFSMountConnectivityException, aerr.Error())
			case lambda.ErrCodeEFSMountFailureException:
				fmt.Println(lambda.ErrCodeEFSMountFailureException, aerr.Error())
			case lambda.ErrCodeEFSMountTimeoutException:
				fmt.Println(lambda.ErrCodeEFSMountTimeoutException, aerr.Error())
			case lambda.ErrCodeEFSIOException:
				fmt.Println(lambda.ErrCodeEFSIOException, aerr.Error())
			case lambda.ErrCodeEC2ThrottledException:
				fmt.Println(lambda.ErrCodeEC2ThrottledException, aerr.Error())
			case lambda.ErrCodeEC2AccessDeniedException:
				fmt.Println(lambda.ErrCodeEC2AccessDeniedException, aerr.Error())
			case lambda.ErrCodeInvalidSubnetIDException:
				fmt.Println(lambda.ErrCodeInvalidSubnetIDException, aerr.Error())
			case lambda.ErrCodeInvalidSecurityGroupIDException:
				fmt.Println(lambda.ErrCodeInvalidSecurityGroupIDException, aerr.Error())
			case lambda.ErrCodeInvalidZipFileException:
				fmt.Println(lambda.ErrCodeInvalidZipFileException, aerr.Error())
			case lambda.ErrCodeKMSDisabledException:
				fmt.Println(lambda.ErrCodeKMSDisabledException, aerr.Error())
			case lambda.ErrCodeKMSInvalidStateException:
				fmt.Println(lambda.ErrCodeKMSInvalidStateException, aerr.Error())
			case lambda.ErrCodeKMSAccessDeniedException:
				fmt.Println(lambda.ErrCodeKMSAccessDeniedException, aerr.Error())
			case lambda.ErrCodeKMSNotFoundException:
				fmt.Println(lambda.ErrCodeKMSNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidRuntimeException:
				fmt.Println(lambda.ErrCodeInvalidRuntimeException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			case lambda.ErrCodeResourceNotReadyException:
				fmt.Println(lambda.ErrCodeResourceNotReadyException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) InvokeAsync deprecated

func (c *Lambda) InvokeAsync(input *InvokeAsyncInput) (*InvokeAsyncOutput, error)

InvokeAsync API operation for AWS Lambda.

For asynchronous function invocation, use Invoke.

Invokes a function asynchronously.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation InvokeAsync for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidRequestContentException The request body could not be parsed as JSON.

  • InvalidRuntimeException The runtime or runtime version specified is not supported.

  • ResourceConflictException The resource already exists, or another operation is in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeAsync

Deprecated: InvokeAsync has been deprecated

Example (Shared00)

To invoke a Lambda function asynchronously

The following example invokes a Lambda function asynchronously

package main

import (
	"fmt"
	"strings"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.InvokeAsyncInput{
		FunctionName: aws.String("my-function"),
		InvokeArgs:   aws.ReadSeekCloser(strings.NewReader("{}")),
	}

	result, err := svc.InvokeAsync(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidRequestContentException:
				fmt.Println(lambda.ErrCodeInvalidRequestContentException, aerr.Error())
			case lambda.ErrCodeInvalidRuntimeException:
				fmt.Println(lambda.ErrCodeInvalidRuntimeException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) InvokeAsyncRequest deprecated

func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Request, output *InvokeAsyncOutput)

InvokeAsyncRequest generates a "aws/request.Request" representing the client's request for the InvokeAsync operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See InvokeAsync for more information on using the InvokeAsync API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the InvokeAsyncRequest method.
req, resp := client.InvokeAsyncRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeAsync

Deprecated: InvokeAsync has been deprecated

func (*Lambda) InvokeAsyncWithContext deprecated

func (c *Lambda) InvokeAsyncWithContext(ctx aws.Context, input *InvokeAsyncInput, opts ...request.Option) (*InvokeAsyncOutput, error)

InvokeAsyncWithContext is the same as InvokeAsync with the addition of the ability to pass a context and additional request options.

See InvokeAsync for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

Deprecated: InvokeAsyncWithContext has been deprecated

func (*Lambda) InvokeRequest

func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output *InvokeOutput)

InvokeRequest generates a "aws/request.Request" representing the client's request for the Invoke operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See Invoke for more information on using the Invoke API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the InvokeRequest method.
req, resp := client.InvokeRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Invoke

func (*Lambda) InvokeWithContext

func (c *Lambda) InvokeWithContext(ctx aws.Context, input *InvokeInput, opts ...request.Option) (*InvokeOutput, error)

InvokeWithContext is the same as Invoke with the addition of the ability to pass a context and additional request options.

See Invoke for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListAliases

func (c *Lambda) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error)

ListAliases API operation for AWS Lambda.

Returns a list of aliases (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) for a Lambda function.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation ListAliases for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliases

Example (Shared00)

To list a function's aliases

The following example returns a list of aliases for a function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.ListAliasesInput{
		FunctionName: aws.String("my-function"),
	}

	result, err := svc.ListAliases(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) ListAliasesPages

func (c *Lambda) ListAliasesPages(input *ListAliasesInput, fn func(*ListAliasesOutput, bool) bool) error

ListAliasesPages iterates over the pages of a ListAliases operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListAliases method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListAliases operation.
pageNum := 0
err := client.ListAliasesPages(params,
    func(page *lambda.ListAliasesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Lambda) ListAliasesPagesWithContext

func (c *Lambda) ListAliasesPagesWithContext(ctx aws.Context, input *ListAliasesInput, fn func(*ListAliasesOutput, bool) bool, opts ...request.Option) error

ListAliasesPagesWithContext same as ListAliasesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListAliasesRequest

func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, output *ListAliasesOutput)

ListAliasesRequest generates a "aws/request.Request" representing the client's request for the ListAliases operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListAliases for more information on using the ListAliases API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListAliasesRequest method.
req, resp := client.ListAliasesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliases

func (*Lambda) ListAliasesWithContext

func (c *Lambda) ListAliasesWithContext(ctx aws.Context, input *ListAliasesInput, opts ...request.Option) (*ListAliasesOutput, error)

ListAliasesWithContext is the same as ListAliases with the addition of the ability to pass a context and additional request options.

See ListAliases for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListCodeSigningConfigs

func (c *Lambda) ListCodeSigningConfigs(input *ListCodeSigningConfigsInput) (*ListCodeSigningConfigsOutput, error)

ListCodeSigningConfigs API operation for AWS Lambda.

Returns a list of code signing configurations (https://docs.aws.amazon.com/lambda/latest/dg/configuring-codesigning.html). A request returns up to 10,000 configurations per call. You can use the MaxItems parameter to return fewer configurations per call.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation ListCodeSigningConfigs for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • InvalidParameterValueException One of the parameters in the request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListCodeSigningConfigs

func (*Lambda) ListCodeSigningConfigsPages

func (c *Lambda) ListCodeSigningConfigsPages(input *ListCodeSigningConfigsInput, fn func(*ListCodeSigningConfigsOutput, bool) bool) error

ListCodeSigningConfigsPages iterates over the pages of a ListCodeSigningConfigs operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListCodeSigningConfigs method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListCodeSigningConfigs operation.
pageNum := 0
err := client.ListCodeSigningConfigsPages(params,
    func(page *lambda.ListCodeSigningConfigsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Lambda) ListCodeSigningConfigsPagesWithContext

func (c *Lambda) ListCodeSigningConfigsPagesWithContext(ctx aws.Context, input *ListCodeSigningConfigsInput, fn func(*ListCodeSigningConfigsOutput, bool) bool, opts ...request.Option) error

ListCodeSigningConfigsPagesWithContext same as ListCodeSigningConfigsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListCodeSigningConfigsRequest

func (c *Lambda) ListCodeSigningConfigsRequest(input *ListCodeSigningConfigsInput) (req *request.Request, output *ListCodeSigningConfigsOutput)

ListCodeSigningConfigsRequest generates a "aws/request.Request" representing the client's request for the ListCodeSigningConfigs operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListCodeSigningConfigs for more information on using the ListCodeSigningConfigs API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListCodeSigningConfigsRequest method.
req, resp := client.ListCodeSigningConfigsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListCodeSigningConfigs

func (*Lambda) ListCodeSigningConfigsWithContext

func (c *Lambda) ListCodeSigningConfigsWithContext(ctx aws.Context, input *ListCodeSigningConfigsInput, opts ...request.Option) (*ListCodeSigningConfigsOutput, error)

ListCodeSigningConfigsWithContext is the same as ListCodeSigningConfigs with the addition of the ability to pass a context and additional request options.

See ListCodeSigningConfigs for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListEventSourceMappings

func (c *Lambda) ListEventSourceMappings(input *ListEventSourceMappingsInput) (*ListEventSourceMappingsOutput, error)

ListEventSourceMappings API operation for AWS Lambda.

Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a single event source.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation ListEventSourceMappings for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings

Example (Shared00)

To list the event source mappings for a function

The following example returns a list of the event source mappings for a function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.ListEventSourceMappingsInput{
		FunctionName: aws.String("my-function"),
	}

	result, err := svc.ListEventSourceMappings(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) ListEventSourceMappingsPages

func (c *Lambda) ListEventSourceMappingsPages(input *ListEventSourceMappingsInput, fn func(*ListEventSourceMappingsOutput, bool) bool) error

ListEventSourceMappingsPages iterates over the pages of a ListEventSourceMappings operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListEventSourceMappings method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListEventSourceMappings operation.
pageNum := 0
err := client.ListEventSourceMappingsPages(params,
    func(page *lambda.ListEventSourceMappingsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Lambda) ListEventSourceMappingsPagesWithContext

func (c *Lambda) ListEventSourceMappingsPagesWithContext(ctx aws.Context, input *ListEventSourceMappingsInput, fn func(*ListEventSourceMappingsOutput, bool) bool, opts ...request.Option) error

ListEventSourceMappingsPagesWithContext same as ListEventSourceMappingsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListEventSourceMappingsRequest

func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsInput) (req *request.Request, output *ListEventSourceMappingsOutput)

ListEventSourceMappingsRequest generates a "aws/request.Request" representing the client's request for the ListEventSourceMappings operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListEventSourceMappings for more information on using the ListEventSourceMappings API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListEventSourceMappingsRequest method.
req, resp := client.ListEventSourceMappingsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings

func (*Lambda) ListEventSourceMappingsWithContext

func (c *Lambda) ListEventSourceMappingsWithContext(ctx aws.Context, input *ListEventSourceMappingsInput, opts ...request.Option) (*ListEventSourceMappingsOutput, error)

ListEventSourceMappingsWithContext is the same as ListEventSourceMappings with the addition of the ability to pass a context and additional request options.

See ListEventSourceMappings for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListFunctionEventInvokeConfigs

func (c *Lambda) ListFunctionEventInvokeConfigs(input *ListFunctionEventInvokeConfigsInput) (*ListFunctionEventInvokeConfigsOutput, error)

ListFunctionEventInvokeConfigs API operation for AWS Lambda.

Retrieves a list of configurations for asynchronous invocation for a function.

To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation ListFunctionEventInvokeConfigs for usage and error information.

Returned Error Types:

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ServiceException The Lambda service encountered an internal error.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionEventInvokeConfigs

Example (Shared00)

To view a list of asynchronous invocation configurations

The following example returns a list of asynchronous invocation configurations for a function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.ListFunctionEventInvokeConfigsInput{
		FunctionName: aws.String("my-function"),
	}

	result, err := svc.ListFunctionEventInvokeConfigs(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) ListFunctionEventInvokeConfigsPages

func (c *Lambda) ListFunctionEventInvokeConfigsPages(input *ListFunctionEventInvokeConfigsInput, fn func(*ListFunctionEventInvokeConfigsOutput, bool) bool) error

ListFunctionEventInvokeConfigsPages iterates over the pages of a ListFunctionEventInvokeConfigs operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListFunctionEventInvokeConfigs method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListFunctionEventInvokeConfigs operation.
pageNum := 0
err := client.ListFunctionEventInvokeConfigsPages(params,
    func(page *lambda.ListFunctionEventInvokeConfigsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Lambda) ListFunctionEventInvokeConfigsPagesWithContext

func (c *Lambda) ListFunctionEventInvokeConfigsPagesWithContext(ctx aws.Context, input *ListFunctionEventInvokeConfigsInput, fn func(*ListFunctionEventInvokeConfigsOutput, bool) bool, opts ...request.Option) error

ListFunctionEventInvokeConfigsPagesWithContext same as ListFunctionEventInvokeConfigsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListFunctionEventInvokeConfigsRequest

func (c *Lambda) ListFunctionEventInvokeConfigsRequest(input *ListFunctionEventInvokeConfigsInput) (req *request.Request, output *ListFunctionEventInvokeConfigsOutput)

ListFunctionEventInvokeConfigsRequest generates a "aws/request.Request" representing the client's request for the ListFunctionEventInvokeConfigs operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListFunctionEventInvokeConfigs for more information on using the ListFunctionEventInvokeConfigs API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListFunctionEventInvokeConfigsRequest method.
req, resp := client.ListFunctionEventInvokeConfigsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionEventInvokeConfigs

func (*Lambda) ListFunctionEventInvokeConfigsWithContext

func (c *Lambda) ListFunctionEventInvokeConfigsWithContext(ctx aws.Context, input *ListFunctionEventInvokeConfigsInput, opts ...request.Option) (*ListFunctionEventInvokeConfigsOutput, error)

ListFunctionEventInvokeConfigsWithContext is the same as ListFunctionEventInvokeConfigs with the addition of the ability to pass a context and additional request options.

See ListFunctionEventInvokeConfigs for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListFunctions

func (c *Lambda) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error)

ListFunctions API operation for AWS Lambda.

Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.

Set FunctionVersion to ALL to include all published versions of each function in addition to the unpublished version.

The ListFunctions action returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode) for a function or version, use GetFunction.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation ListFunctions for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • TooManyRequestsException The request throughput limit was exceeded.

  • InvalidParameterValueException One of the parameters in the request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions

Example (Shared00)

To get a list of Lambda functions

This operation returns a list of Lambda functions.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.ListFunctionsInput{}

	result, err := svc.ListFunctions(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) ListFunctionsByCodeSigningConfig

func (c *Lambda) ListFunctionsByCodeSigningConfig(input *ListFunctionsByCodeSigningConfigInput) (*ListFunctionsByCodeSigningConfigOutput, error)

ListFunctionsByCodeSigningConfig API operation for AWS Lambda.

List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation ListFunctionsByCodeSigningConfig for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceNotFoundException The resource specified in the request does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsByCodeSigningConfig

func (*Lambda) ListFunctionsByCodeSigningConfigPages

func (c *Lambda) ListFunctionsByCodeSigningConfigPages(input *ListFunctionsByCodeSigningConfigInput, fn func(*ListFunctionsByCodeSigningConfigOutput, bool) bool) error

ListFunctionsByCodeSigningConfigPages iterates over the pages of a ListFunctionsByCodeSigningConfig operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListFunctionsByCodeSigningConfig method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListFunctionsByCodeSigningConfig operation.
pageNum := 0
err := client.ListFunctionsByCodeSigningConfigPages(params,
    func(page *lambda.ListFunctionsByCodeSigningConfigOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Lambda) ListFunctionsByCodeSigningConfigPagesWithContext

func (c *Lambda) ListFunctionsByCodeSigningConfigPagesWithContext(ctx aws.Context, input *ListFunctionsByCodeSigningConfigInput, fn func(*ListFunctionsByCodeSigningConfigOutput, bool) bool, opts ...request.Option) error

ListFunctionsByCodeSigningConfigPagesWithContext same as ListFunctionsByCodeSigningConfigPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListFunctionsByCodeSigningConfigRequest

func (c *Lambda) ListFunctionsByCodeSigningConfigRequest(input *ListFunctionsByCodeSigningConfigInput) (req *request.Request, output *ListFunctionsByCodeSigningConfigOutput)

ListFunctionsByCodeSigningConfigRequest generates a "aws/request.Request" representing the client's request for the ListFunctionsByCodeSigningConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListFunctionsByCodeSigningConfig for more information on using the ListFunctionsByCodeSigningConfig API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListFunctionsByCodeSigningConfigRequest method.
req, resp := client.ListFunctionsByCodeSigningConfigRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsByCodeSigningConfig

func (*Lambda) ListFunctionsByCodeSigningConfigWithContext

func (c *Lambda) ListFunctionsByCodeSigningConfigWithContext(ctx aws.Context, input *ListFunctionsByCodeSigningConfigInput, opts ...request.Option) (*ListFunctionsByCodeSigningConfigOutput, error)

ListFunctionsByCodeSigningConfigWithContext is the same as ListFunctionsByCodeSigningConfig with the addition of the ability to pass a context and additional request options.

See ListFunctionsByCodeSigningConfig for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListFunctionsPages

func (c *Lambda) ListFunctionsPages(input *ListFunctionsInput, fn func(*ListFunctionsOutput, bool) bool) error

ListFunctionsPages iterates over the pages of a ListFunctions operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListFunctions method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListFunctions operation.
pageNum := 0
err := client.ListFunctionsPages(params,
    func(page *lambda.ListFunctionsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Lambda) ListFunctionsPagesWithContext

func (c *Lambda) ListFunctionsPagesWithContext(ctx aws.Context, input *ListFunctionsInput, fn func(*ListFunctionsOutput, bool) bool, opts ...request.Option) error

ListFunctionsPagesWithContext same as ListFunctionsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListFunctionsRequest

func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.Request, output *ListFunctionsOutput)

ListFunctionsRequest generates a "aws/request.Request" representing the client's request for the ListFunctions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListFunctions for more information on using the ListFunctions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListFunctionsRequest method.
req, resp := client.ListFunctionsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions

func (*Lambda) ListFunctionsWithContext

func (c *Lambda) ListFunctionsWithContext(ctx aws.Context, input *ListFunctionsInput, opts ...request.Option) (*ListFunctionsOutput, error)

ListFunctionsWithContext is the same as ListFunctions with the addition of the ability to pass a context and additional request options.

See ListFunctions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListLayerVersions

func (c *Lambda) ListLayerVersions(input *ListLayerVersionsInput) (*ListLayerVersionsOutput, error)

ListLayerVersions API operation for AWS Lambda.

Lists the versions of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). Versions that have been deleted aren't listed. Specify a runtime identifier (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) to list only versions that indicate that they're compatible with that runtime. Specify a compatible architecture to include only layer versions that are compatible with that architecture.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation ListLayerVersions for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • TooManyRequestsException The request throughput limit was exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayerVersions

Example (Shared00)

To list versions of a layer

The following example displays information about the versions for the layer named blank-java-lib

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.ListLayerVersionsInput{
		LayerName: aws.String("blank-java-lib"),
	}

	result, err := svc.ListLayerVersions(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) ListLayerVersionsPages

func (c *Lambda) ListLayerVersionsPages(input *ListLayerVersionsInput, fn func(*ListLayerVersionsOutput, bool) bool) error

ListLayerVersionsPages iterates over the pages of a ListLayerVersions operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListLayerVersions method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListLayerVersions operation.
pageNum := 0
err := client.ListLayerVersionsPages(params,
    func(page *lambda.ListLayerVersionsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Lambda) ListLayerVersionsPagesWithContext

func (c *Lambda) ListLayerVersionsPagesWithContext(ctx aws.Context, input *ListLayerVersionsInput, fn func(*ListLayerVersionsOutput, bool) bool, opts ...request.Option) error

ListLayerVersionsPagesWithContext same as ListLayerVersionsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListLayerVersionsRequest

func (c *Lambda) ListLayerVersionsRequest(input *ListLayerVersionsInput) (req *request.Request, output *ListLayerVersionsOutput)

ListLayerVersionsRequest generates a "aws/request.Request" representing the client's request for the ListLayerVersions operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListLayerVersions for more information on using the ListLayerVersions API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListLayerVersionsRequest method.
req, resp := client.ListLayerVersionsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayerVersions

func (*Lambda) ListLayerVersionsWithContext

func (c *Lambda) ListLayerVersionsWithContext(ctx aws.Context, input *ListLayerVersionsInput, opts ...request.Option) (*ListLayerVersionsOutput, error)

ListLayerVersionsWithContext is the same as ListLayerVersions with the addition of the ability to pass a context and additional request options.

See ListLayerVersions for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListLayers

func (c *Lambda) ListLayers(input *ListLayersInput) (*ListLayersOutput, error)

ListLayers API operation for AWS Lambda.

Lists Lambda layers (https://docs.aws.amazon.com/lambda/latest/dg/invocation-layers.html) and shows information about the latest version of each. Specify a runtime identifier (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) to list only layers that indicate that they're compatible with that runtime. Specify a compatible architecture to include only layers that are compatible with that instruction set architecture (https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation ListLayers for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayers

Example (Shared00)

To list the layers that are compatible with your function's runtime

The following example returns information about layers that are compatible with the Python 3.7 runtime.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.ListLayersInput{
		CompatibleRuntime: aws.String("python3.7"),
	}

	result, err := svc.ListLayers(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) ListLayersPages

func (c *Lambda) ListLayersPages(input *ListLayersInput, fn func(*ListLayersOutput, bool) bool) error

ListLayersPages iterates over the pages of a ListLayers operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListLayers method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListLayers operation.
pageNum := 0
err := client.ListLayersPages(params,
    func(page *lambda.ListLayersOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Lambda) ListLayersPagesWithContext

func (c *Lambda) ListLayersPagesWithContext(ctx aws.Context, input *ListLayersInput, fn func(*ListLayersOutput, bool) bool, opts ...request.Option) error

ListLayersPagesWithContext same as ListLayersPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListLayersRequest

func (c *Lambda) ListLayersRequest(input *ListLayersInput) (req *request.Request, output *ListLayersOutput)

ListLayersRequest generates a "aws/request.Request" representing the client's request for the ListLayers operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListLayers for more information on using the ListLayers API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListLayersRequest method.
req, resp := client.ListLayersRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayers

func (*Lambda) ListLayersWithContext

func (c *Lambda) ListLayersWithContext(ctx aws.Context, input *ListLayersInput, opts ...request.Option) (*ListLayersOutput, error)

ListLayersWithContext is the same as ListLayers with the addition of the ability to pass a context and additional request options.

See ListLayers for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListProvisionedConcurrencyConfigs

func (c *Lambda) ListProvisionedConcurrencyConfigs(input *ListProvisionedConcurrencyConfigsInput) (*ListProvisionedConcurrencyConfigsOutput, error)

ListProvisionedConcurrencyConfigs API operation for AWS Lambda.

Retrieves a list of provisioned concurrency configurations for a function.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation ListProvisionedConcurrencyConfigs for usage and error information.

Returned Error Types:

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ServiceException The Lambda service encountered an internal error.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListProvisionedConcurrencyConfigs

Example (Shared00)

To get a list of provisioned concurrency configurations

The following example returns a list of provisioned concurrency configurations for a function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.ListProvisionedConcurrencyConfigsInput{
		FunctionName: aws.String("my-function"),
	}

	result, err := svc.ListProvisionedConcurrencyConfigs(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) ListProvisionedConcurrencyConfigsPages

func (c *Lambda) ListProvisionedConcurrencyConfigsPages(input *ListProvisionedConcurrencyConfigsInput, fn func(*ListProvisionedConcurrencyConfigsOutput, bool) bool) error

ListProvisionedConcurrencyConfigsPages iterates over the pages of a ListProvisionedConcurrencyConfigs operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListProvisionedConcurrencyConfigs method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListProvisionedConcurrencyConfigs operation.
pageNum := 0
err := client.ListProvisionedConcurrencyConfigsPages(params,
    func(page *lambda.ListProvisionedConcurrencyConfigsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Lambda) ListProvisionedConcurrencyConfigsPagesWithContext

func (c *Lambda) ListProvisionedConcurrencyConfigsPagesWithContext(ctx aws.Context, input *ListProvisionedConcurrencyConfigsInput, fn func(*ListProvisionedConcurrencyConfigsOutput, bool) bool, opts ...request.Option) error

ListProvisionedConcurrencyConfigsPagesWithContext same as ListProvisionedConcurrencyConfigsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListProvisionedConcurrencyConfigsRequest

func (c *Lambda) ListProvisionedConcurrencyConfigsRequest(input *ListProvisionedConcurrencyConfigsInput) (req *request.Request, output *ListProvisionedConcurrencyConfigsOutput)

ListProvisionedConcurrencyConfigsRequest generates a "aws/request.Request" representing the client's request for the ListProvisionedConcurrencyConfigs operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListProvisionedConcurrencyConfigs for more information on using the ListProvisionedConcurrencyConfigs API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListProvisionedConcurrencyConfigsRequest method.
req, resp := client.ListProvisionedConcurrencyConfigsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListProvisionedConcurrencyConfigs

func (*Lambda) ListProvisionedConcurrencyConfigsWithContext

func (c *Lambda) ListProvisionedConcurrencyConfigsWithContext(ctx aws.Context, input *ListProvisionedConcurrencyConfigsInput, opts ...request.Option) (*ListProvisionedConcurrencyConfigsOutput, error)

ListProvisionedConcurrencyConfigsWithContext is the same as ListProvisionedConcurrencyConfigs with the addition of the ability to pass a context and additional request options.

See ListProvisionedConcurrencyConfigs for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListTags

func (c *Lambda) ListTags(input *ListTagsInput) (*ListTagsOutput, error)

ListTags API operation for AWS Lambda.

Returns a function's tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html). You can also view tags with GetFunction.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation ListTags for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTags

Example (Shared00)

To retrieve the list of tags for a Lambda function

The following example displays the tags attached to the my-function Lambda function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.ListTagsInput{
		Resource: aws.String("arn:aws:lambda:us-west-2:123456789012:function:my-function"),
	}

	result, err := svc.ListTags(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) ListTagsRequest

func (c *Lambda) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput)

ListTagsRequest generates a "aws/request.Request" representing the client's request for the ListTags operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListTags for more information on using the ListTags API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListTagsRequest method.
req, resp := client.ListTagsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTags

func (*Lambda) ListTagsWithContext

func (c *Lambda) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error)

ListTagsWithContext is the same as ListTags with the addition of the ability to pass a context and additional request options.

See ListTags for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListVersionsByFunction

func (c *Lambda) ListVersionsByFunction(input *ListVersionsByFunctionInput) (*ListVersionsByFunctionOutput, error)

ListVersionsByFunction API operation for AWS Lambda.

Returns a list of versions (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html), with the version-specific configuration of each. Lambda returns up to 50 versions per call.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation ListVersionsByFunction for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction

Example (Shared00)

To list versions of a function

The following example returns a list of versions of a function named my-function

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.ListVersionsByFunctionInput{
		FunctionName: aws.String("my-function"),
	}

	result, err := svc.ListVersionsByFunction(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) ListVersionsByFunctionPages

func (c *Lambda) ListVersionsByFunctionPages(input *ListVersionsByFunctionInput, fn func(*ListVersionsByFunctionOutput, bool) bool) error

ListVersionsByFunctionPages iterates over the pages of a ListVersionsByFunction operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListVersionsByFunction method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListVersionsByFunction operation.
pageNum := 0
err := client.ListVersionsByFunctionPages(params,
    func(page *lambda.ListVersionsByFunctionOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Lambda) ListVersionsByFunctionPagesWithContext

func (c *Lambda) ListVersionsByFunctionPagesWithContext(ctx aws.Context, input *ListVersionsByFunctionInput, fn func(*ListVersionsByFunctionOutput, bool) bool, opts ...request.Option) error

ListVersionsByFunctionPagesWithContext same as ListVersionsByFunctionPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) ListVersionsByFunctionRequest

func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInput) (req *request.Request, output *ListVersionsByFunctionOutput)

ListVersionsByFunctionRequest generates a "aws/request.Request" representing the client's request for the ListVersionsByFunction operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListVersionsByFunction for more information on using the ListVersionsByFunction API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListVersionsByFunctionRequest method.
req, resp := client.ListVersionsByFunctionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction

func (*Lambda) ListVersionsByFunctionWithContext

func (c *Lambda) ListVersionsByFunctionWithContext(ctx aws.Context, input *ListVersionsByFunctionInput, opts ...request.Option) (*ListVersionsByFunctionOutput, error)

ListVersionsByFunctionWithContext is the same as ListVersionsByFunction with the addition of the ability to pass a context and additional request options.

See ListVersionsByFunction for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) PublishLayerVersion

func (c *Lambda) PublishLayerVersion(input *PublishLayerVersionInput) (*PublishLayerVersionOutput, error)

PublishLayerVersion API operation for AWS Lambda.

Creates an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) from a ZIP archive. Each time you call PublishLayerVersion with the same layer name, a new version is created.

Add layers to your function with CreateFunction or UpdateFunctionConfiguration.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation PublishLayerVersion for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • TooManyRequestsException The request throughput limit was exceeded.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • CodeStorageExceededException You have exceeded your maximum total code size per account. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html)

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishLayerVersion

Example (Shared00)

To create a Lambda layer version

The following example creates a new Python library layer version. The command retrieves the layer content a file named layer.zip in the specified S3 bucket.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.PublishLayerVersionInput{
		CompatibleRuntimes: []*string{
			aws.String("python3.6"),
			aws.String("python3.7"),
		},
		Content: &lambda.LayerVersionContentInput{
			S3Bucket: aws.String("lambda-layers-us-west-2-123456789012"),
			S3Key:    aws.String("layer.zip"),
		},
		Description: aws.String("My Python layer"),
		LayerName:   aws.String("my-layer"),
		LicenseInfo: aws.String("MIT"),
	}

	result, err := svc.PublishLayerVersion(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeCodeStorageExceededException:
				fmt.Println(lambda.ErrCodeCodeStorageExceededException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) PublishLayerVersionRequest

func (c *Lambda) PublishLayerVersionRequest(input *PublishLayerVersionInput) (req *request.Request, output *PublishLayerVersionOutput)

PublishLayerVersionRequest generates a "aws/request.Request" representing the client's request for the PublishLayerVersion operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PublishLayerVersion for more information on using the PublishLayerVersion API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PublishLayerVersionRequest method.
req, resp := client.PublishLayerVersionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishLayerVersion

func (*Lambda) PublishLayerVersionWithContext

func (c *Lambda) PublishLayerVersionWithContext(ctx aws.Context, input *PublishLayerVersionInput, opts ...request.Option) (*PublishLayerVersionOutput, error)

PublishLayerVersionWithContext is the same as PublishLayerVersion with the addition of the ability to pass a context and additional request options.

See PublishLayerVersion for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) PublishVersion

func (c *Lambda) PublishVersion(input *PublishVersionInput) (*FunctionConfiguration, error)

PublishVersion API operation for AWS Lambda.

Creates a version (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change.

Lambda doesn't publish a version if the function's configuration and code haven't changed since the last version. Use UpdateFunctionCode or UpdateFunctionConfiguration to update the function before publishing a version.

Clients can invoke versions directly or with an alias. To create an alias, use CreateAlias.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation PublishVersion for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

  • CodeStorageExceededException You have exceeded your maximum total code size per account. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html)

  • PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction or the GetAlias API to retrieve the latest RevisionId for your resource.

  • ResourceConflictException The resource already exists, or another operation is in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion

Example (Shared00)

To publish a version of a Lambda function

This operation publishes a version of a Lambda function

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.PublishVersionInput{
		CodeSha256:   aws.String(""),
		Description:  aws.String(""),
		FunctionName: aws.String("myFunction"),
	}

	result, err := svc.PublishVersion(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeCodeStorageExceededException:
				fmt.Println(lambda.ErrCodeCodeStorageExceededException, aerr.Error())
			case lambda.ErrCodePreconditionFailedException:
				fmt.Println(lambda.ErrCodePreconditionFailedException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) PublishVersionRequest

func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request.Request, output *FunctionConfiguration)

PublishVersionRequest generates a "aws/request.Request" representing the client's request for the PublishVersion operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PublishVersion for more information on using the PublishVersion API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PublishVersionRequest method.
req, resp := client.PublishVersionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion

func (*Lambda) PublishVersionWithContext

func (c *Lambda) PublishVersionWithContext(ctx aws.Context, input *PublishVersionInput, opts ...request.Option) (*FunctionConfiguration, error)

PublishVersionWithContext is the same as PublishVersion with the addition of the ability to pass a context and additional request options.

See PublishVersion for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) PutFunctionCodeSigningConfig

func (c *Lambda) PutFunctionCodeSigningConfig(input *PutFunctionCodeSigningConfigInput) (*PutFunctionCodeSigningConfigOutput, error)

PutFunctionCodeSigningConfig API operation for AWS Lambda.

Update the code signing configuration for the function. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation PutFunctionCodeSigningConfig for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ResourceConflictException The resource already exists, or another operation is in progress.

  • CodeSigningConfigNotFoundException The specified code signing configuration does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionCodeSigningConfig

func (*Lambda) PutFunctionCodeSigningConfigRequest

func (c *Lambda) PutFunctionCodeSigningConfigRequest(input *PutFunctionCodeSigningConfigInput) (req *request.Request, output *PutFunctionCodeSigningConfigOutput)

PutFunctionCodeSigningConfigRequest generates a "aws/request.Request" representing the client's request for the PutFunctionCodeSigningConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PutFunctionCodeSigningConfig for more information on using the PutFunctionCodeSigningConfig API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PutFunctionCodeSigningConfigRequest method.
req, resp := client.PutFunctionCodeSigningConfigRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionCodeSigningConfig

func (*Lambda) PutFunctionCodeSigningConfigWithContext

func (c *Lambda) PutFunctionCodeSigningConfigWithContext(ctx aws.Context, input *PutFunctionCodeSigningConfigInput, opts ...request.Option) (*PutFunctionCodeSigningConfigOutput, error)

PutFunctionCodeSigningConfigWithContext is the same as PutFunctionCodeSigningConfig with the addition of the ability to pass a context and additional request options.

See PutFunctionCodeSigningConfig for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) PutFunctionConcurrency

func (c *Lambda) PutFunctionConcurrency(input *PutFunctionConcurrencyInput) (*PutFunctionConcurrencyOutput, error)

PutFunctionConcurrency API operation for AWS Lambda.

Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.

Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use GetFunction to see the current setting for a function.

Use GetAccountSettings to see your Regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Managing Concurrency (https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation PutFunctionConcurrency for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ResourceConflictException The resource already exists, or another operation is in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionConcurrency

Example (Shared00)

To configure a reserved concurrency limit for a function

The following example configures 100 reserved concurrent executions for the my-function function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.PutFunctionConcurrencyInput{
		FunctionName:                 aws.String("my-function"),
		ReservedConcurrentExecutions: aws.Int64(100),
	}

	result, err := svc.PutFunctionConcurrency(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) PutFunctionConcurrencyRequest

func (c *Lambda) PutFunctionConcurrencyRequest(input *PutFunctionConcurrencyInput) (req *request.Request, output *PutFunctionConcurrencyOutput)

PutFunctionConcurrencyRequest generates a "aws/request.Request" representing the client's request for the PutFunctionConcurrency operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PutFunctionConcurrency for more information on using the PutFunctionConcurrency API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PutFunctionConcurrencyRequest method.
req, resp := client.PutFunctionConcurrencyRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionConcurrency

func (*Lambda) PutFunctionConcurrencyWithContext

func (c *Lambda) PutFunctionConcurrencyWithContext(ctx aws.Context, input *PutFunctionConcurrencyInput, opts ...request.Option) (*PutFunctionConcurrencyOutput, error)

PutFunctionConcurrencyWithContext is the same as PutFunctionConcurrency with the addition of the ability to pass a context and additional request options.

See PutFunctionConcurrency for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) PutFunctionEventInvokeConfig

func (c *Lambda) PutFunctionEventInvokeConfig(input *PutFunctionEventInvokeConfigInput) (*PutFunctionEventInvokeConfigOutput, error)

PutFunctionEventInvokeConfig API operation for AWS Lambda.

Configures options for asynchronous invocation (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html) on a function, version, or alias. If a configuration already exists for a function, version, or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without affecting existing settings for other options, use UpdateFunctionEventInvokeConfig.

By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with UpdateFunctionConfiguration.

To send an invocation record to a queue, topic, function, or event bus, specify a destination (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations). You can configure separate destinations for successful invocations (on-success) and events that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a dead-letter queue.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation PutFunctionEventInvokeConfig for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ResourceConflictException The resource already exists, or another operation is in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionEventInvokeConfig

Example (Shared00)

To configure error handling for asynchronous invocation

The following example sets a maximum event age of one hour and disables retries for the specified function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.PutFunctionEventInvokeConfigInput{
		FunctionName:             aws.String("my-function"),
		MaximumEventAgeInSeconds: aws.Int64(3600),
		MaximumRetryAttempts:     aws.Int64(0),
	}

	result, err := svc.PutFunctionEventInvokeConfig(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) PutFunctionEventInvokeConfigRequest

func (c *Lambda) PutFunctionEventInvokeConfigRequest(input *PutFunctionEventInvokeConfigInput) (req *request.Request, output *PutFunctionEventInvokeConfigOutput)

PutFunctionEventInvokeConfigRequest generates a "aws/request.Request" representing the client's request for the PutFunctionEventInvokeConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PutFunctionEventInvokeConfig for more information on using the PutFunctionEventInvokeConfig API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PutFunctionEventInvokeConfigRequest method.
req, resp := client.PutFunctionEventInvokeConfigRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionEventInvokeConfig

func (*Lambda) PutFunctionEventInvokeConfigWithContext

func (c *Lambda) PutFunctionEventInvokeConfigWithContext(ctx aws.Context, input *PutFunctionEventInvokeConfigInput, opts ...request.Option) (*PutFunctionEventInvokeConfigOutput, error)

PutFunctionEventInvokeConfigWithContext is the same as PutFunctionEventInvokeConfig with the addition of the ability to pass a context and additional request options.

See PutFunctionEventInvokeConfig for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) PutProvisionedConcurrencyConfig

func (c *Lambda) PutProvisionedConcurrencyConfig(input *PutProvisionedConcurrencyConfigInput) (*PutProvisionedConcurrencyConfigOutput, error)

PutProvisionedConcurrencyConfig API operation for AWS Lambda.

Adds a provisioned concurrency configuration to a function's alias or version.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation PutProvisionedConcurrencyConfig for usage and error information.

Returned Error Types:

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • ResourceConflictException The resource already exists, or another operation is in progress.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ServiceException The Lambda service encountered an internal error.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutProvisionedConcurrencyConfig

Example (Shared00)

To allocate provisioned concurrency

The following example allocates 100 provisioned concurrency for the BLUE alias of the specified function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.PutProvisionedConcurrencyConfigInput{
		FunctionName:                    aws.String("my-function"),
		ProvisionedConcurrentExecutions: aws.Int64(100),
		Qualifier:                       aws.String("BLUE"),
	}

	result, err := svc.PutProvisionedConcurrencyConfig(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) PutProvisionedConcurrencyConfigRequest

func (c *Lambda) PutProvisionedConcurrencyConfigRequest(input *PutProvisionedConcurrencyConfigInput) (req *request.Request, output *PutProvisionedConcurrencyConfigOutput)

PutProvisionedConcurrencyConfigRequest generates a "aws/request.Request" representing the client's request for the PutProvisionedConcurrencyConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See PutProvisionedConcurrencyConfig for more information on using the PutProvisionedConcurrencyConfig API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the PutProvisionedConcurrencyConfigRequest method.
req, resp := client.PutProvisionedConcurrencyConfigRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutProvisionedConcurrencyConfig

func (*Lambda) PutProvisionedConcurrencyConfigWithContext

func (c *Lambda) PutProvisionedConcurrencyConfigWithContext(ctx aws.Context, input *PutProvisionedConcurrencyConfigInput, opts ...request.Option) (*PutProvisionedConcurrencyConfigOutput, error)

PutProvisionedConcurrencyConfigWithContext is the same as PutProvisionedConcurrencyConfig with the addition of the ability to pass a context and additional request options.

See PutProvisionedConcurrencyConfig for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) RemoveLayerVersionPermission

func (c *Lambda) RemoveLayerVersionPermission(input *RemoveLayerVersionPermissionInput) (*RemoveLayerVersionPermissionOutput, error)

RemoveLayerVersionPermission API operation for AWS Lambda.

Removes a statement from the permissions policy for a version of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). For more information, see AddLayerVersionPermission.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation RemoveLayerVersionPermission for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

  • PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction or the GetAlias API to retrieve the latest RevisionId for your resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemoveLayerVersionPermission

Example (Shared00)

To delete layer-version permissions

The following example deletes permission for an account to configure a layer version.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.RemoveLayerVersionPermissionInput{
		LayerName:     aws.String("my-layer"),
		StatementId:   aws.String("xaccount"),
		VersionNumber: aws.Int64(1),
	}

	result, err := svc.RemoveLayerVersionPermission(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodePreconditionFailedException:
				fmt.Println(lambda.ErrCodePreconditionFailedException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) RemoveLayerVersionPermissionRequest

func (c *Lambda) RemoveLayerVersionPermissionRequest(input *RemoveLayerVersionPermissionInput) (req *request.Request, output *RemoveLayerVersionPermissionOutput)

RemoveLayerVersionPermissionRequest generates a "aws/request.Request" representing the client's request for the RemoveLayerVersionPermission operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RemoveLayerVersionPermission for more information on using the RemoveLayerVersionPermission API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RemoveLayerVersionPermissionRequest method.
req, resp := client.RemoveLayerVersionPermissionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemoveLayerVersionPermission

func (*Lambda) RemoveLayerVersionPermissionWithContext

func (c *Lambda) RemoveLayerVersionPermissionWithContext(ctx aws.Context, input *RemoveLayerVersionPermissionInput, opts ...request.Option) (*RemoveLayerVersionPermissionOutput, error)

RemoveLayerVersionPermissionWithContext is the same as RemoveLayerVersionPermission with the addition of the ability to pass a context and additional request options.

See RemoveLayerVersionPermission for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) RemovePermission

func (c *Lambda) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error)

RemovePermission API operation for AWS Lambda.

Revokes function-use permission from an Amazon Web Services service or another account. You can get the ID of the statement from the output of GetPolicy.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation RemovePermission for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

  • PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction or the GetAlias API to retrieve the latest RevisionId for your resource.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermission

Example (Shared00)

To remove a Lambda function's permissions

The following example removes a permissions statement named xaccount from the PROD alias of a function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.RemovePermissionInput{
		FunctionName: aws.String("my-function"),
		Qualifier:    aws.String("PROD"),
		StatementId:  aws.String("xaccount"),
	}

	result, err := svc.RemovePermission(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodePreconditionFailedException:
				fmt.Println(lambda.ErrCodePreconditionFailedException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) RemovePermissionRequest

func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *request.Request, output *RemovePermissionOutput)

RemovePermissionRequest generates a "aws/request.Request" representing the client's request for the RemovePermission operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RemovePermission for more information on using the RemovePermission API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RemovePermissionRequest method.
req, resp := client.RemovePermissionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermission

func (*Lambda) RemovePermissionWithContext

func (c *Lambda) RemovePermissionWithContext(ctx aws.Context, input *RemovePermissionInput, opts ...request.Option) (*RemovePermissionOutput, error)

RemovePermissionWithContext is the same as RemovePermission with the addition of the ability to pass a context and additional request options.

See RemovePermission for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) TagResource

func (c *Lambda) TagResource(input *TagResourceInput) (*TagResourceOutput, error)

TagResource API operation for AWS Lambda.

Adds tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to a function.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation TagResource for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ResourceConflictException The resource already exists, or another operation is in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResource

Example (Shared00)

To add tags to an existing Lambda function

The following example adds a tag with the key name DEPARTMENT and a value of 'Department A' to the specified Lambda function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.TagResourceInput{
		Resource: aws.String("arn:aws:lambda:us-west-2:123456789012:function:my-function"),
		Tags: map[string]*string{
			"DEPARTMENT": aws.String("Department A"),
		},
	}

	result, err := svc.TagResource(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) TagResourceRequest

func (c *Lambda) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput)

TagResourceRequest generates a "aws/request.Request" representing the client's request for the TagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See TagResource for more information on using the TagResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the TagResourceRequest method.
req, resp := client.TagResourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResource

func (*Lambda) TagResourceWithContext

func (c *Lambda) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error)

TagResourceWithContext is the same as TagResource with the addition of the ability to pass a context and additional request options.

See TagResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) UntagResource

func (c *Lambda) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error)

UntagResource API operation for AWS Lambda.

Removes tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) from a function.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation UntagResource for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ResourceConflictException The resource already exists, or another operation is in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResource

Example (Shared00)

To remove tags from an existing Lambda function

The following example removes the tag with the key name DEPARTMENT tag from the my-function Lambda function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.UntagResourceInput{
		Resource: aws.String("arn:aws:lambda:us-west-2:123456789012:function:my-function"),
		TagKeys: []*string{
			aws.String("DEPARTMENT"),
		},
	}

	result, err := svc.UntagResource(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) UntagResourceRequest

func (c *Lambda) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput)

UntagResourceRequest generates a "aws/request.Request" representing the client's request for the UntagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UntagResource for more information on using the UntagResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UntagResourceRequest method.
req, resp := client.UntagResourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResource

func (*Lambda) UntagResourceWithContext

func (c *Lambda) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error)

UntagResourceWithContext is the same as UntagResource with the addition of the ability to pass a context and additional request options.

See UntagResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) UpdateAlias

func (c *Lambda) UpdateAlias(input *UpdateAliasInput) (*AliasConfiguration, error)

UpdateAlias API operation for AWS Lambda.

Updates the configuration of a Lambda function alias (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation UpdateAlias for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

  • PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction or the GetAlias API to retrieve the latest RevisionId for your resource.

  • ResourceConflictException The resource already exists, or another operation is in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAlias

Example (Shared00)

To update a function alias

The following example updates the alias named BLUE to send 30% of traffic to version 2 and 70% to version 1.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.UpdateAliasInput{
		FunctionName:    aws.String("my-function"),
		FunctionVersion: aws.String("2"),
		Name:            aws.String("BLUE"),
		RoutingConfig: &lambda.AliasRoutingConfiguration{
			AdditionalVersionWeights: map[string]*float64{
				"1": aws.Float64(0.700000),
			},
		},
	}

	result, err := svc.UpdateAlias(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodePreconditionFailedException:
				fmt.Println(lambda.ErrCodePreconditionFailedException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) UpdateAliasRequest

func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *AliasConfiguration)

UpdateAliasRequest generates a "aws/request.Request" representing the client's request for the UpdateAlias operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateAlias for more information on using the UpdateAlias API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateAliasRequest method.
req, resp := client.UpdateAliasRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAlias

func (*Lambda) UpdateAliasWithContext

func (c *Lambda) UpdateAliasWithContext(ctx aws.Context, input *UpdateAliasInput, opts ...request.Option) (*AliasConfiguration, error)

UpdateAliasWithContext is the same as UpdateAlias with the addition of the ability to pass a context and additional request options.

See UpdateAlias for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) UpdateCodeSigningConfig

func (c *Lambda) UpdateCodeSigningConfig(input *UpdateCodeSigningConfigInput) (*UpdateCodeSigningConfigOutput, error)

UpdateCodeSigningConfig API operation for AWS Lambda.

Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation UpdateCodeSigningConfig for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • ResourceNotFoundException The resource specified in the request does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateCodeSigningConfig

func (*Lambda) UpdateCodeSigningConfigRequest

func (c *Lambda) UpdateCodeSigningConfigRequest(input *UpdateCodeSigningConfigInput) (req *request.Request, output *UpdateCodeSigningConfigOutput)

UpdateCodeSigningConfigRequest generates a "aws/request.Request" representing the client's request for the UpdateCodeSigningConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateCodeSigningConfig for more information on using the UpdateCodeSigningConfig API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateCodeSigningConfigRequest method.
req, resp := client.UpdateCodeSigningConfigRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateCodeSigningConfig

func (*Lambda) UpdateCodeSigningConfigWithContext

func (c *Lambda) UpdateCodeSigningConfigWithContext(ctx aws.Context, input *UpdateCodeSigningConfigInput, opts ...request.Option) (*UpdateCodeSigningConfigOutput, error)

UpdateCodeSigningConfigWithContext is the same as UpdateCodeSigningConfig with the addition of the ability to pass a context and additional request options.

See UpdateCodeSigningConfig for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) UpdateEventSourceMapping

func (c *Lambda) UpdateEventSourceMapping(input *UpdateEventSourceMappingInput) (*EventSourceMappingConfiguration, error)

UpdateEventSourceMapping API operation for AWS Lambda.

Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location.

The following error handling options are only available for stream sources (DynamoDB and Kinesis):

  • BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry.

  • DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic.

  • MaximumRecordAgeInSeconds - Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires

  • MaximumRetryAttempts - 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.

  • ParallelizationFactor - Process multiple batches from each shard concurrently.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation UpdateEventSourceMapping for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ResourceConflictException The resource already exists, or another operation is in progress.

  • ResourceInUseException The operation conflicts with the resource's availability. For example, you attempted to update an EventSource Mapping in CREATING, or tried to delete a EventSource mapping currently in the UPDATING state.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping

Example (Shared00)

To update a Lambda function event source mapping

This operation updates a Lambda function event source mapping

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.UpdateEventSourceMappingInput{
		BatchSize:    aws.Int64(123),
		Enabled:      aws.Bool(true),
		FunctionName: aws.String("myFunction"),
		UUID:         aws.String("1234xCy789012"),
	}

	result, err := svc.UpdateEventSourceMapping(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			case lambda.ErrCodeResourceInUseException:
				fmt.Println(lambda.ErrCodeResourceInUseException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) UpdateEventSourceMappingRequest

func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration)

UpdateEventSourceMappingRequest generates a "aws/request.Request" representing the client's request for the UpdateEventSourceMapping operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateEventSourceMapping for more information on using the UpdateEventSourceMapping API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateEventSourceMappingRequest method.
req, resp := client.UpdateEventSourceMappingRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping

func (*Lambda) UpdateEventSourceMappingWithContext

func (c *Lambda) UpdateEventSourceMappingWithContext(ctx aws.Context, input *UpdateEventSourceMappingInput, opts ...request.Option) (*EventSourceMappingConfiguration, error)

UpdateEventSourceMappingWithContext is the same as UpdateEventSourceMapping with the addition of the ability to pass a context and additional request options.

See UpdateEventSourceMapping for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) UpdateFunctionCode

func (c *Lambda) UpdateFunctionCode(input *UpdateFunctionCodeInput) (*FunctionConfiguration, error)

UpdateFunctionCode API operation for AWS Lambda.

Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see Configuring code signing (https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html).

The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.

For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if you update the image tag to a new image, Lambda does not automatically update the function.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation UpdateFunctionCode for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

  • CodeStorageExceededException You have exceeded your maximum total code size per account. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html)

  • PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction or the GetAlias API to retrieve the latest RevisionId for your resource.

  • ResourceConflictException The resource already exists, or another operation is in progress.

  • 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.

  • InvalidCodeSignatureException The code signature failed the integrity check. Lambda always blocks deployment if the integrity check fails, even if code signing policy is set to WARN.

  • CodeSigningConfigNotFoundException The specified code signing configuration does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode

Example (Shared00)

To update a Lambda function's code

The following example replaces the code of the unpublished ($LATEST) version of a function named my-function with the contents of the specified zip file in Amazon S3.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.UpdateFunctionCodeInput{
		FunctionName: aws.String("my-function"),
		S3Bucket:     aws.String("my-bucket-1xpuxmplzrlbh"),
		S3Key:        aws.String("function.zip"),
	}

	result, err := svc.UpdateFunctionCode(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeCodeStorageExceededException:
				fmt.Println(lambda.ErrCodeCodeStorageExceededException, aerr.Error())
			case lambda.ErrCodePreconditionFailedException:
				fmt.Println(lambda.ErrCodePreconditionFailedException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			case lambda.ErrCodeCodeVerificationFailedException:
				fmt.Println(lambda.ErrCodeCodeVerificationFailedException, aerr.Error())
			case lambda.ErrCodeInvalidCodeSignatureException:
				fmt.Println(lambda.ErrCodeInvalidCodeSignatureException, aerr.Error())
			case lambda.ErrCodeCodeSigningConfigNotFoundException:
				fmt.Println(lambda.ErrCodeCodeSigningConfigNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) UpdateFunctionCodeRequest

func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req *request.Request, output *FunctionConfiguration)

UpdateFunctionCodeRequest generates a "aws/request.Request" representing the client's request for the UpdateFunctionCode operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateFunctionCode for more information on using the UpdateFunctionCode API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateFunctionCodeRequest method.
req, resp := client.UpdateFunctionCodeRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode

func (*Lambda) UpdateFunctionCodeWithContext

func (c *Lambda) UpdateFunctionCodeWithContext(ctx aws.Context, input *UpdateFunctionCodeInput, opts ...request.Option) (*FunctionConfiguration, error)

UpdateFunctionCodeWithContext is the same as UpdateFunctionCode with the addition of the ability to pass a context and additional request options.

See UpdateFunctionCode for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) UpdateFunctionConfiguration

func (c *Lambda) UpdateFunctionConfiguration(input *UpdateFunctionConfigurationInput) (*FunctionConfiguration, error)

UpdateFunctionConfiguration API operation for AWS Lambda.

Modify the version-specific settings of a Lambda function.

When you update a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify the function, but you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason, and LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration indicate when the update is complete and the function is processing events with the new configuration. For more information, see Function States (https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html).

These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version.

To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an account or Amazon Web Services service, use AddPermission.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation UpdateFunctionConfiguration for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ResourceConflictException The resource already exists, or another operation is in progress.

  • PreconditionFailedException The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction or the GetAlias API to retrieve the latest RevisionId for your resource.

  • 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.

  • InvalidCodeSignatureException The code signature failed the integrity check. Lambda always blocks deployment if the integrity check fails, even if code signing policy is set to WARN.

  • CodeSigningConfigNotFoundException The specified code signing configuration does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration

Example (Shared00)

To update a Lambda function's configuration

The following example modifies the memory size to be 256 MB for the unpublished ($LATEST) version of a function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.UpdateFunctionConfigurationInput{
		FunctionName: aws.String("my-function"),
		MemorySize:   aws.Int64(256),
	}

	result, err := svc.UpdateFunctionConfiguration(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			case lambda.ErrCodeResourceConflictException:
				fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
			case lambda.ErrCodePreconditionFailedException:
				fmt.Println(lambda.ErrCodePreconditionFailedException, aerr.Error())
			case lambda.ErrCodeCodeVerificationFailedException:
				fmt.Println(lambda.ErrCodeCodeVerificationFailedException, aerr.Error())
			case lambda.ErrCodeInvalidCodeSignatureException:
				fmt.Println(lambda.ErrCodeInvalidCodeSignatureException, aerr.Error())
			case lambda.ErrCodeCodeSigningConfigNotFoundException:
				fmt.Println(lambda.ErrCodeCodeSigningConfigNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) UpdateFunctionConfigurationRequest

func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration)

UpdateFunctionConfigurationRequest generates a "aws/request.Request" representing the client's request for the UpdateFunctionConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateFunctionConfiguration for more information on using the UpdateFunctionConfiguration API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateFunctionConfigurationRequest method.
req, resp := client.UpdateFunctionConfigurationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration

func (*Lambda) UpdateFunctionConfigurationWithContext

func (c *Lambda) UpdateFunctionConfigurationWithContext(ctx aws.Context, input *UpdateFunctionConfigurationInput, opts ...request.Option) (*FunctionConfiguration, error)

UpdateFunctionConfigurationWithContext is the same as UpdateFunctionConfiguration with the addition of the ability to pass a context and additional request options.

See UpdateFunctionConfiguration for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) UpdateFunctionEventInvokeConfig

func (c *Lambda) UpdateFunctionEventInvokeConfig(input *UpdateFunctionEventInvokeConfigInput) (*UpdateFunctionEventInvokeConfigOutput, error)

UpdateFunctionEventInvokeConfig API operation for AWS Lambda.

Updates the configuration for asynchronous invocation for a function, version, or alias.

To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Lambda's API operation UpdateFunctionEventInvokeConfig for usage and error information.

Returned Error Types:

  • ServiceException The Lambda service encountered an internal error.

  • ResourceNotFoundException The resource specified in the request does not exist.

  • InvalidParameterValueException One of the parameters in the request is invalid.

  • TooManyRequestsException The request throughput limit was exceeded.

  • ResourceConflictException The resource already exists, or another operation is in progress.

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionEventInvokeConfig

Example (Shared00)

To update an asynchronous invocation configuration

The following example adds an on-failure destination to the existing asynchronous invocation configuration for a function named my-function.

package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/lambda"
)

func main() {
	svc := lambda.New(session.New())
	input := &lambda.UpdateFunctionEventInvokeConfigInput{
		DestinationConfig: &lambda.DestinationConfig{
			OnFailure: &lambda.OnFailure{
				Destination: aws.String("arn:aws:sqs:us-east-2:123456789012:destination"),
			},
		},
		FunctionName: aws.String("my-function"),
	}

	result, err := svc.UpdateFunctionEventInvokeConfig(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case lambda.ErrCodeServiceException:
				fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
			case lambda.ErrCodeResourceNotFoundException:
				fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
			case lambda.ErrCodeInvalidParameterValueException:
				fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
			case lambda.ErrCodeTooManyRequestsException:
				fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*Lambda) UpdateFunctionEventInvokeConfigRequest

func (c *Lambda) UpdateFunctionEventInvokeConfigRequest(input *UpdateFunctionEventInvokeConfigInput) (req *request.Request, output *UpdateFunctionEventInvokeConfigOutput)

UpdateFunctionEventInvokeConfigRequest generates a "aws/request.Request" representing the client's request for the UpdateFunctionEventInvokeConfig operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateFunctionEventInvokeConfig for more information on using the UpdateFunctionEventInvokeConfig API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateFunctionEventInvokeConfigRequest method.
req, resp := client.UpdateFunctionEventInvokeConfigRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionEventInvokeConfig

func (*Lambda) UpdateFunctionEventInvokeConfigWithContext

func (c *Lambda) UpdateFunctionEventInvokeConfigWithContext(ctx aws.Context, input *UpdateFunctionEventInvokeConfigInput, opts ...request.Option) (*UpdateFunctionEventInvokeConfigOutput, error)

UpdateFunctionEventInvokeConfigWithContext is the same as UpdateFunctionEventInvokeConfig with the addition of the ability to pass a context and additional request options.

See UpdateFunctionEventInvokeConfig for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) WaitUntilFunctionActive

func (c *Lambda) WaitUntilFunctionActive(input *GetFunctionConfigurationInput) error

WaitUntilFunctionActive uses the AWS Lambda API operation GetFunctionConfiguration to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*Lambda) WaitUntilFunctionActiveWithContext

func (c *Lambda) WaitUntilFunctionActiveWithContext(ctx aws.Context, input *GetFunctionConfigurationInput, opts ...request.WaiterOption) error

WaitUntilFunctionActiveWithContext is an extended version of WaitUntilFunctionActive. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) WaitUntilFunctionExists

func (c *Lambda) WaitUntilFunctionExists(input *GetFunctionInput) error

WaitUntilFunctionExists uses the AWS Lambda API operation GetFunction to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*Lambda) WaitUntilFunctionExistsWithContext

func (c *Lambda) WaitUntilFunctionExistsWithContext(ctx aws.Context, input *GetFunctionInput, opts ...request.WaiterOption) error

WaitUntilFunctionExistsWithContext is an extended version of WaitUntilFunctionExists. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Lambda) WaitUntilFunctionUpdated

func (c *Lambda) WaitUntilFunctionUpdated(input *GetFunctionConfigurationInput) error

WaitUntilFunctionUpdated uses the AWS Lambda API operation GetFunctionConfiguration to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.

func (*Lambda) WaitUntilFunctionUpdatedWithContext

func (c *Lambda) WaitUntilFunctionUpdatedWithContext(ctx aws.Context, input *GetFunctionConfigurationInput, opts ...request.WaiterOption) error

WaitUntilFunctionUpdatedWithContext is an extended version of WaitUntilFunctionUpdated. With the support for passing in a context and options to configure the Waiter and the underlying request options.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type Layer

type Layer struct {

	// The Amazon Resource Name (ARN) of the function layer.
	Arn *string `min:"1" type:"string"`

	// The size of the layer archive in bytes.
	CodeSize *int64 `type:"long"`

	// The Amazon Resource Name (ARN) of a signing job.
	SigningJobArn *string `type:"string"`

	// The Amazon Resource Name (ARN) for a signing profile version.
	SigningProfileVersionArn *string `type:"string"`
	// contains filtered or unexported fields
}

An Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).

func (Layer) GoString

func (s Layer) 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 (*Layer) SetArn

func (s *Layer) SetArn(v string) *Layer

SetArn sets the Arn field's value.

func (*Layer) SetCodeSize

func (s *Layer) SetCodeSize(v int64) *Layer

SetCodeSize sets the CodeSize field's value.

func (*Layer) SetSigningJobArn

func (s *Layer) SetSigningJobArn(v string) *Layer

SetSigningJobArn sets the SigningJobArn field's value.

func (*Layer) SetSigningProfileVersionArn

func (s *Layer) SetSigningProfileVersionArn(v string) *Layer

SetSigningProfileVersionArn sets the SigningProfileVersionArn field's value.

func (Layer) String

func (s Layer) 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 LayerVersionContentInput

type LayerVersionContentInput struct {

	// The Amazon S3 bucket of the layer archive.
	S3Bucket *string `min:"3" type:"string"`

	// The Amazon S3 key of the layer archive.
	S3Key *string `min:"1" type:"string"`

	// For versioned objects, the version of the layer archive object to use.
	S3ObjectVersion *string `min:"1" type:"string"`

	// The base64-encoded contents of the layer archive. Amazon Web Services SDK
	// and Amazon Web Services CLI clients handle the encoding for you.
	//
	// ZipFile is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by LayerVersionContentInput's
	// String and GoString methods.
	//
	// ZipFile is automatically base64 encoded/decoded by the SDK.
	ZipFile []byte `type:"blob" sensitive:"true"`
	// contains filtered or unexported fields
}

A ZIP archive that contains the contents of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). You can specify either an Amazon S3 location, or upload a layer archive directly.

func (LayerVersionContentInput) GoString

func (s LayerVersionContentInput) 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 (*LayerVersionContentInput) SetS3Bucket

SetS3Bucket sets the S3Bucket field's value.

func (*LayerVersionContentInput) SetS3Key

SetS3Key sets the S3Key field's value.

func (*LayerVersionContentInput) SetS3ObjectVersion

func (s *LayerVersionContentInput) SetS3ObjectVersion(v string) *LayerVersionContentInput

SetS3ObjectVersion sets the S3ObjectVersion field's value.

func (*LayerVersionContentInput) SetZipFile

SetZipFile sets the ZipFile field's value.

func (LayerVersionContentInput) String

func (s LayerVersionContentInput) 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 (*LayerVersionContentInput) Validate

func (s *LayerVersionContentInput) Validate() error

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

type LayerVersionContentOutput

type LayerVersionContentOutput struct {

	// The SHA-256 hash of the layer archive.
	CodeSha256 *string `type:"string"`

	// The size of the layer archive in bytes.
	CodeSize *int64 `type:"long"`

	// A link to the layer archive in Amazon S3 that is valid for 10 minutes.
	Location *string `type:"string"`

	// The Amazon Resource Name (ARN) of a signing job.
	SigningJobArn *string `type:"string"`

	// The Amazon Resource Name (ARN) for a signing profile version.
	SigningProfileVersionArn *string `type:"string"`
	// contains filtered or unexported fields
}

Details about a version of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).

func (LayerVersionContentOutput) GoString

func (s LayerVersionContentOutput) 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 (*LayerVersionContentOutput) SetCodeSha256

SetCodeSha256 sets the CodeSha256 field's value.

func (*LayerVersionContentOutput) SetCodeSize

SetCodeSize sets the CodeSize field's value.

func (*LayerVersionContentOutput) SetLocation

SetLocation sets the Location field's value.

func (*LayerVersionContentOutput) SetSigningJobArn

SetSigningJobArn sets the SigningJobArn field's value.

func (*LayerVersionContentOutput) SetSigningProfileVersionArn

func (s *LayerVersionContentOutput) SetSigningProfileVersionArn(v string) *LayerVersionContentOutput

SetSigningProfileVersionArn sets the SigningProfileVersionArn field's value.

func (LayerVersionContentOutput) String

func (s LayerVersionContentOutput) 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 LayerVersionsListItem

type LayerVersionsListItem struct {

	// A list of compatible instruction set architectures (https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html).
	CompatibleArchitectures []*string `type:"list"`

	// The layer's compatible runtimes.
	CompatibleRuntimes []*string `type:"list"`

	// The date that the version was created, in ISO 8601 format. For example, 2018-11-27T15:10:45.123+0000.
	CreatedDate *string `type:"string"`

	// The description of the version.
	Description *string `type:"string"`

	// The ARN of the layer version.
	LayerVersionArn *string `min:"1" type:"string"`

	// The layer's open-source license.
	LicenseInfo *string `type:"string"`

	// The version number.
	Version *int64 `type:"long"`
	// contains filtered or unexported fields
}

Details about a version of an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).

func (LayerVersionsListItem) GoString

func (s LayerVersionsListItem) 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 (*LayerVersionsListItem) SetCompatibleArchitectures

func (s *LayerVersionsListItem) SetCompatibleArchitectures(v []*string) *LayerVersionsListItem

SetCompatibleArchitectures sets the CompatibleArchitectures field's value.

func (*LayerVersionsListItem) SetCompatibleRuntimes

func (s *LayerVersionsListItem) SetCompatibleRuntimes(v []*string) *LayerVersionsListItem

SetCompatibleRuntimes sets the CompatibleRuntimes field's value.

func (*LayerVersionsListItem) SetCreatedDate

func (s *LayerVersionsListItem) SetCreatedDate(v string) *LayerVersionsListItem

SetCreatedDate sets the CreatedDate field's value.

func (*LayerVersionsListItem) SetDescription

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

SetDescription sets the Description field's value.

func (*LayerVersionsListItem) SetLayerVersionArn

func (s *LayerVersionsListItem) SetLayerVersionArn(v string) *LayerVersionsListItem

SetLayerVersionArn sets the LayerVersionArn field's value.

func (*LayerVersionsListItem) SetLicenseInfo

func (s *LayerVersionsListItem) SetLicenseInfo(v string) *LayerVersionsListItem

SetLicenseInfo sets the LicenseInfo field's value.

func (*LayerVersionsListItem) SetVersion

SetVersion sets the Version field's value.

func (LayerVersionsListItem) String

func (s LayerVersionsListItem) 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 LayersListItem

type LayersListItem struct {

	// The newest version of the layer.
	LatestMatchingVersion *LayerVersionsListItem `type:"structure"`

	// The Amazon Resource Name (ARN) of the function layer.
	LayerArn *string `min:"1" type:"string"`

	// The name of the layer.
	LayerName *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

Details about an Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).

func (LayersListItem) GoString

func (s LayersListItem) 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 (*LayersListItem) SetLatestMatchingVersion

func (s *LayersListItem) SetLatestMatchingVersion(v *LayerVersionsListItem) *LayersListItem

SetLatestMatchingVersion sets the LatestMatchingVersion field's value.

func (*LayersListItem) SetLayerArn

func (s *LayersListItem) SetLayerArn(v string) *LayersListItem

SetLayerArn sets the LayerArn field's value.

func (*LayersListItem) SetLayerName

func (s *LayersListItem) SetLayerName(v string) *LayersListItem

SetLayerName sets the LayerName field's value.

func (LayersListItem) String

func (s LayersListItem) 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 ListAliasesInput

type ListAliasesInput struct {

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

	// Specify a function version to only list aliases that invoke that version.
	FunctionVersion *string `location:"querystring" locationName:"FunctionVersion" min:"1" type:"string"`

	// Specify the pagination token that's returned by a previous request to retrieve
	// the next page of results.
	Marker *string `location:"querystring" locationName:"Marker" type:"string"`

	// Limit the number of aliases returned.
	MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"`
	// contains filtered or unexported fields
}

func (ListAliasesInput) GoString

func (s ListAliasesInput) 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 (*ListAliasesInput) SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

func (*ListAliasesInput) SetFunctionVersion

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

SetFunctionVersion sets the FunctionVersion field's value.

func (*ListAliasesInput) SetMarker

func (s *ListAliasesInput) SetMarker(v string) *ListAliasesInput

SetMarker sets the Marker field's value.

func (*ListAliasesInput) SetMaxItems

func (s *ListAliasesInput) SetMaxItems(v int64) *ListAliasesInput

SetMaxItems sets the MaxItems field's value.

func (ListAliasesInput) String

func (s ListAliasesInput) 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 (*ListAliasesInput) Validate

func (s *ListAliasesInput) Validate() error

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

type ListAliasesOutput

type ListAliasesOutput struct {

	// A list of aliases.
	Aliases []*AliasConfiguration `type:"list"`

	// The pagination token that's included if more results are available.
	NextMarker *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListAliasesOutput) GoString

func (s ListAliasesOutput) 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 (*ListAliasesOutput) SetAliases

SetAliases sets the Aliases field's value.

func (*ListAliasesOutput) SetNextMarker

func (s *ListAliasesOutput) SetNextMarker(v string) *ListAliasesOutput

SetNextMarker sets the NextMarker field's value.

func (ListAliasesOutput) String

func (s ListAliasesOutput) 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 ListCodeSigningConfigsInput

type ListCodeSigningConfigsInput struct {

	// Specify the pagination token that's returned by a previous request to retrieve
	// the next page of results.
	Marker *string `location:"querystring" locationName:"Marker" type:"string"`

	// Maximum number of items to return.
	MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"`
	// contains filtered or unexported fields
}

func (ListCodeSigningConfigsInput) GoString

func (s ListCodeSigningConfigsInput) 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 (*ListCodeSigningConfigsInput) SetMarker

SetMarker sets the Marker field's value.

func (*ListCodeSigningConfigsInput) SetMaxItems

SetMaxItems sets the MaxItems field's value.

func (ListCodeSigningConfigsInput) 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 (*ListCodeSigningConfigsInput) Validate

func (s *ListCodeSigningConfigsInput) Validate() error

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

type ListCodeSigningConfigsOutput

type ListCodeSigningConfigsOutput struct {

	// The code signing configurations
	CodeSigningConfigs []*CodeSigningConfig `type:"list"`

	// The pagination token that's included if more results are available.
	NextMarker *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListCodeSigningConfigsOutput) GoString

func (s ListCodeSigningConfigsOutput) 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 (*ListCodeSigningConfigsOutput) SetCodeSigningConfigs

SetCodeSigningConfigs sets the CodeSigningConfigs field's value.

func (*ListCodeSigningConfigsOutput) SetNextMarker

SetNextMarker sets the NextMarker field's value.

func (ListCodeSigningConfigsOutput) 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 ListEventSourceMappingsInput

type ListEventSourceMappingsInput struct {

	// 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.
	EventSourceArn *string `location:"querystring" locationName:"EventSourceArn" type:"string"`

	// 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 *string `location:"querystring" locationName:"FunctionName" min:"1" type:"string"`

	// A pagination token returned by a previous call.
	Marker *string `location:"querystring" locationName:"Marker" type:"string"`

	// The maximum number of event source mappings to return. Note that ListEventSourceMappings
	// returns a maximum of 100 items in each response, even if you set the number
	// higher.
	MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"`
	// contains filtered or unexported fields
}

func (ListEventSourceMappingsInput) GoString

func (s ListEventSourceMappingsInput) 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 (*ListEventSourceMappingsInput) SetEventSourceArn

SetEventSourceArn sets the EventSourceArn field's value.

func (*ListEventSourceMappingsInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*ListEventSourceMappingsInput) SetMarker

SetMarker sets the Marker field's value.

func (*ListEventSourceMappingsInput) SetMaxItems

SetMaxItems sets the MaxItems field's value.

func (ListEventSourceMappingsInput) 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 (*ListEventSourceMappingsInput) Validate

func (s *ListEventSourceMappingsInput) Validate() error

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

type ListEventSourceMappingsOutput

type ListEventSourceMappingsOutput struct {

	// A list of event source mappings.
	EventSourceMappings []*EventSourceMappingConfiguration `type:"list"`

	// A pagination token that's returned when the response doesn't contain all
	// event source mappings.
	NextMarker *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListEventSourceMappingsOutput) GoString

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 (*ListEventSourceMappingsOutput) SetEventSourceMappings

SetEventSourceMappings sets the EventSourceMappings field's value.

func (*ListEventSourceMappingsOutput) SetNextMarker

SetNextMarker sets the NextMarker field's value.

func (ListEventSourceMappingsOutput) 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 ListFunctionEventInvokeConfigsInput

type ListFunctionEventInvokeConfigsInput struct {

	// The name of the Lambda function.
	//
	// Name formats
	//
	//    * Function name - my-function.
	//
	//    * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//    * Partial ARN - 123456789012:function:my-function.
	//
	// 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"`

	// Specify the pagination token that's returned by a previous request to retrieve
	// the next page of results.
	Marker *string `location:"querystring" locationName:"Marker" type:"string"`

	// The maximum number of configurations to return.
	MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"`
	// contains filtered or unexported fields
}

func (ListFunctionEventInvokeConfigsInput) GoString

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 (*ListFunctionEventInvokeConfigsInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*ListFunctionEventInvokeConfigsInput) SetMarker

SetMarker sets the Marker field's value.

func (*ListFunctionEventInvokeConfigsInput) SetMaxItems

SetMaxItems sets the MaxItems field's value.

func (ListFunctionEventInvokeConfigsInput) 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 (*ListFunctionEventInvokeConfigsInput) Validate

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

type ListFunctionEventInvokeConfigsOutput

type ListFunctionEventInvokeConfigsOutput struct {

	// A list of configurations.
	FunctionEventInvokeConfigs []*FunctionEventInvokeConfig `type:"list"`

	// The pagination token that's included if more results are available.
	NextMarker *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListFunctionEventInvokeConfigsOutput) GoString

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 (*ListFunctionEventInvokeConfigsOutput) SetFunctionEventInvokeConfigs

SetFunctionEventInvokeConfigs sets the FunctionEventInvokeConfigs field's value.

func (*ListFunctionEventInvokeConfigsOutput) SetNextMarker

SetNextMarker sets the NextMarker field's value.

func (ListFunctionEventInvokeConfigsOutput) 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 ListFunctionsByCodeSigningConfigInput

type ListFunctionsByCodeSigningConfigInput struct {

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

	// Specify the pagination token that's returned by a previous request to retrieve
	// the next page of results.
	Marker *string `location:"querystring" locationName:"Marker" type:"string"`

	// Maximum number of items to return.
	MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"`
	// contains filtered or unexported fields
}

func (ListFunctionsByCodeSigningConfigInput) GoString

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 (*ListFunctionsByCodeSigningConfigInput) SetCodeSigningConfigArn

SetCodeSigningConfigArn sets the CodeSigningConfigArn field's value.

func (*ListFunctionsByCodeSigningConfigInput) SetMarker

SetMarker sets the Marker field's value.

func (*ListFunctionsByCodeSigningConfigInput) SetMaxItems

SetMaxItems sets the MaxItems field's value.

func (ListFunctionsByCodeSigningConfigInput) 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 (*ListFunctionsByCodeSigningConfigInput) Validate

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

type ListFunctionsByCodeSigningConfigOutput

type ListFunctionsByCodeSigningConfigOutput struct {

	// The function ARNs.
	FunctionArns []*string `type:"list"`

	// The pagination token that's included if more results are available.
	NextMarker *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListFunctionsByCodeSigningConfigOutput) GoString

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 (*ListFunctionsByCodeSigningConfigOutput) SetFunctionArns

SetFunctionArns sets the FunctionArns field's value.

func (*ListFunctionsByCodeSigningConfigOutput) SetNextMarker

SetNextMarker sets the NextMarker field's value.

func (ListFunctionsByCodeSigningConfigOutput) 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 ListFunctionsInput

type ListFunctionsInput struct {

	// Set to ALL to include entries for all published versions of each function.
	FunctionVersion *string `location:"querystring" locationName:"FunctionVersion" type:"string" enum:"FunctionVersion"`

	// Specify the pagination token that's returned by a previous request to retrieve
	// the next page of results.
	Marker *string `location:"querystring" locationName:"Marker" type:"string"`

	// For Lambda@Edge functions, the Amazon Web Services Region of the master function.
	// For example, us-east-1 filters the list of functions to only include Lambda@Edge
	// functions replicated from a master function in US East (N. Virginia). If
	// specified, you must set FunctionVersion to ALL.
	MasterRegion *string `location:"querystring" locationName:"MasterRegion" type:"string"`

	// The maximum number of functions to return in the response. Note that ListFunctions
	// returns a maximum of 50 items in each response, even if you set the number
	// higher.
	MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"`
	// contains filtered or unexported fields
}

func (ListFunctionsInput) GoString

func (s ListFunctionsInput) 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 (*ListFunctionsInput) SetFunctionVersion

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

SetFunctionVersion sets the FunctionVersion field's value.

func (*ListFunctionsInput) SetMarker

func (s *ListFunctionsInput) SetMarker(v string) *ListFunctionsInput

SetMarker sets the Marker field's value.

func (*ListFunctionsInput) SetMasterRegion

func (s *ListFunctionsInput) SetMasterRegion(v string) *ListFunctionsInput

SetMasterRegion sets the MasterRegion field's value.

func (*ListFunctionsInput) SetMaxItems

func (s *ListFunctionsInput) SetMaxItems(v int64) *ListFunctionsInput

SetMaxItems sets the MaxItems field's value.

func (ListFunctionsInput) String

func (s ListFunctionsInput) 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 (*ListFunctionsInput) Validate

func (s *ListFunctionsInput) Validate() error

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

type ListFunctionsOutput

type ListFunctionsOutput struct {

	// A list of Lambda functions.
	Functions []*FunctionConfiguration `type:"list"`

	// The pagination token that's included if more results are available.
	NextMarker *string `type:"string"`
	// contains filtered or unexported fields
}

A list of Lambda functions.

func (ListFunctionsOutput) GoString

func (s ListFunctionsOutput) 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 (*ListFunctionsOutput) SetFunctions

SetFunctions sets the Functions field's value.

func (*ListFunctionsOutput) SetNextMarker

func (s *ListFunctionsOutput) SetNextMarker(v string) *ListFunctionsOutput

SetNextMarker sets the NextMarker field's value.

func (ListFunctionsOutput) String

func (s ListFunctionsOutput) 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 ListLayerVersionsInput

type ListLayerVersionsInput struct {

	// The compatible instruction set architecture (https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html).
	CompatibleArchitecture *string `location:"querystring" locationName:"CompatibleArchitecture" type:"string" enum:"Architecture"`

	// A runtime identifier. For example, go1.x.
	CompatibleRuntime *string `location:"querystring" locationName:"CompatibleRuntime" type:"string" enum:"Runtime"`

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

	// A pagination token returned by a previous call.
	Marker *string `location:"querystring" locationName:"Marker" type:"string"`

	// The maximum number of versions to return.
	MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"`
	// contains filtered or unexported fields
}

func (ListLayerVersionsInput) GoString

func (s ListLayerVersionsInput) 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 (*ListLayerVersionsInput) SetCompatibleArchitecture

func (s *ListLayerVersionsInput) SetCompatibleArchitecture(v string) *ListLayerVersionsInput

SetCompatibleArchitecture sets the CompatibleArchitecture field's value.

func (*ListLayerVersionsInput) SetCompatibleRuntime

func (s *ListLayerVersionsInput) SetCompatibleRuntime(v string) *ListLayerVersionsInput

SetCompatibleRuntime sets the CompatibleRuntime field's value.

func (*ListLayerVersionsInput) SetLayerName

SetLayerName sets the LayerName field's value.

func (*ListLayerVersionsInput) SetMarker

SetMarker sets the Marker field's value.

func (*ListLayerVersionsInput) SetMaxItems

SetMaxItems sets the MaxItems field's value.

func (ListLayerVersionsInput) String

func (s ListLayerVersionsInput) 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 (*ListLayerVersionsInput) Validate

func (s *ListLayerVersionsInput) Validate() error

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

type ListLayerVersionsOutput

type ListLayerVersionsOutput struct {

	// A list of versions.
	LayerVersions []*LayerVersionsListItem `type:"list"`

	// A pagination token returned when the response doesn't contain all versions.
	NextMarker *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListLayerVersionsOutput) GoString

func (s ListLayerVersionsOutput) 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 (*ListLayerVersionsOutput) SetLayerVersions

SetLayerVersions sets the LayerVersions field's value.

func (*ListLayerVersionsOutput) SetNextMarker

SetNextMarker sets the NextMarker field's value.

func (ListLayerVersionsOutput) String

func (s ListLayerVersionsOutput) 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 ListLayersInput

type ListLayersInput struct {

	// The compatible instruction set architecture (https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html).
	CompatibleArchitecture *string `location:"querystring" locationName:"CompatibleArchitecture" type:"string" enum:"Architecture"`

	// A runtime identifier. For example, go1.x.
	CompatibleRuntime *string `location:"querystring" locationName:"CompatibleRuntime" type:"string" enum:"Runtime"`

	// A pagination token returned by a previous call.
	Marker *string `location:"querystring" locationName:"Marker" type:"string"`

	// The maximum number of layers to return.
	MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"`
	// contains filtered or unexported fields
}

func (ListLayersInput) GoString

func (s ListLayersInput) 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 (*ListLayersInput) SetCompatibleArchitecture

func (s *ListLayersInput) SetCompatibleArchitecture(v string) *ListLayersInput

SetCompatibleArchitecture sets the CompatibleArchitecture field's value.

func (*ListLayersInput) SetCompatibleRuntime

func (s *ListLayersInput) SetCompatibleRuntime(v string) *ListLayersInput

SetCompatibleRuntime sets the CompatibleRuntime field's value.

func (*ListLayersInput) SetMarker

func (s *ListLayersInput) SetMarker(v string) *ListLayersInput

SetMarker sets the Marker field's value.

func (*ListLayersInput) SetMaxItems

func (s *ListLayersInput) SetMaxItems(v int64) *ListLayersInput

SetMaxItems sets the MaxItems field's value.

func (ListLayersInput) String

func (s ListLayersInput) 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 (*ListLayersInput) Validate

func (s *ListLayersInput) Validate() error

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

type ListLayersOutput

type ListLayersOutput struct {

	// A list of function layers.
	Layers []*LayersListItem `type:"list"`

	// A pagination token returned when the response doesn't contain all layers.
	NextMarker *string `type:"string"`
	// contains filtered or unexported fields
}

func (ListLayersOutput) GoString

func (s ListLayersOutput) 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 (*ListLayersOutput) SetLayers

func (s *ListLayersOutput) SetLayers(v []*LayersListItem) *ListLayersOutput

SetLayers sets the Layers field's value.

func (*ListLayersOutput) SetNextMarker

func (s *ListLayersOutput) SetNextMarker(v string) *ListLayersOutput

SetNextMarker sets the NextMarker field's value.

func (ListLayersOutput) String

func (s ListLayersOutput) 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 ListProvisionedConcurrencyConfigsInput

type ListProvisionedConcurrencyConfigsInput struct {

	// The name of the Lambda function.
	//
	// Name formats
	//
	//    * Function name - my-function.
	//
	//    * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//    * Partial ARN - 123456789012:function:my-function.
	//
	// 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"`

	// Specify the pagination token that's returned by a previous request to retrieve
	// the next page of results.
	Marker *string `location:"querystring" locationName:"Marker" type:"string"`

	// Specify a number to limit the number of configurations returned.
	MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"`
	// contains filtered or unexported fields
}

func (ListProvisionedConcurrencyConfigsInput) GoString

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 (*ListProvisionedConcurrencyConfigsInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*ListProvisionedConcurrencyConfigsInput) SetMarker

SetMarker sets the Marker field's value.

func (*ListProvisionedConcurrencyConfigsInput) SetMaxItems

SetMaxItems sets the MaxItems field's value.

func (ListProvisionedConcurrencyConfigsInput) 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 (*ListProvisionedConcurrencyConfigsInput) Validate

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

type ListProvisionedConcurrencyConfigsOutput

type ListProvisionedConcurrencyConfigsOutput struct {

	// The pagination token that's included if more results are available.
	NextMarker *string `type:"string"`

	// A list of provisioned concurrency configurations.
	ProvisionedConcurrencyConfigs []*ProvisionedConcurrencyConfigListItem `type:"list"`
	// contains filtered or unexported fields
}

func (ListProvisionedConcurrencyConfigsOutput) GoString

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 (*ListProvisionedConcurrencyConfigsOutput) SetNextMarker

SetNextMarker sets the NextMarker field's value.

func (*ListProvisionedConcurrencyConfigsOutput) SetProvisionedConcurrencyConfigs

SetProvisionedConcurrencyConfigs sets the ProvisionedConcurrencyConfigs field's value.

func (ListProvisionedConcurrencyConfigsOutput) 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 ListTagsInput

type ListTagsInput struct {

	// The function's Amazon Resource Name (ARN). Note: Lambda does not support
	// adding tags to aliases or versions.
	//
	// Resource is a required field
	Resource *string `location:"uri" locationName:"ARN" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ListTagsInput) GoString

func (s ListTagsInput) 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 (*ListTagsInput) SetResource

func (s *ListTagsInput) SetResource(v string) *ListTagsInput

SetResource sets the Resource field's value.

func (ListTagsInput) String

func (s ListTagsInput) 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 (*ListTagsInput) Validate

func (s *ListTagsInput) Validate() error

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

type ListTagsOutput

type ListTagsOutput struct {

	// The function's tags.
	Tags map[string]*string `type:"map"`
	// contains filtered or unexported fields
}

func (ListTagsOutput) GoString

func (s ListTagsOutput) 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 (*ListTagsOutput) SetTags

func (s *ListTagsOutput) SetTags(v map[string]*string) *ListTagsOutput

SetTags sets the Tags field's value.

func (ListTagsOutput) String

func (s ListTagsOutput) 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 ListVersionsByFunctionInput

type ListVersionsByFunctionInput struct {

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

	// Specify the pagination token that's returned by a previous request to retrieve
	// the next page of results.
	Marker *string `location:"querystring" locationName:"Marker" type:"string"`

	// The maximum number of versions to return. Note that ListVersionsByFunction
	// returns a maximum of 50 items in each response, even if you set the number
	// higher.
	MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"`
	// contains filtered or unexported fields
}

func (ListVersionsByFunctionInput) GoString

func (s ListVersionsByFunctionInput) 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 (*ListVersionsByFunctionInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*ListVersionsByFunctionInput) SetMarker

SetMarker sets the Marker field's value.

func (*ListVersionsByFunctionInput) SetMaxItems

SetMaxItems sets the MaxItems field's value.

func (ListVersionsByFunctionInput) 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 (*ListVersionsByFunctionInput) Validate

func (s *ListVersionsByFunctionInput) Validate() error

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

type ListVersionsByFunctionOutput

type ListVersionsByFunctionOutput struct {

	// The pagination token that's included if more results are available.
	NextMarker *string `type:"string"`

	// A list of Lambda function versions.
	Versions []*FunctionConfiguration `type:"list"`
	// contains filtered or unexported fields
}

func (ListVersionsByFunctionOutput) GoString

func (s ListVersionsByFunctionOutput) 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 (*ListVersionsByFunctionOutput) SetNextMarker

SetNextMarker sets the NextMarker field's value.

func (*ListVersionsByFunctionOutput) SetVersions

SetVersions sets the Versions field's value.

func (ListVersionsByFunctionOutput) 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 OnFailure

type OnFailure struct {

	// The Amazon Resource Name (ARN) of the destination resource.
	Destination *string `type:"string"`
	// contains filtered or unexported fields
}

A destination for events that failed processing.

func (OnFailure) GoString

func (s OnFailure) 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 (*OnFailure) SetDestination

func (s *OnFailure) SetDestination(v string) *OnFailure

SetDestination sets the Destination field's value.

func (OnFailure) String

func (s OnFailure) 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 OnSuccess

type OnSuccess struct {

	// The Amazon Resource Name (ARN) of the destination resource.
	Destination *string `type:"string"`
	// contains filtered or unexported fields
}

A destination for events that were processed successfully.

func (OnSuccess) GoString

func (s OnSuccess) 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 (*OnSuccess) SetDestination

func (s *OnSuccess) SetDestination(v string) *OnSuccess

SetDestination sets the Destination field's value.

func (OnSuccess) String

func (s OnSuccess) 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 PolicyLengthExceededException

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

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

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

The permissions policy for the resource is too large. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html)

func (*PolicyLengthExceededException) Code

Code returns the exception type name.

func (*PolicyLengthExceededException) Error

func (PolicyLengthExceededException) GoString

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 (*PolicyLengthExceededException) Message

Message returns the exception's message.

func (*PolicyLengthExceededException) OrigErr

func (s *PolicyLengthExceededException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*PolicyLengthExceededException) RequestID

func (s *PolicyLengthExceededException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*PolicyLengthExceededException) StatusCode

func (s *PolicyLengthExceededException) StatusCode() int

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

func (PolicyLengthExceededException) 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 PreconditionFailedException

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

	// The exception message.
	Message_ *string `locationName:"message" type:"string"`

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

The RevisionId provided does not match the latest RevisionId for the Lambda function or alias. Call the GetFunction or the GetAlias API to retrieve the latest RevisionId for your resource.

func (*PreconditionFailedException) Code

Code returns the exception type name.

func (*PreconditionFailedException) Error

func (PreconditionFailedException) GoString

func (s PreconditionFailedException) 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 (*PreconditionFailedException) Message

func (s *PreconditionFailedException) Message() string

Message returns the exception's message.

func (*PreconditionFailedException) OrigErr

func (s *PreconditionFailedException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*PreconditionFailedException) RequestID

func (s *PreconditionFailedException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*PreconditionFailedException) StatusCode

func (s *PreconditionFailedException) StatusCode() int

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

func (PreconditionFailedException) 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 ProvisionedConcurrencyConfigListItem

type ProvisionedConcurrencyConfigListItem struct {

	// The amount of provisioned concurrency allocated.
	AllocatedProvisionedConcurrentExecutions *int64 `type:"integer"`

	// The amount of provisioned concurrency available.
	AvailableProvisionedConcurrentExecutions *int64 `type:"integer"`

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

	// The date and time that a user last updated the configuration, in ISO 8601
	// format (https://www.iso.org/iso-8601-date-and-time-format.html).
	LastModified *string `type:"string"`

	// The amount of provisioned concurrency requested.
	RequestedProvisionedConcurrentExecutions *int64 `min:"1" type:"integer"`

	// The status of the allocation process.
	Status *string `type:"string" enum:"ProvisionedConcurrencyStatusEnum"`

	// For failed allocations, the reason that provisioned concurrency could not
	// be allocated.
	StatusReason *string `type:"string"`
	// contains filtered or unexported fields
}

Details about the provisioned concurrency configuration for a function alias or version.

func (ProvisionedConcurrencyConfigListItem) GoString

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 (*ProvisionedConcurrencyConfigListItem) SetAllocatedProvisionedConcurrentExecutions

func (s *ProvisionedConcurrencyConfigListItem) SetAllocatedProvisionedConcurrentExecutions(v int64) *ProvisionedConcurrencyConfigListItem

SetAllocatedProvisionedConcurrentExecutions sets the AllocatedProvisionedConcurrentExecutions field's value.

func (*ProvisionedConcurrencyConfigListItem) SetAvailableProvisionedConcurrentExecutions

func (s *ProvisionedConcurrencyConfigListItem) SetAvailableProvisionedConcurrentExecutions(v int64) *ProvisionedConcurrencyConfigListItem

SetAvailableProvisionedConcurrentExecutions sets the AvailableProvisionedConcurrentExecutions field's value.

func (*ProvisionedConcurrencyConfigListItem) SetFunctionArn

SetFunctionArn sets the FunctionArn field's value.

func (*ProvisionedConcurrencyConfigListItem) SetLastModified

SetLastModified sets the LastModified field's value.

func (*ProvisionedConcurrencyConfigListItem) SetRequestedProvisionedConcurrentExecutions

func (s *ProvisionedConcurrencyConfigListItem) SetRequestedProvisionedConcurrentExecutions(v int64) *ProvisionedConcurrencyConfigListItem

SetRequestedProvisionedConcurrentExecutions sets the RequestedProvisionedConcurrentExecutions field's value.

func (*ProvisionedConcurrencyConfigListItem) SetStatus

SetStatus sets the Status field's value.

func (*ProvisionedConcurrencyConfigListItem) SetStatusReason

SetStatusReason sets the StatusReason field's value.

func (ProvisionedConcurrencyConfigListItem) 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 ProvisionedConcurrencyConfigNotFoundException

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

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

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

The specified configuration does not exist.

func (*ProvisionedConcurrencyConfigNotFoundException) Code

Code returns the exception type name.

func (*ProvisionedConcurrencyConfigNotFoundException) Error

func (ProvisionedConcurrencyConfigNotFoundException) GoString

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 (*ProvisionedConcurrencyConfigNotFoundException) Message

Message returns the exception's message.

func (*ProvisionedConcurrencyConfigNotFoundException) OrigErr

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ProvisionedConcurrencyConfigNotFoundException) RequestID

RequestID returns the service's response RequestID for request.

func (*ProvisionedConcurrencyConfigNotFoundException) StatusCode

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

func (ProvisionedConcurrencyConfigNotFoundException) 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 PublishLayerVersionInput

type PublishLayerVersionInput struct {

	// A list of compatible instruction set architectures (https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html).
	CompatibleArchitectures []*string `type:"list"`

	// A list of compatible function runtimes (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html).
	// Used for filtering with ListLayers and ListLayerVersions.
	CompatibleRuntimes []*string `type:"list"`

	// The function layer archive.
	//
	// Content is a required field
	Content *LayerVersionContentInput `type:"structure" required:"true"`

	// The description of the version.
	Description *string `type:"string"`

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

	// The layer's software license. It can be any of the following:
	//
	//    * An SPDX license identifier (https://spdx.org/licenses/). For example,
	//    MIT.
	//
	//    * The URL of a license hosted on the internet. For example, https://opensource.org/licenses/MIT.
	//
	//    * The full text of the license.
	LicenseInfo *string `type:"string"`
	// contains filtered or unexported fields
}

func (PublishLayerVersionInput) GoString

func (s PublishLayerVersionInput) 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 (*PublishLayerVersionInput) SetCompatibleArchitectures

func (s *PublishLayerVersionInput) SetCompatibleArchitectures(v []*string) *PublishLayerVersionInput

SetCompatibleArchitectures sets the CompatibleArchitectures field's value.

func (*PublishLayerVersionInput) SetCompatibleRuntimes

func (s *PublishLayerVersionInput) SetCompatibleRuntimes(v []*string) *PublishLayerVersionInput

SetCompatibleRuntimes sets the CompatibleRuntimes field's value.

func (*PublishLayerVersionInput) SetContent

SetContent sets the Content field's value.

func (*PublishLayerVersionInput) SetDescription

SetDescription sets the Description field's value.

func (*PublishLayerVersionInput) SetLayerName

SetLayerName sets the LayerName field's value.

func (*PublishLayerVersionInput) SetLicenseInfo

SetLicenseInfo sets the LicenseInfo field's value.

func (PublishLayerVersionInput) String

func (s PublishLayerVersionInput) 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 (*PublishLayerVersionInput) Validate

func (s *PublishLayerVersionInput) Validate() error

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

type PublishLayerVersionOutput

type PublishLayerVersionOutput struct {

	// A list of compatible instruction set architectures (https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html).
	CompatibleArchitectures []*string `type:"list"`

	// The layer's compatible runtimes.
	CompatibleRuntimes []*string `type:"list"`

	// Details about the layer version.
	Content *LayerVersionContentOutput `type:"structure"`

	// The date that the layer version was created, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime)
	// (YYYY-MM-DDThh:mm:ss.sTZD).
	CreatedDate *string `type:"string"`

	// The description of the version.
	Description *string `type:"string"`

	// The ARN of the layer.
	LayerArn *string `min:"1" type:"string"`

	// The ARN of the layer version.
	LayerVersionArn *string `min:"1" type:"string"`

	// The layer's software license.
	LicenseInfo *string `type:"string"`

	// The version number.
	Version *int64 `type:"long"`
	// contains filtered or unexported fields
}

func (PublishLayerVersionOutput) GoString

func (s PublishLayerVersionOutput) 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 (*PublishLayerVersionOutput) SetCompatibleArchitectures

func (s *PublishLayerVersionOutput) SetCompatibleArchitectures(v []*string) *PublishLayerVersionOutput

SetCompatibleArchitectures sets the CompatibleArchitectures field's value.

func (*PublishLayerVersionOutput) SetCompatibleRuntimes

func (s *PublishLayerVersionOutput) SetCompatibleRuntimes(v []*string) *PublishLayerVersionOutput

SetCompatibleRuntimes sets the CompatibleRuntimes field's value.

func (*PublishLayerVersionOutput) SetContent

SetContent sets the Content field's value.

func (*PublishLayerVersionOutput) SetCreatedDate

SetCreatedDate sets the CreatedDate field's value.

func (*PublishLayerVersionOutput) SetDescription

SetDescription sets the Description field's value.

func (*PublishLayerVersionOutput) SetLayerArn

SetLayerArn sets the LayerArn field's value.

func (*PublishLayerVersionOutput) SetLayerVersionArn

SetLayerVersionArn sets the LayerVersionArn field's value.

func (*PublishLayerVersionOutput) SetLicenseInfo

SetLicenseInfo sets the LicenseInfo field's value.

func (*PublishLayerVersionOutput) SetVersion

SetVersion sets the Version field's value.

func (PublishLayerVersionOutput) String

func (s PublishLayerVersionOutput) 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 PublishVersionInput

type PublishVersionInput struct {

	// Only publish a version if the hash value matches the value that's specified.
	// Use this option to avoid publishing a version if the function code has changed
	// since you last updated it. You can get the hash for the version that you
	// uploaded from the output of UpdateFunctionCode.
	CodeSha256 *string `type:"string"`

	// A description for the version to override the description in the function
	// configuration.
	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"`

	// Only update the function if the revision ID matches the ID that's specified.
	// Use this option to avoid publishing a version if the function configuration
	// has changed since you last updated it.
	RevisionId *string `type:"string"`
	// contains filtered or unexported fields
}

func (PublishVersionInput) GoString

func (s PublishVersionInput) 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 (*PublishVersionInput) SetCodeSha256

func (s *PublishVersionInput) SetCodeSha256(v string) *PublishVersionInput

SetCodeSha256 sets the CodeSha256 field's value.

func (*PublishVersionInput) SetDescription

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

SetDescription sets the Description field's value.

func (*PublishVersionInput) SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

func (*PublishVersionInput) SetRevisionId

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

SetRevisionId sets the RevisionId field's value.

func (PublishVersionInput) String

func (s PublishVersionInput) 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 (*PublishVersionInput) Validate

func (s *PublishVersionInput) Validate() error

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

type PutFunctionCodeSigningConfigInput

type PutFunctionCodeSigningConfigInput struct {

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

	// 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"`
	// contains filtered or unexported fields
}

func (PutFunctionCodeSigningConfigInput) GoString

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 (*PutFunctionCodeSigningConfigInput) SetCodeSigningConfigArn

SetCodeSigningConfigArn sets the CodeSigningConfigArn field's value.

func (*PutFunctionCodeSigningConfigInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (PutFunctionCodeSigningConfigInput) 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 (*PutFunctionCodeSigningConfigInput) Validate

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

type PutFunctionCodeSigningConfigOutput

type PutFunctionCodeSigningConfigOutput struct {

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

	// 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 `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (PutFunctionCodeSigningConfigOutput) GoString

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 (*PutFunctionCodeSigningConfigOutput) SetCodeSigningConfigArn

SetCodeSigningConfigArn sets the CodeSigningConfigArn field's value.

func (*PutFunctionCodeSigningConfigOutput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (PutFunctionCodeSigningConfigOutput) 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 PutFunctionConcurrencyInput

type PutFunctionConcurrencyInput struct {

	// The name of the Lambda function.
	//
	// Name formats
	//
	//    * Function name - my-function.
	//
	//    * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//    * Partial ARN - 123456789012:function:my-function.
	//
	// 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 number of simultaneous executions to reserve for the function.
	//
	// ReservedConcurrentExecutions is a required field
	ReservedConcurrentExecutions *int64 `type:"integer" required:"true"`
	// contains filtered or unexported fields
}

func (PutFunctionConcurrencyInput) GoString

func (s PutFunctionConcurrencyInput) 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 (*PutFunctionConcurrencyInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*PutFunctionConcurrencyInput) SetReservedConcurrentExecutions

func (s *PutFunctionConcurrencyInput) SetReservedConcurrentExecutions(v int64) *PutFunctionConcurrencyInput

SetReservedConcurrentExecutions sets the ReservedConcurrentExecutions field's value.

func (PutFunctionConcurrencyInput) 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 (*PutFunctionConcurrencyInput) Validate

func (s *PutFunctionConcurrencyInput) Validate() error

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

type PutFunctionConcurrencyOutput

type PutFunctionConcurrencyOutput struct {

	// The number of concurrent executions that are reserved for this function.
	// For more information, see Managing Concurrency (https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html).
	ReservedConcurrentExecutions *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (PutFunctionConcurrencyOutput) GoString

func (s PutFunctionConcurrencyOutput) 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 (*PutFunctionConcurrencyOutput) SetReservedConcurrentExecutions

func (s *PutFunctionConcurrencyOutput) SetReservedConcurrentExecutions(v int64) *PutFunctionConcurrencyOutput

SetReservedConcurrentExecutions sets the ReservedConcurrentExecutions field's value.

func (PutFunctionConcurrencyOutput) 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 PutFunctionEventInvokeConfigInput

type PutFunctionEventInvokeConfigInput struct {

	// A destination for events after they have been sent to a function for processing.
	//
	// Destinations
	//
	//    * Function - The Amazon Resource Name (ARN) of a Lambda function.
	//
	//    * Queue - The ARN of an SQS queue.
	//
	//    * Topic - The ARN of an SNS topic.
	//
	//    * Event Bus - The ARN of an Amazon EventBridge event bus.
	DestinationConfig *DestinationConfig `type:"structure"`

	// 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 maximum age of a request that Lambda sends to a function for processing.
	MaximumEventAgeInSeconds *int64 `min:"60" type:"integer"`

	// The maximum number of times to retry when the function returns an error.
	MaximumRetryAttempts *int64 `type:"integer"`

	// A version number or alias name.
	Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (PutFunctionEventInvokeConfigInput) GoString

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 (*PutFunctionEventInvokeConfigInput) SetDestinationConfig

SetDestinationConfig sets the DestinationConfig field's value.

func (*PutFunctionEventInvokeConfigInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*PutFunctionEventInvokeConfigInput) SetMaximumEventAgeInSeconds

SetMaximumEventAgeInSeconds sets the MaximumEventAgeInSeconds field's value.

func (*PutFunctionEventInvokeConfigInput) SetMaximumRetryAttempts

SetMaximumRetryAttempts sets the MaximumRetryAttempts field's value.

func (*PutFunctionEventInvokeConfigInput) SetQualifier

SetQualifier sets the Qualifier field's value.

func (PutFunctionEventInvokeConfigInput) 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 (*PutFunctionEventInvokeConfigInput) Validate

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

type PutFunctionEventInvokeConfigOutput

type PutFunctionEventInvokeConfigOutput struct {

	// A destination for events after they have been sent to a function for processing.
	//
	// Destinations
	//
	//    * Function - The Amazon Resource Name (ARN) of a Lambda function.
	//
	//    * Queue - The ARN of an SQS queue.
	//
	//    * Topic - The ARN of an SNS topic.
	//
	//    * Event Bus - The ARN of an Amazon EventBridge event bus.
	DestinationConfig *DestinationConfig `type:"structure"`

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

	// The date and time that the configuration was last updated.
	LastModified *time.Time `type:"timestamp"`

	// The maximum age of a request that Lambda sends to a function for processing.
	MaximumEventAgeInSeconds *int64 `min:"60" type:"integer"`

	// The maximum number of times to retry when the function returns an error.
	MaximumRetryAttempts *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (PutFunctionEventInvokeConfigOutput) GoString

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 (*PutFunctionEventInvokeConfigOutput) SetDestinationConfig

SetDestinationConfig sets the DestinationConfig field's value.

func (*PutFunctionEventInvokeConfigOutput) SetFunctionArn

SetFunctionArn sets the FunctionArn field's value.

func (*PutFunctionEventInvokeConfigOutput) SetLastModified

SetLastModified sets the LastModified field's value.

func (*PutFunctionEventInvokeConfigOutput) SetMaximumEventAgeInSeconds

SetMaximumEventAgeInSeconds sets the MaximumEventAgeInSeconds field's value.

func (*PutFunctionEventInvokeConfigOutput) SetMaximumRetryAttempts

SetMaximumRetryAttempts sets the MaximumRetryAttempts field's value.

func (PutFunctionEventInvokeConfigOutput) 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 PutProvisionedConcurrencyConfigInput

type PutProvisionedConcurrencyConfigInput struct {

	// The name of the Lambda function.
	//
	// Name formats
	//
	//    * Function name - my-function.
	//
	//    * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//    * Partial ARN - 123456789012:function:my-function.
	//
	// 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 amount of provisioned concurrency to allocate for the version or alias.
	//
	// ProvisionedConcurrentExecutions is a required field
	ProvisionedConcurrentExecutions *int64 `min:"1" type:"integer" required:"true"`

	// The version number or alias name.
	//
	// Qualifier is a required field
	Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (PutProvisionedConcurrencyConfigInput) GoString

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 (*PutProvisionedConcurrencyConfigInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*PutProvisionedConcurrencyConfigInput) SetProvisionedConcurrentExecutions

func (s *PutProvisionedConcurrencyConfigInput) SetProvisionedConcurrentExecutions(v int64) *PutProvisionedConcurrencyConfigInput

SetProvisionedConcurrentExecutions sets the ProvisionedConcurrentExecutions field's value.

func (*PutProvisionedConcurrencyConfigInput) SetQualifier

SetQualifier sets the Qualifier field's value.

func (PutProvisionedConcurrencyConfigInput) 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 (*PutProvisionedConcurrencyConfigInput) Validate

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

type PutProvisionedConcurrencyConfigOutput

type PutProvisionedConcurrencyConfigOutput struct {

	// The amount of provisioned concurrency allocated.
	AllocatedProvisionedConcurrentExecutions *int64 `type:"integer"`

	// The amount of provisioned concurrency available.
	AvailableProvisionedConcurrentExecutions *int64 `type:"integer"`

	// The date and time that a user last updated the configuration, in ISO 8601
	// format (https://www.iso.org/iso-8601-date-and-time-format.html).
	LastModified *string `type:"string"`

	// The amount of provisioned concurrency requested.
	RequestedProvisionedConcurrentExecutions *int64 `min:"1" type:"integer"`

	// The status of the allocation process.
	Status *string `type:"string" enum:"ProvisionedConcurrencyStatusEnum"`

	// For failed allocations, the reason that provisioned concurrency could not
	// be allocated.
	StatusReason *string `type:"string"`
	// contains filtered or unexported fields
}

func (PutProvisionedConcurrencyConfigOutput) GoString

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 (*PutProvisionedConcurrencyConfigOutput) SetAllocatedProvisionedConcurrentExecutions

func (s *PutProvisionedConcurrencyConfigOutput) SetAllocatedProvisionedConcurrentExecutions(v int64) *PutProvisionedConcurrencyConfigOutput

SetAllocatedProvisionedConcurrentExecutions sets the AllocatedProvisionedConcurrentExecutions field's value.

func (*PutProvisionedConcurrencyConfigOutput) SetAvailableProvisionedConcurrentExecutions

func (s *PutProvisionedConcurrencyConfigOutput) SetAvailableProvisionedConcurrentExecutions(v int64) *PutProvisionedConcurrencyConfigOutput

SetAvailableProvisionedConcurrentExecutions sets the AvailableProvisionedConcurrentExecutions field's value.

func (*PutProvisionedConcurrencyConfigOutput) SetLastModified

SetLastModified sets the LastModified field's value.

func (*PutProvisionedConcurrencyConfigOutput) SetRequestedProvisionedConcurrentExecutions

func (s *PutProvisionedConcurrencyConfigOutput) SetRequestedProvisionedConcurrentExecutions(v int64) *PutProvisionedConcurrencyConfigOutput

SetRequestedProvisionedConcurrentExecutions sets the RequestedProvisionedConcurrentExecutions field's value.

func (*PutProvisionedConcurrencyConfigOutput) SetStatus

SetStatus sets the Status field's value.

func (*PutProvisionedConcurrencyConfigOutput) SetStatusReason

SetStatusReason sets the StatusReason field's value.

func (PutProvisionedConcurrencyConfigOutput) 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 RemoveLayerVersionPermissionInput

type RemoveLayerVersionPermissionInput struct {

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

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

	// The identifier that was specified when the statement was added.
	//
	// StatementId is a required field
	StatementId *string `location:"uri" locationName:"StatementId" 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 (RemoveLayerVersionPermissionInput) GoString

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 (*RemoveLayerVersionPermissionInput) SetLayerName

SetLayerName sets the LayerName field's value.

func (*RemoveLayerVersionPermissionInput) SetRevisionId

SetRevisionId sets the RevisionId field's value.

func (*RemoveLayerVersionPermissionInput) SetStatementId

SetStatementId sets the StatementId field's value.

func (*RemoveLayerVersionPermissionInput) SetVersionNumber

SetVersionNumber sets the VersionNumber field's value.

func (RemoveLayerVersionPermissionInput) 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 (*RemoveLayerVersionPermissionInput) Validate

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

type RemoveLayerVersionPermissionOutput

type RemoveLayerVersionPermissionOutput struct {
	// contains filtered or unexported fields
}

func (RemoveLayerVersionPermissionOutput) GoString

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 (RemoveLayerVersionPermissionOutput) 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 RemovePermissionInput

type RemovePermissionInput struct {

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

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

	// Only update the policy 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 `location:"querystring" locationName:"RevisionId" type:"string"`

	// Statement ID of the permission to remove.
	//
	// StatementId is a required field
	StatementId *string `location:"uri" locationName:"StatementId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (RemovePermissionInput) GoString

func (s RemovePermissionInput) 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 (*RemovePermissionInput) SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

func (*RemovePermissionInput) SetQualifier

SetQualifier sets the Qualifier field's value.

func (*RemovePermissionInput) SetRevisionId

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

SetRevisionId sets the RevisionId field's value.

func (*RemovePermissionInput) SetStatementId

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

SetStatementId sets the StatementId field's value.

func (RemovePermissionInput) String

func (s RemovePermissionInput) 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 (*RemovePermissionInput) Validate

func (s *RemovePermissionInput) Validate() error

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

type RemovePermissionOutput

type RemovePermissionOutput struct {
	// contains filtered or unexported fields
}

func (RemovePermissionOutput) GoString

func (s RemovePermissionOutput) 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 (RemovePermissionOutput) String

func (s RemovePermissionOutput) 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 RequestTooLargeException

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

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

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

The request payload exceeded the Invoke request body JSON input limit. For more information, see Limits (https://docs.aws.amazon.com/lambda/latest/dg/limits.html).

func (*RequestTooLargeException) Code

func (s *RequestTooLargeException) Code() string

Code returns the exception type name.

func (*RequestTooLargeException) Error

func (s *RequestTooLargeException) Error() string

func (RequestTooLargeException) GoString

func (s RequestTooLargeException) 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 (*RequestTooLargeException) Message

func (s *RequestTooLargeException) Message() string

Message returns the exception's message.

func (*RequestTooLargeException) OrigErr

func (s *RequestTooLargeException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*RequestTooLargeException) RequestID

func (s *RequestTooLargeException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*RequestTooLargeException) StatusCode

func (s *RequestTooLargeException) StatusCode() int

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

func (RequestTooLargeException) String

func (s RequestTooLargeException) 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 ResourceConflictException

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

	// The exception message.
	Message_ *string `locationName:"message" type:"string"`

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

The resource already exists, or another operation is in progress.

func (*ResourceConflictException) Code

Code returns the exception type name.

func (*ResourceConflictException) Error

func (s *ResourceConflictException) Error() string

func (ResourceConflictException) GoString

func (s ResourceConflictException) 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 (*ResourceConflictException) Message

func (s *ResourceConflictException) Message() string

Message returns the exception's message.

func (*ResourceConflictException) OrigErr

func (s *ResourceConflictException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ResourceConflictException) RequestID

func (s *ResourceConflictException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ResourceConflictException) StatusCode

func (s *ResourceConflictException) StatusCode() int

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

func (ResourceConflictException) String

func (s ResourceConflictException) 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 ResourceInUseException

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

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

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

The operation conflicts with the resource's availability. For example, you attempted to update an EventSource Mapping in CREATING, or tried to delete a EventSource mapping currently in the UPDATING state.

func (*ResourceInUseException) Code

func (s *ResourceInUseException) Code() string

Code returns the exception type name.

func (*ResourceInUseException) Error

func (s *ResourceInUseException) Error() string

func (ResourceInUseException) GoString

func (s ResourceInUseException) 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 (*ResourceInUseException) Message

func (s *ResourceInUseException) Message() string

Message returns the exception's message.

func (*ResourceInUseException) OrigErr

func (s *ResourceInUseException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ResourceInUseException) RequestID

func (s *ResourceInUseException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ResourceInUseException) StatusCode

func (s *ResourceInUseException) StatusCode() int

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

func (ResourceInUseException) String

func (s ResourceInUseException) 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 ResourceNotFoundException

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

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

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

The resource specified in the request does not exist.

func (*ResourceNotFoundException) Code

Code returns the exception type name.

func (*ResourceNotFoundException) Error

func (s *ResourceNotFoundException) Error() string

func (ResourceNotFoundException) GoString

func (s ResourceNotFoundException) 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 (*ResourceNotFoundException) Message

func (s *ResourceNotFoundException) Message() string

Message returns the exception's message.

func (*ResourceNotFoundException) OrigErr

func (s *ResourceNotFoundException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ResourceNotFoundException) RequestID

func (s *ResourceNotFoundException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ResourceNotFoundException) StatusCode

func (s *ResourceNotFoundException) StatusCode() int

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

func (ResourceNotFoundException) String

func (s ResourceNotFoundException) 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 ResourceNotReadyException

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

	// The exception message.
	Message_ *string `locationName:"message" type:"string"`

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

The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.

func (*ResourceNotReadyException) Code

Code returns the exception type name.

func (*ResourceNotReadyException) Error

func (s *ResourceNotReadyException) Error() string

func (ResourceNotReadyException) GoString

func (s ResourceNotReadyException) 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 (*ResourceNotReadyException) Message

func (s *ResourceNotReadyException) Message() string

Message returns the exception's message.

func (*ResourceNotReadyException) OrigErr

func (s *ResourceNotReadyException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ResourceNotReadyException) RequestID

func (s *ResourceNotReadyException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ResourceNotReadyException) StatusCode

func (s *ResourceNotReadyException) StatusCode() int

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

func (ResourceNotReadyException) String

func (s ResourceNotReadyException) 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 SelfManagedEventSource

type SelfManagedEventSource struct {

	// The list of bootstrap servers for your Kafka brokers in the following format:
	// "KAFKA_BOOTSTRAP_SERVERS": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"].
	Endpoints map[string][]*string `min:"1" type:"map"`
	// contains filtered or unexported fields
}

The self-managed Apache Kafka cluster for your event source.

func (SelfManagedEventSource) GoString

func (s SelfManagedEventSource) 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 (*SelfManagedEventSource) SetEndpoints

func (s *SelfManagedEventSource) SetEndpoints(v map[string][]*string) *SelfManagedEventSource

SetEndpoints sets the Endpoints field's value.

func (SelfManagedEventSource) String

func (s SelfManagedEventSource) 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 (*SelfManagedEventSource) Validate

func (s *SelfManagedEventSource) Validate() error

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

type ServiceException

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

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

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

The Lambda service encountered an internal error.

func (*ServiceException) Code

func (s *ServiceException) Code() string

Code returns the exception type name.

func (*ServiceException) Error

func (s *ServiceException) Error() string

func (ServiceException) GoString

func (s ServiceException) 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 (*ServiceException) Message

func (s *ServiceException) Message() string

Message returns the exception's message.

func (*ServiceException) OrigErr

func (s *ServiceException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ServiceException) RequestID

func (s *ServiceException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ServiceException) StatusCode

func (s *ServiceException) StatusCode() int

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

func (ServiceException) String

func (s ServiceException) 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 SourceAccessConfiguration

type SourceAccessConfiguration struct {

	// The type of authentication protocol, VPC components, or virtual host for
	// your event source. For example: "Type":"SASL_SCRAM_512_AUTH".
	//
	//    * BASIC_AUTH - (Amazon MQ) The Secrets Manager secret that stores your
	//    broker credentials.
	//
	//    * BASIC_AUTH - (Self-managed Apache Kafka) The Secrets Manager ARN of
	//    your secret key used for SASL/PLAIN authentication of your Apache Kafka
	//    brokers.
	//
	//    * VPC_SUBNET - The subnets associated with your VPC. Lambda connects to
	//    these subnets to fetch data from your self-managed Apache Kafka cluster.
	//
	//    * VPC_SECURITY_GROUP - The VPC security group used to manage access to
	//    your self-managed Apache Kafka brokers.
	//
	//    * SASL_SCRAM_256_AUTH - The Secrets Manager ARN of your secret key used
	//    for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers.
	//
	//    * SASL_SCRAM_512_AUTH - The Secrets Manager ARN of your secret key used
	//    for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers.
	//
	//    * VIRTUAL_HOST - (Amazon MQ) The name of the virtual host in your RabbitMQ
	//    broker. Lambda uses this RabbitMQ host as the event source.
	Type *string `type:"string" enum:"SourceAccessType"`

	// The value for your chosen configuration in Type. For example: "URI": "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName".
	URI *string `min:"1" type:"string"`
	// contains filtered or unexported fields
}

To secure and define access to your event source, you can specify the authentication protocol, VPC components, or virtual host.

func (SourceAccessConfiguration) GoString

func (s SourceAccessConfiguration) 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 (*SourceAccessConfiguration) SetType

SetType sets the Type field's value.

func (*SourceAccessConfiguration) SetURI

SetURI sets the URI field's value.

func (SourceAccessConfiguration) String

func (s SourceAccessConfiguration) 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 (*SourceAccessConfiguration) Validate

func (s *SourceAccessConfiguration) Validate() error

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

type SubnetIPAddressLimitReachedException

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

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

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

Lambda was not able to set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.

func (*SubnetIPAddressLimitReachedException) Code

Code returns the exception type name.

func (*SubnetIPAddressLimitReachedException) Error

func (SubnetIPAddressLimitReachedException) GoString

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 (*SubnetIPAddressLimitReachedException) Message

Message returns the exception's message.

func (*SubnetIPAddressLimitReachedException) OrigErr

OrigErr always returns nil, satisfies awserr.Error interface.

func (*SubnetIPAddressLimitReachedException) RequestID

RequestID returns the service's response RequestID for request.

func (*SubnetIPAddressLimitReachedException) StatusCode

func (s *SubnetIPAddressLimitReachedException) StatusCode() int

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

func (SubnetIPAddressLimitReachedException) 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 TagResourceInput

type TagResourceInput struct {

	// The function's Amazon Resource Name (ARN).
	//
	// Resource is a required field
	Resource *string `location:"uri" locationName:"ARN" type:"string" required:"true"`

	// A list of tags to apply to the function.
	//
	// Tags is a required field
	Tags map[string]*string `type:"map" required:"true"`
	// contains filtered or unexported fields
}

func (TagResourceInput) GoString

func (s TagResourceInput) 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 (*TagResourceInput) SetResource

func (s *TagResourceInput) SetResource(v string) *TagResourceInput

SetResource sets the Resource field's value.

func (*TagResourceInput) SetTags

func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput

SetTags sets the Tags field's value.

func (TagResourceInput) String

func (s TagResourceInput) 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 (*TagResourceInput) Validate

func (s *TagResourceInput) Validate() error

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

type TagResourceOutput

type TagResourceOutput struct {
	// contains filtered or unexported fields
}

func (TagResourceOutput) GoString

func (s TagResourceOutput) 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 (TagResourceOutput) String

func (s TagResourceOutput) 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 TooManyRequestsException

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

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

	Reason *string `type:"string" enum:"ThrottleReason"`

	// The number of seconds the caller should wait before retrying.
	RetryAfterSeconds *string `location:"header" locationName:"Retry-After" type:"string"`

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

The request throughput limit was exceeded.

func (*TooManyRequestsException) Code

func (s *TooManyRequestsException) Code() string

Code returns the exception type name.

func (*TooManyRequestsException) Error

func (s *TooManyRequestsException) Error() string

func (TooManyRequestsException) GoString

func (s TooManyRequestsException) 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 (*TooManyRequestsException) Message

func (s *TooManyRequestsException) Message() string

Message returns the exception's message.

func (*TooManyRequestsException) OrigErr

func (s *TooManyRequestsException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*TooManyRequestsException) RequestID

func (s *TooManyRequestsException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*TooManyRequestsException) StatusCode

func (s *TooManyRequestsException) StatusCode() int

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

func (TooManyRequestsException) String

func (s TooManyRequestsException) 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 TracingConfig

type TracingConfig struct {

	// The tracing mode.
	Mode *string `type:"string" enum:"TracingMode"`
	// contains filtered or unexported fields
}

The function's X-Ray (https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) tracing configuration. To sample and record incoming requests, set Mode to Active.

func (TracingConfig) GoString

func (s TracingConfig) 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 (*TracingConfig) SetMode

func (s *TracingConfig) SetMode(v string) *TracingConfig

SetMode sets the Mode field's value.

func (TracingConfig) String

func (s TracingConfig) 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 TracingConfigResponse

type TracingConfigResponse struct {

	// The tracing mode.
	Mode *string `type:"string" enum:"TracingMode"`
	// contains filtered or unexported fields
}

The function's X-Ray tracing configuration.

func (TracingConfigResponse) GoString

func (s TracingConfigResponse) 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 (*TracingConfigResponse) SetMode

SetMode sets the Mode field's value.

func (TracingConfigResponse) String

func (s TracingConfigResponse) 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 UnsupportedMediaTypeException

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

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

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

The content type of the Invoke request body is not JSON.

func (*UnsupportedMediaTypeException) Code

Code returns the exception type name.

func (*UnsupportedMediaTypeException) Error

func (UnsupportedMediaTypeException) GoString

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 (*UnsupportedMediaTypeException) Message

Message returns the exception's message.

func (*UnsupportedMediaTypeException) OrigErr

func (s *UnsupportedMediaTypeException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*UnsupportedMediaTypeException) RequestID

func (s *UnsupportedMediaTypeException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*UnsupportedMediaTypeException) StatusCode

func (s *UnsupportedMediaTypeException) StatusCode() int

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

func (UnsupportedMediaTypeException) 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 UntagResourceInput

type UntagResourceInput struct {

	// The function's Amazon Resource Name (ARN).
	//
	// Resource is a required field
	Resource *string `location:"uri" locationName:"ARN" type:"string" required:"true"`

	// A list of tag keys to remove from the function.
	//
	// TagKeys is a required field
	TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (UntagResourceInput) GoString

func (s UntagResourceInput) 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 (*UntagResourceInput) SetResource

func (s *UntagResourceInput) SetResource(v string) *UntagResourceInput

SetResource sets the Resource field's value.

func (*UntagResourceInput) SetTagKeys

func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput

SetTagKeys sets the TagKeys field's value.

func (UntagResourceInput) String

func (s UntagResourceInput) 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 (*UntagResourceInput) Validate

func (s *UntagResourceInput) Validate() error

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

type UntagResourceOutput

type UntagResourceOutput struct {
	// contains filtered or unexported fields
}

func (UntagResourceOutput) GoString

func (s UntagResourceOutput) 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 (UntagResourceOutput) String

func (s UntagResourceOutput) 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 UpdateAliasInput

type UpdateAliasInput 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 *string `min:"1" type:"string"`

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

	// Only update the alias if the revision ID matches the ID that's specified.
	// Use this option to avoid modifying an alias that has changed since you last
	// read it.
	RevisionId *string `type:"string"`

	// 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 (UpdateAliasInput) GoString

func (s UpdateAliasInput) 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 (*UpdateAliasInput) SetDescription

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

SetDescription sets the Description field's value.

func (*UpdateAliasInput) SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

func (*UpdateAliasInput) SetFunctionVersion

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

SetFunctionVersion sets the FunctionVersion field's value.

func (*UpdateAliasInput) SetName

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

SetName sets the Name field's value.

func (*UpdateAliasInput) SetRevisionId

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

SetRevisionId sets the RevisionId field's value.

func (*UpdateAliasInput) SetRoutingConfig

SetRoutingConfig sets the RoutingConfig field's value.

func (UpdateAliasInput) String

func (s UpdateAliasInput) 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 (*UpdateAliasInput) Validate

func (s *UpdateAliasInput) Validate() error

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

type UpdateCodeSigningConfigInput

type UpdateCodeSigningConfigInput struct {

	// Signing profiles for this code signing configuration.
	AllowedPublishers *AllowedPublishers `type:"structure"`

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

	// The code signing policy.
	CodeSigningPolicies *CodeSigningPolicies `type:"structure"`

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

func (UpdateCodeSigningConfigInput) GoString

func (s UpdateCodeSigningConfigInput) 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 (*UpdateCodeSigningConfigInput) SetAllowedPublishers

SetAllowedPublishers sets the AllowedPublishers field's value.

func (*UpdateCodeSigningConfigInput) SetCodeSigningConfigArn

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

SetCodeSigningConfigArn sets the CodeSigningConfigArn field's value.

func (*UpdateCodeSigningConfigInput) SetCodeSigningPolicies

SetCodeSigningPolicies sets the CodeSigningPolicies field's value.

func (*UpdateCodeSigningConfigInput) SetDescription

SetDescription sets the Description field's value.

func (UpdateCodeSigningConfigInput) 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 (*UpdateCodeSigningConfigInput) Validate

func (s *UpdateCodeSigningConfigInput) Validate() error

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

type UpdateCodeSigningConfigOutput

type UpdateCodeSigningConfigOutput struct {

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

func (UpdateCodeSigningConfigOutput) GoString

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 (*UpdateCodeSigningConfigOutput) SetCodeSigningConfig

SetCodeSigningConfig sets the CodeSigningConfig field's value.

func (UpdateCodeSigningConfigOutput) 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 UpdateEventSourceMappingInput

type UpdateEventSourceMappingInput struct {

	// 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 1,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.
	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 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 *string `min:"1" type:"string"`

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

	// (Streams and Amazon SQS standard queues) The maximum amount of time, in seconds,
	// that Lambda spends gathering records before invoking the function.
	//
	// Default: 0
	//
	// Related setting: 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
	// will be 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"`

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

	// (Streams only) The duration in seconds of a processing window. The range
	// is between 1 second up to 900 seconds.
	TumblingWindowInSeconds *int64 `type:"integer"`

	// The identifier of the event source mapping.
	//
	// UUID is a required field
	UUID *string `location:"uri" locationName:"UUID" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateEventSourceMappingInput) GoString

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 (*UpdateEventSourceMappingInput) SetBatchSize

SetBatchSize sets the BatchSize field's value.

func (*UpdateEventSourceMappingInput) SetBisectBatchOnFunctionError

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

SetBisectBatchOnFunctionError sets the BisectBatchOnFunctionError field's value.

func (*UpdateEventSourceMappingInput) SetDestinationConfig

SetDestinationConfig sets the DestinationConfig field's value.

func (*UpdateEventSourceMappingInput) SetEnabled

SetEnabled sets the Enabled field's value.

func (*UpdateEventSourceMappingInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*UpdateEventSourceMappingInput) SetFunctionResponseTypes

func (s *UpdateEventSourceMappingInput) SetFunctionResponseTypes(v []*string) *UpdateEventSourceMappingInput

SetFunctionResponseTypes sets the FunctionResponseTypes field's value.

func (*UpdateEventSourceMappingInput) SetMaximumBatchingWindowInSeconds

func (s *UpdateEventSourceMappingInput) SetMaximumBatchingWindowInSeconds(v int64) *UpdateEventSourceMappingInput

SetMaximumBatchingWindowInSeconds sets the MaximumBatchingWindowInSeconds field's value.

func (*UpdateEventSourceMappingInput) SetMaximumRecordAgeInSeconds

func (s *UpdateEventSourceMappingInput) SetMaximumRecordAgeInSeconds(v int64) *UpdateEventSourceMappingInput

SetMaximumRecordAgeInSeconds sets the MaximumRecordAgeInSeconds field's value.

func (*UpdateEventSourceMappingInput) SetMaximumRetryAttempts

func (s *UpdateEventSourceMappingInput) SetMaximumRetryAttempts(v int64) *UpdateEventSourceMappingInput

SetMaximumRetryAttempts sets the MaximumRetryAttempts field's value.

func (*UpdateEventSourceMappingInput) SetParallelizationFactor

func (s *UpdateEventSourceMappingInput) SetParallelizationFactor(v int64) *UpdateEventSourceMappingInput

SetParallelizationFactor sets the ParallelizationFactor field's value.

func (*UpdateEventSourceMappingInput) SetSourceAccessConfigurations

SetSourceAccessConfigurations sets the SourceAccessConfigurations field's value.

func (*UpdateEventSourceMappingInput) SetTumblingWindowInSeconds

func (s *UpdateEventSourceMappingInput) SetTumblingWindowInSeconds(v int64) *UpdateEventSourceMappingInput

SetTumblingWindowInSeconds sets the TumblingWindowInSeconds field's value.

func (*UpdateEventSourceMappingInput) SetUUID

SetUUID sets the UUID field's value.

func (UpdateEventSourceMappingInput) 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 (*UpdateEventSourceMappingInput) Validate

func (s *UpdateEventSourceMappingInput) Validate() error

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

type UpdateFunctionCodeInput

type UpdateFunctionCodeInput struct {

	// The instruction set architecture that the function supports. Enter a string
	// array with one of the valid values. The default value is x86_64.
	Architectures []*string `min:"1" type:"list"`

	// Set to true to validate the request parameters and access permissions without
	// modifying the function code.
	DryRun *bool `type:"boolean"`

	// The name of the Lambda function.
	//
	// Name formats
	//
	//    * Function name - my-function.
	//
	//    * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//    * Partial ARN - 123456789012:function:my-function.
	//
	// 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"`

	// URI of a container image in the Amazon ECR registry.
	ImageUri *string `type:"string"`

	// Set to true to publish a new version of the function after updating the code.
	// This has the same effect as calling PublishVersion separately.
	Publish *bool `type:"boolean"`

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

	// An Amazon S3 bucket in the same Amazon Web Services Region as your function.
	// The bucket can be in a different Amazon Web Services account.
	S3Bucket *string `min:"3" type:"string"`

	// The Amazon S3 key of the deployment package.
	S3Key *string `min:"1" type:"string"`

	// For versioned objects, the version of the deployment package object to use.
	S3ObjectVersion *string `min:"1" type:"string"`

	// The base64-encoded contents of the deployment package. Amazon Web Services
	// SDK and Amazon Web Services CLI clients handle the encoding for you.
	//
	// ZipFile is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by UpdateFunctionCodeInput's
	// String and GoString methods.
	//
	// ZipFile is automatically base64 encoded/decoded by the SDK.
	ZipFile []byte `type:"blob" sensitive:"true"`
	// contains filtered or unexported fields
}

func (UpdateFunctionCodeInput) GoString

func (s UpdateFunctionCodeInput) 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 (*UpdateFunctionCodeInput) SetArchitectures

func (s *UpdateFunctionCodeInput) SetArchitectures(v []*string) *UpdateFunctionCodeInput

SetArchitectures sets the Architectures field's value.

func (*UpdateFunctionCodeInput) SetDryRun

SetDryRun sets the DryRun field's value.

func (*UpdateFunctionCodeInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*UpdateFunctionCodeInput) SetImageUri

SetImageUri sets the ImageUri field's value.

func (*UpdateFunctionCodeInput) SetPublish

SetPublish sets the Publish field's value.

func (*UpdateFunctionCodeInput) SetRevisionId

SetRevisionId sets the RevisionId field's value.

func (*UpdateFunctionCodeInput) SetS3Bucket

SetS3Bucket sets the S3Bucket field's value.

func (*UpdateFunctionCodeInput) SetS3Key

SetS3Key sets the S3Key field's value.

func (*UpdateFunctionCodeInput) SetS3ObjectVersion

func (s *UpdateFunctionCodeInput) SetS3ObjectVersion(v string) *UpdateFunctionCodeInput

SetS3ObjectVersion sets the S3ObjectVersion field's value.

func (*UpdateFunctionCodeInput) SetZipFile

SetZipFile sets the ZipFile field's value.

func (UpdateFunctionCodeInput) String

func (s UpdateFunctionCodeInput) 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 (*UpdateFunctionCodeInput) Validate

func (s *UpdateFunctionCodeInput) Validate() error

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

type UpdateFunctionConfigurationInput

type UpdateFunctionConfigurationInput struct {

	// A dead letter queue configuration that specifies the queue or topic where
	// Lambda sends asynchronous events when they fail processing. For more information,
	// see Dead Letter Queues (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq).
	DeadLetterConfig *DeadLetterConfig `type:"structure"`

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

	// Environment variables that are accessible from function code during execution.
	Environment *Environment `type:"structure"`

	// Connection settings for an Amazon EFS file system.
	FileSystemConfigs []*FileSystemConfig `type:"list"`

	// The name of the Lambda function.
	//
	// Name formats
	//
	//    * Function name - my-function.
	//
	//    * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//    * Partial ARN - 123456789012:function:my-function.
	//
	// 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 name of the method within your code that Lambda calls to execute your
	// function. The format includes the file name. It can also include namespaces
	// and other qualifiers, depending on the runtime. For more information, see
	// Programming Model (https://docs.aws.amazon.com/lambda/latest/dg/programming-model-v2.html).
	Handler *string `type:"string"`

	// Container image configuration values (https://docs.aws.amazon.com/lambda/latest/dg/images-parms.html)
	// that override the values in the container image Docker file.
	ImageConfig *ImageConfig `type:"structure"`

	// The ARN of the Amazon Web Services Key Management Service (KMS) key that's
	// used to encrypt your function's environment variables. If it's not provided,
	// Lambda uses a default service key.
	KMSKeyArn *string `type:"string"`

	// A list of function layers (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html)
	// to add to the function's execution environment. Specify each layer by its
	// ARN, including the version.
	Layers []*string `type:"list"`

	// The amount of memory available to the function (https://docs.aws.amazon.com/lambda/latest/dg/configuration-memory.html)
	// at runtime. Increasing the function memory also increases its CPU allocation.
	// The default value is 128 MB. The value can be any multiple of 1 MB.
	MemorySize *int64 `min:"128" type:"integer"`

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

	// The Amazon Resource Name (ARN) of the function's execution role.
	Role *string `type:"string"`

	// The identifier of the function's runtime (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html).
	Runtime *string `type:"string" enum:"Runtime"`

	// The amount of time that Lambda allows a function to run before stopping it.
	// The default is 3 seconds. The maximum allowed value is 900 seconds. For additional
	// information, see Lambda execution environment (https://docs.aws.amazon.com/lambda/latest/dg/runtimes-context.html).
	Timeout *int64 `min:"1" type:"integer"`

	// Set Mode to Active to sample and trace a subset of incoming requests with
	// X-Ray (https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html).
	TracingConfig *TracingConfig `type:"structure"`

	// For network connectivity to Amazon Web Services resources in a VPC, specify
	// a list of security groups and subnets in the VPC. When you connect a function
	// to a VPC, it can only access resources and the internet through that VPC.
	// For more information, see VPC Settings (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html).
	VpcConfig *VpcConfig `type:"structure"`
	// contains filtered or unexported fields
}

func (UpdateFunctionConfigurationInput) GoString

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 (*UpdateFunctionConfigurationInput) SetDeadLetterConfig

SetDeadLetterConfig sets the DeadLetterConfig field's value.

func (*UpdateFunctionConfigurationInput) SetDescription

SetDescription sets the Description field's value.

func (*UpdateFunctionConfigurationInput) SetEnvironment

SetEnvironment sets the Environment field's value.

func (*UpdateFunctionConfigurationInput) SetFileSystemConfigs

SetFileSystemConfigs sets the FileSystemConfigs field's value.

func (*UpdateFunctionConfigurationInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*UpdateFunctionConfigurationInput) SetHandler

SetHandler sets the Handler field's value.

func (*UpdateFunctionConfigurationInput) SetImageConfig

SetImageConfig sets the ImageConfig field's value.

func (*UpdateFunctionConfigurationInput) SetKMSKeyArn

SetKMSKeyArn sets the KMSKeyArn field's value.

func (*UpdateFunctionConfigurationInput) SetLayers

SetLayers sets the Layers field's value.

func (*UpdateFunctionConfigurationInput) SetMemorySize

SetMemorySize sets the MemorySize field's value.

func (*UpdateFunctionConfigurationInput) SetRevisionId

SetRevisionId sets the RevisionId field's value.

func (*UpdateFunctionConfigurationInput) SetRole

SetRole sets the Role field's value.

func (*UpdateFunctionConfigurationInput) SetRuntime

SetRuntime sets the Runtime field's value.

func (*UpdateFunctionConfigurationInput) SetTimeout

SetTimeout sets the Timeout field's value.

func (*UpdateFunctionConfigurationInput) SetTracingConfig

SetTracingConfig sets the TracingConfig field's value.

func (*UpdateFunctionConfigurationInput) SetVpcConfig

SetVpcConfig sets the VpcConfig field's value.

func (UpdateFunctionConfigurationInput) 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 (*UpdateFunctionConfigurationInput) Validate

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

type UpdateFunctionEventInvokeConfigInput

type UpdateFunctionEventInvokeConfigInput struct {

	// A destination for events after they have been sent to a function for processing.
	//
	// Destinations
	//
	//    * Function - The Amazon Resource Name (ARN) of a Lambda function.
	//
	//    * Queue - The ARN of an SQS queue.
	//
	//    * Topic - The ARN of an SNS topic.
	//
	//    * Event Bus - The ARN of an Amazon EventBridge event bus.
	DestinationConfig *DestinationConfig `type:"structure"`

	// 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 maximum age of a request that Lambda sends to a function for processing.
	MaximumEventAgeInSeconds *int64 `min:"60" type:"integer"`

	// The maximum number of times to retry when the function returns an error.
	MaximumRetryAttempts *int64 `type:"integer"`

	// A version number or alias name.
	Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (UpdateFunctionEventInvokeConfigInput) GoString

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 (*UpdateFunctionEventInvokeConfigInput) SetDestinationConfig

SetDestinationConfig sets the DestinationConfig field's value.

func (*UpdateFunctionEventInvokeConfigInput) SetFunctionName

SetFunctionName sets the FunctionName field's value.

func (*UpdateFunctionEventInvokeConfigInput) SetMaximumEventAgeInSeconds

SetMaximumEventAgeInSeconds sets the MaximumEventAgeInSeconds field's value.

func (*UpdateFunctionEventInvokeConfigInput) SetMaximumRetryAttempts

SetMaximumRetryAttempts sets the MaximumRetryAttempts field's value.

func (*UpdateFunctionEventInvokeConfigInput) SetQualifier

SetQualifier sets the Qualifier field's value.

func (UpdateFunctionEventInvokeConfigInput) 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 (*UpdateFunctionEventInvokeConfigInput) Validate

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

type UpdateFunctionEventInvokeConfigOutput

type UpdateFunctionEventInvokeConfigOutput struct {

	// A destination for events after they have been sent to a function for processing.
	//
	// Destinations
	//
	//    * Function - The Amazon Resource Name (ARN) of a Lambda function.
	//
	//    * Queue - The ARN of an SQS queue.
	//
	//    * Topic - The ARN of an SNS topic.
	//
	//    * Event Bus - The ARN of an Amazon EventBridge event bus.
	DestinationConfig *DestinationConfig `type:"structure"`

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

	// The date and time that the configuration was last updated.
	LastModified *time.Time `type:"timestamp"`

	// The maximum age of a request that Lambda sends to a function for processing.
	MaximumEventAgeInSeconds *int64 `min:"60" type:"integer"`

	// The maximum number of times to retry when the function returns an error.
	MaximumRetryAttempts *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (UpdateFunctionEventInvokeConfigOutput) GoString

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 (*UpdateFunctionEventInvokeConfigOutput) SetDestinationConfig

SetDestinationConfig sets the DestinationConfig field's value.

func (*UpdateFunctionEventInvokeConfigOutput) SetFunctionArn

SetFunctionArn sets the FunctionArn field's value.

func (*UpdateFunctionEventInvokeConfigOutput) SetLastModified

SetLastModified sets the LastModified field's value.

func (*UpdateFunctionEventInvokeConfigOutput) SetMaximumEventAgeInSeconds

SetMaximumEventAgeInSeconds sets the MaximumEventAgeInSeconds field's value.

func (*UpdateFunctionEventInvokeConfigOutput) SetMaximumRetryAttempts

SetMaximumRetryAttempts sets the MaximumRetryAttempts field's value.

func (UpdateFunctionEventInvokeConfigOutput) 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 VpcConfig

type VpcConfig struct {

	// A list of VPC security groups IDs.
	SecurityGroupIds []*string `type:"list"`

	// A list of VPC subnet IDs.
	SubnetIds []*string `type:"list"`
	// contains filtered or unexported fields
}

The VPC security groups and subnets that are attached to a Lambda function. For more information, see VPC Settings (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html).

func (VpcConfig) GoString

func (s VpcConfig) 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 (*VpcConfig) SetSecurityGroupIds

func (s *VpcConfig) SetSecurityGroupIds(v []*string) *VpcConfig

SetSecurityGroupIds sets the SecurityGroupIds field's value.

func (*VpcConfig) SetSubnetIds

func (s *VpcConfig) SetSubnetIds(v []*string) *VpcConfig

SetSubnetIds sets the SubnetIds field's value.

func (VpcConfig) String

func (s VpcConfig) 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 VpcConfigResponse

type VpcConfigResponse struct {

	// A list of VPC security groups IDs.
	SecurityGroupIds []*string `type:"list"`

	// A list of VPC subnet IDs.
	SubnetIds []*string `type:"list"`

	// The ID of the VPC.
	VpcId *string `type:"string"`
	// contains filtered or unexported fields
}

The VPC security groups and subnets that are attached to a Lambda function.

func (VpcConfigResponse) GoString

func (s VpcConfigResponse) 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 (*VpcConfigResponse) SetSecurityGroupIds

func (s *VpcConfigResponse) SetSecurityGroupIds(v []*string) *VpcConfigResponse

SetSecurityGroupIds sets the SecurityGroupIds field's value.

func (*VpcConfigResponse) SetSubnetIds

func (s *VpcConfigResponse) SetSubnetIds(v []*string) *VpcConfigResponse

SetSubnetIds sets the SubnetIds field's value.

func (*VpcConfigResponse) SetVpcId

func (s *VpcConfigResponse) SetVpcId(v string) *VpcConfigResponse

SetVpcId sets the VpcId field's value.

func (VpcConfigResponse) String

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

Directories

Path Synopsis
Package lambdaiface provides an interface to enable mocking the AWS Lambda service client for testing your code.
Package lambdaiface provides an interface to enable mocking the AWS Lambda service client for testing your code.

Jump to

Keyboard shortcuts

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