Documentation ¶
Overview ¶
Package lambda provides a client for AWS Lambda.
Index ¶
- Constants
- type AccountLimit
- func (s AccountLimit) GoString() string
- func (s *AccountLimit) SetCodeSizeUnzipped(v int64) *AccountLimit
- func (s *AccountLimit) SetCodeSizeZipped(v int64) *AccountLimit
- func (s *AccountLimit) SetConcurrentExecutions(v int64) *AccountLimit
- func (s *AccountLimit) SetTotalCodeSize(v int64) *AccountLimit
- func (s AccountLimit) String() string
- type AccountUsage
- type AddPermissionInput
- func (s AddPermissionInput) GoString() string
- func (s *AddPermissionInput) SetAction(v string) *AddPermissionInput
- func (s *AddPermissionInput) SetEventSourceToken(v string) *AddPermissionInput
- func (s *AddPermissionInput) SetFunctionName(v string) *AddPermissionInput
- func (s *AddPermissionInput) SetPrincipal(v string) *AddPermissionInput
- func (s *AddPermissionInput) SetQualifier(v string) *AddPermissionInput
- func (s *AddPermissionInput) SetSourceAccount(v string) *AddPermissionInput
- func (s *AddPermissionInput) SetSourceArn(v string) *AddPermissionInput
- func (s *AddPermissionInput) SetStatementId(v string) *AddPermissionInput
- func (s AddPermissionInput) String() string
- func (s *AddPermissionInput) Validate() error
- type AddPermissionOutput
- type AliasConfiguration
- func (s AliasConfiguration) GoString() string
- func (s *AliasConfiguration) SetAliasArn(v string) *AliasConfiguration
- func (s *AliasConfiguration) SetDescription(v string) *AliasConfiguration
- func (s *AliasConfiguration) SetFunctionVersion(v string) *AliasConfiguration
- func (s *AliasConfiguration) SetName(v string) *AliasConfiguration
- func (s AliasConfiguration) String() string
- type CreateAliasInput
- func (s CreateAliasInput) GoString() string
- func (s *CreateAliasInput) SetDescription(v string) *CreateAliasInput
- func (s *CreateAliasInput) SetFunctionName(v string) *CreateAliasInput
- func (s *CreateAliasInput) SetFunctionVersion(v string) *CreateAliasInput
- func (s *CreateAliasInput) SetName(v string) *CreateAliasInput
- func (s CreateAliasInput) String() string
- func (s *CreateAliasInput) Validate() error
- type CreateEventSourceMappingInput
- func (s CreateEventSourceMappingInput) GoString() string
- func (s *CreateEventSourceMappingInput) SetBatchSize(v int64) *CreateEventSourceMappingInput
- func (s *CreateEventSourceMappingInput) SetEnabled(v bool) *CreateEventSourceMappingInput
- func (s *CreateEventSourceMappingInput) SetEventSourceArn(v string) *CreateEventSourceMappingInput
- func (s *CreateEventSourceMappingInput) SetFunctionName(v string) *CreateEventSourceMappingInput
- func (s *CreateEventSourceMappingInput) SetStartingPosition(v string) *CreateEventSourceMappingInput
- func (s *CreateEventSourceMappingInput) SetStartingPositionTimestamp(v time.Time) *CreateEventSourceMappingInput
- func (s CreateEventSourceMappingInput) String() string
- func (s *CreateEventSourceMappingInput) Validate() error
- type CreateFunctionInput
- func (s CreateFunctionInput) GoString() string
- func (s *CreateFunctionInput) SetCode(v *FunctionCode) *CreateFunctionInput
- func (s *CreateFunctionInput) SetDeadLetterConfig(v *DeadLetterConfig) *CreateFunctionInput
- func (s *CreateFunctionInput) SetDescription(v string) *CreateFunctionInput
- func (s *CreateFunctionInput) SetEnvironment(v *Environment) *CreateFunctionInput
- func (s *CreateFunctionInput) SetFunctionName(v string) *CreateFunctionInput
- func (s *CreateFunctionInput) SetHandler(v string) *CreateFunctionInput
- func (s *CreateFunctionInput) SetKMSKeyArn(v string) *CreateFunctionInput
- func (s *CreateFunctionInput) SetMemorySize(v int64) *CreateFunctionInput
- func (s *CreateFunctionInput) SetPublish(v bool) *CreateFunctionInput
- func (s *CreateFunctionInput) SetRole(v string) *CreateFunctionInput
- func (s *CreateFunctionInput) SetRuntime(v string) *CreateFunctionInput
- func (s *CreateFunctionInput) SetTimeout(v int64) *CreateFunctionInput
- func (s *CreateFunctionInput) SetVpcConfig(v *VpcConfig) *CreateFunctionInput
- func (s CreateFunctionInput) String() string
- func (s *CreateFunctionInput) Validate() error
- type DeadLetterConfig
- type DeleteAliasInput
- type DeleteAliasOutput
- type DeleteEventSourceMappingInput
- type DeleteFunctionInput
- type DeleteFunctionOutput
- type Environment
- type EnvironmentError
- type EnvironmentResponse
- type EventSourceMappingConfiguration
- func (s EventSourceMappingConfiguration) GoString() string
- func (s *EventSourceMappingConfiguration) SetBatchSize(v int64) *EventSourceMappingConfiguration
- func (s *EventSourceMappingConfiguration) SetEventSourceArn(v string) *EventSourceMappingConfiguration
- func (s *EventSourceMappingConfiguration) SetFunctionArn(v string) *EventSourceMappingConfiguration
- func (s *EventSourceMappingConfiguration) SetLastModified(v time.Time) *EventSourceMappingConfiguration
- func (s *EventSourceMappingConfiguration) SetLastProcessingResult(v string) *EventSourceMappingConfiguration
- func (s *EventSourceMappingConfiguration) SetState(v string) *EventSourceMappingConfiguration
- func (s *EventSourceMappingConfiguration) SetStateTransitionReason(v string) *EventSourceMappingConfiguration
- func (s *EventSourceMappingConfiguration) SetUUID(v string) *EventSourceMappingConfiguration
- func (s EventSourceMappingConfiguration) String() string
- type FunctionCode
- func (s FunctionCode) GoString() string
- func (s *FunctionCode) SetS3Bucket(v string) *FunctionCode
- func (s *FunctionCode) SetS3Key(v string) *FunctionCode
- func (s *FunctionCode) SetS3ObjectVersion(v string) *FunctionCode
- func (s *FunctionCode) SetZipFile(v []byte) *FunctionCode
- func (s FunctionCode) String() string
- func (s *FunctionCode) Validate() error
- type FunctionCodeLocation
- type FunctionConfiguration
- func (s FunctionConfiguration) GoString() string
- func (s *FunctionConfiguration) SetCodeSha256(v string) *FunctionConfiguration
- func (s *FunctionConfiguration) SetCodeSize(v int64) *FunctionConfiguration
- func (s *FunctionConfiguration) SetDeadLetterConfig(v *DeadLetterConfig) *FunctionConfiguration
- func (s *FunctionConfiguration) SetDescription(v string) *FunctionConfiguration
- func (s *FunctionConfiguration) SetEnvironment(v *EnvironmentResponse) *FunctionConfiguration
- func (s *FunctionConfiguration) SetFunctionArn(v string) *FunctionConfiguration
- func (s *FunctionConfiguration) SetFunctionName(v string) *FunctionConfiguration
- func (s *FunctionConfiguration) SetHandler(v string) *FunctionConfiguration
- func (s *FunctionConfiguration) SetKMSKeyArn(v string) *FunctionConfiguration
- func (s *FunctionConfiguration) SetLastModified(v string) *FunctionConfiguration
- func (s *FunctionConfiguration) SetMemorySize(v int64) *FunctionConfiguration
- func (s *FunctionConfiguration) SetRole(v string) *FunctionConfiguration
- func (s *FunctionConfiguration) SetRuntime(v string) *FunctionConfiguration
- func (s *FunctionConfiguration) SetTimeout(v int64) *FunctionConfiguration
- func (s *FunctionConfiguration) SetVersion(v string) *FunctionConfiguration
- func (s *FunctionConfiguration) SetVpcConfig(v *VpcConfigResponse) *FunctionConfiguration
- func (s FunctionConfiguration) String() string
- type GetAccountSettingsInput
- type GetAccountSettingsOutput
- type GetAliasInput
- type GetEventSourceMappingInput
- type GetFunctionConfigurationInput
- func (s GetFunctionConfigurationInput) GoString() string
- func (s *GetFunctionConfigurationInput) SetFunctionName(v string) *GetFunctionConfigurationInput
- func (s *GetFunctionConfigurationInput) SetQualifier(v string) *GetFunctionConfigurationInput
- func (s GetFunctionConfigurationInput) String() string
- func (s *GetFunctionConfigurationInput) Validate() error
- type GetFunctionInput
- type GetFunctionOutput
- type GetPolicyInput
- type GetPolicyOutput
- type InvokeAsyncInput
- type InvokeAsyncOutput
- type InvokeInput
- func (s InvokeInput) GoString() string
- func (s *InvokeInput) SetClientContext(v string) *InvokeInput
- func (s *InvokeInput) SetFunctionName(v string) *InvokeInput
- func (s *InvokeInput) SetInvocationType(v string) *InvokeInput
- func (s *InvokeInput) SetLogType(v string) *InvokeInput
- func (s *InvokeInput) SetPayload(v []byte) *InvokeInput
- func (s *InvokeInput) SetQualifier(v string) *InvokeInput
- func (s InvokeInput) String() string
- func (s *InvokeInput) Validate() error
- type InvokeOutput
- func (s InvokeOutput) GoString() string
- func (s *InvokeOutput) SetFunctionError(v string) *InvokeOutput
- func (s *InvokeOutput) SetLogResult(v string) *InvokeOutput
- func (s *InvokeOutput) SetPayload(v []byte) *InvokeOutput
- func (s *InvokeOutput) SetStatusCode(v int64) *InvokeOutput
- func (s InvokeOutput) String() string
- type Lambda
- func (c *Lambda) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error)
- func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.Request, output *AddPermissionOutput)
- func (c *Lambda) CreateAlias(input *CreateAliasInput) (*AliasConfiguration, error)
- func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *AliasConfiguration)
- func (c *Lambda) CreateEventSourceMapping(input *CreateEventSourceMappingInput) (*EventSourceMappingConfiguration, error)
- func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration)
- func (c *Lambda) CreateFunction(input *CreateFunctionInput) (*FunctionConfiguration, error)
- func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request.Request, output *FunctionConfiguration)
- func (c *Lambda) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error)
- func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, output *DeleteAliasOutput)
- func (c *Lambda) DeleteEventSourceMapping(input *DeleteEventSourceMappingInput) (*EventSourceMappingConfiguration, error)
- func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration)
- func (c *Lambda) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutput, error)
- func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request.Request, output *DeleteFunctionOutput)
- func (c *Lambda) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error)
- func (c *Lambda) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req *request.Request, output *GetAccountSettingsOutput)
- func (c *Lambda) GetAlias(input *GetAliasInput) (*AliasConfiguration, error)
- func (c *Lambda) GetAliasRequest(input *GetAliasInput) (req *request.Request, output *AliasConfiguration)
- func (c *Lambda) GetEventSourceMapping(input *GetEventSourceMappingInput) (*EventSourceMappingConfiguration, error)
- func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration)
- func (c *Lambda) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error)
- func (c *Lambda) GetFunctionConfiguration(input *GetFunctionConfigurationInput) (*FunctionConfiguration, error)
- func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration)
- func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Request, output *GetFunctionOutput)
- func (c *Lambda) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error)
- func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, output *GetPolicyOutput)
- func (c *Lambda) Invoke(input *InvokeInput) (*InvokeOutput, error)
- func (c *Lambda) InvokeAsync(input *InvokeAsyncInput) (*InvokeAsyncOutput, error)
- func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Request, output *InvokeAsyncOutput)
- func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output *InvokeOutput)
- func (c *Lambda) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error)
- func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, output *ListAliasesOutput)
- func (c *Lambda) ListEventSourceMappings(input *ListEventSourceMappingsInput) (*ListEventSourceMappingsOutput, error)
- func (c *Lambda) ListEventSourceMappingsPages(input *ListEventSourceMappingsInput, ...) error
- func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsInput) (req *request.Request, output *ListEventSourceMappingsOutput)
- func (c *Lambda) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error)
- func (c *Lambda) ListFunctionsPages(input *ListFunctionsInput, ...) error
- func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.Request, output *ListFunctionsOutput)
- func (c *Lambda) ListVersionsByFunction(input *ListVersionsByFunctionInput) (*ListVersionsByFunctionOutput, error)
- func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInput) (req *request.Request, output *ListVersionsByFunctionOutput)
- func (c *Lambda) PublishVersion(input *PublishVersionInput) (*FunctionConfiguration, error)
- func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request.Request, output *FunctionConfiguration)
- func (c *Lambda) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error)
- func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *request.Request, output *RemovePermissionOutput)
- func (c *Lambda) UpdateAlias(input *UpdateAliasInput) (*AliasConfiguration, error)
- func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *AliasConfiguration)
- func (c *Lambda) UpdateEventSourceMapping(input *UpdateEventSourceMappingInput) (*EventSourceMappingConfiguration, error)
- func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration)
- func (c *Lambda) UpdateFunctionCode(input *UpdateFunctionCodeInput) (*FunctionConfiguration, error)
- func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req *request.Request, output *FunctionConfiguration)
- func (c *Lambda) UpdateFunctionConfiguration(input *UpdateFunctionConfigurationInput) (*FunctionConfiguration, error)
- func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration)
- type ListAliasesInput
- func (s ListAliasesInput) GoString() string
- func (s *ListAliasesInput) SetFunctionName(v string) *ListAliasesInput
- func (s *ListAliasesInput) SetFunctionVersion(v string) *ListAliasesInput
- func (s *ListAliasesInput) SetMarker(v string) *ListAliasesInput
- func (s *ListAliasesInput) SetMaxItems(v int64) *ListAliasesInput
- func (s ListAliasesInput) String() string
- func (s *ListAliasesInput) Validate() error
- type ListAliasesOutput
- type ListEventSourceMappingsInput
- func (s ListEventSourceMappingsInput) GoString() string
- func (s *ListEventSourceMappingsInput) SetEventSourceArn(v string) *ListEventSourceMappingsInput
- func (s *ListEventSourceMappingsInput) SetFunctionName(v string) *ListEventSourceMappingsInput
- func (s *ListEventSourceMappingsInput) SetMarker(v string) *ListEventSourceMappingsInput
- func (s *ListEventSourceMappingsInput) SetMaxItems(v int64) *ListEventSourceMappingsInput
- func (s ListEventSourceMappingsInput) String() string
- func (s *ListEventSourceMappingsInput) Validate() error
- type ListEventSourceMappingsOutput
- func (s ListEventSourceMappingsOutput) GoString() string
- func (s *ListEventSourceMappingsOutput) SetEventSourceMappings(v []*EventSourceMappingConfiguration) *ListEventSourceMappingsOutput
- func (s *ListEventSourceMappingsOutput) SetNextMarker(v string) *ListEventSourceMappingsOutput
- func (s ListEventSourceMappingsOutput) String() string
- type ListFunctionsInput
- type ListFunctionsOutput
- type ListVersionsByFunctionInput
- func (s ListVersionsByFunctionInput) GoString() string
- func (s *ListVersionsByFunctionInput) SetFunctionName(v string) *ListVersionsByFunctionInput
- func (s *ListVersionsByFunctionInput) SetMarker(v string) *ListVersionsByFunctionInput
- func (s *ListVersionsByFunctionInput) SetMaxItems(v int64) *ListVersionsByFunctionInput
- func (s ListVersionsByFunctionInput) String() string
- func (s *ListVersionsByFunctionInput) Validate() error
- type ListVersionsByFunctionOutput
- func (s ListVersionsByFunctionOutput) GoString() string
- func (s *ListVersionsByFunctionOutput) SetNextMarker(v string) *ListVersionsByFunctionOutput
- func (s *ListVersionsByFunctionOutput) SetVersions(v []*FunctionConfiguration) *ListVersionsByFunctionOutput
- func (s ListVersionsByFunctionOutput) String() string
- type PublishVersionInput
- func (s PublishVersionInput) GoString() string
- func (s *PublishVersionInput) SetCodeSha256(v string) *PublishVersionInput
- func (s *PublishVersionInput) SetDescription(v string) *PublishVersionInput
- func (s *PublishVersionInput) SetFunctionName(v string) *PublishVersionInput
- func (s PublishVersionInput) String() string
- func (s *PublishVersionInput) Validate() error
- type RemovePermissionInput
- func (s RemovePermissionInput) GoString() string
- func (s *RemovePermissionInput) SetFunctionName(v string) *RemovePermissionInput
- func (s *RemovePermissionInput) SetQualifier(v string) *RemovePermissionInput
- func (s *RemovePermissionInput) SetStatementId(v string) *RemovePermissionInput
- func (s RemovePermissionInput) String() string
- func (s *RemovePermissionInput) Validate() error
- type RemovePermissionOutput
- type UpdateAliasInput
- func (s UpdateAliasInput) GoString() string
- func (s *UpdateAliasInput) SetDescription(v string) *UpdateAliasInput
- func (s *UpdateAliasInput) SetFunctionName(v string) *UpdateAliasInput
- func (s *UpdateAliasInput) SetFunctionVersion(v string) *UpdateAliasInput
- func (s *UpdateAliasInput) SetName(v string) *UpdateAliasInput
- func (s UpdateAliasInput) String() string
- func (s *UpdateAliasInput) Validate() error
- type UpdateEventSourceMappingInput
- func (s UpdateEventSourceMappingInput) GoString() string
- func (s *UpdateEventSourceMappingInput) SetBatchSize(v int64) *UpdateEventSourceMappingInput
- func (s *UpdateEventSourceMappingInput) SetEnabled(v bool) *UpdateEventSourceMappingInput
- func (s *UpdateEventSourceMappingInput) SetFunctionName(v string) *UpdateEventSourceMappingInput
- func (s *UpdateEventSourceMappingInput) SetUUID(v string) *UpdateEventSourceMappingInput
- func (s UpdateEventSourceMappingInput) String() string
- func (s *UpdateEventSourceMappingInput) Validate() error
- type UpdateFunctionCodeInput
- func (s UpdateFunctionCodeInput) GoString() string
- func (s *UpdateFunctionCodeInput) SetFunctionName(v string) *UpdateFunctionCodeInput
- func (s *UpdateFunctionCodeInput) SetPublish(v bool) *UpdateFunctionCodeInput
- func (s *UpdateFunctionCodeInput) SetS3Bucket(v string) *UpdateFunctionCodeInput
- func (s *UpdateFunctionCodeInput) SetS3Key(v string) *UpdateFunctionCodeInput
- func (s *UpdateFunctionCodeInput) SetS3ObjectVersion(v string) *UpdateFunctionCodeInput
- func (s *UpdateFunctionCodeInput) SetZipFile(v []byte) *UpdateFunctionCodeInput
- func (s UpdateFunctionCodeInput) String() string
- func (s *UpdateFunctionCodeInput) Validate() error
- type UpdateFunctionConfigurationInput
- func (s UpdateFunctionConfigurationInput) GoString() string
- func (s *UpdateFunctionConfigurationInput) SetDeadLetterConfig(v *DeadLetterConfig) *UpdateFunctionConfigurationInput
- func (s *UpdateFunctionConfigurationInput) SetDescription(v string) *UpdateFunctionConfigurationInput
- func (s *UpdateFunctionConfigurationInput) SetEnvironment(v *Environment) *UpdateFunctionConfigurationInput
- func (s *UpdateFunctionConfigurationInput) SetFunctionName(v string) *UpdateFunctionConfigurationInput
- func (s *UpdateFunctionConfigurationInput) SetHandler(v string) *UpdateFunctionConfigurationInput
- func (s *UpdateFunctionConfigurationInput) SetKMSKeyArn(v string) *UpdateFunctionConfigurationInput
- func (s *UpdateFunctionConfigurationInput) SetMemorySize(v int64) *UpdateFunctionConfigurationInput
- func (s *UpdateFunctionConfigurationInput) SetRole(v string) *UpdateFunctionConfigurationInput
- func (s *UpdateFunctionConfigurationInput) SetRuntime(v string) *UpdateFunctionConfigurationInput
- func (s *UpdateFunctionConfigurationInput) SetTimeout(v int64) *UpdateFunctionConfigurationInput
- func (s *UpdateFunctionConfigurationInput) SetVpcConfig(v *VpcConfig) *UpdateFunctionConfigurationInput
- func (s UpdateFunctionConfigurationInput) String() string
- func (s *UpdateFunctionConfigurationInput) Validate() error
- type VpcConfig
- type VpcConfigResponse
- func (s VpcConfigResponse) GoString() string
- func (s *VpcConfigResponse) SetSecurityGroupIds(v []*string) *VpcConfigResponse
- func (s *VpcConfigResponse) SetSubnetIds(v []*string) *VpcConfigResponse
- func (s *VpcConfigResponse) SetVpcId(v string) *VpcConfigResponse
- func (s VpcConfigResponse) String() string
Examples ¶
- Lambda.AddPermission
- Lambda.CreateAlias
- Lambda.CreateEventSourceMapping
- Lambda.CreateFunction
- Lambda.DeleteAlias
- Lambda.DeleteEventSourceMapping
- Lambda.DeleteFunction
- Lambda.GetAccountSettings
- Lambda.GetAlias
- Lambda.GetEventSourceMapping
- Lambda.GetFunction
- Lambda.GetFunctionConfiguration
- Lambda.GetPolicy
- Lambda.Invoke
- Lambda.InvokeAsync
- Lambda.ListAliases
- Lambda.ListEventSourceMappings
- Lambda.ListFunctions
- Lambda.ListVersionsByFunction
- Lambda.PublishVersion
- Lambda.RemovePermission
- Lambda.UpdateAlias
- Lambda.UpdateEventSourceMapping
- Lambda.UpdateFunctionCode
- Lambda.UpdateFunctionConfiguration
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" // RuntimeJava8 is a Runtime enum value RuntimeJava8 = "java8" // RuntimePython27 is a Runtime enum value RuntimePython27 = "python2.7" // RuntimeDotnetcore10 is a Runtime enum value RuntimeDotnetcore10 = "dotnetcore1.0" // RuntimeNodejs43Edge is a Runtime enum value RuntimeNodejs43Edge = "nodejs4.3-edge" )
const ( // ThrottleReasonConcurrentInvocationLimitExceeded is a ThrottleReason enum value ThrottleReasonConcurrentInvocationLimitExceeded = "ConcurrentInvocationLimitExceeded" // ThrottleReasonFunctionInvocationRateLimitExceeded is a ThrottleReason enum value ThrottleReasonFunctionInvocationRateLimitExceeded = "FunctionInvocationRateLimitExceeded" // ThrottleReasonCallerRateLimitExceeded is a ThrottleReason enum value ThrottleReasonCallerRateLimitExceeded = "CallerRateLimitExceeded" )
const ( ServiceName = "lambda" // Service endpoint prefix API calls made to. EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountLimit ¶ added in v1.6.0
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 AWS 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 100. ConcurrentExecutions *int64 `type:"integer"` // Maximum size, in megabytes, of a code package you can upload per region. // The default size is 75 GB. TotalCodeSize *int64 `type:"long"` // contains filtered or unexported fields }
Provides limits of code size and concurrency associated with the current account and region.
func (AccountLimit) GoString ¶ added in v1.6.0
func (s AccountLimit) GoString() string
GoString returns the string representation
func (*AccountLimit) SetCodeSizeUnzipped ¶ added in v1.6.0
func (s *AccountLimit) SetCodeSizeUnzipped(v int64) *AccountLimit
SetCodeSizeUnzipped sets the CodeSizeUnzipped field's value.
func (*AccountLimit) SetCodeSizeZipped ¶ added in v1.6.0
func (s *AccountLimit) SetCodeSizeZipped(v int64) *AccountLimit
SetCodeSizeZipped sets the CodeSizeZipped field's value.
func (*AccountLimit) SetConcurrentExecutions ¶ added in v1.6.0
func (s *AccountLimit) SetConcurrentExecutions(v int64) *AccountLimit
SetConcurrentExecutions sets the ConcurrentExecutions field's value.
func (*AccountLimit) SetTotalCodeSize ¶ added in v1.6.0
func (s *AccountLimit) SetTotalCodeSize(v int64) *AccountLimit
SetTotalCodeSize sets the TotalCodeSize field's value.
func (AccountLimit) String ¶ added in v1.6.0
func (s AccountLimit) String() string
String returns the string representation
type AccountUsage ¶ added in v1.6.0
type AccountUsage struct { // The number of your account's existing functions per region. FunctionCount *int64 `type:"long"` // Total size, in megabytes, 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 ¶ added in v1.6.0
func (s AccountUsage) GoString() string
GoString returns the string representation
func (*AccountUsage) SetFunctionCount ¶ added in v1.6.0
func (s *AccountUsage) SetFunctionCount(v int64) *AccountUsage
SetFunctionCount sets the FunctionCount field's value.
func (*AccountUsage) SetTotalCodeSize ¶ added in v1.6.0
func (s *AccountUsage) SetTotalCodeSize(v int64) *AccountUsage
SetTotalCodeSize sets the TotalCodeSize field's value.
func (AccountUsage) String ¶ added in v1.6.0
func (s AccountUsage) String() string
String returns the string representation
type AddPermissionInput ¶
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 character 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"` // This parameter is used for S3, SES, CloudWatch Logs and CloudWatch Rules // only. 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 Amazon S3 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 for the Amazon S3 principal without providing the // source ARN, any AWS account that creates a mapping to your function ARN can // send events to invoke your Lambda function from Amazon S3. 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 ¶ added in v0.6.6
func (s AddPermissionInput) GoString() string
GoString returns the string representation
func (*AddPermissionInput) SetAction ¶ added in v1.5.0
func (s *AddPermissionInput) SetAction(v string) *AddPermissionInput
SetAction sets the Action field's value.
func (*AddPermissionInput) SetEventSourceToken ¶ added in v1.5.0
func (s *AddPermissionInput) SetEventSourceToken(v string) *AddPermissionInput
SetEventSourceToken sets the EventSourceToken field's value.
func (*AddPermissionInput) SetFunctionName ¶ added in v1.5.0
func (s *AddPermissionInput) SetFunctionName(v string) *AddPermissionInput
SetFunctionName sets the FunctionName field's value.
func (*AddPermissionInput) SetPrincipal ¶ added in v1.5.0
func (s *AddPermissionInput) SetPrincipal(v string) *AddPermissionInput
SetPrincipal sets the Principal field's value.
func (*AddPermissionInput) SetQualifier ¶ added in v1.5.0
func (s *AddPermissionInput) SetQualifier(v string) *AddPermissionInput
SetQualifier sets the Qualifier field's value.
func (*AddPermissionInput) SetSourceAccount ¶ added in v1.5.0
func (s *AddPermissionInput) SetSourceAccount(v string) *AddPermissionInput
SetSourceAccount sets the SourceAccount field's value.
func (*AddPermissionInput) SetSourceArn ¶ added in v1.5.0
func (s *AddPermissionInput) SetSourceArn(v string) *AddPermissionInput
SetSourceArn sets the SourceArn field's value.
func (*AddPermissionInput) SetStatementId ¶ added in v1.5.0
func (s *AddPermissionInput) SetStatementId(v string) *AddPermissionInput
SetStatementId sets the StatementId field's value.
func (AddPermissionInput) String ¶ added in v0.6.6
func (s AddPermissionInput) String() string
String returns the string representation
func (*AddPermissionInput) Validate ¶ added in v1.1.22
func (s *AddPermissionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AddPermissionOutput ¶
type AddPermissionOutput struct { // The permission statement 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 ¶ added in v0.6.6
func (s AddPermissionOutput) GoString() string
GoString returns the string representation
func (*AddPermissionOutput) SetStatement ¶ added in v1.5.0
func (s *AddPermissionOutput) SetStatement(v string) *AddPermissionOutput
SetStatement sets the Statement field's value.
func (AddPermissionOutput) String ¶ added in v0.6.6
func (s AddPermissionOutput) String() string
String returns the string representation
type AliasConfiguration ¶ added in v0.9.14
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"` // contains filtered or unexported fields }
Provides configuration information about a Lambda function version alias.
func (AliasConfiguration) GoString ¶ added in v0.9.14
func (s AliasConfiguration) GoString() string
GoString returns the string representation
func (*AliasConfiguration) SetAliasArn ¶ added in v1.5.0
func (s *AliasConfiguration) SetAliasArn(v string) *AliasConfiguration
SetAliasArn sets the AliasArn field's value.
func (*AliasConfiguration) SetDescription ¶ added in v1.5.0
func (s *AliasConfiguration) SetDescription(v string) *AliasConfiguration
SetDescription sets the Description field's value.
func (*AliasConfiguration) SetFunctionVersion ¶ added in v1.5.0
func (s *AliasConfiguration) SetFunctionVersion(v string) *AliasConfiguration
SetFunctionVersion sets the FunctionVersion field's value.
func (*AliasConfiguration) SetName ¶ added in v1.5.0
func (s *AliasConfiguration) SetName(v string) *AliasConfiguration
SetName sets the Name field's value.
func (AliasConfiguration) String ¶ added in v0.9.14
func (s AliasConfiguration) String() string
String returns the string representation
type CreateAliasInput ¶ added in v0.9.14
type CreateAliasInput struct { // Description of the alias. Description *string `type:"string"` // Name of the Lambda function for which you want to create an alias. // // 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"` // contains filtered or unexported fields }
func (CreateAliasInput) GoString ¶ added in v0.9.14
func (s CreateAliasInput) GoString() string
GoString returns the string representation
func (*CreateAliasInput) SetDescription ¶ added in v1.5.0
func (s *CreateAliasInput) SetDescription(v string) *CreateAliasInput
SetDescription sets the Description field's value.
func (*CreateAliasInput) SetFunctionName ¶ added in v1.5.0
func (s *CreateAliasInput) SetFunctionName(v string) *CreateAliasInput
SetFunctionName sets the FunctionName field's value.
func (*CreateAliasInput) SetFunctionVersion ¶ added in v1.5.0
func (s *CreateAliasInput) SetFunctionVersion(v string) *CreateAliasInput
SetFunctionVersion sets the FunctionVersion field's value.
func (*CreateAliasInput) SetName ¶ added in v1.5.0
func (s *CreateAliasInput) SetName(v string) *CreateAliasInput
SetName sets the Name field's value.
func (CreateAliasInput) String ¶ added in v0.9.14
func (s CreateAliasInput) String() string
String returns the string representation
func (*CreateAliasInput) Validate ¶ added in v1.1.22
func (s *CreateAliasInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateEventSourceMappingInput ¶
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 is 100 records. 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 Amazon Kinesis or the Amazon DynamoDB // stream that is the event source. Any record added to this stream could cause // AWS Lambda to invoke your Lambda function, it depends on the BatchSize. AWS // Lambda POSTs the Amazon Kinesis event, containing 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 character in length. // // FunctionName is a required field FunctionName *string `min:"1" type:"string" required:"true"` // The position in the stream where AWS Lambda should start reading. Valid only // for Kinesis streams. For more information, go to ShardIteratorType (http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType) // in the Amazon Kinesis API Reference. // // StartingPosition is a required field StartingPosition *string `type:"string" required:"true" 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. StartingPositionTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` // contains filtered or unexported fields }
func (CreateEventSourceMappingInput) GoString ¶ added in v0.6.6
func (s CreateEventSourceMappingInput) GoString() string
GoString returns the string representation
func (*CreateEventSourceMappingInput) SetBatchSize ¶ added in v1.5.0
func (s *CreateEventSourceMappingInput) SetBatchSize(v int64) *CreateEventSourceMappingInput
SetBatchSize sets the BatchSize field's value.
func (*CreateEventSourceMappingInput) SetEnabled ¶ added in v1.5.0
func (s *CreateEventSourceMappingInput) SetEnabled(v bool) *CreateEventSourceMappingInput
SetEnabled sets the Enabled field's value.
func (*CreateEventSourceMappingInput) SetEventSourceArn ¶ added in v1.5.0
func (s *CreateEventSourceMappingInput) SetEventSourceArn(v string) *CreateEventSourceMappingInput
SetEventSourceArn sets the EventSourceArn field's value.
func (*CreateEventSourceMappingInput) SetFunctionName ¶ added in v1.5.0
func (s *CreateEventSourceMappingInput) SetFunctionName(v string) *CreateEventSourceMappingInput
SetFunctionName sets the FunctionName field's value.
func (*CreateEventSourceMappingInput) SetStartingPosition ¶ added in v1.5.0
func (s *CreateEventSourceMappingInput) SetStartingPosition(v string) *CreateEventSourceMappingInput
SetStartingPosition sets the StartingPosition field's value.
func (*CreateEventSourceMappingInput) SetStartingPositionTimestamp ¶ added in v1.6.0
func (s *CreateEventSourceMappingInput) SetStartingPositionTimestamp(v time.Time) *CreateEventSourceMappingInput
SetStartingPositionTimestamp sets the StartingPositionTimestamp field's value.
func (CreateEventSourceMappingInput) String ¶ added in v0.6.6
func (s CreateEventSourceMappingInput) String() string
String returns the string representation
func (*CreateEventSourceMappingInput) Validate ¶ added in v1.1.22
func (s *CreateEventSourceMappingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateFunctionInput ¶
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. 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 APIs, such as Invoke. // // 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 Node.js runtime v4.3, set the value to "nodejs4.3". To use earlier // runtime (v0.10.42), set the value to "nodejs". // // You can no longer create functions using the v0.10.42 runtime version as // of November, 2016. Existing functions will be supported until early 2017 // but we recommend you migrate them to nodejs4.3 runtime version as soon as // possible. // // Runtime is a required field Runtime *string `type:"string" required:"true" 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"` // 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 ¶ added in v0.6.6
func (s CreateFunctionInput) GoString() string
GoString returns the string representation
func (*CreateFunctionInput) SetCode ¶ added in v1.5.0
func (s *CreateFunctionInput) SetCode(v *FunctionCode) *CreateFunctionInput
SetCode sets the Code field's value.
func (*CreateFunctionInput) SetDeadLetterConfig ¶ added in v1.6.0
func (s *CreateFunctionInput) SetDeadLetterConfig(v *DeadLetterConfig) *CreateFunctionInput
SetDeadLetterConfig sets the DeadLetterConfig field's value.
func (*CreateFunctionInput) SetDescription ¶ added in v1.5.0
func (s *CreateFunctionInput) SetDescription(v string) *CreateFunctionInput
SetDescription sets the Description field's value.
func (*CreateFunctionInput) SetEnvironment ¶ added in v1.5.8
func (s *CreateFunctionInput) SetEnvironment(v *Environment) *CreateFunctionInput
SetEnvironment sets the Environment field's value.
func (*CreateFunctionInput) SetFunctionName ¶ added in v1.5.0
func (s *CreateFunctionInput) SetFunctionName(v string) *CreateFunctionInput
SetFunctionName sets the FunctionName field's value.
func (*CreateFunctionInput) SetHandler ¶ added in v1.5.0
func (s *CreateFunctionInput) SetHandler(v string) *CreateFunctionInput
SetHandler sets the Handler field's value.
func (*CreateFunctionInput) SetKMSKeyArn ¶ added in v1.5.8
func (s *CreateFunctionInput) SetKMSKeyArn(v string) *CreateFunctionInput
SetKMSKeyArn sets the KMSKeyArn field's value.
func (*CreateFunctionInput) SetMemorySize ¶ added in v1.5.0
func (s *CreateFunctionInput) SetMemorySize(v int64) *CreateFunctionInput
SetMemorySize sets the MemorySize field's value.
func (*CreateFunctionInput) SetPublish ¶ added in v1.5.0
func (s *CreateFunctionInput) SetPublish(v bool) *CreateFunctionInput
SetPublish sets the Publish field's value.
func (*CreateFunctionInput) SetRole ¶ added in v1.5.0
func (s *CreateFunctionInput) SetRole(v string) *CreateFunctionInput
SetRole sets the Role field's value.
func (*CreateFunctionInput) SetRuntime ¶ added in v1.5.0
func (s *CreateFunctionInput) SetRuntime(v string) *CreateFunctionInput
SetRuntime sets the Runtime field's value.
func (*CreateFunctionInput) SetTimeout ¶ added in v1.5.0
func (s *CreateFunctionInput) SetTimeout(v int64) *CreateFunctionInput
SetTimeout sets the Timeout field's value.
func (*CreateFunctionInput) SetVpcConfig ¶ added in v1.5.0
func (s *CreateFunctionInput) SetVpcConfig(v *VpcConfig) *CreateFunctionInput
SetVpcConfig sets the VpcConfig field's value.
func (CreateFunctionInput) String ¶ added in v0.6.6
func (s CreateFunctionInput) String() string
String returns the string representation
func (*CreateFunctionInput) Validate ¶ added in v1.1.22
func (s *CreateFunctionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeadLetterConfig ¶ added in v1.6.0
type DeadLetterConfig struct { // The ARN (Amazon Resource Value) of an Amazon SQS queue or Amazon SNS topic // you specify as your Dead Letter Queue (DLQ). TargetArn *string `type:"string"` // contains filtered or unexported fields }
The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic.
func (DeadLetterConfig) GoString ¶ added in v1.6.0
func (s DeadLetterConfig) GoString() string
GoString returns the string representation
func (*DeadLetterConfig) SetTargetArn ¶ added in v1.6.0
func (s *DeadLetterConfig) SetTargetArn(v string) *DeadLetterConfig
SetTargetArn sets the TargetArn field's value.
func (DeadLetterConfig) String ¶ added in v1.6.0
func (s DeadLetterConfig) String() string
String returns the string representation
type DeleteAliasInput ¶ added in v0.9.14
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. // // 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 ¶ added in v0.9.14
func (s DeleteAliasInput) GoString() string
GoString returns the string representation
func (*DeleteAliasInput) SetFunctionName ¶ added in v1.5.0
func (s *DeleteAliasInput) SetFunctionName(v string) *DeleteAliasInput
SetFunctionName sets the FunctionName field's value.
func (*DeleteAliasInput) SetName ¶ added in v1.5.0
func (s *DeleteAliasInput) SetName(v string) *DeleteAliasInput
SetName sets the Name field's value.
func (DeleteAliasInput) String ¶ added in v0.9.14
func (s DeleteAliasInput) String() string
String returns the string representation
func (*DeleteAliasInput) Validate ¶ added in v1.1.22
func (s *DeleteAliasInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteAliasOutput ¶ added in v0.9.14
type DeleteAliasOutput struct {
// contains filtered or unexported fields
}
func (DeleteAliasOutput) GoString ¶ added in v0.9.14
func (s DeleteAliasOutput) GoString() string
GoString returns the string representation
func (DeleteAliasOutput) String ¶ added in v0.9.14
func (s DeleteAliasOutput) String() string
String returns the string representation
type DeleteEventSourceMappingInput ¶
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 ¶ added in v0.6.6
func (s DeleteEventSourceMappingInput) GoString() string
GoString returns the string representation
func (*DeleteEventSourceMappingInput) SetUUID ¶ added in v1.5.0
func (s *DeleteEventSourceMappingInput) SetUUID(v string) *DeleteEventSourceMappingInput
SetUUID sets the UUID field's value.
func (DeleteEventSourceMappingInput) String ¶ added in v0.6.6
func (s DeleteEventSourceMappingInput) String() string
String returns the string representation
func (*DeleteEventSourceMappingInput) Validate ¶ added in v1.1.22
func (s *DeleteEventSourceMappingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteFunctionInput ¶
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 character 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 ¶ added in v0.6.6
func (s DeleteFunctionInput) GoString() string
GoString returns the string representation
func (*DeleteFunctionInput) SetFunctionName ¶ added in v1.5.0
func (s *DeleteFunctionInput) SetFunctionName(v string) *DeleteFunctionInput
SetFunctionName sets the FunctionName field's value.
func (*DeleteFunctionInput) SetQualifier ¶ added in v1.5.0
func (s *DeleteFunctionInput) SetQualifier(v string) *DeleteFunctionInput
SetQualifier sets the Qualifier field's value.
func (DeleteFunctionInput) String ¶ added in v0.6.6
func (s DeleteFunctionInput) String() string
String returns the string representation
func (*DeleteFunctionInput) Validate ¶ added in v1.1.22
func (s *DeleteFunctionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteFunctionOutput ¶
type DeleteFunctionOutput struct {
// contains filtered or unexported fields
}
func (DeleteFunctionOutput) GoString ¶ added in v0.6.6
func (s DeleteFunctionOutput) GoString() string
GoString returns the string representation
func (DeleteFunctionOutput) String ¶ added in v0.6.6
func (s DeleteFunctionOutput) String() string
String returns the string representation
type Environment ¶ added in v1.5.8
type Environment struct { // The key-value pairs that represent your environment's configuration settings. // The value you specify cannot contain a ",". Variables map[string]*string `type:"map"` // contains filtered or unexported fields }
The parent object that contains your environment's configuration settings.
func (Environment) GoString ¶ added in v1.5.8
func (s Environment) GoString() string
GoString returns the string representation
func (*Environment) SetVariables ¶ added in v1.5.8
func (s *Environment) SetVariables(v map[string]*string) *Environment
SetVariables sets the Variables field's value.
func (Environment) String ¶ added in v1.5.8
func (s Environment) String() string
String returns the string representation
type EnvironmentError ¶ added in v1.5.8
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 ¶ added in v1.5.8
func (s EnvironmentError) GoString() string
GoString returns the string representation
func (*EnvironmentError) SetErrorCode ¶ added in v1.5.8
func (s *EnvironmentError) SetErrorCode(v string) *EnvironmentError
SetErrorCode sets the ErrorCode field's value.
func (*EnvironmentError) SetMessage ¶ added in v1.5.8
func (s *EnvironmentError) SetMessage(v string) *EnvironmentError
SetMessage sets the Message field's value.
func (EnvironmentError) String ¶ added in v1.5.8
func (s EnvironmentError) String() string
String returns the string representation
type EnvironmentResponse ¶ added in v1.5.8
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 ¶ added in v1.5.8
func (s EnvironmentResponse) GoString() string
GoString returns the string representation
func (*EnvironmentResponse) SetError ¶ added in v1.5.8
func (s *EnvironmentResponse) SetError(v *EnvironmentError) *EnvironmentResponse
SetError sets the Error field's value.
func (*EnvironmentResponse) SetVariables ¶ added in v1.5.8
func (s *EnvironmentResponse) SetVariables(v map[string]*string) *EnvironmentResponse
SetVariables sets the Variables field's value.
func (EnvironmentResponse) String ¶ added in v1.5.8
func (s EnvironmentResponse) String() string
String returns the string representation
type EventSourceMappingConfiguration ¶
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 stream that is the source // of events. EventSourceArn *string `type:"string"` // The Lambda function to invoke when AWS Lambda detects an event on the stream. FunctionArn *string `type:"string"` // The UTC time string indicating the last time the event mapping was updated. LastModified *time.Time `type:"timestamp" timestampFormat:"unix"` // 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 stream and a Lambda function.
func (EventSourceMappingConfiguration) GoString ¶ added in v0.6.6
func (s EventSourceMappingConfiguration) GoString() string
GoString returns the string representation
func (*EventSourceMappingConfiguration) SetBatchSize ¶ added in v1.5.0
func (s *EventSourceMappingConfiguration) SetBatchSize(v int64) *EventSourceMappingConfiguration
SetBatchSize sets the BatchSize field's value.
func (*EventSourceMappingConfiguration) SetEventSourceArn ¶ added in v1.5.0
func (s *EventSourceMappingConfiguration) SetEventSourceArn(v string) *EventSourceMappingConfiguration
SetEventSourceArn sets the EventSourceArn field's value.
func (*EventSourceMappingConfiguration) SetFunctionArn ¶ added in v1.5.0
func (s *EventSourceMappingConfiguration) SetFunctionArn(v string) *EventSourceMappingConfiguration
SetFunctionArn sets the FunctionArn field's value.
func (*EventSourceMappingConfiguration) SetLastModified ¶ added in v1.5.0
func (s *EventSourceMappingConfiguration) SetLastModified(v time.Time) *EventSourceMappingConfiguration
SetLastModified sets the LastModified field's value.
func (*EventSourceMappingConfiguration) SetLastProcessingResult ¶ added in v1.5.0
func (s *EventSourceMappingConfiguration) SetLastProcessingResult(v string) *EventSourceMappingConfiguration
SetLastProcessingResult sets the LastProcessingResult field's value.
func (*EventSourceMappingConfiguration) SetState ¶ added in v1.5.0
func (s *EventSourceMappingConfiguration) SetState(v string) *EventSourceMappingConfiguration
SetState sets the State field's value.
func (*EventSourceMappingConfiguration) SetStateTransitionReason ¶ added in v1.5.0
func (s *EventSourceMappingConfiguration) SetStateTransitionReason(v string) *EventSourceMappingConfiguration
SetStateTransitionReason sets the StateTransitionReason field's value.
func (*EventSourceMappingConfiguration) SetUUID ¶ added in v1.5.0
func (s *EventSourceMappingConfiguration) SetUUID(v string) *EventSourceMappingConfiguration
SetUUID sets the UUID field's value.
func (EventSourceMappingConfiguration) String ¶ added in v0.6.6
func (s EventSourceMappingConfiguration) String() string
String returns the string representation
type FunctionCode ¶
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, go to // 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 ¶ added in v0.6.6
func (s FunctionCode) GoString() string
GoString returns the string representation
func (*FunctionCode) SetS3Bucket ¶ added in v1.5.0
func (s *FunctionCode) SetS3Bucket(v string) *FunctionCode
SetS3Bucket sets the S3Bucket field's value.
func (*FunctionCode) SetS3Key ¶ added in v1.5.0
func (s *FunctionCode) SetS3Key(v string) *FunctionCode
SetS3Key sets the S3Key field's value.
func (*FunctionCode) SetS3ObjectVersion ¶ added in v1.5.0
func (s *FunctionCode) SetS3ObjectVersion(v string) *FunctionCode
SetS3ObjectVersion sets the S3ObjectVersion field's value.
func (*FunctionCode) SetZipFile ¶ added in v1.5.0
func (s *FunctionCode) SetZipFile(v []byte) *FunctionCode
SetZipFile sets the ZipFile field's value.
func (FunctionCode) String ¶ added in v0.6.6
func (s FunctionCode) String() string
String returns the string representation
func (*FunctionCode) Validate ¶ added in v1.1.22
func (s *FunctionCode) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type FunctionCodeLocation ¶
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 ¶ added in v0.6.6
func (s FunctionCodeLocation) GoString() string
GoString returns the string representation
func (*FunctionCodeLocation) SetLocation ¶ added in v1.5.0
func (s *FunctionCodeLocation) SetLocation(v string) *FunctionCodeLocation
SetLocation sets the Location field's value.
func (*FunctionCodeLocation) SetRepositoryType ¶ added in v1.5.0
func (s *FunctionCodeLocation) SetRepositoryType(v string) *FunctionCodeLocation
SetRepositoryType sets the RepositoryType field's value.
func (FunctionCodeLocation) String ¶ added in v0.6.6
func (s FunctionCodeLocation) String() string
String returns the string representation
type FunctionConfiguration ¶
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. 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. 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. LastModified *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"` // 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. // // To use the Node.js runtime v4.3, set the value to "nodejs4.3". To use earlier // runtime (v0.10.42), set the value to "nodejs". 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 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 ¶ added in v0.6.6
func (s FunctionConfiguration) GoString() string
GoString returns the string representation
func (*FunctionConfiguration) SetCodeSha256 ¶ added in v1.5.0
func (s *FunctionConfiguration) SetCodeSha256(v string) *FunctionConfiguration
SetCodeSha256 sets the CodeSha256 field's value.
func (*FunctionConfiguration) SetCodeSize ¶ added in v1.5.0
func (s *FunctionConfiguration) SetCodeSize(v int64) *FunctionConfiguration
SetCodeSize sets the CodeSize field's value.
func (*FunctionConfiguration) SetDeadLetterConfig ¶ added in v1.6.0
func (s *FunctionConfiguration) SetDeadLetterConfig(v *DeadLetterConfig) *FunctionConfiguration
SetDeadLetterConfig sets the DeadLetterConfig field's value.
func (*FunctionConfiguration) SetDescription ¶ added in v1.5.0
func (s *FunctionConfiguration) SetDescription(v string) *FunctionConfiguration
SetDescription sets the Description field's value.
func (*FunctionConfiguration) SetEnvironment ¶ added in v1.5.8
func (s *FunctionConfiguration) SetEnvironment(v *EnvironmentResponse) *FunctionConfiguration
SetEnvironment sets the Environment field's value.
func (*FunctionConfiguration) SetFunctionArn ¶ added in v1.5.0
func (s *FunctionConfiguration) SetFunctionArn(v string) *FunctionConfiguration
SetFunctionArn sets the FunctionArn field's value.
func (*FunctionConfiguration) SetFunctionName ¶ added in v1.5.0
func (s *FunctionConfiguration) SetFunctionName(v string) *FunctionConfiguration
SetFunctionName sets the FunctionName field's value.
func (*FunctionConfiguration) SetHandler ¶ added in v1.5.0
func (s *FunctionConfiguration) SetHandler(v string) *FunctionConfiguration
SetHandler sets the Handler field's value.
func (*FunctionConfiguration) SetKMSKeyArn ¶ added in v1.5.8
func (s *FunctionConfiguration) SetKMSKeyArn(v string) *FunctionConfiguration
SetKMSKeyArn sets the KMSKeyArn field's value.
func (*FunctionConfiguration) SetLastModified ¶ added in v1.5.0
func (s *FunctionConfiguration) SetLastModified(v string) *FunctionConfiguration
SetLastModified sets the LastModified field's value.
func (*FunctionConfiguration) SetMemorySize ¶ added in v1.5.0
func (s *FunctionConfiguration) SetMemorySize(v int64) *FunctionConfiguration
SetMemorySize sets the MemorySize field's value.
func (*FunctionConfiguration) SetRole ¶ added in v1.5.0
func (s *FunctionConfiguration) SetRole(v string) *FunctionConfiguration
SetRole sets the Role field's value.
func (*FunctionConfiguration) SetRuntime ¶ added in v1.5.0
func (s *FunctionConfiguration) SetRuntime(v string) *FunctionConfiguration
SetRuntime sets the Runtime field's value.
func (*FunctionConfiguration) SetTimeout ¶ added in v1.5.0
func (s *FunctionConfiguration) SetTimeout(v int64) *FunctionConfiguration
SetTimeout sets the Timeout field's value.
func (*FunctionConfiguration) SetVersion ¶ added in v1.5.0
func (s *FunctionConfiguration) SetVersion(v string) *FunctionConfiguration
SetVersion sets the Version field's value.
func (*FunctionConfiguration) SetVpcConfig ¶ added in v1.5.0
func (s *FunctionConfiguration) SetVpcConfig(v *VpcConfigResponse) *FunctionConfiguration
SetVpcConfig sets the VpcConfig field's value.
func (FunctionConfiguration) String ¶ added in v0.6.6
func (s FunctionConfiguration) String() string
String returns the string representation
type GetAccountSettingsInput ¶ added in v1.6.0
type GetAccountSettingsInput struct {
// contains filtered or unexported fields
}
func (GetAccountSettingsInput) GoString ¶ added in v1.6.0
func (s GetAccountSettingsInput) GoString() string
GoString returns the string representation
func (GetAccountSettingsInput) String ¶ added in v1.6.0
func (s GetAccountSettingsInput) String() string
String returns the string representation
type GetAccountSettingsOutput ¶ added in v1.6.0
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 ¶ added in v1.6.0
func (s GetAccountSettingsOutput) GoString() string
GoString returns the string representation
func (*GetAccountSettingsOutput) SetAccountLimit ¶ added in v1.6.0
func (s *GetAccountSettingsOutput) SetAccountLimit(v *AccountLimit) *GetAccountSettingsOutput
SetAccountLimit sets the AccountLimit field's value.
func (*GetAccountSettingsOutput) SetAccountUsage ¶ added in v1.6.0
func (s *GetAccountSettingsOutput) SetAccountUsage(v *AccountUsage) *GetAccountSettingsOutput
SetAccountUsage sets the AccountUsage field's value.
func (GetAccountSettingsOutput) String ¶ added in v1.6.0
func (s GetAccountSettingsOutput) String() string
String returns the string representation
type GetAliasInput ¶ added in v0.9.14
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. // // 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 ¶ added in v0.9.14
func (s GetAliasInput) GoString() string
GoString returns the string representation
func (*GetAliasInput) SetFunctionName ¶ added in v1.5.0
func (s *GetAliasInput) SetFunctionName(v string) *GetAliasInput
SetFunctionName sets the FunctionName field's value.
func (*GetAliasInput) SetName ¶ added in v1.5.0
func (s *GetAliasInput) SetName(v string) *GetAliasInput
SetName sets the Name field's value.
func (GetAliasInput) String ¶ added in v0.9.14
func (s GetAliasInput) String() string
String returns the string representation
func (*GetAliasInput) Validate ¶ added in v1.1.22
func (s *GetAliasInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetEventSourceMappingInput ¶
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 ¶ added in v0.6.6
func (s GetEventSourceMappingInput) GoString() string
GoString returns the string representation
func (*GetEventSourceMappingInput) SetUUID ¶ added in v1.5.0
func (s *GetEventSourceMappingInput) SetUUID(v string) *GetEventSourceMappingInput
SetUUID sets the UUID field's value.
func (GetEventSourceMappingInput) String ¶ added in v0.6.6
func (s GetEventSourceMappingInput) String() string
String returns the string representation
func (*GetEventSourceMappingInput) Validate ¶ added in v1.1.22
func (s *GetEventSourceMappingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetFunctionConfigurationInput ¶
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 character 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 ¶ added in v0.6.6
func (s GetFunctionConfigurationInput) GoString() string
GoString returns the string representation
func (*GetFunctionConfigurationInput) SetFunctionName ¶ added in v1.5.0
func (s *GetFunctionConfigurationInput) SetFunctionName(v string) *GetFunctionConfigurationInput
SetFunctionName sets the FunctionName field's value.
func (*GetFunctionConfigurationInput) SetQualifier ¶ added in v1.5.0
func (s *GetFunctionConfigurationInput) SetQualifier(v string) *GetFunctionConfigurationInput
SetQualifier sets the Qualifier field's value.
func (GetFunctionConfigurationInput) String ¶ added in v0.6.6
func (s GetFunctionConfigurationInput) String() string
String returns the string representation
func (*GetFunctionConfigurationInput) Validate ¶ added in v1.1.22
func (s *GetFunctionConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetFunctionInput ¶
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 character in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // Using 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 ¶ added in v0.6.6
func (s GetFunctionInput) GoString() string
GoString returns the string representation
func (*GetFunctionInput) SetFunctionName ¶ added in v1.5.0
func (s *GetFunctionInput) SetFunctionName(v string) *GetFunctionInput
SetFunctionName sets the FunctionName field's value.
func (*GetFunctionInput) SetQualifier ¶ added in v1.5.0
func (s *GetFunctionInput) SetQualifier(v string) *GetFunctionInput
SetQualifier sets the Qualifier field's value.
func (GetFunctionInput) String ¶ added in v0.6.6
func (s GetFunctionInput) String() string
String returns the string representation
func (*GetFunctionInput) Validate ¶ added in v1.1.22
func (s *GetFunctionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetFunctionOutput ¶
type GetFunctionOutput struct { // The object for the Lambda function location. Code *FunctionCodeLocation `type:"structure"` // A complex type that describes function metadata. Configuration *FunctionConfiguration `type:"structure"` // contains filtered or unexported fields }
This response contains the object for the Lambda function location (see FunctionCodeLocation.
func (GetFunctionOutput) GoString ¶ added in v0.6.6
func (s GetFunctionOutput) GoString() string
GoString returns the string representation
func (*GetFunctionOutput) SetCode ¶ added in v1.5.0
func (s *GetFunctionOutput) SetCode(v *FunctionCodeLocation) *GetFunctionOutput
SetCode sets the Code field's value.
func (*GetFunctionOutput) SetConfiguration ¶ added in v1.5.0
func (s *GetFunctionOutput) SetConfiguration(v *FunctionConfiguration) *GetFunctionOutput
SetConfiguration sets the Configuration field's value.
func (GetFunctionOutput) String ¶ added in v0.6.6
func (s GetFunctionOutput) String() string
String returns the string representation
type GetPolicyInput ¶
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 character 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 ¶ added in v0.6.6
func (s GetPolicyInput) GoString() string
GoString returns the string representation
func (*GetPolicyInput) SetFunctionName ¶ added in v1.5.0
func (s *GetPolicyInput) SetFunctionName(v string) *GetPolicyInput
SetFunctionName sets the FunctionName field's value.
func (*GetPolicyInput) SetQualifier ¶ added in v1.5.0
func (s *GetPolicyInput) SetQualifier(v string) *GetPolicyInput
SetQualifier sets the Qualifier field's value.
func (GetPolicyInput) String ¶ added in v0.6.6
func (s GetPolicyInput) String() string
String returns the string representation
func (*GetPolicyInput) Validate ¶ added in v1.1.22
func (s *GetPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetPolicyOutput ¶
type GetPolicyOutput struct { // The resource 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"` // contains filtered or unexported fields }
func (GetPolicyOutput) GoString ¶ added in v0.6.6
func (s GetPolicyOutput) GoString() string
GoString returns the string representation
func (*GetPolicyOutput) SetPolicy ¶ added in v1.5.0
func (s *GetPolicyOutput) SetPolicy(v string) *GetPolicyOutput
SetPolicy sets the Policy field's value.
func (GetPolicyOutput) String ¶ added in v0.6.6
func (s GetPolicyOutput) String() string
String returns the string representation
type InvokeAsyncInput ¶
type InvokeAsyncInput struct { // The Lambda function name. // // 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 ¶ added in v0.6.6
func (s InvokeAsyncInput) GoString() string
GoString returns the string representation
func (*InvokeAsyncInput) SetFunctionName ¶ added in v1.5.0
func (s *InvokeAsyncInput) SetFunctionName(v string) *InvokeAsyncInput
SetFunctionName sets the FunctionName field's value.
func (*InvokeAsyncInput) SetInvokeArgs ¶ added in v1.5.0
func (s *InvokeAsyncInput) SetInvokeArgs(v io.ReadSeeker) *InvokeAsyncInput
SetInvokeArgs sets the InvokeArgs field's value.
func (InvokeAsyncInput) String ¶ added in v0.6.6
func (s InvokeAsyncInput) String() string
String returns the string representation
func (*InvokeAsyncInput) Validate ¶ added in v1.1.22
func (s *InvokeAsyncInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InvokeAsyncOutput ¶
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 ¶ added in v0.6.6
func (s InvokeAsyncOutput) GoString() string
GoString returns the string representation
func (*InvokeAsyncOutput) SetStatus ¶ added in v1.5.0
func (s *InvokeAsyncOutput) SetStatus(v int64) *InvokeAsyncOutput
SetStatus sets the Status field's value.
func (InvokeAsyncOutput) String ¶ added in v0.6.6
func (s InvokeAsyncOutput) String() string
String returns the string representation
type InvokeInput ¶
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. 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 character 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 ¶ added in v0.6.6
func (s InvokeInput) GoString() string
GoString returns the string representation
func (*InvokeInput) SetClientContext ¶ added in v1.5.0
func (s *InvokeInput) SetClientContext(v string) *InvokeInput
SetClientContext sets the ClientContext field's value.
func (*InvokeInput) SetFunctionName ¶ added in v1.5.0
func (s *InvokeInput) SetFunctionName(v string) *InvokeInput
SetFunctionName sets the FunctionName field's value.
func (*InvokeInput) SetInvocationType ¶ added in v1.5.0
func (s *InvokeInput) SetInvocationType(v string) *InvokeInput
SetInvocationType sets the InvocationType field's value.
func (*InvokeInput) SetLogType ¶ added in v1.5.0
func (s *InvokeInput) SetLogType(v string) *InvokeInput
SetLogType sets the LogType field's value.
func (*InvokeInput) SetPayload ¶ added in v1.5.0
func (s *InvokeInput) SetPayload(v []byte) *InvokeInput
SetPayload sets the Payload field's value.
func (*InvokeInput) SetQualifier ¶ added in v1.5.0
func (s *InvokeInput) SetQualifier(v string) *InvokeInput
SetQualifier sets the Qualifier field's value.
func (InvokeInput) String ¶ added in v0.6.6
func (s InvokeInput) String() string
String returns the string representation
func (*InvokeInput) Validate ¶ added in v1.1.22
func (s *InvokeInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InvokeOutput ¶
type InvokeOutput struct { // 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 RequestResonse 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 ¶ added in v0.6.6
func (s InvokeOutput) GoString() string
GoString returns the string representation
func (*InvokeOutput) SetFunctionError ¶ added in v1.5.0
func (s *InvokeOutput) SetFunctionError(v string) *InvokeOutput
SetFunctionError sets the FunctionError field's value.
func (*InvokeOutput) SetLogResult ¶ added in v1.5.0
func (s *InvokeOutput) SetLogResult(v string) *InvokeOutput
SetLogResult sets the LogResult field's value.
func (*InvokeOutput) SetPayload ¶ added in v1.5.0
func (s *InvokeOutput) SetPayload(v []byte) *InvokeOutput
SetPayload sets the Payload field's value.
func (*InvokeOutput) SetStatusCode ¶ added in v1.5.0
func (s *InvokeOutput) SetStatusCode(v int64) *InvokeOutput
SetStatusCode sets the StatusCode field's value.
func (InvokeOutput) String ¶ added in v0.6.6
func (s InvokeOutput) String() string
String returns the string representation
type Lambda ¶
Overview
This is the AWS Lambda API Reference. The AWS Lambda Developer Guide provides additional information. For the service overview, go to What is AWS Lambda (http://docs.aws.amazon.com/lambda/latest/dg/welcome.html), and for information about how the service works, go to AWS Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html) in the AWS Lambda Developer Guide. The service client's operations are safe to be used concurrently. It is not safe to mutate any of the client's properties though.
func New ¶
func New(p client.ConfigProvider, cfgs ...*aws.Config) *Lambda
New creates a new instance of the Lambda client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.
Example:
// 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 ¶
func (c *Lambda) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error)
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.AddPermissionInput{ Action: aws.String("Action"), // Required FunctionName: aws.String("FunctionName"), // Required Principal: aws.String("Principal"), // Required StatementId: aws.String("StatementId"), // Required EventSourceToken: aws.String("EventSourceToken"), Qualifier: aws.String("Qualifier"), SourceAccount: aws.String("SourceOwner"), SourceArn: aws.String("Arn"), } resp, err := svc.AddPermission(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) AddPermissionRequest ¶
func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.Request, output *AddPermissionOutput)
AddPermissionRequest generates a "aws/request.Request" representing the client's request for the AddPermission operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See AddPermission for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the AddPermission method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) CreateAlias ¶ added in v0.9.14
func (c *Lambda) CreateAlias(input *CreateAliasInput) (*AliasConfiguration, error)
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.CreateAliasInput{ FunctionName: aws.String("FunctionName"), // Required FunctionVersion: aws.String("Version"), // Required Name: aws.String("Alias"), // Required Description: aws.String("Description"), } resp, err := svc.CreateAlias(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) CreateAliasRequest ¶ added in v0.9.14
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 can be used to capture response data after the request's "Send" method is called.
See CreateAlias for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateAlias method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) CreateEventSourceMapping ¶
func (c *Lambda) CreateEventSourceMapping(input *CreateEventSourceMappingInput) (*EventSourceMappingConfiguration, error)
* ResourceNotFoundException The resource (for example, a Lambda function or access policy statement) specified in the request does not exist.
Example ¶
package main import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.CreateEventSourceMappingInput{ EventSourceArn: aws.String("Arn"), // Required FunctionName: aws.String("FunctionName"), // Required StartingPosition: aws.String("EventSourcePosition"), // Required BatchSize: aws.Int64(1), Enabled: aws.Bool(true), StartingPositionTimestamp: aws.Time(time.Now()), } resp, err := svc.CreateEventSourceMapping(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) CreateEventSourceMappingRequest ¶
func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration)
CreateEventSourceMappingRequest generates a "aws/request.Request" representing the client's request for the CreateEventSourceMapping operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See CreateEventSourceMapping for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateEventSourceMapping method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) CreateFunction ¶
func (c *Lambda) CreateFunction(input *CreateFunctionInput) (*FunctionConfiguration, error)
* CodeStorageExceededException You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html)
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.CreateFunctionInput{ Code: &lambda.FunctionCode{ // Required S3Bucket: aws.String("S3Bucket"), S3Key: aws.String("S3Key"), S3ObjectVersion: aws.String("S3ObjectVersion"), ZipFile: []byte("PAYLOAD"), }, FunctionName: aws.String("FunctionName"), // Required Handler: aws.String("Handler"), // Required Role: aws.String("RoleArn"), // Required Runtime: aws.String("Runtime"), // Required DeadLetterConfig: &lambda.DeadLetterConfig{ TargetArn: aws.String("ResourceArn"), }, Description: aws.String("Description"), Environment: &lambda.Environment{ Variables: map[string]*string{ "Key": aws.String("EnvironmentVariableValue"), // Required // More values... }, }, KMSKeyArn: aws.String("KMSKeyArn"), MemorySize: aws.Int64(1), Publish: aws.Bool(true), Timeout: aws.Int64(1), VpcConfig: &lambda.VpcConfig{ SecurityGroupIds: []*string{ aws.String("SecurityGroupId"), // Required // More values... }, SubnetIds: []*string{ aws.String("SubnetId"), // Required // More values... }, }, } resp, err := svc.CreateFunction(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) CreateFunctionRequest ¶
func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request.Request, output *FunctionConfiguration)
CreateFunctionRequest generates a "aws/request.Request" representing the client's request for the CreateFunction operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See CreateFunction for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateFunction method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) DeleteAlias ¶ added in v0.9.14
func (c *Lambda) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error)
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.DeleteAliasInput{ FunctionName: aws.String("FunctionName"), // Required Name: aws.String("Alias"), // Required } resp, err := svc.DeleteAlias(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) DeleteAliasRequest ¶ added in v0.9.14
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 can be used to capture response data after the request's "Send" method is called.
See DeleteAlias for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteAlias method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) DeleteEventSourceMapping ¶
func (c *Lambda) DeleteEventSourceMapping(input *DeleteEventSourceMappingInput) (*EventSourceMappingConfiguration, error)
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.DeleteEventSourceMappingInput{ UUID: aws.String("String"), // Required } resp, err := svc.DeleteEventSourceMapping(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) DeleteEventSourceMappingRequest ¶
func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration)
DeleteEventSourceMappingRequest generates a "aws/request.Request" representing the client's request for the DeleteEventSourceMapping operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DeleteEventSourceMapping for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteEventSourceMapping method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) DeleteFunction ¶
func (c *Lambda) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutput, error)
* 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.
* ResourceConflictException The resource already exists.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.DeleteFunctionInput{ FunctionName: aws.String("FunctionName"), // Required Qualifier: aws.String("Qualifier"), } resp, err := svc.DeleteFunction(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) DeleteFunctionRequest ¶
func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request.Request, output *DeleteFunctionOutput)
DeleteFunctionRequest generates a "aws/request.Request" representing the client's request for the DeleteFunction operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See DeleteFunction for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteFunction method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) GetAccountSettings ¶ added in v1.6.0
func (c *Lambda) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error)
* ServiceException The AWS Lambda service encountered an internal error.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) var params *lambda.GetAccountSettingsInput resp, err := svc.GetAccountSettings(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) GetAccountSettingsRequest ¶ added in v1.6.0
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 can be used to capture response data after the request's "Send" method is called.
See GetAccountSettings for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetAccountSettings method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) GetAlias ¶ added in v0.9.14
func (c *Lambda) GetAlias(input *GetAliasInput) (*AliasConfiguration, error)
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.GetAliasInput{ FunctionName: aws.String("FunctionName"), // Required Name: aws.String("Alias"), // Required } resp, err := svc.GetAlias(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) GetAliasRequest ¶ added in v0.9.14
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 can be used to capture response data after the request's "Send" method is called.
See GetAlias for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetAlias method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) GetEventSourceMapping ¶
func (c *Lambda) GetEventSourceMapping(input *GetEventSourceMappingInput) (*EventSourceMappingConfiguration, error)
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.GetEventSourceMappingInput{ UUID: aws.String("String"), // Required } resp, err := svc.GetEventSourceMapping(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) GetEventSourceMappingRequest ¶
func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration)
GetEventSourceMappingRequest generates a "aws/request.Request" representing the client's request for the GetEventSourceMapping operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetEventSourceMapping for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetEventSourceMapping method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) GetFunction ¶
func (c *Lambda) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error)
* 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.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.GetFunctionInput{ FunctionName: aws.String("FunctionName"), // Required Qualifier: aws.String("Qualifier"), } resp, err := svc.GetFunction(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) GetFunctionConfiguration ¶
func (c *Lambda) GetFunctionConfiguration(input *GetFunctionConfigurationInput) (*FunctionConfiguration, error)
* 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.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.GetFunctionConfigurationInput{ FunctionName: aws.String("FunctionName"), // Required Qualifier: aws.String("Qualifier"), } resp, err := svc.GetFunctionConfiguration(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) GetFunctionConfigurationRequest ¶
func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration)
GetFunctionConfigurationRequest generates a "aws/request.Request" representing the client's request for the GetFunctionConfiguration operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetFunctionConfiguration for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetFunctionConfiguration method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) GetFunctionRequest ¶
func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Request, output *GetFunctionOutput)
GetFunctionRequest generates a "aws/request.Request" representing the client's request for the GetFunction operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetFunction for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetFunction method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) GetPolicy ¶
func (c *Lambda) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error)
* 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.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.GetPolicyInput{ FunctionName: aws.String("FunctionName"), // Required Qualifier: aws.String("Qualifier"), } resp, err := svc.GetPolicy(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) GetPolicyRequest ¶
func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, output *GetPolicyOutput)
GetPolicyRequest generates a "aws/request.Request" representing the client's request for the GetPolicy operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See GetPolicy for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the GetPolicy method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) Invoke ¶
func (c *Lambda) Invoke(input *InvokeInput) (*InvokeOutput, error)
* InvalidSubnetIDException The Subnet ID provided in the Lambda function VPC configuration is invalid.
* InvalidSecurityGroupIDException The Security Group ID provided in the Lambda function VPC configuration is invalid.
* InvalidZipFileException AWS Lambda could not unzip the function zip file.
* KMSDisabledException Lambda was unable to decrypt the environment variables because the KMS key used is disabled. Please check the Lambda function's KMS key settings.
* KMSInvalidStateException Lambda was unable to decrypt the environment variables because the KMS key used is in an invalid state for Decrypt. Please check the function's KMS key settings.
* KMSAccessDeniedException Lambda was unable to decrypt the environment variables because KMS access was denied. Please check the Lambda function's KMS permissions.
* KMSNotFoundException Lambda was unable to decrypt the environment variables because the KMS key was not found. Please check the function's KMS key settings.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.InvokeInput{ FunctionName: aws.String("FunctionName"), // Required ClientContext: aws.String("String"), InvocationType: aws.String("InvocationType"), LogType: aws.String("LogType"), Payload: []byte("PAYLOAD"), Qualifier: aws.String("Qualifier"), } resp, err := svc.Invoke(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) InvokeAsync ¶
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:
ServiceException The AWS Lambda service encountered an internal error.
ResourceNotFoundException The resource (for example, a Lambda function or access policy statement) specified in the request does not exist.
InvalidRequestContentException The request body could not be parsed as JSON.
Example ¶
package main import ( "bytes" "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.InvokeAsyncInput{ FunctionName: aws.String("FunctionName"), // Required InvokeArgs: bytes.NewReader([]byte("PAYLOAD")), // Required } resp, err := svc.InvokeAsync(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) InvokeAsyncRequest ¶
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 can be used to capture response data after the request's "Send" method is called.
See InvokeAsync for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the InvokeAsync method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) InvokeRequest ¶
func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output *InvokeOutput)
InvokeRequest generates a "aws/request.Request" representing the client's request for the Invoke operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See Invoke for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the Invoke method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) ListAliases ¶ added in v0.9.14
func (c *Lambda) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error)
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.ListAliasesInput{ FunctionName: aws.String("FunctionName"), // Required FunctionVersion: aws.String("Version"), Marker: aws.String("String"), MaxItems: aws.Int64(1), } resp, err := svc.ListAliases(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) ListAliasesRequest ¶ added in v0.9.14
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 can be used to capture response data after the request's "Send" method is called.
See ListAliases for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ListAliases method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) ListEventSourceMappings ¶
func (c *Lambda) ListEventSourceMappings(input *ListEventSourceMappingsInput) (*ListEventSourceMappingsOutput, error)
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.ListEventSourceMappingsInput{ EventSourceArn: aws.String("Arn"), FunctionName: aws.String("FunctionName"), Marker: aws.String("String"), MaxItems: aws.Int64(1), } resp, err := svc.ListEventSourceMappings(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) ListEventSourceMappingsPages ¶
func (c *Lambda) ListEventSourceMappingsPages(input *ListEventSourceMappingsInput, fn func(p *ListEventSourceMappingsOutput, lastPage bool) (shouldContinue 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) ListEventSourceMappingsRequest ¶
func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsInput) (req *request.Request, output *ListEventSourceMappingsOutput)
ListEventSourceMappingsRequest generates a "aws/request.Request" representing the client's request for the ListEventSourceMappings operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See ListEventSourceMappings for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ListEventSourceMappings method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) ListFunctions ¶
func (c *Lambda) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error)
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.ListFunctionsInput{ Marker: aws.String("String"), MaxItems: aws.Int64(1), } resp, err := svc.ListFunctions(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) ListFunctionsPages ¶
func (c *Lambda) ListFunctionsPages(input *ListFunctionsInput, fn func(p *ListFunctionsOutput, lastPage bool) (shouldContinue 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) ListFunctionsRequest ¶
func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.Request, output *ListFunctionsOutput)
ListFunctionsRequest generates a "aws/request.Request" representing the client's request for the ListFunctions operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See ListFunctions for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ListFunctions method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) ListVersionsByFunction ¶ added in v0.9.14
func (c *Lambda) ListVersionsByFunction(input *ListVersionsByFunctionInput) (*ListVersionsByFunctionOutput, error)
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.ListVersionsByFunctionInput{ FunctionName: aws.String("FunctionName"), // Required Marker: aws.String("String"), MaxItems: aws.Int64(1), } resp, err := svc.ListVersionsByFunction(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) ListVersionsByFunctionRequest ¶ added in v0.9.14
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 can be used to capture response data after the request's "Send" method is called.
See ListVersionsByFunction for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ListVersionsByFunction method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) PublishVersion ¶ added in v0.9.14
func (c *Lambda) PublishVersion(input *PublishVersionInput) (*FunctionConfiguration, error)
* CodeStorageExceededException You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html)
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.PublishVersionInput{ FunctionName: aws.String("FunctionName"), // Required CodeSha256: aws.String("String"), Description: aws.String("Description"), } resp, err := svc.PublishVersion(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) PublishVersionRequest ¶ added in v0.9.14
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 can be used to capture response data after the request's "Send" method is called.
See PublishVersion for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the PublishVersion method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) RemovePermission ¶
func (c *Lambda) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error)
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.RemovePermissionInput{ FunctionName: aws.String("FunctionName"), // Required StatementId: aws.String("StatementId"), // Required Qualifier: aws.String("Qualifier"), } resp, err := svc.RemovePermission(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) RemovePermissionRequest ¶
func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *request.Request, output *RemovePermissionOutput)
RemovePermissionRequest generates a "aws/request.Request" representing the client's request for the RemovePermission operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See RemovePermission for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the RemovePermission method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) UpdateAlias ¶ added in v0.9.14
func (c *Lambda) UpdateAlias(input *UpdateAliasInput) (*AliasConfiguration, error)
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.UpdateAliasInput{ FunctionName: aws.String("FunctionName"), // Required Name: aws.String("Alias"), // Required Description: aws.String("Description"), FunctionVersion: aws.String("Version"), } resp, err := svc.UpdateAlias(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) UpdateAliasRequest ¶ added in v0.9.14
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 can be used to capture response data after the request's "Send" method is called.
See UpdateAlias for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateAlias method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) UpdateEventSourceMapping ¶
func (c *Lambda) UpdateEventSourceMapping(input *UpdateEventSourceMappingInput) (*EventSourceMappingConfiguration, error)
* ResourceConflictException The resource already exists.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.UpdateEventSourceMappingInput{ UUID: aws.String("String"), // Required BatchSize: aws.Int64(1), Enabled: aws.Bool(true), FunctionName: aws.String("FunctionName"), } resp, err := svc.UpdateEventSourceMapping(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) UpdateEventSourceMappingRequest ¶
func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration)
UpdateEventSourceMappingRequest generates a "aws/request.Request" representing the client's request for the UpdateEventSourceMapping operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See UpdateEventSourceMapping for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateEventSourceMapping method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) UpdateFunctionCode ¶
func (c *Lambda) UpdateFunctionCode(input *UpdateFunctionCodeInput) (*FunctionConfiguration, error)
* CodeStorageExceededException You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html)
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.UpdateFunctionCodeInput{ FunctionName: aws.String("FunctionName"), // Required Publish: aws.Bool(true), S3Bucket: aws.String("S3Bucket"), S3Key: aws.String("S3Key"), S3ObjectVersion: aws.String("S3ObjectVersion"), ZipFile: []byte("PAYLOAD"), } resp, err := svc.UpdateFunctionCode(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) UpdateFunctionCodeRequest ¶
func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req *request.Request, output *FunctionConfiguration)
UpdateFunctionCodeRequest generates a "aws/request.Request" representing the client's request for the UpdateFunctionCode operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See UpdateFunctionCode for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateFunctionCode method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
func (*Lambda) UpdateFunctionConfiguration ¶
func (c *Lambda) UpdateFunctionConfiguration(input *UpdateFunctionConfigurationInput) (*FunctionConfiguration, error)
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/lambda" ) func main() { sess, err := session.NewSession() if err != nil { fmt.Println("failed to create session,", err) return } svc := lambda.New(sess) params := &lambda.UpdateFunctionConfigurationInput{ FunctionName: aws.String("FunctionName"), // Required DeadLetterConfig: &lambda.DeadLetterConfig{ TargetArn: aws.String("ResourceArn"), }, Description: aws.String("Description"), Environment: &lambda.Environment{ Variables: map[string]*string{ "Key": aws.String("EnvironmentVariableValue"), // Required // More values... }, }, Handler: aws.String("Handler"), KMSKeyArn: aws.String("KMSKeyArn"), MemorySize: aws.Int64(1), Role: aws.String("RoleArn"), Runtime: aws.String("Runtime"), Timeout: aws.Int64(1), VpcConfig: &lambda.VpcConfig{ SecurityGroupIds: []*string{ aws.String("SecurityGroupId"), // Required // More values... }, SubnetIds: []*string{ aws.String("SubnetId"), // Required // More values... }, }, } resp, err := svc.UpdateFunctionConfiguration(params) if err != nil { // Print the error, cast err to awserr.Error to get the Code and // Message from an error. fmt.Println(err.Error()) return } // Pretty-print the response data. fmt.Println(resp) }
Output:
func (*Lambda) UpdateFunctionConfigurationRequest ¶
func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration)
UpdateFunctionConfigurationRequest generates a "aws/request.Request" representing the client's request for the UpdateFunctionConfiguration operation. The "output" return value can be used to capture response data after the request's "Send" method is called.
See UpdateFunctionConfiguration for usage and error information.
Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateFunctionConfiguration method directly instead.
Note: You must call the "Send" method on the returned request object in order to execute the request.
// 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) }
type ListAliasesInput ¶ added in v0.9.14
type ListAliasesInput struct { // Lambda function name for which the alias is created. // // 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 ¶ added in v0.9.14
func (s ListAliasesInput) GoString() string
GoString returns the string representation
func (*ListAliasesInput) SetFunctionName ¶ added in v1.5.0
func (s *ListAliasesInput) SetFunctionName(v string) *ListAliasesInput
SetFunctionName sets the FunctionName field's value.
func (*ListAliasesInput) SetFunctionVersion ¶ added in v1.5.0
func (s *ListAliasesInput) SetFunctionVersion(v string) *ListAliasesInput
SetFunctionVersion sets the FunctionVersion field's value.
func (*ListAliasesInput) SetMarker ¶ added in v1.5.0
func (s *ListAliasesInput) SetMarker(v string) *ListAliasesInput
SetMarker sets the Marker field's value.
func (*ListAliasesInput) SetMaxItems ¶ added in v1.5.0
func (s *ListAliasesInput) SetMaxItems(v int64) *ListAliasesInput
SetMaxItems sets the MaxItems field's value.
func (ListAliasesInput) String ¶ added in v0.9.14
func (s ListAliasesInput) String() string
String returns the string representation
func (*ListAliasesInput) Validate ¶ added in v1.1.22
func (s *ListAliasesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListAliasesOutput ¶ added in v0.9.14
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 ¶ added in v0.9.14
func (s ListAliasesOutput) GoString() string
GoString returns the string representation
func (*ListAliasesOutput) SetAliases ¶ added in v1.5.0
func (s *ListAliasesOutput) SetAliases(v []*AliasConfiguration) *ListAliasesOutput
SetAliases sets the Aliases field's value.
func (*ListAliasesOutput) SetNextMarker ¶ added in v1.5.0
func (s *ListAliasesOutput) SetNextMarker(v string) *ListAliasesOutput
SetNextMarker sets the NextMarker field's value.
func (ListAliasesOutput) String ¶ added in v0.9.14
func (s ListAliasesOutput) String() string
String returns the string representation
type ListEventSourceMappingsInput ¶
type ListEventSourceMappingsInput struct { // The Amazon Resource Name (ARN) of the Amazon Kinesis stream. (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 character 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 ¶ added in v0.6.6
func (s ListEventSourceMappingsInput) GoString() string
GoString returns the string representation
func (*ListEventSourceMappingsInput) SetEventSourceArn ¶ added in v1.5.0
func (s *ListEventSourceMappingsInput) SetEventSourceArn(v string) *ListEventSourceMappingsInput
SetEventSourceArn sets the EventSourceArn field's value.
func (*ListEventSourceMappingsInput) SetFunctionName ¶ added in v1.5.0
func (s *ListEventSourceMappingsInput) SetFunctionName(v string) *ListEventSourceMappingsInput
SetFunctionName sets the FunctionName field's value.
func (*ListEventSourceMappingsInput) SetMarker ¶ added in v1.5.0
func (s *ListEventSourceMappingsInput) SetMarker(v string) *ListEventSourceMappingsInput
SetMarker sets the Marker field's value.
func (*ListEventSourceMappingsInput) SetMaxItems ¶ added in v1.5.0
func (s *ListEventSourceMappingsInput) SetMaxItems(v int64) *ListEventSourceMappingsInput
SetMaxItems sets the MaxItems field's value.
func (ListEventSourceMappingsInput) String ¶ added in v0.6.6
func (s ListEventSourceMappingsInput) String() string
String returns the string representation
func (*ListEventSourceMappingsInput) Validate ¶ added in v1.1.22
func (s *ListEventSourceMappingsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListEventSourceMappingsOutput ¶
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 ¶ added in v0.6.6
func (s ListEventSourceMappingsOutput) GoString() string
GoString returns the string representation
func (*ListEventSourceMappingsOutput) SetEventSourceMappings ¶ added in v1.5.0
func (s *ListEventSourceMappingsOutput) SetEventSourceMappings(v []*EventSourceMappingConfiguration) *ListEventSourceMappingsOutput
SetEventSourceMappings sets the EventSourceMappings field's value.
func (*ListEventSourceMappingsOutput) SetNextMarker ¶ added in v1.5.0
func (s *ListEventSourceMappingsOutput) SetNextMarker(v string) *ListEventSourceMappingsOutput
SetNextMarker sets the NextMarker field's value.
func (ListEventSourceMappingsOutput) String ¶ added in v0.6.6
func (s ListEventSourceMappingsOutput) String() string
String returns the string representation
type ListFunctionsInput ¶
type ListFunctionsInput struct { // 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 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 ¶ added in v0.6.6
func (s ListFunctionsInput) GoString() string
GoString returns the string representation
func (*ListFunctionsInput) SetMarker ¶ added in v1.5.0
func (s *ListFunctionsInput) SetMarker(v string) *ListFunctionsInput
SetMarker sets the Marker field's value.
func (*ListFunctionsInput) SetMaxItems ¶ added in v1.5.0
func (s *ListFunctionsInput) SetMaxItems(v int64) *ListFunctionsInput
SetMaxItems sets the MaxItems field's value.
func (ListFunctionsInput) String ¶ added in v0.6.6
func (s ListFunctionsInput) String() string
String returns the string representation
func (*ListFunctionsInput) Validate ¶ added in v1.1.22
func (s *ListFunctionsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListFunctionsOutput ¶
type ListFunctionsOutput struct { // A list of Lambda functions. Functions []*FunctionConfiguration `type:"list"` // 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 ¶ added in v0.6.6
func (s ListFunctionsOutput) GoString() string
GoString returns the string representation
func (*ListFunctionsOutput) SetFunctions ¶ added in v1.5.0
func (s *ListFunctionsOutput) SetFunctions(v []*FunctionConfiguration) *ListFunctionsOutput
SetFunctions sets the Functions field's value.
func (*ListFunctionsOutput) SetNextMarker ¶ added in v1.5.0
func (s *ListFunctionsOutput) SetNextMarker(v string) *ListFunctionsOutput
SetNextMarker sets the NextMarker field's value.
func (ListFunctionsOutput) String ¶ added in v0.6.6
func (s ListFunctionsOutput) String() string
String returns the string representation
type ListVersionsByFunctionInput ¶ added in v0.9.14
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 character 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 ¶ added in v0.9.14
func (s ListVersionsByFunctionInput) GoString() string
GoString returns the string representation
func (*ListVersionsByFunctionInput) SetFunctionName ¶ added in v1.5.0
func (s *ListVersionsByFunctionInput) SetFunctionName(v string) *ListVersionsByFunctionInput
SetFunctionName sets the FunctionName field's value.
func (*ListVersionsByFunctionInput) SetMarker ¶ added in v1.5.0
func (s *ListVersionsByFunctionInput) SetMarker(v string) *ListVersionsByFunctionInput
SetMarker sets the Marker field's value.
func (*ListVersionsByFunctionInput) SetMaxItems ¶ added in v1.5.0
func (s *ListVersionsByFunctionInput) SetMaxItems(v int64) *ListVersionsByFunctionInput
SetMaxItems sets the MaxItems field's value.
func (ListVersionsByFunctionInput) String ¶ added in v0.9.14
func (s ListVersionsByFunctionInput) String() string
String returns the string representation
func (*ListVersionsByFunctionInput) Validate ¶ added in v1.1.22
func (s *ListVersionsByFunctionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListVersionsByFunctionOutput ¶ added in v0.9.14
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 ¶ added in v0.9.14
func (s ListVersionsByFunctionOutput) GoString() string
GoString returns the string representation
func (*ListVersionsByFunctionOutput) SetNextMarker ¶ added in v1.5.0
func (s *ListVersionsByFunctionOutput) SetNextMarker(v string) *ListVersionsByFunctionOutput
SetNextMarker sets the NextMarker field's value.
func (*ListVersionsByFunctionOutput) SetVersions ¶ added in v1.5.0
func (s *ListVersionsByFunctionOutput) SetVersions(v []*FunctionConfiguration) *ListVersionsByFunctionOutput
SetVersions sets the Versions field's value.
func (ListVersionsByFunctionOutput) String ¶ added in v0.9.14
func (s ListVersionsByFunctionOutput) String() string
String returns the string representation
type PublishVersionInput ¶ added in v0.9.14
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 // value must match the SHA256 of the $LATEST version for the publication to // succeed. 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 character in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
func (PublishVersionInput) GoString ¶ added in v0.9.14
func (s PublishVersionInput) GoString() string
GoString returns the string representation
func (*PublishVersionInput) SetCodeSha256 ¶ added in v1.5.0
func (s *PublishVersionInput) SetCodeSha256(v string) *PublishVersionInput
SetCodeSha256 sets the CodeSha256 field's value.
func (*PublishVersionInput) SetDescription ¶ added in v1.5.0
func (s *PublishVersionInput) SetDescription(v string) *PublishVersionInput
SetDescription sets the Description field's value.
func (*PublishVersionInput) SetFunctionName ¶ added in v1.5.0
func (s *PublishVersionInput) SetFunctionName(v string) *PublishVersionInput
SetFunctionName sets the FunctionName field's value.
func (PublishVersionInput) String ¶ added in v0.9.14
func (s PublishVersionInput) String() string
String returns the string representation
func (*PublishVersionInput) Validate ¶ added in v1.1.22
func (s *PublishVersionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RemovePermissionInput ¶
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 character 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"` // 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 ¶ added in v0.6.6
func (s RemovePermissionInput) GoString() string
GoString returns the string representation
func (*RemovePermissionInput) SetFunctionName ¶ added in v1.5.0
func (s *RemovePermissionInput) SetFunctionName(v string) *RemovePermissionInput
SetFunctionName sets the FunctionName field's value.
func (*RemovePermissionInput) SetQualifier ¶ added in v1.5.0
func (s *RemovePermissionInput) SetQualifier(v string) *RemovePermissionInput
SetQualifier sets the Qualifier field's value.
func (*RemovePermissionInput) SetStatementId ¶ added in v1.5.0
func (s *RemovePermissionInput) SetStatementId(v string) *RemovePermissionInput
SetStatementId sets the StatementId field's value.
func (RemovePermissionInput) String ¶ added in v0.6.6
func (s RemovePermissionInput) String() string
String returns the string representation
func (*RemovePermissionInput) Validate ¶ added in v1.1.22
func (s *RemovePermissionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RemovePermissionOutput ¶
type RemovePermissionOutput struct {
// contains filtered or unexported fields
}
func (RemovePermissionOutput) GoString ¶ added in v0.6.6
func (s RemovePermissionOutput) GoString() string
GoString returns the string representation
func (RemovePermissionOutput) String ¶ added in v0.6.6
func (s RemovePermissionOutput) String() string
String returns the string representation
type UpdateAliasInput ¶ added in v0.9.14
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. // // 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"` // contains filtered or unexported fields }
func (UpdateAliasInput) GoString ¶ added in v0.9.14
func (s UpdateAliasInput) GoString() string
GoString returns the string representation
func (*UpdateAliasInput) SetDescription ¶ added in v1.5.0
func (s *UpdateAliasInput) SetDescription(v string) *UpdateAliasInput
SetDescription sets the Description field's value.
func (*UpdateAliasInput) SetFunctionName ¶ added in v1.5.0
func (s *UpdateAliasInput) SetFunctionName(v string) *UpdateAliasInput
SetFunctionName sets the FunctionName field's value.
func (*UpdateAliasInput) SetFunctionVersion ¶ added in v1.5.0
func (s *UpdateAliasInput) SetFunctionVersion(v string) *UpdateAliasInput
SetFunctionVersion sets the FunctionVersion field's value.
func (*UpdateAliasInput) SetName ¶ added in v1.5.0
func (s *UpdateAliasInput) SetName(v string) *UpdateAliasInput
SetName sets the Name field's value.
func (UpdateAliasInput) String ¶ added in v0.9.14
func (s UpdateAliasInput) String() string
String returns the string representation
func (*UpdateAliasInput) Validate ¶ added in v1.1.22
func (s *UpdateAliasInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateEventSourceMappingInput ¶
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). // // 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 ¶ added in v0.6.6
func (s UpdateEventSourceMappingInput) GoString() string
GoString returns the string representation
func (*UpdateEventSourceMappingInput) SetBatchSize ¶ added in v1.5.0
func (s *UpdateEventSourceMappingInput) SetBatchSize(v int64) *UpdateEventSourceMappingInput
SetBatchSize sets the BatchSize field's value.
func (*UpdateEventSourceMappingInput) SetEnabled ¶ added in v1.5.0
func (s *UpdateEventSourceMappingInput) SetEnabled(v bool) *UpdateEventSourceMappingInput
SetEnabled sets the Enabled field's value.
func (*UpdateEventSourceMappingInput) SetFunctionName ¶ added in v1.5.0
func (s *UpdateEventSourceMappingInput) SetFunctionName(v string) *UpdateEventSourceMappingInput
SetFunctionName sets the FunctionName field's value.
func (*UpdateEventSourceMappingInput) SetUUID ¶ added in v1.5.0
func (s *UpdateEventSourceMappingInput) SetUUID(v string) *UpdateEventSourceMappingInput
SetUUID sets the UUID field's value.
func (UpdateEventSourceMappingInput) String ¶ added in v0.6.6
func (s UpdateEventSourceMappingInput) String() string
String returns the string representation
func (*UpdateEventSourceMappingInput) Validate ¶ added in v1.1.22
func (s *UpdateEventSourceMappingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateFunctionCodeInput ¶
type UpdateFunctionCodeInput struct { // 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 character 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"` // 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, go to // 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 }
func (UpdateFunctionCodeInput) GoString ¶ added in v0.6.6
func (s UpdateFunctionCodeInput) GoString() string
GoString returns the string representation
func (*UpdateFunctionCodeInput) SetFunctionName ¶ added in v1.5.0
func (s *UpdateFunctionCodeInput) SetFunctionName(v string) *UpdateFunctionCodeInput
SetFunctionName sets the FunctionName field's value.
func (*UpdateFunctionCodeInput) SetPublish ¶ added in v1.5.0
func (s *UpdateFunctionCodeInput) SetPublish(v bool) *UpdateFunctionCodeInput
SetPublish sets the Publish field's value.
func (*UpdateFunctionCodeInput) SetS3Bucket ¶ added in v1.5.0
func (s *UpdateFunctionCodeInput) SetS3Bucket(v string) *UpdateFunctionCodeInput
SetS3Bucket sets the S3Bucket field's value.
func (*UpdateFunctionCodeInput) SetS3Key ¶ added in v1.5.0
func (s *UpdateFunctionCodeInput) SetS3Key(v string) *UpdateFunctionCodeInput
SetS3Key sets the S3Key field's value.
func (*UpdateFunctionCodeInput) SetS3ObjectVersion ¶ added in v1.5.0
func (s *UpdateFunctionCodeInput) SetS3ObjectVersion(v string) *UpdateFunctionCodeInput
SetS3ObjectVersion sets the S3ObjectVersion field's value.
func (*UpdateFunctionCodeInput) SetZipFile ¶ added in v1.5.0
func (s *UpdateFunctionCodeInput) SetZipFile(v []byte) *UpdateFunctionCodeInput
SetZipFile sets the ZipFile field's value.
func (UpdateFunctionCodeInput) String ¶ added in v0.6.6
func (s UpdateFunctionCodeInput) String() string
String returns the string representation
func (*UpdateFunctionCodeInput) Validate ¶ added in v1.1.22
func (s *UpdateFunctionCodeInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateFunctionConfigurationInput ¶
type UpdateFunctionConfigurationInput struct { // The parent object that contains the target ARN (Amazon Resource Name) of // an Amazon SQS queue or Amazon SNS topic. 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"` // 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 Node.js runtime v4.3, set the value to "nodejs4.3". To use earlier // runtime (v0.10.42), set the value to "nodejs". // // You can no longer downgrade to the v0.10.42 runtime version. This version // will no longer be supported as of early 2017. 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"` // 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 ¶ added in v0.6.6
func (s UpdateFunctionConfigurationInput) GoString() string
GoString returns the string representation
func (*UpdateFunctionConfigurationInput) SetDeadLetterConfig ¶ added in v1.6.0
func (s *UpdateFunctionConfigurationInput) SetDeadLetterConfig(v *DeadLetterConfig) *UpdateFunctionConfigurationInput
SetDeadLetterConfig sets the DeadLetterConfig field's value.
func (*UpdateFunctionConfigurationInput) SetDescription ¶ added in v1.5.0
func (s *UpdateFunctionConfigurationInput) SetDescription(v string) *UpdateFunctionConfigurationInput
SetDescription sets the Description field's value.
func (*UpdateFunctionConfigurationInput) SetEnvironment ¶ added in v1.5.8
func (s *UpdateFunctionConfigurationInput) SetEnvironment(v *Environment) *UpdateFunctionConfigurationInput
SetEnvironment sets the Environment field's value.
func (*UpdateFunctionConfigurationInput) SetFunctionName ¶ added in v1.5.0
func (s *UpdateFunctionConfigurationInput) SetFunctionName(v string) *UpdateFunctionConfigurationInput
SetFunctionName sets the FunctionName field's value.
func (*UpdateFunctionConfigurationInput) SetHandler ¶ added in v1.5.0
func (s *UpdateFunctionConfigurationInput) SetHandler(v string) *UpdateFunctionConfigurationInput
SetHandler sets the Handler field's value.
func (*UpdateFunctionConfigurationInput) SetKMSKeyArn ¶ added in v1.5.8
func (s *UpdateFunctionConfigurationInput) SetKMSKeyArn(v string) *UpdateFunctionConfigurationInput
SetKMSKeyArn sets the KMSKeyArn field's value.
func (*UpdateFunctionConfigurationInput) SetMemorySize ¶ added in v1.5.0
func (s *UpdateFunctionConfigurationInput) SetMemorySize(v int64) *UpdateFunctionConfigurationInput
SetMemorySize sets the MemorySize field's value.
func (*UpdateFunctionConfigurationInput) SetRole ¶ added in v1.5.0
func (s *UpdateFunctionConfigurationInput) SetRole(v string) *UpdateFunctionConfigurationInput
SetRole sets the Role field's value.
func (*UpdateFunctionConfigurationInput) SetRuntime ¶ added in v1.5.0
func (s *UpdateFunctionConfigurationInput) SetRuntime(v string) *UpdateFunctionConfigurationInput
SetRuntime sets the Runtime field's value.
func (*UpdateFunctionConfigurationInput) SetTimeout ¶ added in v1.5.0
func (s *UpdateFunctionConfigurationInput) SetTimeout(v int64) *UpdateFunctionConfigurationInput
SetTimeout sets the Timeout field's value.
func (*UpdateFunctionConfigurationInput) SetVpcConfig ¶ added in v1.5.0
func (s *UpdateFunctionConfigurationInput) SetVpcConfig(v *VpcConfig) *UpdateFunctionConfigurationInput
SetVpcConfig sets the VpcConfig field's value.
func (UpdateFunctionConfigurationInput) String ¶ added in v0.6.6
func (s UpdateFunctionConfigurationInput) String() string
String returns the string representation
func (*UpdateFunctionConfigurationInput) Validate ¶ added in v1.1.22
func (s *UpdateFunctionConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type VpcConfig ¶ added in v1.1.6
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) SetSecurityGroupIds ¶ added in v1.5.0
SetSecurityGroupIds sets the SecurityGroupIds field's value.
func (*VpcConfig) SetSubnetIds ¶ added in v1.5.0
SetSubnetIds sets the SubnetIds field's value.
type VpcConfigResponse ¶ added in v1.1.6
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 ¶ added in v1.1.6
func (s VpcConfigResponse) GoString() string
GoString returns the string representation
func (*VpcConfigResponse) SetSecurityGroupIds ¶ added in v1.5.0
func (s *VpcConfigResponse) SetSecurityGroupIds(v []*string) *VpcConfigResponse
SetSecurityGroupIds sets the SecurityGroupIds field's value.
func (*VpcConfigResponse) SetSubnetIds ¶ added in v1.5.0
func (s *VpcConfigResponse) SetSubnetIds(v []*string) *VpcConfigResponse
SetSubnetIds sets the SubnetIds field's value.
func (*VpcConfigResponse) SetVpcId ¶ added in v1.5.0
func (s *VpcConfigResponse) SetVpcId(v string) *VpcConfigResponse
SetVpcId sets the VpcId field's value.
func (VpcConfigResponse) String ¶ added in v1.1.6
func (s VpcConfigResponse) String() string
String returns the string representation
Directories ¶
Path | Synopsis |
---|---|
Package lambdaiface provides an interface to enable mocking the AWS Lambda service client for testing your code.
|
Package lambdaiface provides an interface to enable mocking the AWS Lambda service client for testing your code. |