aws-sdk-go: github.com/aws/aws-sdk-go/service/lambda Index | Examples | Files | Directories

package lambda

import "github.com/aws/aws-sdk-go/service/lambda"

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

Overview

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

Package Files

api.go doc.go errors.go service.go

Constants

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"
)
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"
)
const (
    // LogTypeNone is a LogType enum value
    LogTypeNone = "None"

    // LogTypeTail is a LogType enum value
    LogTypeTail = "Tail"
)
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"

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

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

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

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

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

    // RuntimeGo1X is a Runtime enum value
    RuntimeGo1X = "go1.x"
)
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"
)
const (
    // TracingModeActive is a TracingMode enum value
    TracingModeActive = "Active"

    // TracingModePassThrough is a TracingMode enum value
    TracingModePassThrough = "PassThrough"
)
const (

    // ErrCodeCodeStorageExceededException for service response error code
    // "CodeStorageExceededException".
    //
    // You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html)
    ErrCodeCodeStorageExceededException = "CodeStorageExceededException"

    // ErrCodeEC2AccessDeniedException for service response error code
    // "EC2AccessDeniedException".
    ErrCodeEC2AccessDeniedException = "EC2AccessDeniedException"

    // ErrCodeEC2ThrottledException for service response error code
    // "EC2ThrottledException".
    //
    // AWS 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".
    //
    // AWS Lambda received an unexpected EC2 client exception while setting up for
    // the Lambda function.
    ErrCodeEC2UnexpectedException = "EC2UnexpectedException"

    // ErrCodeENILimitReachedException for service response error code
    // "ENILimitReachedException".
    //
    // AWS Lambda was not able to create an Elastic Network Interface (ENI) in the
    // VPC, specified as part of Lambda function configuration, because the limit
    // for network interfaces has been reached.
    ErrCodeENILimitReachedException = "ENILimitReachedException"

    // ErrCodeInvalidParameterValueException for service response error code
    // "InvalidParameterValueException".
    //
    // One of the parameters in the request is invalid. For example, if you provided
    // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
    // API, that AWS Lambda is unable to assume you will get this exception.
    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".
    //
    // AWS Lambda could not unzip the function zip file.
    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".
    //
    // Lambda function access policy is limited to 20 KB.
    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"

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

    // ErrCodeResourceConflictException for service response error code
    // "ResourceConflictException".
    //
    // The resource already exists.
    ErrCodeResourceConflictException = "ResourceConflictException"

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

    // ErrCodeResourceNotFoundException for service response error code
    // "ResourceNotFoundException".
    //
    // The resource (for example, a Lambda function or access policy statement)
    // specified in the request does not exist.
    ErrCodeResourceNotFoundException = "ResourceNotFoundException"

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

    // ErrCodeSubnetIPAddressLimitReachedException for service response error code
    // "SubnetIPAddressLimitReachedException".
    //
    // AWS 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".
    ErrCodeTooManyRequestsException = "TooManyRequestsException"

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

Service information constants

const (
    // FunctionVersionAll is a FunctionVersion enum value
    FunctionVersionAll = "ALL"
)

type AccountLimit Uses

type AccountLimit struct {

    // Size, in bytes, of code/dependencies that you can zip into a deployment package
    // (uncompressed zip/jar size) for uploading. The default limit is 250 MB.
    CodeSizeUnzipped *int64 `type:"long"`

    // Size, in bytes, of a single zipped code/dependencies package you can upload
    // for your Lambda function(.zip/.jar file). Try using Amazon S3 for uploading
    // larger files. Default limit is 50 MB.
    CodeSizeZipped *int64 `type:"long"`

    // Number of simultaneous executions of your function per region. For more information
    // or to request a limit increase for concurrent executions, see Lambda Function
    // Concurrent Executions (http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html).
    // The default limit is 1000.
    ConcurrentExecutions *int64 `type:"integer"`

    // Maximum size, in bytes, of a code package you can upload per region. The
    // default size is 75 GB.
    TotalCodeSize *int64 `type:"long"`

    // The number of concurrent executions available to functions that do not have
    // concurrency limits set. For more information, see concurrent-executions.
    UnreservedConcurrentExecutions *int64 `type:"integer"`
    // contains filtered or unexported fields
}

Provides limits of code size and concurrency associated with the current account and region.

func (AccountLimit) GoString Uses

func (s AccountLimit) GoString() string

GoString returns the string representation

func (*AccountLimit) SetCodeSizeUnzipped Uses

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

SetCodeSizeUnzipped sets the CodeSizeUnzipped field's value.

func (*AccountLimit) SetCodeSizeZipped Uses

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

SetCodeSizeZipped sets the CodeSizeZipped field's value.

func (*AccountLimit) SetConcurrentExecutions Uses

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

SetConcurrentExecutions sets the ConcurrentExecutions field's value.

func (*AccountLimit) SetTotalCodeSize Uses

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

SetTotalCodeSize sets the TotalCodeSize field's value.

func (*AccountLimit) SetUnreservedConcurrentExecutions Uses

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

SetUnreservedConcurrentExecutions sets the UnreservedConcurrentExecutions field's value.

func (AccountLimit) String Uses

func (s AccountLimit) String() string

String returns the string representation

type AccountUsage Uses

type AccountUsage struct {

    // The number of your account's existing functions per region.
    FunctionCount *int64 `type:"long"`

    // Total size, in bytes, of the account's deployment packages per region.
    TotalCodeSize *int64 `type:"long"`
    // contains filtered or unexported fields
}

Provides code size usage and function count associated with the current account and region.

func (AccountUsage) GoString Uses

func (s AccountUsage) GoString() string

GoString returns the string representation

func (*AccountUsage) SetFunctionCount Uses

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

SetFunctionCount sets the FunctionCount field's value.

func (*AccountUsage) SetTotalCodeSize Uses

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

SetTotalCodeSize sets the TotalCodeSize field's value.

func (AccountUsage) String Uses

func (s AccountUsage) String() string

String returns the string representation

type AddPermissionInput Uses

type AddPermissionInput struct {

    // The AWS Lambda action you want to allow in this statement. Each Lambda action
    // is a string starting with lambda: followed by the API name . For example,
    // lambda:CreateFunction. You can use wildcard (lambda:*) to grant permission
    // for all AWS Lambda actions.
    //
    // Action is a required field
    Action *string `type:"string" required:"true"`

    // A unique token that must be supplied by the principal invoking the function.
    // This is currently only used for Alexa Smart Home functions.
    EventSourceToken *string `type:"string"`

    // Name of the Lambda function whose resource policy you are updating by adding
    // a new permission.
    //
    // You can specify a function name (for example, Thumbnail) or you can specify
    // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail).
    // AWS Lambda also allows you to specify partial ARN (for example, account-id:Thumbnail).
    // Note that the length constraint applies only to the 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 principal who is getting this permission. It can be Amazon S3 service
    // Principal (s3.amazonaws.com) if you want Amazon S3 to invoke the function,
    // an AWS account ID if you are granting cross-account permission, or any valid
    // AWS service principal such as sns.amazonaws.com. For example, you might want
    // to allow a custom application in another AWS account to push events to AWS
    // Lambda by invoking your function.
    //
    // Principal is a required field
    Principal *string `type:"string" required:"true"`

    // You can use this optional query parameter to describe a qualified ARN using
    // a function version or an alias name. The permission will then apply to the
    // specific qualified ARN. For example, if you specify function version 2 as
    // the qualifier, then permission applies only when request is made using qualified
    // function ARN:
    //
    // arn:aws:lambda:aws-region:acct-id:function:function-name:2
    //
    // If you specify an alias name, for example PROD, then the permission is valid
    // only for requests made using the alias ARN:
    //
    // arn:aws:lambda:aws-region:acct-id:function:function-name:PROD
    //
    // If the qualifier is not specified, the permission is valid only when requests
    // is made using unqualified function ARN.
    //
    // arn:aws:lambda:aws-region:acct-id:function:function-name
    Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`

    // An optional value you can use to ensure you are updating the latest update
    // of the function version or alias. If the RevisionID you pass doesn't match
    // the latest RevisionId of the function or alias, it will fail with an error
    // message, advising you to retrieve the latest function version or alias RevisionID
    // using either or .
    RevisionId *string `type:"string"`

    // This parameter is used for S3 and SES. The AWS account ID (without a hyphen)
    // of the source owner. For example, if the SourceArn identifies a bucket, then
    // this is the bucket owner's account ID. You can use this additional condition
    // to ensure the bucket you specify is owned by a specific account (it is possible
    // the bucket owner deleted the bucket and some other AWS account created the
    // bucket). You can also use this condition to specify all sources (that is,
    // you don't specify the SourceArn) owned by a specific account.
    SourceAccount *string `type:"string"`

    // This is optional; however, when granting permission to invoke your function,
    // you should specify this field with the Amazon Resource Name (ARN) as its
    // value. This ensures that only events generated from the specified source
    // can invoke the function.
    //
    // If you add a permission without providing the source ARN, any AWS account
    // that creates a mapping to your function ARN can send events to invoke your
    // Lambda function.
    SourceArn *string `type:"string"`

    // A unique statement identifier.
    //
    // StatementId is a required field
    StatementId *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (AddPermissionInput) GoString Uses

func (s AddPermissionInput) GoString() string

GoString returns the string representation

func (*AddPermissionInput) SetAction Uses

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

SetAction sets the Action field's value.

func (*AddPermissionInput) SetEventSourceToken Uses

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

SetEventSourceToken sets the EventSourceToken field's value.

func (*AddPermissionInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*AddPermissionInput) SetPrincipal Uses

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

SetPrincipal sets the Principal field's value.

func (*AddPermissionInput) SetQualifier Uses

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

SetQualifier sets the Qualifier field's value.

func (*AddPermissionInput) SetRevisionId Uses

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

SetRevisionId sets the RevisionId field's value.

func (*AddPermissionInput) SetSourceAccount Uses

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

SetSourceAccount sets the SourceAccount field's value.

func (*AddPermissionInput) SetSourceArn Uses

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

SetSourceArn sets the SourceArn field's value.

func (*AddPermissionInput) SetStatementId Uses

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

SetStatementId sets the StatementId field's value.

func (AddPermissionInput) String Uses

func (s AddPermissionInput) String() string

String returns the string representation

func (*AddPermissionInput) Validate Uses

func (s *AddPermissionInput) Validate() error

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

type AddPermissionOutput Uses

type AddPermissionOutput struct {

    // The permission statement you specified in the request. The response returns
    // the same as a string using a backslash ("\") as an escape character in the
    // JSON.
    Statement *string `type:"string"`
    // contains filtered or unexported fields
}

func (AddPermissionOutput) GoString Uses

func (s AddPermissionOutput) GoString() string

GoString returns the string representation

func (*AddPermissionOutput) SetStatement Uses

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

SetStatement sets the Statement field's value.

func (AddPermissionOutput) String Uses

func (s AddPermissionOutput) String() string

String returns the string representation

type AliasConfiguration Uses

type AliasConfiguration struct {

    // Lambda function ARN that is qualified using the alias name as the suffix.
    // For example, if you create an alias called BETA that points to a helloworld
    // function version, the ARN is arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA.
    AliasArn *string `type:"string"`

    // Alias description.
    Description *string `type:"string"`

    // Function version to which the alias points.
    FunctionVersion *string `min:"1" type:"string"`

    // Alias name.
    Name *string `min:"1" type:"string"`

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

    // Specifies an additional function versions the alias points to, allowing you
    // to dictate what percentage of traffic will invoke each version. For more
    // information, see lambda-traffic-shifting-using-aliases.
    RoutingConfig *AliasRoutingConfiguration `type:"structure"`
    // contains filtered or unexported fields
}

Provides configuration information about a Lambda function version alias.

func (AliasConfiguration) GoString Uses

func (s AliasConfiguration) GoString() string

GoString returns the string representation

func (*AliasConfiguration) SetAliasArn Uses

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

SetAliasArn sets the AliasArn field's value.

func (*AliasConfiguration) SetDescription Uses

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

SetDescription sets the Description field's value.

func (*AliasConfiguration) SetFunctionVersion Uses

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

SetFunctionVersion sets the FunctionVersion field's value.

func (*AliasConfiguration) SetName Uses

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

SetName sets the Name field's value.

func (*AliasConfiguration) SetRevisionId Uses

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

SetRevisionId sets the RevisionId field's value.

func (*AliasConfiguration) SetRoutingConfig Uses

func (s *AliasConfiguration) SetRoutingConfig(v *AliasRoutingConfiguration) *AliasConfiguration

SetRoutingConfig sets the RoutingConfig field's value.

func (AliasConfiguration) String Uses

func (s AliasConfiguration) String() string

String returns the string representation

type AliasRoutingConfiguration Uses

type AliasRoutingConfiguration struct {

    // Set this value to dictate what percentage of traffic will invoke the updated
    // function version. If set to an empty string, 100 percent of traffic will
    // invoke function-version. For more information, see lambda-traffic-shifting-using-aliases.
    AdditionalVersionWeights map[string]*float64 `type:"map"`
    // contains filtered or unexported fields
}

The parent object that implements what percentage of traffic will invoke each function version. For more information, see lambda-traffic-shifting-using-aliases.

func (AliasRoutingConfiguration) GoString Uses

func (s AliasRoutingConfiguration) GoString() string

GoString returns the string representation

func (*AliasRoutingConfiguration) SetAdditionalVersionWeights Uses

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

SetAdditionalVersionWeights sets the AdditionalVersionWeights field's value.

func (AliasRoutingConfiguration) String Uses

func (s AliasRoutingConfiguration) String() string

String returns the string representation

type CreateAliasInput Uses

type CreateAliasInput struct {

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

    // Name of the Lambda function for which you want to create an alias. Note that
    // the length constraint applies only to the 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"`

    // Lambda function version for which you are creating the alias.
    //
    // FunctionVersion is a required field
    FunctionVersion *string `min:"1" type:"string" required:"true"`

    // Name for the alias you are creating.
    //
    // Name is a required field
    Name *string `min:"1" type:"string" required:"true"`

    // Specifies an additional version your alias can point to, allowing you to
    // dictate what percentage of traffic will invoke each version. For more information,
    // see lambda-traffic-shifting-using-aliases.
    RoutingConfig *AliasRoutingConfiguration `type:"structure"`
    // contains filtered or unexported fields
}

func (CreateAliasInput) GoString Uses

func (s CreateAliasInput) GoString() string

GoString returns the string representation

func (*CreateAliasInput) SetDescription Uses

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

SetDescription sets the Description field's value.

func (*CreateAliasInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*CreateAliasInput) SetFunctionVersion Uses

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

SetFunctionVersion sets the FunctionVersion field's value.

func (*CreateAliasInput) SetName Uses

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

SetName sets the Name field's value.

func (*CreateAliasInput) SetRoutingConfig Uses

func (s *CreateAliasInput) SetRoutingConfig(v *AliasRoutingConfiguration) *CreateAliasInput

SetRoutingConfig sets the RoutingConfig field's value.

func (CreateAliasInput) String Uses

func (s CreateAliasInput) String() string

String returns the string representation

func (*CreateAliasInput) Validate Uses

func (s *CreateAliasInput) Validate() error

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

type CreateEventSourceMappingInput Uses

type CreateEventSourceMappingInput struct {

    // The largest number of records that AWS Lambda will retrieve from your event
    // source at the time of invoking your function. Your function receives an event
    // with all the retrieved records. The default for Amazon Kinesis and Amazon
    // DynamoDB is 100 records. For SQS, the default is 1.
    BatchSize *int64 `min:"1" type:"integer"`

    // Indicates whether AWS Lambda should begin polling the event source. By default,
    // Enabled is true.
    Enabled *bool `type:"boolean"`

    // The Amazon Resource Name (ARN) of the event source. Any record added to this
    // source could cause AWS Lambda to invoke your Lambda function, it depends
    // on the BatchSize. AWS Lambda POSTs the event's records to your Lambda function
    // as JSON.
    //
    // EventSourceArn is a required field
    EventSourceArn *string `type:"string" required:"true"`

    // The Lambda function to invoke when AWS Lambda detects an event on the stream.
    //
    // You can specify the function name (for example, Thumbnail) or you can specify
    // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail).
    //
    // If you are using versioning, you can also provide a qualified function ARN
    // (ARN that is qualified with function version or alias name as suffix). For
    // more information about versioning, see AWS Lambda Function Versioning and
    // Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html)
    //
    // AWS Lambda also allows you to specify only the function name with the account
    // ID qualifier (for example, account-id:Thumbnail).
    //
    // Note that the length constraint applies only to the 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 position in the DynamoDB or Kinesis stream where AWS Lambda should start
    // reading. For more information, see GetShardIterator (http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType)
    // in the Amazon Kinesis API Reference Guide or GetShardIterator (http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_GetShardIterator.html)
    // in the Amazon DynamoDB API Reference Guide. The AT_TIMESTAMP value is supported
    // only for Kinesis streams (http://docs.aws.amazon.com/streams/latest/dev/amazon-kinesis-streams.html).
    StartingPosition *string `type:"string" enum:"EventSourcePosition"`

    // The timestamp of the data record from which to start reading. Used with shard
    // iterator type (http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType)
    // AT_TIMESTAMP. If a record with this exact timestamp does not exist, the iterator
    // returned is for the next (later) record. If the timestamp is older than the
    // current trim horizon, the iterator returned is for the oldest untrimmed data
    // record (TRIM_HORIZON). Valid only for Kinesis streams (http://docs.aws.amazon.com/streams/latest/dev/amazon-kinesis-streams.html).
    StartingPositionTimestamp *time.Time `type:"timestamp"`
    // contains filtered or unexported fields
}

func (CreateEventSourceMappingInput) GoString Uses

func (s CreateEventSourceMappingInput) GoString() string

GoString returns the string representation

func (*CreateEventSourceMappingInput) SetBatchSize Uses

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

SetBatchSize sets the BatchSize field's value.

func (*CreateEventSourceMappingInput) SetEnabled Uses

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

SetEnabled sets the Enabled field's value.

func (*CreateEventSourceMappingInput) SetEventSourceArn Uses

func (s *CreateEventSourceMappingInput) SetEventSourceArn(v string) *CreateEventSourceMappingInput

SetEventSourceArn sets the EventSourceArn field's value.

func (*CreateEventSourceMappingInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*CreateEventSourceMappingInput) SetStartingPosition Uses

func (s *CreateEventSourceMappingInput) SetStartingPosition(v string) *CreateEventSourceMappingInput

SetStartingPosition sets the StartingPosition field's value.

func (*CreateEventSourceMappingInput) SetStartingPositionTimestamp Uses

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

SetStartingPositionTimestamp sets the StartingPositionTimestamp field's value.

func (CreateEventSourceMappingInput) String Uses

func (s CreateEventSourceMappingInput) String() string

String returns the string representation

func (*CreateEventSourceMappingInput) Validate Uses

func (s *CreateEventSourceMappingInput) Validate() error

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

type CreateFunctionInput Uses

type CreateFunctionInput struct {

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

    // The parent object that contains the target ARN (Amazon Resource Name) of
    // an Amazon SQS queue or Amazon SNS topic. For more information, see dlq.
    DeadLetterConfig *DeadLetterConfig `type:"structure"`

    // A short, user-defined function description. Lambda does not use this value.
    // Assign a meaningful description as you see fit.
    Description *string `type:"string"`

    // The parent object that contains your environment's configuration settings.
    Environment *Environment `type:"structure"`

    // The name you want to assign to the function you are uploading. The function
    // names appear in the console and are returned in the ListFunctions API. Function
    // names are used to specify functions to other AWS Lambda API operations, such
    // as Invoke. Note that the length constraint applies only to the 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 function within your code that Lambda calls to begin execution. For Node.js,
    // it is the module-name.export value in your function. For Java, it can be
    // package.class-name::handler or package.class-name. For more information,
    // see Lambda Function Handler (Java) (http://docs.aws.amazon.com/lambda/latest/dg/java-programming-model-handler-types.html).
    //
    // Handler is a required field
    Handler *string `type:"string" required:"true"`

    // The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's
    // environment variables. If not provided, AWS Lambda will use a default service
    // key.
    KMSKeyArn *string `type:"string"`

    // The amount of memory, in MB, your Lambda function is given. Lambda uses this
    // memory size to infer the amount of CPU and memory allocated to your function.
    // Your function use-case determines your CPU and memory requirements. For example,
    // a database operation might need less memory compared to an image processing
    // function. The default value is 128 MB. The value must be a multiple of 64
    // MB.
    MemorySize *int64 `min:"128" type:"integer"`

    // This boolean parameter can be used to request AWS Lambda to create the Lambda
    // function and publish a version as an atomic operation.
    Publish *bool `type:"boolean"`

    // The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it
    // executes your function to access any other Amazon Web Services (AWS) resources.
    // For more information, see AWS Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html).
    //
    // Role is a required field
    Role *string `type:"string" required:"true"`

    // The runtime environment for the Lambda function you are uploading.
    //
    // To use the Python runtime v3.6, set the value to "python3.6". To use the
    // Python runtime v2.7, set the value to "python2.7". To use the Node.js runtime
    // v6.10, set the value to "nodejs6.10". To use the Node.js runtime v4.3, set
    // the value to "nodejs4.3". To use the .NET Core runtime v1.0, set the value
    // to "dotnetcore1.0". To use the .NET Core runtime v2.0, set the value to "dotnetcore2.0".
    //
    // Node v0.10.42 is currently marked as deprecated. You must migrate existing
    // functions to the newer Node.js runtime versions available on AWS Lambda (nodejs4.3
    // or nodejs6.10) as soon as possible. Failure to do so will result in an invalid
    // parameter error being returned. Note that you will have to follow this procedure
    // for each region that contains functions written in the Node v0.10.42 runtime.
    //
    // Runtime is a required field
    Runtime *string `type:"string" required:"true" enum:"Runtime"`

    // The list of tags (key-value pairs) assigned to the new function. For more
    // information, see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html)
    // in the AWS Lambda Developer Guide.
    Tags map[string]*string `type:"map"`

    // The function execution time at which Lambda should terminate the function.
    // Because the execution time has cost implications, we recommend you set this
    // value based on your expected execution time. The default is 3 seconds.
    Timeout *int64 `min:"1" type:"integer"`

    // The parent object that contains your function's tracing settings.
    TracingConfig *TracingConfig `type:"structure"`

    // If your Lambda function accesses resources in a VPC, you provide this parameter
    // identifying the list of security group IDs and subnet IDs. These must belong
    // to the same VPC. You must provide at least one security group and one subnet
    // ID.
    VpcConfig *VpcConfig `type:"structure"`
    // contains filtered or unexported fields
}

func (CreateFunctionInput) GoString Uses

func (s CreateFunctionInput) GoString() string

GoString returns the string representation

func (*CreateFunctionInput) SetCode Uses

func (s *CreateFunctionInput) SetCode(v *FunctionCode) *CreateFunctionInput

SetCode sets the Code field's value.

func (*CreateFunctionInput) SetDeadLetterConfig Uses

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

SetDeadLetterConfig sets the DeadLetterConfig field's value.

func (*CreateFunctionInput) SetDescription Uses

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

SetDescription sets the Description field's value.

func (*CreateFunctionInput) SetEnvironment Uses

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

SetEnvironment sets the Environment field's value.

func (*CreateFunctionInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*CreateFunctionInput) SetHandler Uses

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

SetHandler sets the Handler field's value.

func (*CreateFunctionInput) SetKMSKeyArn Uses

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

SetKMSKeyArn sets the KMSKeyArn field's value.

func (*CreateFunctionInput) SetMemorySize Uses

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

SetMemorySize sets the MemorySize field's value.

func (*CreateFunctionInput) SetPublish Uses

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

SetPublish sets the Publish field's value.

func (*CreateFunctionInput) SetRole Uses

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

SetRole sets the Role field's value.

func (*CreateFunctionInput) SetRuntime Uses

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

SetRuntime sets the Runtime field's value.

func (*CreateFunctionInput) SetTags Uses

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

SetTags sets the Tags field's value.

func (*CreateFunctionInput) SetTimeout Uses

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

SetTimeout sets the Timeout field's value.

func (*CreateFunctionInput) SetTracingConfig Uses

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

SetTracingConfig sets the TracingConfig field's value.

func (*CreateFunctionInput) SetVpcConfig Uses

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

SetVpcConfig sets the VpcConfig field's value.

func (CreateFunctionInput) String Uses

func (s CreateFunctionInput) String() string

String returns the string representation

func (*CreateFunctionInput) Validate Uses

func (s *CreateFunctionInput) Validate() error

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

type DeadLetterConfig Uses

type DeadLetterConfig struct {

    // The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic
    // you specify as your Dead Letter Queue (DLQ). dlq. For more information, see
    // dlq.
    TargetArn *string `type:"string"`
    // contains filtered or unexported fields
}

The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic you specify as your Dead Letter Queue (DLQ). For more information, see dlq.

func (DeadLetterConfig) GoString Uses

func (s DeadLetterConfig) GoString() string

GoString returns the string representation

func (*DeadLetterConfig) SetTargetArn Uses

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

SetTargetArn sets the TargetArn field's value.

func (DeadLetterConfig) String Uses

func (s DeadLetterConfig) String() string

String returns the string representation

type DeleteAliasInput Uses

type DeleteAliasInput struct {

    // The Lambda function name for which the alias is created. Deleting an alias
    // does not delete the function version to which it is pointing. Note that the
    // length constraint applies only to the 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"`

    // Name of the alias to delete.
    //
    // 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 Uses

func (s DeleteAliasInput) GoString() string

GoString returns the string representation

func (*DeleteAliasInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*DeleteAliasInput) SetName Uses

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

SetName sets the Name field's value.

func (DeleteAliasInput) String Uses

func (s DeleteAliasInput) String() string

String returns the string representation

func (*DeleteAliasInput) Validate Uses

func (s *DeleteAliasInput) Validate() error

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

type DeleteAliasOutput Uses

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

func (DeleteAliasOutput) GoString Uses

func (s DeleteAliasOutput) GoString() string

GoString returns the string representation

func (DeleteAliasOutput) String Uses

func (s DeleteAliasOutput) String() string

String returns the string representation

type DeleteEventSourceMappingInput Uses

type DeleteEventSourceMappingInput struct {

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

func (DeleteEventSourceMappingInput) GoString Uses

func (s DeleteEventSourceMappingInput) GoString() string

GoString returns the string representation

func (*DeleteEventSourceMappingInput) SetUUID Uses

func (s *DeleteEventSourceMappingInput) SetUUID(v string) *DeleteEventSourceMappingInput

SetUUID sets the UUID field's value.

func (DeleteEventSourceMappingInput) String Uses

func (s DeleteEventSourceMappingInput) String() string

String returns the string representation

func (*DeleteEventSourceMappingInput) Validate Uses

func (s *DeleteEventSourceMappingInput) Validate() error

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

type DeleteFunctionConcurrencyInput Uses

type DeleteFunctionConcurrencyInput struct {

    // The name of the function you are removing concurrent execution limits from.
    // For more information, see concurrent-executions.
    //
    // 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 Uses

func (s DeleteFunctionConcurrencyInput) GoString() string

GoString returns the string representation

func (*DeleteFunctionConcurrencyInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (DeleteFunctionConcurrencyInput) String Uses

func (s DeleteFunctionConcurrencyInput) String() string

String returns the string representation

func (*DeleteFunctionConcurrencyInput) Validate Uses

func (s *DeleteFunctionConcurrencyInput) Validate() error

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

type DeleteFunctionConcurrencyOutput Uses

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

func (DeleteFunctionConcurrencyOutput) GoString Uses

func (s DeleteFunctionConcurrencyOutput) GoString() string

GoString returns the string representation

func (DeleteFunctionConcurrencyOutput) String Uses

func (s DeleteFunctionConcurrencyOutput) String() string

String returns the string representation

type DeleteFunctionInput Uses

type DeleteFunctionInput struct {

    // The Lambda function to delete.
    //
    // You can specify the function name (for example, Thumbnail) or you can specify
    // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail).
    // If you are using versioning, you can also provide a qualified function ARN
    // (ARN that is qualified with function version or alias name as suffix). AWS
    // Lambda also allows you to specify only the function name with the account
    // ID qualifier (for example, account-id:Thumbnail). Note that the length constraint
    // applies only to the 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"`

    // Using this optional parameter you can specify a function version (but not
    // the $LATEST version) to direct AWS Lambda to delete a specific function version.
    // If the function version has one or more aliases pointing to it, you will
    // get an error because you cannot have aliases pointing to it. You can delete
    // any function version but not the $LATEST, that is, you cannot specify $LATEST
    // as the value of this parameter. The $LATEST version can be deleted only when
    // you want to delete all the function versions and aliases.
    //
    // You can only specify a function version, not an alias name, using this parameter.
    // You cannot delete a function version using its alias.
    //
    // If you don't specify this parameter, AWS Lambda will delete the function,
    // including all of its versions and aliases.
    Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`
    // contains filtered or unexported fields
}

func (DeleteFunctionInput) GoString Uses

func (s DeleteFunctionInput) GoString() string

GoString returns the string representation

func (*DeleteFunctionInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*DeleteFunctionInput) SetQualifier Uses

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

SetQualifier sets the Qualifier field's value.

func (DeleteFunctionInput) String Uses

func (s DeleteFunctionInput) String() string

String returns the string representation

func (*DeleteFunctionInput) Validate Uses

func (s *DeleteFunctionInput) Validate() error

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

type DeleteFunctionOutput Uses

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

func (DeleteFunctionOutput) GoString Uses

func (s DeleteFunctionOutput) GoString() string

GoString returns the string representation

func (DeleteFunctionOutput) String Uses

func (s DeleteFunctionOutput) String() string

String returns the string representation

type Environment Uses

type Environment struct {

    // The key-value pairs that represent your environment's configuration settings.
    Variables map[string]*string `type:"map"`
    // contains filtered or unexported fields
}

The parent object that contains your environment's configuration settings.

func (Environment) GoString Uses

func (s Environment) GoString() string

GoString returns the string representation

func (*Environment) SetVariables Uses

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

SetVariables sets the Variables field's value.

func (Environment) String Uses

func (s Environment) String() string

String returns the string representation

type EnvironmentError Uses

type EnvironmentError struct {

    // The error code returned by the environment error object.
    ErrorCode *string `type:"string"`

    // The message returned by the environment error object.
    Message *string `type:"string"`
    // contains filtered or unexported fields
}

The parent object that contains error information associated with your configuration settings.

func (EnvironmentError) GoString Uses

func (s EnvironmentError) GoString() string

GoString returns the string representation

func (*EnvironmentError) SetErrorCode Uses

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

SetErrorCode sets the ErrorCode field's value.

func (*EnvironmentError) SetMessage Uses

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

SetMessage sets the Message field's value.

func (EnvironmentError) String Uses

func (s EnvironmentError) String() string

String returns the string representation

type EnvironmentResponse Uses

type EnvironmentResponse struct {

    // The parent object that contains error information associated with your configuration
    // settings.
    Error *EnvironmentError `type:"structure"`

    // The key-value pairs returned that represent your environment's configuration
    // settings or error information.
    Variables map[string]*string `type:"map"`
    // contains filtered or unexported fields
}

The parent object returned that contains your environment's configuration settings or any error information associated with your configuration settings.

func (EnvironmentResponse) GoString Uses

func (s EnvironmentResponse) GoString() string

GoString returns the string representation

func (*EnvironmentResponse) SetError Uses

func (s *EnvironmentResponse) SetError(v *EnvironmentError) *EnvironmentResponse

SetError sets the Error field's value.

func (*EnvironmentResponse) SetVariables Uses

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

SetVariables sets the Variables field's value.

func (EnvironmentResponse) String Uses

func (s EnvironmentResponse) String() string

String returns the string representation

type EventSourceMappingConfiguration Uses

type EventSourceMappingConfiguration struct {

    // The largest number of records that AWS Lambda will retrieve from your event
    // source at the time of invoking your function. Your function receives an event
    // with all the retrieved records.
    BatchSize *int64 `min:"1" type:"integer"`

    // The Amazon Resource Name (ARN) of the Amazon Kinesis or DynamoDB stream or
    // the SQS queue that is the source of events.
    EventSourceArn *string `type:"string"`

    // The Lambda function to invoke when AWS Lambda detects an event on the poll-based
    // source.
    FunctionArn *string `type:"string"`

    // The UTC time string indicating the last time the event mapping was updated.
    LastModified *time.Time `type:"timestamp"`

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

    // The state of the event source mapping. It can be Creating, Enabled, Disabled,
    // Enabling, Disabling, Updating, or Deleting.
    State *string `type:"string"`

    // The reason the event source mapping is in its current state. It is either
    // user-requested or an AWS Lambda-initiated state transition.
    StateTransitionReason *string `type:"string"`

    // The AWS Lambda assigned opaque identifier for the mapping.
    UUID *string `type:"string"`
    // contains filtered or unexported fields
}

Describes mapping between an Amazon Kinesis or DynamoDB stream or an Amazon SQS queue and a Lambda function.

func (EventSourceMappingConfiguration) GoString Uses

func (s EventSourceMappingConfiguration) GoString() string

GoString returns the string representation

func (*EventSourceMappingConfiguration) SetBatchSize Uses

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

SetBatchSize sets the BatchSize field's value.

func (*EventSourceMappingConfiguration) SetEventSourceArn Uses

func (s *EventSourceMappingConfiguration) SetEventSourceArn(v string) *EventSourceMappingConfiguration

SetEventSourceArn sets the EventSourceArn field's value.

func (*EventSourceMappingConfiguration) SetFunctionArn Uses

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

SetFunctionArn sets the FunctionArn field's value.

func (*EventSourceMappingConfiguration) SetLastModified Uses

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

SetLastModified sets the LastModified field's value.

func (*EventSourceMappingConfiguration) SetLastProcessingResult Uses

func (s *EventSourceMappingConfiguration) SetLastProcessingResult(v string) *EventSourceMappingConfiguration

SetLastProcessingResult sets the LastProcessingResult field's value.

func (*EventSourceMappingConfiguration) SetState Uses

func (s *EventSourceMappingConfiguration) SetState(v string) *EventSourceMappingConfiguration

SetState sets the State field's value.

func (*EventSourceMappingConfiguration) SetStateTransitionReason Uses

func (s *EventSourceMappingConfiguration) SetStateTransitionReason(v string) *EventSourceMappingConfiguration

SetStateTransitionReason sets the StateTransitionReason field's value.

func (*EventSourceMappingConfiguration) SetUUID Uses

func (s *EventSourceMappingConfiguration) SetUUID(v string) *EventSourceMappingConfiguration

SetUUID sets the UUID field's value.

func (EventSourceMappingConfiguration) String Uses

func (s EventSourceMappingConfiguration) String() string

String returns the string representation

type FunctionCode Uses

type FunctionCode struct {

    // Amazon S3 bucket name where the .zip file containing your deployment package
    // is stored. This bucket must reside in the same AWS region where you are creating
    // the Lambda function.
    S3Bucket *string `min:"3" type:"string"`

    // The Amazon S3 object (the deployment package) key name you want to upload.
    S3Key *string `min:"1" type:"string"`

    // The Amazon S3 object (the deployment package) version you want to upload.
    S3ObjectVersion *string `min:"1" type:"string"`

    // The contents of your zip file containing your deployment package. If you
    // are using the web API directly, the contents of the zip file must be base64-encoded.
    // If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the
    // encoding for you. For more information about creating a .zip file, see Execution
    // Permissions (http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html)
    // in the AWS Lambda Developer Guide.
    //
    // ZipFile is automatically base64 encoded/decoded by the SDK.
    ZipFile []byte `type:"blob"`
    // contains filtered or unexported fields
}

The code for the Lambda function.

func (FunctionCode) GoString Uses

func (s FunctionCode) GoString() string

GoString returns the string representation

func (*FunctionCode) SetS3Bucket Uses

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

SetS3Bucket sets the S3Bucket field's value.

func (*FunctionCode) SetS3Key Uses

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

SetS3Key sets the S3Key field's value.

func (*FunctionCode) SetS3ObjectVersion Uses

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

SetS3ObjectVersion sets the S3ObjectVersion field's value.

func (*FunctionCode) SetZipFile Uses

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

SetZipFile sets the ZipFile field's value.

func (FunctionCode) String Uses

func (s FunctionCode) String() string

String returns the string representation

func (*FunctionCode) Validate Uses

func (s *FunctionCode) Validate() error

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

type FunctionCodeLocation Uses

type FunctionCodeLocation struct {

    // The presigned URL you can use to download the function's .zip file that you
    // previously uploaded. The URL is valid for up to 10 minutes.
    Location *string `type:"string"`

    // The repository from which you can download the function.
    RepositoryType *string `type:"string"`
    // contains filtered or unexported fields
}

The object for the Lambda function location.

func (FunctionCodeLocation) GoString Uses

func (s FunctionCodeLocation) GoString() string

GoString returns the string representation

func (*FunctionCodeLocation) SetLocation Uses

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

SetLocation sets the Location field's value.

func (*FunctionCodeLocation) SetRepositoryType Uses

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

SetRepositoryType sets the RepositoryType field's value.

func (FunctionCodeLocation) String Uses

func (s FunctionCodeLocation) String() string

String returns the string representation

type FunctionConfiguration Uses

type FunctionConfiguration struct {

    // It is the SHA256 hash of your function deployment package.
    CodeSha256 *string `type:"string"`

    // The size, in bytes, of the function .zip file you uploaded.
    CodeSize *int64 `type:"long"`

    // The parent object that contains the target ARN (Amazon Resource Name) of
    // an Amazon SQS queue or Amazon SNS topic. For more information, see dlq.
    DeadLetterConfig *DeadLetterConfig `type:"structure"`

    // The user-provided description.
    Description *string `type:"string"`

    // The parent object that contains your environment's configuration settings.
    Environment *EnvironmentResponse `type:"structure"`

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

    // The name of the function. Note that the length constraint applies only to
    // the ARN. If you specify only the function name, it is limited to 64 characters
    // in length.
    FunctionName *string `min:"1" type:"string"`

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

    // The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's
    // environment variables. If empty, it means you are using the AWS Lambda default
    // service key.
    KMSKeyArn *string `type:"string"`

    // The time stamp of the last time you updated the function. The time stamp
    // is conveyed as a string complying with ISO-8601 in this way YYYY-MM-DDThh:mm:ssTZD
    // (e.g., 1997-07-16T19:20:30+01:00). For more information, see Date and Time
    // Formats (https://www.w3.org/TR/NOTE-datetime).
    LastModified *string `type:"string"`

    // Returns the ARN (Amazon Resource Name) of the master function.
    MasterArn *string `type:"string"`

    // The memory size, in MB, you configured for the function. Must be a multiple
    // of 64 MB.
    MemorySize *int64 `min:"128" type:"integer"`

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

    // The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it
    // executes your function to access any other Amazon Web Services (AWS) resources.
    Role *string `type:"string"`

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

    // The function execution time at which Lambda should terminate the function.
    // Because the execution time has cost implications, we recommend you set this
    // value based on your expected execution time. The default is 3 seconds.
    Timeout *int64 `min:"1" type:"integer"`

    // The parent object that contains your function's tracing settings.
    TracingConfig *TracingConfigResponse `type:"structure"`

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

    // VPC configuration associated with your Lambda function.
    VpcConfig *VpcConfigResponse `type:"structure"`
    // contains filtered or unexported fields
}

A complex type that describes function metadata.

func (FunctionConfiguration) GoString Uses

func (s FunctionConfiguration) GoString() string

GoString returns the string representation

func (*FunctionConfiguration) SetCodeSha256 Uses

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

SetCodeSha256 sets the CodeSha256 field's value.

func (*FunctionConfiguration) SetCodeSize Uses

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

SetCodeSize sets the CodeSize field's value.

func (*FunctionConfiguration) SetDeadLetterConfig Uses

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

SetDeadLetterConfig sets the DeadLetterConfig field's value.

func (*FunctionConfiguration) SetDescription Uses

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

SetDescription sets the Description field's value.

func (*FunctionConfiguration) SetEnvironment Uses

func (s *FunctionConfiguration) SetEnvironment(v *EnvironmentResponse) *FunctionConfiguration

SetEnvironment sets the Environment field's value.

func (*FunctionConfiguration) SetFunctionArn Uses

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

SetFunctionArn sets the FunctionArn field's value.

func (*FunctionConfiguration) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*FunctionConfiguration) SetHandler Uses

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

SetHandler sets the Handler field's value.

func (*FunctionConfiguration) SetKMSKeyArn Uses

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

SetKMSKeyArn sets the KMSKeyArn field's value.

func (*FunctionConfiguration) SetLastModified Uses

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

SetLastModified sets the LastModified field's value.

func (*FunctionConfiguration) SetMasterArn Uses

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

SetMasterArn sets the MasterArn field's value.

func (*FunctionConfiguration) SetMemorySize Uses

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

SetMemorySize sets the MemorySize field's value.

func (*FunctionConfiguration) SetRevisionId Uses

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

SetRevisionId sets the RevisionId field's value.

func (*FunctionConfiguration) SetRole Uses

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

SetRole sets the Role field's value.

func (*FunctionConfiguration) SetRuntime Uses

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

SetRuntime sets the Runtime field's value.

func (*FunctionConfiguration) SetTimeout Uses

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

SetTimeout sets the Timeout field's value.

func (*FunctionConfiguration) SetTracingConfig Uses

func (s *FunctionConfiguration) SetTracingConfig(v *TracingConfigResponse) *FunctionConfiguration

SetTracingConfig sets the TracingConfig field's value.

func (*FunctionConfiguration) SetVersion Uses

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

SetVersion sets the Version field's value.

func (*FunctionConfiguration) SetVpcConfig Uses

func (s *FunctionConfiguration) SetVpcConfig(v *VpcConfigResponse) *FunctionConfiguration

SetVpcConfig sets the VpcConfig field's value.

func (FunctionConfiguration) String Uses

func (s FunctionConfiguration) String() string

String returns the string representation

type GetAccountSettingsInput Uses

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

func (GetAccountSettingsInput) GoString Uses

func (s GetAccountSettingsInput) GoString() string

GoString returns the string representation

func (GetAccountSettingsInput) String Uses

func (s GetAccountSettingsInput) String() string

String returns the string representation

type GetAccountSettingsOutput Uses

type GetAccountSettingsOutput struct {

    // Provides limits of code size and concurrency associated with the current
    // account and region.
    AccountLimit *AccountLimit `type:"structure"`

    // Provides code size usage and function count associated with the current account
    // and region.
    AccountUsage *AccountUsage `type:"structure"`
    // contains filtered or unexported fields
}

func (GetAccountSettingsOutput) GoString Uses

func (s GetAccountSettingsOutput) GoString() string

GoString returns the string representation

func (*GetAccountSettingsOutput) SetAccountLimit Uses

func (s *GetAccountSettingsOutput) SetAccountLimit(v *AccountLimit) *GetAccountSettingsOutput

SetAccountLimit sets the AccountLimit field's value.

func (*GetAccountSettingsOutput) SetAccountUsage Uses

func (s *GetAccountSettingsOutput) SetAccountUsage(v *AccountUsage) *GetAccountSettingsOutput

SetAccountUsage sets the AccountUsage field's value.

func (GetAccountSettingsOutput) String Uses

func (s GetAccountSettingsOutput) String() string

String returns the string representation

type GetAliasInput Uses

type GetAliasInput struct {

    // Function name for which the alias is created. An alias is a subresource that
    // exists only in the context of an existing Lambda function so you must specify
    // the function name. Note that the length constraint applies only to the 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"`

    // Name of the alias for which you want to retrieve information.
    //
    // 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 Uses

func (s GetAliasInput) GoString() string

GoString returns the string representation

func (*GetAliasInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*GetAliasInput) SetName Uses

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

SetName sets the Name field's value.

func (GetAliasInput) String Uses

func (s GetAliasInput) String() string

String returns the string representation

func (*GetAliasInput) Validate Uses

func (s *GetAliasInput) Validate() error

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

type GetEventSourceMappingInput Uses

type GetEventSourceMappingInput struct {

    // The AWS Lambda assigned ID 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 Uses

func (s GetEventSourceMappingInput) GoString() string

GoString returns the string representation

func (*GetEventSourceMappingInput) SetUUID Uses

func (s *GetEventSourceMappingInput) SetUUID(v string) *GetEventSourceMappingInput

SetUUID sets the UUID field's value.

func (GetEventSourceMappingInput) String Uses

func (s GetEventSourceMappingInput) String() string

String returns the string representation

func (*GetEventSourceMappingInput) Validate Uses

func (s *GetEventSourceMappingInput) Validate() error

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

type GetFunctionConfigurationInput Uses

type GetFunctionConfigurationInput struct {

    // The name of the Lambda function for which you want to retrieve the configuration
    // information.
    //
    // You can specify a function name (for example, Thumbnail) or you can specify
    // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail).
    // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail).
    // Note that the length constraint applies only to the 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"`

    // Using this optional parameter you can specify a function version or an alias
    // name. If you specify function version, the API uses qualified function ARN
    // and returns information about the specific function version. If you specify
    // an alias name, the API uses the alias ARN and returns information about the
    // function version to which the alias points.
    //
    // If you don't specify this parameter, the API uses unqualified function ARN,
    // and returns information about the $LATEST function version.
    Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`
    // contains filtered or unexported fields
}

func (GetFunctionConfigurationInput) GoString Uses

func (s GetFunctionConfigurationInput) GoString() string

GoString returns the string representation

func (*GetFunctionConfigurationInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*GetFunctionConfigurationInput) SetQualifier Uses

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

SetQualifier sets the Qualifier field's value.

func (GetFunctionConfigurationInput) String Uses

func (s GetFunctionConfigurationInput) String() string

String returns the string representation

func (*GetFunctionConfigurationInput) Validate Uses

func (s *GetFunctionConfigurationInput) Validate() error

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

type GetFunctionInput Uses

type GetFunctionInput struct {

    // The Lambda function name.
    //
    // You can specify a function name (for example, Thumbnail) or you can specify
    // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail).
    // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail).
    // Note that the length constraint applies only to the 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"`

    // Use this optional parameter to specify a function version or an alias name.
    // If you specify function version, the API uses qualified function ARN for
    // the request and returns information about the specific Lambda function version.
    // If you specify an alias name, the API uses the alias ARN and returns information
    // about the function version to which the alias points. If you don't provide
    // this parameter, the API uses unqualified function ARN and returns information
    // about the $LATEST version of the Lambda function.
    Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`
    // contains filtered or unexported fields
}

func (GetFunctionInput) GoString Uses

func (s GetFunctionInput) GoString() string

GoString returns the string representation

func (*GetFunctionInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*GetFunctionInput) SetQualifier Uses

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

SetQualifier sets the Qualifier field's value.

func (GetFunctionInput) String Uses

func (s GetFunctionInput) String() string

String returns the string representation

func (*GetFunctionInput) Validate Uses

func (s *GetFunctionInput) Validate() error

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

type GetFunctionOutput Uses

type GetFunctionOutput struct {

    // The object for the Lambda function location.
    Code *FunctionCodeLocation `type:"structure"`

    // The concurrent execution limit set for this function. For more information,
    // see concurrent-executions.
    Concurrency *PutFunctionConcurrencyOutput `type:"structure"`

    // A complex type that describes function metadata.
    Configuration *FunctionConfiguration `type:"structure"`

    // Returns the list of tags associated with the function. For more information,
    // see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html)
    // in the AWS Lambda Developer Guide.
    Tags map[string]*string `type:"map"`
    // contains filtered or unexported fields
}

This response contains the object for the Lambda function location (see FunctionCodeLocation.

func (GetFunctionOutput) GoString Uses

func (s GetFunctionOutput) GoString() string

GoString returns the string representation

func (*GetFunctionOutput) SetCode Uses

func (s *GetFunctionOutput) SetCode(v *FunctionCodeLocation) *GetFunctionOutput

SetCode sets the Code field's value.

func (*GetFunctionOutput) SetConcurrency Uses

func (s *GetFunctionOutput) SetConcurrency(v *PutFunctionConcurrencyOutput) *GetFunctionOutput

SetConcurrency sets the Concurrency field's value.

func (*GetFunctionOutput) SetConfiguration Uses

func (s *GetFunctionOutput) SetConfiguration(v *FunctionConfiguration) *GetFunctionOutput

SetConfiguration sets the Configuration field's value.

func (*GetFunctionOutput) SetTags Uses

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

SetTags sets the Tags field's value.

func (GetFunctionOutput) String Uses

func (s GetFunctionOutput) String() string

String returns the string representation

type GetPolicyInput Uses

type GetPolicyInput struct {

    // Function name whose resource policy you want to retrieve.
    //
    // You can specify the function name (for example, Thumbnail) or you can specify
    // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail).
    // If you are using versioning, you can also provide a qualified function ARN
    // (ARN that is qualified with function version or alias name as suffix). AWS
    // Lambda also allows you to specify only the function name with the account
    // ID qualifier (for example, account-id:Thumbnail). Note that the length constraint
    // applies only to the 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"`

    // You can specify this optional query parameter to specify a function version
    // or an alias name in which case this API will return all permissions associated
    // with the specific qualified ARN. If you don't provide this parameter, the
    // API will return permissions that apply to the unqualified function ARN.
    Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`
    // contains filtered or unexported fields
}

func (GetPolicyInput) GoString Uses

func (s GetPolicyInput) GoString() string

GoString returns the string representation

func (*GetPolicyInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*GetPolicyInput) SetQualifier Uses

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

SetQualifier sets the Qualifier field's value.

func (GetPolicyInput) String Uses

func (s GetPolicyInput) String() string

String returns the string representation

func (*GetPolicyInput) Validate Uses

func (s *GetPolicyInput) Validate() error

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

type GetPolicyOutput Uses

type GetPolicyOutput struct {

    // The resource policy associated with the specified function. The response
    // returns the same as a string using a backslash ("\") as an escape character
    // in the JSON.
    Policy *string `type:"string"`

    // Represents the latest updated revision of the function or alias.
    RevisionId *string `type:"string"`
    // contains filtered or unexported fields
}

func (GetPolicyOutput) GoString Uses

func (s GetPolicyOutput) GoString() string

GoString returns the string representation

func (*GetPolicyOutput) SetPolicy Uses

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

SetPolicy sets the Policy field's value.

func (*GetPolicyOutput) SetRevisionId Uses

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

SetRevisionId sets the RevisionId field's value.

func (GetPolicyOutput) String Uses

func (s GetPolicyOutput) String() string

String returns the string representation

type InvokeAsyncInput Uses

type InvokeAsyncInput struct {

    // The Lambda function name. Note that the length constraint applies only to
    // the 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"`

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

func (InvokeAsyncInput) GoString Uses

func (s InvokeAsyncInput) GoString() string

GoString returns the string representation

func (*InvokeAsyncInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*InvokeAsyncInput) SetInvokeArgs Uses

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

SetInvokeArgs sets the InvokeArgs field's value.

func (InvokeAsyncInput) String Uses

func (s InvokeAsyncInput) String() string

String returns the string representation

func (*InvokeAsyncInput) Validate Uses

func (s *InvokeAsyncInput) Validate() error

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

type InvokeAsyncOutput Uses

type InvokeAsyncOutput struct {

    // It will be 202 upon success.
    Status *int64 `location:"statusCode" type:"integer"`
    // contains filtered or unexported fields
}

Upon success, it returns empty response. Otherwise, throws an exception.

func (InvokeAsyncOutput) GoString Uses

func (s InvokeAsyncOutput) GoString() string

GoString returns the string representation

func (*InvokeAsyncOutput) SetStatus Uses

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

SetStatus sets the Status field's value.

func (InvokeAsyncOutput) String Uses

func (s InvokeAsyncOutput) String() string

String returns the string representation

type InvokeInput Uses

type InvokeInput struct {

    // Using the ClientContext you can pass client-specific information to the Lambda
    // function you are invoking. You can then process the client information in
    // your Lambda function as you choose through the context variable. For an example
    // of a ClientContext JSON, see PutEvents (http://docs.aws.amazon.com/mobileanalytics/latest/ug/PutEvents.html)
    // in the Amazon Mobile Analytics API Reference and User Guide.
    //
    // The ClientContext JSON must be base64-encoded and has a maximum size of 3583
    // bytes.
    ClientContext *string `location:"header" locationName:"X-Amz-Client-Context" type:"string"`

    // The Lambda function name.
    //
    // You can specify a function name (for example, Thumbnail) or you can specify
    // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail).
    // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail).
    // Note that the length constraint applies only to the 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"`

    // By default, the Invoke API assumes RequestResponse invocation type. You can
    // optionally request asynchronous execution by specifying Event as the InvocationType.
    // You can also use this parameter to request AWS Lambda to not execute the
    // function but do some verification, such as if the caller is authorized to
    // invoke the function and if the inputs are valid. You request this by specifying
    // DryRun as the InvocationType. This is useful in a cross-account scenario
    // when you want to verify access to a function without running it.
    InvocationType *string `location:"header" locationName:"X-Amz-Invocation-Type" type:"string" enum:"InvocationType"`

    // You can set this optional parameter to Tail in the request only if you specify
    // the InvocationType parameter with value RequestResponse. In this case, AWS
    // Lambda returns the base64-encoded last 4 KB of log data produced by your
    // Lambda function in the x-amz-log-result header.
    LogType *string `location:"header" locationName:"X-Amz-Log-Type" type:"string" enum:"LogType"`

    // JSON that you want to provide to your Lambda function as input.
    Payload []byte `type:"blob"`

    // You can use this optional parameter to specify a Lambda function version
    // or alias name. If you specify a function version, the API uses the qualified
    // function ARN to invoke a specific Lambda function. If you specify an alias
    // name, the API uses the alias ARN to invoke the Lambda function version to
    // which the alias points.
    //
    // If you don't provide this parameter, then the API uses unqualified function
    // ARN which results in invocation of the $LATEST version.
    Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`
    // contains filtered or unexported fields
}

func (InvokeInput) GoString Uses

func (s InvokeInput) GoString() string

GoString returns the string representation

func (*InvokeInput) SetClientContext Uses

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

SetClientContext sets the ClientContext field's value.

func (*InvokeInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*InvokeInput) SetInvocationType Uses

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

SetInvocationType sets the InvocationType field's value.

func (*InvokeInput) SetLogType Uses

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

SetLogType sets the LogType field's value.

func (*InvokeInput) SetPayload Uses

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

SetPayload sets the Payload field's value.

func (*InvokeInput) SetQualifier Uses

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

SetQualifier sets the Qualifier field's value.

func (InvokeInput) String Uses

func (s InvokeInput) String() string

String returns the string representation

func (*InvokeInput) Validate Uses

func (s *InvokeInput) Validate() error

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

type InvokeOutput Uses

type InvokeOutput struct {

    // The function version that has been executed. This value is returned only
    // if the invocation type is RequestResponse. For more information, see lambda-traffic-shifting-using-aliases.
    ExecutedVersion *string `location:"header" locationName:"X-Amz-Executed-Version" min:"1" type:"string"`

    // Indicates whether an error occurred while executing the Lambda function.
    // If an error occurred this field will have one of two values; Handled or Unhandled.
    // Handled errors are errors that are reported by the function while the Unhandled
    // errors are those detected and reported by AWS Lambda. Unhandled errors include
    // out of memory errors and function timeouts. For information about how to
    // report an Handled error, see Programming Model (http://docs.aws.amazon.com/lambda/latest/dg/programming-model.html).
    FunctionError *string `location:"header" locationName:"X-Amz-Function-Error" type:"string"`

    // It is the base64-encoded logs for the Lambda function invocation. This is
    // present only if the invocation type is RequestResponse and the logs were
    // requested.
    LogResult *string `location:"header" locationName:"X-Amz-Log-Result" type:"string"`

    // It is the JSON representation of the object returned by the Lambda function.
    // This is present only if the invocation type is RequestResponse.
    //
    // In the event of a function error this field contains a message describing
    // the error. For the Handled errors the Lambda function will report this message.
    // For Unhandled errors AWS Lambda reports the message.
    Payload []byte `type:"blob"`

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

Upon success, returns an empty response. Otherwise, throws an exception.

func (InvokeOutput) GoString Uses

func (s InvokeOutput) GoString() string

GoString returns the string representation

func (*InvokeOutput) SetExecutedVersion Uses

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

SetExecutedVersion sets the ExecutedVersion field's value.

func (*InvokeOutput) SetFunctionError Uses

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

SetFunctionError sets the FunctionError field's value.

func (*InvokeOutput) SetLogResult Uses

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

SetLogResult sets the LogResult field's value.

func (*InvokeOutput) SetPayload Uses

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

SetPayload sets the Payload field's value.

func (*InvokeOutput) SetStatusCode Uses

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

SetStatusCode sets the StatusCode field's value.

func (InvokeOutput) String Uses

func (s InvokeOutput) String() string

String returns the string representation

type Lambda Uses

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 Uses

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:

// 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) AddPermission Uses

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

AddPermission API operation for AWS Lambda.

Adds a permission to the resource policy associated with the specified AWS Lambda function. You use resource policies to grant permissions to event sources that use push model. In a push model, event sources (such as Amazon S3 and custom applications) invoke your Lambda function. Each permission you add to the resource policy allows an event source, permission to invoke the Lambda function.

For information about the push model, see Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html).

If you are using versioning, the permissions you add are specific to the Lambda function version or alias you specify in the AddPermission request via the Qualifier parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).

This operation requires permission for the lambda:AddPermission 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 AddPermission for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeResourceConflictException "ResourceConflictException"
The resource already exists.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodePolicyLengthExceededException "PolicyLengthExceededException"
Lambda function access policy is limited to 20 KB.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodePreconditionFailedException "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

add-permission

This example adds a permission for an S3 bucket to invoke a Lambda function.

Code:

svc := lambda.New(session.New())
input := &lambda.AddPermissionInput{
    Action:        aws.String("lambda:InvokeFunction"),
    FunctionName:  aws.String("MyFunction"),
    Principal:     aws.String("s3.amazonaws.com"),
    SourceAccount: aws.String("123456789012"),
    SourceArn:     aws.String("arn:aws:s3:::examplebucket/*"),
    StatementId:   aws.String("ID-1"),
}

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)

func (*Lambda) AddPermissionRequest Uses

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 successfuly.

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 Uses

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 Uses

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

CreateAlias API operation for AWS Lambda.

Creates an alias that points to the specified Lambda function version. For more information, see Introduction to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html).

Alias names are unique for a given function. This requires permission for the lambda:CreateAlias 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 CreateAlias for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeResourceConflictException "ResourceConflictException"
The resource already exists.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

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

func (*Lambda) CreateAliasRequest Uses

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 successfuly.

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 Uses

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) CreateEventSourceMapping Uses

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

CreateEventSourceMapping API operation for AWS Lambda.

Identifies a poll-based event source for a Lambda function. It can be either an Amazon Kinesis or DynamoDB stream, or an Amazon SQS queue. AWS Lambda invokes the specified function when records are posted to the event source.

This association between a poll-based source and a Lambda function is called the event source mapping.

You provide mapping information (for example, which stream or SQS queue to read from and which Lambda function to invoke) in the request body.

Amazon Kinesis or DynamoDB stream event sources can be associated with multiple AWS Lambda functions and a given Lambda function can be associated with multiple AWS event sources. For Amazon SQS, you can configure multiple queues as event sources for a single Lambda function, but an SQS queue can be mapped only to a single Lambda function.

If you are using versioning, you can specify a specific function version or an alias via the function name parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).

This operation requires permission for the lambda:CreateEventSourceMapping 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 CreateEventSourceMapping for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeResourceConflictException "ResourceConflictException"
The resource already exists.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

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

func (*Lambda) CreateEventSourceMappingRequest Uses

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 successfuly.

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 Uses

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 Uses

func (c *Lambda) CreateFunction(input *CreateFunctionInput) (*FunctionConfiguration, error)

CreateFunction API operation for AWS Lambda.

Creates a new Lambda function. The function metadata is created from the request parameters, and the code for the function is provided by a .zip file in the request body. If the function name already exists, the operation will fail. Note that the function name is case-sensitive.

If you are using versioning, you can also publish a version of the Lambda function you are creating using the Publish parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).

This operation requires permission for the lambda:CreateFunction 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 CreateFunction for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeResourceConflictException "ResourceConflictException"
The resource already exists.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodeCodeStorageExceededException "CodeStorageExceededException"
You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html)

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

create-function

This example creates a Lambda function.

Code:

svc := lambda.New(session.New())
input := &lambda.CreateFunctionInput{
    Code:         &lambda.FunctionCode{},
    Description:  aws.String(""),
    FunctionName: aws.String("MyFunction"),
    Handler:      aws.String("souce_file.handler_name"),
    MemorySize:   aws.Int64(128),
    Publish:      aws.Bool(true),
    Role:         aws.String("arn:aws:iam::123456789012:role/service-role/role-name"),
    Runtime:      aws.String("nodejs4.3"),
    Timeout:      aws.Int64(15),
    VpcConfig:    &lambda.VpcConfig{},
}

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

func (*Lambda) CreateFunctionRequest Uses

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 successfuly.

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 Uses

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 Uses

func (c *Lambda) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error)

DeleteAlias API operation for AWS Lambda.

Deletes the specified Lambda function alias. For more information, see Introduction to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html).

This requires permission for the lambda:DeleteAlias 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 DeleteAlias for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

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

To delete a Lambda function alias

This operation deletes a Lambda function alias

Code:

svc := lambda.New(session.New())
input := &lambda.DeleteAliasInput{
    FunctionName: aws.String("myFunction"),
    Name:         aws.String("alias"),
}

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

func (*Lambda) DeleteAliasRequest Uses

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 successfuly.

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 Uses

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) DeleteEventSourceMapping Uses

func (c *Lambda) DeleteEventSourceMapping(input *DeleteEventSourceMappingInput) (*EventSourceMappingConfiguration, error)

DeleteEventSourceMapping API operation for AWS Lambda.

Removes an event source mapping. This means AWS Lambda will no longer invoke the function for events in the associated source.

This operation requires permission for the lambda:DeleteEventSourceMapping 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 DeleteEventSourceMapping for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodeResourceInUseException "ResourceInUseException"
The operation conflicts with the resource's availability. For example, you
attempted to update an EventSoure Mapping in CREATING, or tried to delete
a EventSoure mapping currently in the UPDATING state.

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

To delete a Lambda function event source mapping

This operation deletes a Lambda function event source mapping

Code:

svc := lambda.New(session.New())
input := &lambda.DeleteEventSourceMappingInput{
    UUID: aws.String("12345kxodurf3443"),
}

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)

func (*Lambda) DeleteEventSourceMappingRequest Uses

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 successfuly.

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 Uses

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 Uses

func (c *Lambda) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutput, error)

DeleteFunction API operation for AWS Lambda.

Deletes the specified Lambda function code and configuration.

If you are using the versioning feature and you don't specify a function version in your DeleteFunction request, AWS Lambda will delete the function, including all its versions, and any aliases pointing to the function versions. To delete a specific function version, you must provide the function version via the Qualifier parameter. For information about function versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).

When you delete a function the associated resource policy is also deleted. You will need to delete the event source mappings explicitly.

This operation requires permission for the lambda:DeleteFunction 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 DeleteFunction for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeResourceConflictException "ResourceConflictException"
The resource already exists.

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

To delete a Lambda function

This operation deletes a Lambda function

Code:

svc := lambda.New(session.New())
input := &lambda.DeleteFunctionInput{
    FunctionName: aws.String("myFunction"),
    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)

func (*Lambda) DeleteFunctionConcurrency Uses

func (c *Lambda) DeleteFunctionConcurrency(input *DeleteFunctionConcurrencyInput) (*DeleteFunctionConcurrencyOutput, error)

DeleteFunctionConcurrency API operation for AWS Lambda.

Removes concurrent execution limits from this function. For more information, see concurrent-executions.

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 Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

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

func (*Lambda) DeleteFunctionConcurrencyRequest Uses

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 successfuly.

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 Uses

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) DeleteFunctionRequest Uses

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 successfuly.

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 Uses

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) GetAccountSettings Uses

func (c *Lambda) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error)

GetAccountSettings API operation for AWS Lambda.

Returns a customer's account settings.

You can use this operation to retrieve Lambda limits information, such as code size and concurrency limits. For more information about limits, see AWS Lambda Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html). You can also retrieve resource usage statistics, such as code storage usage and function count.

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 Codes:

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

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

To retrieves a Lambda customer's account settings

This operation retrieves a Lambda customer's account settings

Code:

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)

func (*Lambda) GetAccountSettingsRequest Uses

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 successfuly.

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 Uses

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 Uses

func (c *Lambda) GetAlias(input *GetAliasInput) (*AliasConfiguration, error)

GetAlias API operation for AWS Lambda.

Returns the specified alias information such as the alias ARN, description, and function version it is pointing to. For more information, see Introduction to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html).

This requires permission for the lambda:GetAlias 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 GetAlias for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

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

To retrieve a Lambda function alias

This operation retrieves a Lambda function alias

Code:

svc := lambda.New(session.New())
input := &lambda.GetAliasInput{
    FunctionName: aws.String("myFunction"),
    Name:         aws.String("myFunctionAlias"),
}

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)

func (*Lambda) GetAliasRequest Uses

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 successfuly.

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 Uses

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) GetEventSourceMapping Uses

func (c *Lambda) GetEventSourceMapping(input *GetEventSourceMappingInput) (*EventSourceMappingConfiguration, error)

GetEventSourceMapping API operation for AWS Lambda.

Returns configuration information for the specified event source mapping (see CreateEventSourceMapping).

This operation requires permission for the lambda:GetEventSourceMapping 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 GetEventSourceMapping for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

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

To retrieve a Lambda function's event source mapping

This operation retrieves a Lambda function's event source mapping

Code:

svc := lambda.New(session.New())
input := &lambda.GetEventSourceMappingInput{
    UUID: aws.String("123489-xxxxx-kdla8d89d7"),
}

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)

func (*Lambda) GetEventSourceMappingRequest Uses

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 successfuly.

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 Uses

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 Uses

func (c *Lambda) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error)

GetFunction API operation for AWS Lambda.

Returns the configuration information of the Lambda function and a presigned URL link to the .zip file you uploaded with CreateFunction so you can download the .zip file. Note that the URL is valid for up to 10 minutes. The configuration information is the same information you provided as parameters when uploading the function.

Using the optional Qualifier parameter, you can specify a specific function version for which you want this information. If you don't specify this parameter, the API uses unqualified function ARN which return information about the $LATEST version of the Lambda function. For more information, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).

This operation requires permission for the lambda:GetFunction 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 GetFunction for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

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

To retrieve a Lambda function's event source mapping

This operation retrieves a Lambda function's event source mapping

Code:

svc := lambda.New(session.New())
input := &lambda.GetFunctionInput{
    FunctionName: aws.String("myFunction"),
    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)

func (*Lambda) GetFunctionConfiguration Uses

func (c *Lambda) GetFunctionConfiguration(input *GetFunctionConfigurationInput) (*FunctionConfiguration, error)

GetFunctionConfiguration API operation for AWS Lambda.

Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using CreateFunction.

If you are using the versioning feature, you can retrieve this information for a specific function version by using the optional Qualifier parameter and specifying the function version or alias that points to it. If you don't provide it, the API returns information about the $LATEST version of the function. For more information about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).

This operation requires permission for the lambda:GetFunctionConfiguration operation.

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 Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

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

To retrieve a Lambda function's event source mapping

This operation retrieves a Lambda function's event source mapping

Code:

svc := lambda.New(session.New())
input := &lambda.GetFunctionConfigurationInput{
    FunctionName: aws.String("myFunction"),
    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)

func (*Lambda) GetFunctionConfigurationRequest Uses

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 successfuly.

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 Uses

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) GetFunctionRequest Uses

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 successfuly.

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 Uses

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) GetPolicy Uses

func (c *Lambda) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error)

GetPolicy API operation for AWS Lambda.

Returns the resource policy associated with the specified Lambda function.

If you are using the versioning feature, you can get the resource policy associated with the specific Lambda function version or alias by specifying the version or alias name using the Qualifier parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).

You need permission for the lambda:GetPolicy 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 GetPolicy for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

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

To retrieve a Lambda function policy

This operation retrieves a Lambda function policy

Code:

svc := lambda.New(session.New())
input := &lambda.GetPolicyInput{
    FunctionName: aws.String("myFunction"),
    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)

func (*Lambda) GetPolicyRequest Uses

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 successfuly.

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 Uses

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) Invoke Uses

func (c *Lambda) Invoke(input *InvokeInput) (*InvokeOutput, error)

Invoke API operation for AWS Lambda.

Invokes a specific Lambda function. For an example, see Create the Lambda Function and Test It Manually (http://docs.aws.amazon.com/lambda/latest/dg/with-dynamodb-create-function.html#with-dbb-invoke-manually).

If you are using the versioning feature, you can invoke the specific function version by providing function version or alias name that is pointing to the function version using the Qualifier parameter in the request. If you don't provide the Qualifier parameter, the $LATEST version of the Lambda function is invoked. Invocations occur at least once in response to an event and functions must be idempotent to handle this. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).

This operation requires permission for the lambda:InvokeFunction action.

The TooManyRequestsException noted below will return the following: ConcurrentInvocationLimitExceeded will be returned if you have no functions with reserved concurrency and have exceeded your account concurrent limit or if a function without reserved concurrency exceeds the account's unreserved concurrency limit. ReservedFunctionConcurrentInvocationLimitExceeded will be returned when a function with reserved concurrency exceeds its configured concurrency limit.

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 Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidRequestContentException "InvalidRequestContentException"
The request body could not be parsed as JSON.

* ErrCodeRequestTooLargeException "RequestTooLargeException"
The request payload exceeded the Invoke request body JSON input limit. For
more information, see Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html).

* ErrCodeUnsupportedMediaTypeException "UnsupportedMediaTypeException"
The content type of the Invoke request body is not JSON.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeEC2UnexpectedException "EC2UnexpectedException"
AWS Lambda received an unexpected EC2 client exception while setting up for
the Lambda function.

* ErrCodeSubnetIPAddressLimitReachedException "SubnetIPAddressLimitReachedException"
AWS Lambda was not able to set up VPC access for the Lambda function because
one or more configured subnets has no available IP addresses.

* ErrCodeENILimitReachedException "ENILimitReachedException"
AWS Lambda was not able to create an Elastic Network Interface (ENI) in the
VPC, specified as part of Lambda function configuration, because the limit
for network interfaces has been reached.

* ErrCodeEC2ThrottledException "EC2ThrottledException"
AWS Lambda was throttled by Amazon EC2 during Lambda function initialization
using the execution role provided for the Lambda function.

* ErrCodeEC2AccessDeniedException "EC2AccessDeniedException"

* ErrCodeInvalidSubnetIDException "InvalidSubnetIDException"
The Subnet ID provided in the Lambda function VPC configuration is invalid.

* ErrCodeInvalidSecurityGroupIDException "InvalidSecurityGroupIDException"
The Security Group ID provided in the Lambda function VPC configuration is
invalid.

* ErrCodeInvalidZipFileException "InvalidZipFileException"
AWS Lambda could not unzip the function zip file.

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

* ErrCodeKMSInvalidStateException "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.

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

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

* ErrCodeInvalidRuntimeException "InvalidRuntimeException"
The runtime or runtime version specified is not supported.

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

To invoke a Lambda function

This operation invokes a Lambda function

Code:

svc := lambda.New(session.New())
input := &lambda.InvokeInput{
    ClientContext:  aws.String("MyApp"),
    FunctionName:   aws.String("MyFunction"),
    InvocationType: aws.String("Event"),
    LogType:        aws.String("Tail"),
    Payload:        []byte("fileb://file-path/input.json"),
    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.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())
        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)

func (*Lambda) InvokeAsync Uses

func (c *Lambda) InvokeAsync(input *InvokeAsyncInput) (*InvokeAsyncOutput, error)

InvokeAsync API operation for AWS Lambda.

This API is deprecated. We recommend you use Invoke API (see Invoke).

Submits an invocation request to AWS Lambda. Upon receiving the request, Lambda executes the specified function asynchronously. To see the logs generated by the Lambda function execution, see the CloudWatch Logs console.

This operation requires permission for the lambda:InvokeFunction 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 InvokeAsync for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidRequestContentException "InvalidRequestContentException"
The request body could not be parsed as JSON.

* ErrCodeInvalidRuntimeException "InvalidRuntimeException"
The runtime or runtime version specified is not supported.

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

To invoke a Lambda function asynchronously

This operation invokes a Lambda function asynchronously

Code:

svc := lambda.New(session.New())
input := &lambda.InvokeAsyncInput{
    FunctionName: aws.String("myFunction"),
    InvokeArgs:   aws.ReadSeekCloser(strings.NewReader("fileb://file-path/input.json")),
}

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

func (*Lambda) InvokeAsyncRequest Uses

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 successfuly.

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

func (*Lambda) InvokeAsyncWithContext Uses

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.

func (*Lambda) InvokeRequest Uses

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 successfuly.

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 Uses

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 Uses

func (c *Lambda) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error)

ListAliases API operation for AWS Lambda.

Returns list of aliases created for a Lambda function. For each alias, the response includes information such as the alias ARN, description, alias name, and the function version to which it points. For more information, see Introduction to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html).

This requires permission for the lambda:ListAliases 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 ListAliases for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

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

To retrieve a Lambda function aliases

This operation retrieves a Lambda function's aliases

Code:

svc := lambda.New(session.New())
input := &lambda.ListAliasesInput{
    FunctionName:    aws.String("myFunction"),
    FunctionVersion: aws.String("1"),
    Marker:          aws.String(""),
    MaxItems:        aws.Int64(123),
}

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)

func (*Lambda) ListAliasesRequest Uses

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 successfuly.

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 Uses

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) ListEventSourceMappings Uses

func (c *Lambda) ListEventSourceMappings(input *ListEventSourceMappingsInput) (*ListEventSourceMappingsOutput, error)

ListEventSourceMappings API operation for AWS Lambda.

Returns a list of event source mappings you created using the CreateEventSourceMapping (see CreateEventSourceMapping).

For each mapping, the API returns configuration information. You can optionally specify filters to retrieve specific event source mappings.

If you are using the versioning feature, you can get list of event source mappings for a specific Lambda function version or an alias as described in the FunctionName parameter. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).

This operation requires permission for the lambda:ListEventSourceMappings 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 ListEventSourceMappings for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

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

func (*Lambda) ListEventSourceMappingsPages Uses

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 *ListEventSourceMappingsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Lambda) ListEventSourceMappingsPagesWithContext Uses

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 Uses

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 successfuly.

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 Uses

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) ListFunctions Uses

func (c *Lambda) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error)

ListFunctions API operation for AWS Lambda.

Returns a list of your Lambda functions. For each function, the response includes the function configuration information. You must use GetFunction to retrieve the code for your function.

This operation requires permission for the lambda:ListFunctions action.

If you are using the versioning feature, you can list all of your functions or only $LATEST versions. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases (http://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 ListFunctions for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

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

To retrieve a list of Lambda functions

This operation retrieves a Lambda functions

Code:

svc := lambda.New(session.New())
input := &lambda.ListFunctionsInput{
    Marker:   aws.String(""),
    MaxItems: aws.Int64(123),
}

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)

func (*Lambda) ListFunctionsPages Uses

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 *ListFunctionsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Lambda) ListFunctionsPagesWithContext Uses

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 Uses

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 successfuly.

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 Uses

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) ListTags Uses

func (c *Lambda) ListTags(input *ListTagsInput) (*ListTagsOutput, error)

ListTags API operation for AWS Lambda.

Returns a list of tags assigned to a function when supplied the function ARN (Amazon Resource Name). For more information on Tagging, see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) in the AWS Lambda Developer Guide.

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 Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

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

func (*Lambda) ListTagsRequest Uses

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 successfuly.

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 Uses

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 Uses

func (c *Lambda) ListVersionsByFunction(input *ListVersionsByFunctionInput) (*ListVersionsByFunctionOutput, error)

ListVersionsByFunction API operation for AWS Lambda.

List all versions of a function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases (http://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 ListVersionsByFunction for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

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

To retrieve a list of Lambda function versions

This operation retrieves a Lambda function versions

Code:

svc := lambda.New(session.New())
input := &lambda.ListVersionsByFunctionInput{
    FunctionName: aws.String("myFunction"),
    Marker:       aws.String(""),
    MaxItems:     aws.Int64(123),
}

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)

func (*Lambda) ListVersionsByFunctionRequest Uses

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 successfuly.

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 Uses

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) PublishVersion Uses

func (c *Lambda) PublishVersion(input *PublishVersionInput) (*FunctionConfiguration, error)

PublishVersion API operation for AWS Lambda.

Publishes a version of your function from the current snapshot of $LATEST. That is, AWS Lambda takes a snapshot of the function code and configuration information from $LATEST and publishes a new version. The code and configuration cannot be modified after publication. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases (http://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 PublishVersion for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodeCodeStorageExceededException "CodeStorageExceededException"
You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html)

* ErrCodePreconditionFailedException "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/PublishVersion

To publish a version of a Lambda function

This operation publishes a version of a Lambda function

Code:

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

func (*Lambda) PublishVersionRequest Uses

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 successfuly.

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 Uses

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) PutFunctionConcurrency Uses

func (c *Lambda) PutFunctionConcurrency(input *PutFunctionConcurrencyInput) (*PutFunctionConcurrencyOutput, error)

PutFunctionConcurrency API operation for AWS Lambda.

Sets a limit on the number of concurrent executions available to this function. It is a subset of your account's total concurrent execution limit per region. Note that Lambda automatically reserves a buffer of 100 concurrent executions for functions without any reserved concurrency limit. This means if your account limit is 1000, you have a total of 900 available to allocate to individual functions. For more information, see concurrent-executions.

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 Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

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

func (*Lambda) PutFunctionConcurrencyRequest Uses

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 successfuly.

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 Uses

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) RemovePermission Uses

func (c *Lambda) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error)

RemovePermission API operation for AWS Lambda.

You can remove individual permissions from an resource policy associated with a Lambda function by providing a statement ID that you provided when you added the permission.

If you are using versioning, the permissions you remove are specific to the Lambda function version or alias you specify in the AddPermission request via the Qualifier parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).

Note that removal of a permission will cause an active event source to lose permission to the function.

You need permission for the lambda:RemovePermission 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 RemovePermission for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodePreconditionFailedException "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

To remove a Lambda function's permissions

This operation removes a Lambda function's permissions

Code:

svc := lambda.New(session.New())
input := &lambda.RemovePermissionInput{
    FunctionName: aws.String("myFunction"),
    Qualifier:    aws.String("1"),
    StatementId:  aws.String("role-statement-id"),
}

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)

func (*Lambda) RemovePermissionRequest Uses

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 successfuly.

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 Uses

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 Uses

func (c *Lambda) TagResource(input *TagResourceInput) (*TagResourceOutput, error)

TagResource API operation for AWS Lambda.

Creates a list of tags (key-value pairs) on the Lambda function. Requires the Lambda function ARN (Amazon Resource Name). If a key is specified without a value, Lambda creates a tag with the specified key and a value of null. For more information, see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) in the AWS Lambda Developer Guide.

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 Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

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

func (*Lambda) TagResourceRequest Uses

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 successfuly.

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 Uses

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 Uses

func (c *Lambda) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error)

UntagResource API operation for AWS Lambda.

Removes tags from a Lambda function. Requires the function ARN (Amazon Resource Name). For more information, see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) in the AWS Lambda Developer Guide.

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 Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

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

func (*Lambda) UntagResourceRequest Uses

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 successfuly.

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 Uses

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 Uses

func (c *Lambda) UpdateAlias(input *UpdateAliasInput) (*AliasConfiguration, error)

UpdateAlias API operation for AWS Lambda.

Using this API you can update the function version to which the alias points and the alias description. For more information, see Introduction to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html).

This requires permission for the lambda:UpdateAlias 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 UpdateAlias for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodePreconditionFailedException "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/UpdateAlias

To update a Lambda function alias

This operation updates a Lambda function alias

Code:

svc := lambda.New(session.New())
input := &lambda.UpdateAliasInput{
    Description:     aws.String(""),
    FunctionName:    aws.String("myFunction"),
    FunctionVersion: aws.String("1"),
    Name:            aws.String("functionAlias"),
}

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

func (*Lambda) UpdateAliasRequest Uses

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 successfuly.

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 Uses

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) UpdateEventSourceMapping Uses

func (c *Lambda) UpdateEventSourceMapping(input *UpdateEventSourceMappingInput) (*EventSourceMappingConfiguration, error)

UpdateEventSourceMapping API operation for AWS Lambda.

You can update an event source mapping. This is useful if you want to change the parameters of the existing mapping without losing your position in the stream. You can change which function will receive the stream records, but to change the stream itself, you must create a new mapping.

If you are using the versioning feature, you can update the event source mapping to map to a specific Lambda function version or alias as described in the FunctionName parameter. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).

If you disable the event source mapping, AWS Lambda stops polling. If you enable again, it will resume polling from the time it had stopped polling, so you don't lose processing of any records. However, if you delete event source mapping and create it again, it will reset.

This operation requires permission for the lambda:UpdateEventSourceMapping 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 UpdateEventSourceMapping for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodeResourceConflictException "ResourceConflictException"
The resource already exists.

* ErrCodeResourceInUseException "ResourceInUseException"
The operation conflicts with the resource's availability. For example, you
attempted to update an EventSoure Mapping in CREATING, or tried to delete
a EventSoure mapping currently in the UPDATING state.

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

To update a Lambda function event source mapping

This operation updates a Lambda function event source mapping

Code:

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)

func (*Lambda) UpdateEventSourceMappingRequest Uses

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 successfuly.

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 Uses

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 Uses

func (c *Lambda) UpdateFunctionCode(input *UpdateFunctionCodeInput) (*FunctionConfiguration, error)

UpdateFunctionCode API operation for AWS Lambda.

Updates the code for the specified Lambda function. This operation must only be used on an existing Lambda function and cannot be used to update the function configuration.

If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).

This operation requires permission for the lambda:UpdateFunctionCode 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 UpdateFunctionCode for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodeCodeStorageExceededException "CodeStorageExceededException"
You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html)

* ErrCodePreconditionFailedException "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/UpdateFunctionCode

To update a Lambda function's code

This operation updates a Lambda function's code

Code:

svc := lambda.New(session.New())
input := &lambda.UpdateFunctionCodeInput{
    FunctionName:    aws.String("myFunction"),
    Publish:         aws.Bool(true),
    S3Bucket:        aws.String("myBucket"),
    S3Key:           aws.String("myKey"),
    S3ObjectVersion: aws.String("1"),
    ZipFile:         []byte("fileb://file-path/file.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())
        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)

func (*Lambda) UpdateFunctionCodeRequest Uses

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 successfuly.

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 Uses

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 Uses

func (c *Lambda) UpdateFunctionConfiguration(input *UpdateFunctionConfigurationInput) (*FunctionConfiguration, error)

UpdateFunctionConfiguration API operation for AWS Lambda.

Updates the configuration parameters for the specified Lambda function by using the values provided in the request. You provide only the parameters you want to change. This operation must only be used on an existing Lambda function and cannot be used to update the function's code.

If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).

This operation requires permission for the lambda:UpdateFunctionConfiguration 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 UpdateFunctionConfiguration for usage and error information.

Returned Error Codes:

* ErrCodeServiceException "ServiceException"
The AWS Lambda service encountered an internal error.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The resource (for example, a Lambda function or access policy statement)
specified in the request does not exist.

* ErrCodeInvalidParameterValueException "InvalidParameterValueException"
One of the parameters in the request is invalid. For example, if you provided
an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration
API, that AWS Lambda is unable to assume you will get this exception.

* ErrCodeTooManyRequestsException "TooManyRequestsException"

* ErrCodeResourceConflictException "ResourceConflictException"
The resource already exists.

* ErrCodePreconditionFailedException "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/UpdateFunctionConfiguration

To update a Lambda function's configuration

This operation updates a Lambda function's configuration

Code:

svc := lambda.New(session.New())
input := &lambda.UpdateFunctionConfigurationInput{
    Description:  aws.String(""),
    FunctionName: aws.String("myFunction"),
    Handler:      aws.String("index.handler"),
    MemorySize:   aws.Int64(128),
    Role:         aws.String("arn:aws:iam::123456789012:role/lambda_basic_execution"),
    Runtime:      aws.String("python2.7"),
    Timeout:      aws.Int64(123),
    VpcConfig:    &lambda.VpcConfig{},
}

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

func (*Lambda) UpdateFunctionConfigurationRequest Uses

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 successfuly.

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 Uses

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.

type ListAliasesInput Uses

type ListAliasesInput struct {

    // Lambda function name for which the alias is created. Note that the length
    // constraint applies only to the 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"`

    // If you specify this optional parameter, the API returns only the aliases
    // that are pointing to the specific Lambda function version, otherwise the
    // API returns all of the aliases created for the Lambda function.
    FunctionVersion *string `location:"querystring" locationName:"FunctionVersion" min:"1" type:"string"`

    // Optional string. An opaque pagination token returned from a previous ListAliases
    // operation. If present, indicates where to continue the listing.
    Marker *string `location:"querystring" locationName:"Marker" type:"string"`

    // Optional integer. Specifies the maximum number of aliases to return in response.
    // This parameter value must be greater than 0.
    MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"`
    // contains filtered or unexported fields
}

func (ListAliasesInput) GoString Uses

func (s ListAliasesInput) GoString() string

GoString returns the string representation

func (*ListAliasesInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*ListAliasesInput) SetFunctionVersion Uses

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

SetFunctionVersion sets the FunctionVersion field's value.

func (*ListAliasesInput) SetMarker Uses

func (s *ListAliasesInput) SetMarker(v string) *ListAliasesInput

SetMarker sets the Marker field's value.

func (*ListAliasesInput) SetMaxItems Uses

func (s *ListAliasesInput) SetMaxItems(v int64) *ListAliasesInput

SetMaxItems sets the MaxItems field's value.

func (ListAliasesInput) String Uses

func (s ListAliasesInput) String() string

String returns the string representation

func (*ListAliasesInput) Validate Uses

func (s *ListAliasesInput) Validate() error

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

type ListAliasesOutput Uses

type ListAliasesOutput struct {

    // A list of aliases.
    Aliases []*AliasConfiguration `type:"list"`

    // A string, present if there are more aliases.
    NextMarker *string `type:"string"`
    // contains filtered or unexported fields
}

func (ListAliasesOutput) GoString Uses

func (s ListAliasesOutput) GoString() string

GoString returns the string representation

func (*ListAliasesOutput) SetAliases Uses

func (s *ListAliasesOutput) SetAliases(v []*AliasConfiguration) *ListAliasesOutput

SetAliases sets the Aliases field's value.

func (*ListAliasesOutput) SetNextMarker Uses

func (s *ListAliasesOutput) SetNextMarker(v string) *ListAliasesOutput

SetNextMarker sets the NextMarker field's value.

func (ListAliasesOutput) String Uses

func (s ListAliasesOutput) String() string

String returns the string representation

type ListEventSourceMappingsInput Uses

type ListEventSourceMappingsInput struct {

    // The Amazon Resource Name (ARN) of the Amazon Kinesis or DynamoDB stream,
    // or an SQS queue. (This parameter is optional.)
    EventSourceArn *string `location:"querystring" locationName:"EventSourceArn" type:"string"`

    // The name of the Lambda function.
    //
    // You can specify the function name (for example, Thumbnail) or you can specify
    // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail).
    // If you are using versioning, you can also provide a qualified function ARN
    // (ARN that is qualified with function version or alias name as suffix). AWS
    // Lambda also allows you to specify only the function name with the account
    // ID qualifier (for example, account-id:Thumbnail). Note that the length constraint
    // applies only to the ARN. If you specify only the function name, it is limited
    // to 64 characters in length.
    FunctionName *string `location:"querystring" locationName:"FunctionName" min:"1" type:"string"`

    // Optional string. An opaque pagination token returned from a previous ListEventSourceMappings
    // operation. If present, specifies to continue the list from where the returning
    // call left off.
    Marker *string `location:"querystring" locationName:"Marker" type:"string"`

    // Optional integer. Specifies the maximum number of event sources to return
    // in response. This value must be greater than 0.
    MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"`
    // contains filtered or unexported fields
}

func (ListEventSourceMappingsInput) GoString Uses

func (s ListEventSourceMappingsInput) GoString() string

GoString returns the string representation

func (*ListEventSourceMappingsInput) SetEventSourceArn Uses

func (s *ListEventSourceMappingsInput) SetEventSourceArn(v string) *ListEventSourceMappingsInput

SetEventSourceArn sets the EventSourceArn field's value.

func (*ListEventSourceMappingsInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*ListEventSourceMappingsInput) SetMarker Uses

func (s *ListEventSourceMappingsInput) SetMarker(v string) *ListEventSourceMappingsInput

SetMarker sets the Marker field's value.

func (*ListEventSourceMappingsInput) SetMaxItems Uses

func (s *ListEventSourceMappingsInput) SetMaxItems(v int64) *ListEventSourceMappingsInput

SetMaxItems sets the MaxItems field's value.

func (ListEventSourceMappingsInput) String Uses

func (s ListEventSourceMappingsInput) String() string

String returns the string representation

func (*ListEventSourceMappingsInput) Validate Uses

func (s *ListEventSourceMappingsInput) Validate() error

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

type ListEventSourceMappingsOutput Uses

type ListEventSourceMappingsOutput struct {

    // An array of EventSourceMappingConfiguration objects.
    EventSourceMappings []*EventSourceMappingConfiguration `type:"list"`

    // A string, present if there are more event source mappings.
    NextMarker *string `type:"string"`
    // contains filtered or unexported fields
}

Contains a list of event sources (see EventSourceMappingConfiguration)

func (ListEventSourceMappingsOutput) GoString Uses

func (s ListEventSourceMappingsOutput) GoString() string

GoString returns the string representation

func (*ListEventSourceMappingsOutput) SetEventSourceMappings Uses

func (s *ListEventSourceMappingsOutput) SetEventSourceMappings(v []*EventSourceMappingConfiguration) *ListEventSourceMappingsOutput

SetEventSourceMappings sets the EventSourceMappings field's value.

func (*ListEventSourceMappingsOutput) SetNextMarker Uses

func (s *ListEventSourceMappingsOutput) SetNextMarker(v string) *ListEventSourceMappingsOutput

SetNextMarker sets the NextMarker field's value.

func (ListEventSourceMappingsOutput) String Uses

func (s ListEventSourceMappingsOutput) String() string

String returns the string representation

type ListFunctionsInput Uses

type ListFunctionsInput struct {

    // Optional string. If not specified, only the unqualified functions ARNs (Amazon
    // Resource Names) will be returned.
    //
    // Valid value:
    //
    // ALL: Will return all versions, including $LATEST which will have fully qualified
    // ARNs (Amazon Resource Names).
    FunctionVersion *string `location:"querystring" locationName:"FunctionVersion" type:"string" enum:"FunctionVersion"`

    // Optional string. An opaque pagination token returned from a previous ListFunctions
    // operation. If present, indicates where to continue the listing.
    Marker *string `location:"querystring" locationName:"Marker" type:"string"`

    // Optional string. If not specified, will return only regular function versions
    // (i.e., non-replicated versions).
    //
    // Valid values are:
    //
    // The region from which the functions are replicated. For example, if you specify
    // us-east-1, only functions replicated from that region will be returned.
    //
    // ALL: Will return all functions from any region. If specified, you also must
    // specify a valid FunctionVersion parameter.
    MasterRegion *string `location:"querystring" locationName:"MasterRegion" type:"string"`

    // Optional integer. Specifies the maximum number of AWS Lambda functions to
    // return in response. This parameter value must be greater than 0.
    MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"`
    // contains filtered or unexported fields
}

func (ListFunctionsInput) GoString Uses

func (s ListFunctionsInput) GoString() string

GoString returns the string representation

func (*ListFunctionsInput) SetFunctionVersion Uses

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

SetFunctionVersion sets the FunctionVersion field's value.

func (*ListFunctionsInput) SetMarker Uses

func (s *ListFunctionsInput) SetMarker(v string) *ListFunctionsInput

SetMarker sets the Marker field's value.

func (*ListFunctionsInput) SetMasterRegion Uses

func (s *ListFunctionsInput) SetMasterRegion(v string) *ListFunctionsInput

SetMasterRegion sets the MasterRegion field's value.

func (*ListFunctionsInput) SetMaxItems Uses

func (s *ListFunctionsInput) SetMaxItems(v int64) *ListFunctionsInput

SetMaxItems sets the MaxItems field's value.

func (ListFunctionsInput) String Uses

func (s ListFunctionsInput) String() string

String returns the string representation

func (*ListFunctionsInput) Validate Uses

func (s *ListFunctionsInput) Validate() error

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

type ListFunctionsOutput Uses

type ListFunctionsOutput struct {

    // A list of Lambda functions.
    Functions []*FunctionConfiguration `type:"list"`

    // A string, present if there are more functions.
    NextMarker *string `type:"string"`
    // contains filtered or unexported fields
}

Contains a list of AWS Lambda function configurations (see FunctionConfiguration.

func (ListFunctionsOutput) GoString Uses

func (s ListFunctionsOutput) GoString() string

GoString returns the string representation

func (*ListFunctionsOutput) SetFunctions Uses

func (s *ListFunctionsOutput) SetFunctions(v []*FunctionConfiguration) *ListFunctionsOutput

SetFunctions sets the Functions field's value.

func (*ListFunctionsOutput) SetNextMarker Uses

func (s *ListFunctionsOutput) SetNextMarker(v string) *ListFunctionsOutput

SetNextMarker sets the NextMarker field's value.

func (ListFunctionsOutput) String Uses

func (s ListFunctionsOutput) String() string

String returns the string representation

type ListTagsInput Uses

type ListTagsInput struct {

    // The ARN (Amazon Resource Name) of the function. For more information, see
    // Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html)
    // in the AWS Lambda Developer Guide.
    //
    // Resource is a required field
    Resource *string `location:"uri" locationName:"ARN" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (ListTagsInput) GoString Uses

func (s ListTagsInput) GoString() string

GoString returns the string representation

func (*ListTagsInput) SetResource Uses

func (s *ListTagsInput) SetResource(v string) *ListTagsInput

SetResource sets the Resource field's value.

func (ListTagsInput) String Uses

func (s ListTagsInput) String() string

String returns the string representation

func (*ListTagsInput) Validate Uses

func (s *ListTagsInput) Validate() error

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

type ListTagsOutput Uses

type ListTagsOutput struct {

    // The list of tags assigned to the function. For more information, see Tagging
    // Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html)
    // in the AWS Lambda Developer Guide.
    Tags map[string]*string `type:"map"`
    // contains filtered or unexported fields
}

func (ListTagsOutput) GoString Uses

func (s ListTagsOutput) GoString() string

GoString returns the string representation

func (*ListTagsOutput) SetTags Uses

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

SetTags sets the Tags field's value.

func (ListTagsOutput) String Uses

func (s ListTagsOutput) String() string

String returns the string representation

type ListVersionsByFunctionInput Uses

type ListVersionsByFunctionInput struct {

    // Function name whose versions to list. You can specify a function name (for
    // example, Thumbnail) or you can specify Amazon Resource Name (ARN) of the
    // function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail).
    // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail).
    // Note that the length constraint applies only to the 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"`

    // Optional string. An opaque pagination token returned from a previous ListVersionsByFunction
    // operation. If present, indicates where to continue the listing.
    Marker *string `location:"querystring" locationName:"Marker" type:"string"`

    // Optional integer. Specifies the maximum number of AWS Lambda function versions
    // to return in response. This parameter value must be greater than 0.
    MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"`
    // contains filtered or unexported fields
}

func (ListVersionsByFunctionInput) GoString Uses

func (s ListVersionsByFunctionInput) GoString() string

GoString returns the string representation

func (*ListVersionsByFunctionInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*ListVersionsByFunctionInput) SetMarker Uses

func (s *ListVersionsByFunctionInput) SetMarker(v string) *ListVersionsByFunctionInput

SetMarker sets the Marker field's value.

func (*ListVersionsByFunctionInput) SetMaxItems Uses

func (s *ListVersionsByFunctionInput) SetMaxItems(v int64) *ListVersionsByFunctionInput

SetMaxItems sets the MaxItems field's value.

func (ListVersionsByFunctionInput) String Uses

func (s ListVersionsByFunctionInput) String() string

String returns the string representation

func (*ListVersionsByFunctionInput) Validate Uses

func (s *ListVersionsByFunctionInput) Validate() error

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

type ListVersionsByFunctionOutput Uses

type ListVersionsByFunctionOutput struct {

    // A string, present if there are more function versions.
    NextMarker *string `type:"string"`

    // A list of Lambda function versions.
    Versions []*FunctionConfiguration `type:"list"`
    // contains filtered or unexported fields
}

func (ListVersionsByFunctionOutput) GoString Uses

func (s ListVersionsByFunctionOutput) GoString() string

GoString returns the string representation

func (*ListVersionsByFunctionOutput) SetNextMarker Uses

func (s *ListVersionsByFunctionOutput) SetNextMarker(v string) *ListVersionsByFunctionOutput

SetNextMarker sets the NextMarker field's value.

func (*ListVersionsByFunctionOutput) SetVersions Uses

func (s *ListVersionsByFunctionOutput) SetVersions(v []*FunctionConfiguration) *ListVersionsByFunctionOutput

SetVersions sets the Versions field's value.

func (ListVersionsByFunctionOutput) String Uses

func (s ListVersionsByFunctionOutput) String() string

String returns the string representation

type PublishVersionInput Uses

type PublishVersionInput struct {

    // The SHA256 hash of the deployment package you want to publish. This provides
    // validation on the code you are publishing. If you provide this parameter,
    // the value must match the SHA256 of the $LATEST version for the publication
    // to succeed. You can use the DryRun parameter of UpdateFunctionCode to verify
    // the hash value that will be returned before publishing your new version.
    CodeSha256 *string `type:"string"`

    // The description for the version you are publishing. If not provided, AWS
    // Lambda copies the description from the $LATEST version.
    Description *string `type:"string"`

    // The Lambda function name. You can specify a function name (for example, Thumbnail)
    // or you can specify Amazon Resource Name (ARN) of the function (for example,
    // arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also
    // allows you to specify a partial ARN (for example, account-id:Thumbnail).
    // Note that the length constraint applies only to the 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"`

    // An optional value you can use to ensure you are updating the latest update
    // of the function version or alias. If the RevisionID you pass doesn't match
    // the latest RevisionId of the function or alias, it will fail with an error
    // message, advising you to retrieve the latest function version or alias RevisionID
    // using either or .
    RevisionId *string `type:"string"`
    // contains filtered or unexported fields
}

func (PublishVersionInput) GoString Uses

func (s PublishVersionInput) GoString() string

GoString returns the string representation

func (*PublishVersionInput) SetCodeSha256 Uses

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

SetCodeSha256 sets the CodeSha256 field's value.

func (*PublishVersionInput) SetDescription Uses

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

SetDescription sets the Description field's value.

func (*PublishVersionInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*PublishVersionInput) SetRevisionId Uses

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

SetRevisionId sets the RevisionId field's value.

func (PublishVersionInput) String Uses

func (s PublishVersionInput) String() string

String returns the string representation

func (*PublishVersionInput) Validate Uses

func (s *PublishVersionInput) Validate() error

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

type PutFunctionConcurrencyInput Uses

type PutFunctionConcurrencyInput struct {

    // The name of the function you are setting concurrent execution limits on.
    // For more information, see concurrent-executions.
    //
    // FunctionName is a required field
    FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"`

    // The concurrent execution limit reserved for this function. For more information,
    // see concurrent-executions.
    //
    // ReservedConcurrentExecutions is a required field
    ReservedConcurrentExecutions *int64 `type:"integer" required:"true"`
    // contains filtered or unexported fields
}

func (PutFunctionConcurrencyInput) GoString Uses

func (s PutFunctionConcurrencyInput) GoString() string

GoString returns the string representation

func (*PutFunctionConcurrencyInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*PutFunctionConcurrencyInput) SetReservedConcurrentExecutions Uses

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

SetReservedConcurrentExecutions sets the ReservedConcurrentExecutions field's value.

func (PutFunctionConcurrencyInput) String Uses

func (s PutFunctionConcurrencyInput) String() string

String returns the string representation

func (*PutFunctionConcurrencyInput) Validate Uses

func (s *PutFunctionConcurrencyInput) Validate() error

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

type PutFunctionConcurrencyOutput Uses

type PutFunctionConcurrencyOutput struct {

    // The number of concurrent executions reserved for this function. For more
    // information, see concurrent-executions.
    ReservedConcurrentExecutions *int64 `type:"integer"`
    // contains filtered or unexported fields
}

func (PutFunctionConcurrencyOutput) GoString Uses

func (s PutFunctionConcurrencyOutput) GoString() string

GoString returns the string representation

func (*PutFunctionConcurrencyOutput) SetReservedConcurrentExecutions Uses

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

SetReservedConcurrentExecutions sets the ReservedConcurrentExecutions field's value.

func (PutFunctionConcurrencyOutput) String Uses

func (s PutFunctionConcurrencyOutput) String() string

String returns the string representation

type RemovePermissionInput Uses

type RemovePermissionInput struct {

    // Lambda function whose resource policy you want to remove a permission from.
    //
    // You can specify a function name (for example, Thumbnail) or you can specify
    // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail).
    // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail).
    // Note that the length constraint applies only to the 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"`

    // You can specify this optional parameter to remove permission associated with
    // a specific function version or function alias. If you don't specify this
    // parameter, the API removes permission associated with the unqualified function
    // ARN.
    Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"`

    // An optional value you can use to ensure you are updating the latest update
    // of the function version or alias. If the RevisionID you pass doesn't match
    // the latest RevisionId of the function or alias, it will fail with an error
    // message, advising you to retrieve the latest function version or alias RevisionID
    // using either or .
    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 Uses

func (s RemovePermissionInput) GoString() string

GoString returns the string representation

func (*RemovePermissionInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*RemovePermissionInput) SetQualifier Uses

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

SetQualifier sets the Qualifier field's value.

func (*RemovePermissionInput) SetRevisionId Uses

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

SetRevisionId sets the RevisionId field's value.

func (*RemovePermissionInput) SetStatementId Uses

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

SetStatementId sets the StatementId field's value.

func (RemovePermissionInput) String Uses

func (s RemovePermissionInput) String() string

String returns the string representation

func (*RemovePermissionInput) Validate Uses

func (s *RemovePermissionInput) Validate() error

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

type RemovePermissionOutput Uses

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

func (RemovePermissionOutput) GoString Uses

func (s RemovePermissionOutput) GoString() string

GoString returns the string representation

func (RemovePermissionOutput) String Uses

func (s RemovePermissionOutput) String() string

String returns the string representation

type TagResourceInput Uses

type TagResourceInput struct {

    // The ARN (Amazon Resource Name) of the Lambda function. For more information,
    // see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html)
    // in the AWS Lambda Developer Guide.
    //
    // Resource is a required field
    Resource *string `location:"uri" locationName:"ARN" type:"string" required:"true"`

    // The list of tags (key-value pairs) you are assigning to the Lambda function.
    // For more information, see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html)
    // in the AWS Lambda Developer Guide.
    //
    // Tags is a required field
    Tags map[string]*string `type:"map" required:"true"`
    // contains filtered or unexported fields
}

func (TagResourceInput) GoString Uses

func (s TagResourceInput) GoString() string

GoString returns the string representation

func (*TagResourceInput) SetResource Uses

func (s *TagResourceInput) SetResource(v string) *TagResourceInput

SetResource sets the Resource field's value.

func (*TagResourceInput) SetTags Uses

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

SetTags sets the Tags field's value.

func (TagResourceInput) String Uses

func (s TagResourceInput) String() string

String returns the string representation

func (*TagResourceInput) Validate Uses

func (s *TagResourceInput) Validate() error

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

type TagResourceOutput Uses

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

func (TagResourceOutput) GoString Uses

func (s TagResourceOutput) GoString() string

GoString returns the string representation

func (TagResourceOutput) String Uses

func (s TagResourceOutput) String() string

String returns the string representation

type TracingConfig Uses

type TracingConfig struct {

    // Can be either PassThrough or Active. If PassThrough, Lambda will only trace
    // the request from an upstream service if it contains a tracing header with
    // "sampled=1". If Active, Lambda will respect any tracing header it receives
    // from an upstream service. If no tracing header is received, Lambda will call
    // X-Ray for a tracing decision.
    Mode *string `type:"string" enum:"TracingMode"`
    // contains filtered or unexported fields
}

The parent object that contains your function's tracing settings.

func (TracingConfig) GoString Uses

func (s TracingConfig) GoString() string

GoString returns the string representation

func (*TracingConfig) SetMode Uses

func (s *TracingConfig) SetMode(v string) *TracingConfig

SetMode sets the Mode field's value.

func (TracingConfig) String Uses

func (s TracingConfig) String() string

String returns the string representation

type TracingConfigResponse Uses

type TracingConfigResponse struct {

    // The tracing mode associated with your Lambda function.
    Mode *string `type:"string" enum:"TracingMode"`
    // contains filtered or unexported fields
}

Parent object of the tracing information associated with your Lambda function.

func (TracingConfigResponse) GoString Uses

func (s TracingConfigResponse) GoString() string

GoString returns the string representation

func (*TracingConfigResponse) SetMode Uses

func (s *TracingConfigResponse) SetMode(v string) *TracingConfigResponse

SetMode sets the Mode field's value.

func (TracingConfigResponse) String Uses

func (s TracingConfigResponse) String() string

String returns the string representation

type UntagResourceInput Uses

type UntagResourceInput struct {

    // The ARN (Amazon Resource Name) of the function. For more information, see
    // Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html)
    // in the AWS Lambda Developer Guide.
    //
    // Resource is a required field
    Resource *string `location:"uri" locationName:"ARN" type:"string" required:"true"`

    // The list of tag keys to be deleted from the function. For more information,
    // see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html)
    // in the AWS Lambda Developer Guide.
    //
    // TagKeys is a required field
    TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"`
    // contains filtered or unexported fields
}

func (UntagResourceInput) GoString Uses

func (s UntagResourceInput) GoString() string

GoString returns the string representation

func (*UntagResourceInput) SetResource Uses

func (s *UntagResourceInput) SetResource(v string) *UntagResourceInput

SetResource sets the Resource field's value.

func (*UntagResourceInput) SetTagKeys Uses

func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput

SetTagKeys sets the TagKeys field's value.

func (UntagResourceInput) String Uses

func (s UntagResourceInput) String() string

String returns the string representation

func (*UntagResourceInput) Validate Uses

func (s *UntagResourceInput) Validate() error

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

type UntagResourceOutput Uses

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

func (UntagResourceOutput) GoString Uses

func (s UntagResourceOutput) GoString() string

GoString returns the string representation

func (UntagResourceOutput) String Uses

func (s UntagResourceOutput) String() string

String returns the string representation

type UpdateAliasInput Uses

type UpdateAliasInput struct {

    // You can change the description of the alias using this parameter.
    Description *string `type:"string"`

    // The function name for which the alias is created. Note that the length constraint
    // applies only to the 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"`

    // Using this parameter you can change the Lambda function version to which
    // the alias points.
    FunctionVersion *string `min:"1" type:"string"`

    // The alias name.
    //
    // Name is a required field
    Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"`

    // An optional value you can use to ensure you are updating the latest update
    // of the function version or alias. If the RevisionID you pass doesn't match
    // the latest RevisionId of the function or alias, it will fail with an error
    // message, advising you to retrieve the latest function version or alias RevisionID
    // using either or .
    RevisionId *string `type:"string"`

    // Specifies an additional version your alias can point to, allowing you to
    // dictate what percentage of traffic will invoke each version. For more information,
    // see lambda-traffic-shifting-using-aliases.
    RoutingConfig *AliasRoutingConfiguration `type:"structure"`
    // contains filtered or unexported fields
}

func (UpdateAliasInput) GoString Uses

func (s UpdateAliasInput) GoString() string

GoString returns the string representation

func (*UpdateAliasInput) SetDescription Uses

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

SetDescription sets the Description field's value.

func (*UpdateAliasInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*UpdateAliasInput) SetFunctionVersion Uses

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

SetFunctionVersion sets the FunctionVersion field's value.

func (*UpdateAliasInput) SetName Uses

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

SetName sets the Name field's value.

func (*UpdateAliasInput) SetRevisionId Uses

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

SetRevisionId sets the RevisionId field's value.

func (*UpdateAliasInput) SetRoutingConfig Uses

func (s *UpdateAliasInput) SetRoutingConfig(v *AliasRoutingConfiguration) *UpdateAliasInput

SetRoutingConfig sets the RoutingConfig field's value.

func (UpdateAliasInput) String Uses

func (s UpdateAliasInput) String() string

String returns the string representation

func (*UpdateAliasInput) Validate Uses

func (s *UpdateAliasInput) Validate() error

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

type UpdateEventSourceMappingInput Uses

type UpdateEventSourceMappingInput struct {

    // The maximum number of stream records that can be sent to your Lambda function
    // for a single invocation.
    BatchSize *int64 `min:"1" type:"integer"`

    // Specifies whether AWS Lambda should actively poll the stream or not. If disabled,
    // AWS Lambda will not poll the stream.
    Enabled *bool `type:"boolean"`

    // The Lambda function to which you want the stream records sent.
    //
    // You can specify a function name (for example, Thumbnail) or you can specify
    // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail).
    // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail).
    // Note that the length constraint applies only to the ARN. If you specify only
    // the function name, it is limited to 64 characters in length.
    //
    // If you are using versioning, you can also provide a qualified function ARN
    // (ARN that is qualified with function version or alias name as suffix). For
    // more information about versioning, see AWS Lambda Function Versioning and
    // Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html)
    //
    // Note that the length constraint applies only to the ARN. If you specify only
    // the function name, it is limited to 64 character in length.
    FunctionName *string `min:"1" type:"string"`

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

func (UpdateEventSourceMappingInput) GoString Uses

func (s UpdateEventSourceMappingInput) GoString() string

GoString returns the string representation

func (*UpdateEventSourceMappingInput) SetBatchSize Uses

func (s *UpdateEventSourceMappingInput) SetBatchSize(v int64) *UpdateEventSourceMappingInput

SetBatchSize sets the BatchSize field's value.

func (*UpdateEventSourceMappingInput) SetEnabled Uses

func (s *UpdateEventSourceMappingInput) SetEnabled(v bool) *UpdateEventSourceMappingInput

SetEnabled sets the Enabled field's value.

func (*UpdateEventSourceMappingInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*UpdateEventSourceMappingInput) SetUUID Uses

func (s *UpdateEventSourceMappingInput) SetUUID(v string) *UpdateEventSourceMappingInput

SetUUID sets the UUID field's value.

func (UpdateEventSourceMappingInput) String Uses

func (s UpdateEventSourceMappingInput) String() string

String returns the string representation

func (*UpdateEventSourceMappingInput) Validate Uses

func (s *UpdateEventSourceMappingInput) Validate() error

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

type UpdateFunctionCodeInput Uses

type UpdateFunctionCodeInput struct {

    // This boolean parameter can be used to test your request to AWS Lambda to
    // update the Lambda function and publish a version as an atomic operation.
    // It will do all necessary computation and validation of your code but will
    // not upload it or a publish a version. Each time this operation is invoked,
    // the CodeSha256 hash value of the provided code will also be computed and
    // returned in the response.
    DryRun *bool `type:"boolean"`

    // The existing Lambda function name whose code you want to replace.
    //
    // You can specify a function name (for example, Thumbnail) or you can specify
    // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail).
    // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail).
    // Note that the length constraint applies only to the 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"`

    // This boolean parameter can be used to request AWS Lambda to update the Lambda
    // function and publish a version as an atomic operation.
    Publish *bool `type:"boolean"`

    // An optional value you can use to ensure you are updating the latest update
    // of the function version or alias. If the RevisionID you pass doesn't match
    // the latest RevisionId of the function or alias, it will fail with an error
    // message, advising you to retrieve the latest function version or alias RevisionID
    // using either or .
    RevisionId *string `type:"string"`

    // Amazon S3 bucket name where the .zip file containing your deployment package
    // is stored. This bucket must reside in the same AWS Region where you are creating
    // the Lambda function.
    S3Bucket *string `min:"3" type:"string"`

    // The Amazon S3 object (the deployment package) key name you want to upload.
    S3Key *string `min:"1" type:"string"`

    // The Amazon S3 object (the deployment package) version you want to upload.
    S3ObjectVersion *string `min:"1" type:"string"`

    // The contents of your zip file containing your deployment package. If you
    // are using the web API directly, the contents of the zip file must be base64-encoded.
    // If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the
    // encoding for you. For more information about creating a .zip file, see Execution
    // Permissions (http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html).
    //
    // ZipFile is automatically base64 encoded/decoded by the SDK.
    ZipFile []byte `type:"blob"`
    // contains filtered or unexported fields
}

func (UpdateFunctionCodeInput) GoString Uses

func (s UpdateFunctionCodeInput) GoString() string

GoString returns the string representation

func (*UpdateFunctionCodeInput) SetDryRun Uses

func (s *UpdateFunctionCodeInput) SetDryRun(v bool) *UpdateFunctionCodeInput

SetDryRun sets the DryRun field's value.

func (*UpdateFunctionCodeInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*UpdateFunctionCodeInput) SetPublish Uses

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

SetPublish sets the Publish field's value.

func (*UpdateFunctionCodeInput) SetRevisionId Uses

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

SetRevisionId sets the RevisionId field's value.

func (*UpdateFunctionCodeInput) SetS3Bucket Uses

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

SetS3Bucket sets the S3Bucket field's value.

func (*UpdateFunctionCodeInput) SetS3Key Uses

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

SetS3Key sets the S3Key field's value.

func (*UpdateFunctionCodeInput) SetS3ObjectVersion Uses

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

SetS3ObjectVersion sets the S3ObjectVersion field's value.

func (*UpdateFunctionCodeInput) SetZipFile Uses

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

SetZipFile sets the ZipFile field's value.

func (UpdateFunctionCodeInput) String Uses

func (s UpdateFunctionCodeInput) String() string

String returns the string representation

func (*UpdateFunctionCodeInput) Validate Uses

func (s *UpdateFunctionCodeInput) Validate() error

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

type UpdateFunctionConfigurationInput Uses

type UpdateFunctionConfigurationInput struct {

    // The parent object that contains the target ARN (Amazon Resource Name) of
    // an Amazon SQS queue or Amazon SNS topic. For more information, see dlq.
    DeadLetterConfig *DeadLetterConfig `type:"structure"`

    // A short user-defined function description. AWS Lambda does not use this value.
    // Assign a meaningful description as you see fit.
    Description *string `type:"string"`

    // The parent object that contains your environment's configuration settings.
    Environment *Environment `type:"structure"`

    // The name of the Lambda function.
    //
    // You can specify a function name (for example, Thumbnail) or you can specify
    // Amazon Resource Name (ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail).
    // AWS Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail).
    // Note that the length constraint applies only to the ARN. If you specify only
    // the function name, it is limited to 64 character in length.
    //
    // FunctionName is a required field
    FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"`

    // The function that Lambda calls to begin executing your function. For Node.js,
    // it is the module-name.export value in your function.
    Handler *string `type:"string"`

    // The Amazon Resource Name (ARN) of the KMS key used to encrypt your function's
    // environment variables. If you elect to use the AWS Lambda default service
    // key, pass in an empty string ("") for this parameter.
    KMSKeyArn *string `type:"string"`

    // The amount of memory, in MB, your Lambda function is given. AWS Lambda uses
    // this memory size to infer the amount of CPU allocated to your function. Your
    // function use-case determines your CPU and memory requirements. For example,
    // a database operation might need less memory compared to an image processing
    // function. The default value is 128 MB. The value must be a multiple of 64
    // MB.
    MemorySize *int64 `min:"128" type:"integer"`

    // An optional value you can use to ensure you are updating the latest update
    // of the function version or alias. If the RevisionID you pass doesn't match
    // the latest RevisionId of the function or alias, it will fail with an error
    // message, advising you to retrieve the latest function version or alias RevisionID
    // using either or .
    RevisionId *string `type:"string"`

    // The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when
    // it executes your function.
    Role *string `type:"string"`

    // The runtime environment for the Lambda function.
    //
    // To use the Python runtime v3.6, set the value to "python3.6". To use the
    // Python runtime v2.7, set the value to "python2.7". To use the Node.js runtime
    // v6.10, set the value to "nodejs6.10". To use the Node.js runtime v4.3, set
    // the value to "nodejs4.3". To use the .NET Core runtime v1.0, set the value
    // to "dotnetcore1.0". To use the .NET Core runtime v2.0, set the value to "dotnetcore2.0".
    //
    // Node v0.10.42 is currently marked as deprecated. You must migrate existing
    // functions to the newer Node.js runtime versions available on AWS Lambda (nodejs4.3
    // or nodejs6.10) as soon as possible. Failure to do so will result in an invalid
    // parameter error being returned. Note that you will have to follow this procedure
    // for each region that contains functions written in the Node v0.10.42 runtime.
    Runtime *string `type:"string" enum:"Runtime"`

    // The function execution time at which AWS Lambda should terminate the function.
    // Because the execution time has cost implications, we recommend you set this
    // value based on your expected execution time. The default is 3 seconds.
    Timeout *int64 `min:"1" type:"integer"`

    // The parent object that contains your function's tracing settings.
    TracingConfig *TracingConfig `type:"structure"`

    // If your Lambda function accesses resources in a VPC, you provide this parameter
    // identifying the list of security group IDs and subnet IDs. These must belong
    // to the same VPC. You must provide at least one security group and one subnet
    // ID.
    VpcConfig *VpcConfig `type:"structure"`
    // contains filtered or unexported fields
}

func (UpdateFunctionConfigurationInput) GoString Uses

func (s UpdateFunctionConfigurationInput) GoString() string

GoString returns the string representation

func (*UpdateFunctionConfigurationInput) SetDeadLetterConfig Uses

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

SetDeadLetterConfig sets the DeadLetterConfig field's value.

func (*UpdateFunctionConfigurationInput) SetDescription Uses

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

SetDescription sets the Description field's value.

func (*UpdateFunctionConfigurationInput) SetEnvironment Uses

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

SetEnvironment sets the Environment field's value.

func (*UpdateFunctionConfigurationInput) SetFunctionName Uses

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

SetFunctionName sets the FunctionName field's value.

func (*UpdateFunctionConfigurationInput) SetHandler Uses

func (s *UpdateFunctionConfigurationInput) SetHandler(v string) *UpdateFunctionConfigurationInput

SetHandler sets the Handler field's value.

func (*UpdateFunctionConfigurationInput) SetKMSKeyArn Uses

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

SetKMSKeyArn sets the KMSKeyArn field's value.

func (*UpdateFunctionConfigurationInput) SetMemorySize Uses

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

SetMemorySize sets the MemorySize field's value.

func (*UpdateFunctionConfigurationInput) SetRevisionId Uses

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

SetRevisionId sets the RevisionId field's value.

func (*UpdateFunctionConfigurationInput) SetRole Uses

func (s *UpdateFunctionConfigurationInput) SetRole(v string) *UpdateFunctionConfigurationInput

SetRole sets the Role field's value.

func (*UpdateFunctionConfigurationInput) SetRuntime Uses

func (s *UpdateFunctionConfigurationInput) SetRuntime(v string) *UpdateFunctionConfigurationInput

SetRuntime sets the Runtime field's value.

func (*UpdateFunctionConfigurationInput) SetTimeout Uses

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

SetTimeout sets the Timeout field's value.

func (*UpdateFunctionConfigurationInput) SetTracingConfig Uses

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

SetTracingConfig sets the TracingConfig field's value.

func (*UpdateFunctionConfigurationInput) SetVpcConfig Uses

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

SetVpcConfig sets the VpcConfig field's value.

func (UpdateFunctionConfigurationInput) String Uses

func (s UpdateFunctionConfigurationInput) String() string

String returns the string representation

func (*UpdateFunctionConfigurationInput) Validate Uses

func (s *UpdateFunctionConfigurationInput) Validate() error

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

type VpcConfig Uses

type VpcConfig struct {

    // A list of one or more security groups IDs in your VPC.
    SecurityGroupIds []*string `type:"list"`

    // A list of one or more subnet IDs in your VPC.
    SubnetIds []*string `type:"list"`
    // contains filtered or unexported fields
}

If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID.

func (VpcConfig) GoString Uses

func (s VpcConfig) GoString() string

GoString returns the string representation

func (*VpcConfig) SetSecurityGroupIds Uses

func (s *VpcConfig) SetSecurityGroupIds(v []*string) *VpcConfig

SetSecurityGroupIds sets the SecurityGroupIds field's value.

func (*VpcConfig) SetSubnetIds Uses

func (s *VpcConfig) SetSubnetIds(v []*string) *VpcConfig

SetSubnetIds sets the SubnetIds field's value.

func (VpcConfig) String Uses

func (s VpcConfig) String() string

String returns the string representation

type VpcConfigResponse Uses

type VpcConfigResponse struct {

    // A list of security group IDs associated with the Lambda function.
    SecurityGroupIds []*string `type:"list"`

    // A list of subnet IDs associated with the Lambda function.
    SubnetIds []*string `type:"list"`

    // The VPC ID associated with you Lambda function.
    VpcId *string `type:"string"`
    // contains filtered or unexported fields
}

VPC configuration associated with your Lambda function.

func (VpcConfigResponse) GoString Uses

func (s VpcConfigResponse) GoString() string

GoString returns the string representation

func (*VpcConfigResponse) SetSecurityGroupIds Uses

func (s *VpcConfigResponse) SetSecurityGroupIds(v []*string) *VpcConfigResponse

SetSecurityGroupIds sets the SecurityGroupIds field's value.

func (*VpcConfigResponse) SetSubnetIds Uses

func (s *VpcConfigResponse) SetSubnetIds(v []*string) *VpcConfigResponse

SetSubnetIds sets the SubnetIds field's value.

func (*VpcConfigResponse) SetVpcId Uses

func (s *VpcConfigResponse) SetVpcId(v string) *VpcConfigResponse

SetVpcId sets the VpcId field's value.

func (VpcConfigResponse) String Uses

func (s VpcConfigResponse) String() string

String returns the string representation

Directories

PathSynopsis
lambdaifacePackage lambdaiface provides an interface to enable mocking the AWS Lambda service client for testing your code.

Package lambda imports 10 packages (graph) and is imported by 389 packages. Updated 2018-07-20. Refresh now. Tools for package owners.