package lambda
import "github.com/aws/aws-sdk-go-v2/service/lambda"
Package lambda provides the client and types for making API requests to AWS Lambda.
Overview
This is the AWS Lambda API Reference. The AWS Lambda Developer Guide provides additional information. For the service overview, see What is AWS Lambda (http://docs.aws.amazon.com/lambda/latest/dg/welcome.html), and for information about how the service works, see AWS Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html) in the AWS Lambda Developer Guide.
See https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31 for more information on this service.
See lambda package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/lambda/
Using the Client
To AWS Lambda with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the AWS Lambda client Lambda for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/lambda/#New
Index ¶
- Constants
- type AccountLimit
- func (s AccountLimit) GoString() string
- func (s AccountLimit) MarshalFields(e protocol.FieldEncoder) error
- func (s AccountLimit) String() string
- type AccountUsage
- func (s AccountUsage) GoString() string
- func (s AccountUsage) MarshalFields(e protocol.FieldEncoder) error
- func (s AccountUsage) String() string
- type AddLayerVersionPermissionInput
- func (s AddLayerVersionPermissionInput) GoString() string
- func (s AddLayerVersionPermissionInput) MarshalFields(e protocol.FieldEncoder) error
- func (s AddLayerVersionPermissionInput) String() string
- func (s *AddLayerVersionPermissionInput) Validate() error
- type AddLayerVersionPermissionOutput
- func (s AddLayerVersionPermissionOutput) GoString() string
- func (s AddLayerVersionPermissionOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s AddLayerVersionPermissionOutput) SDKResponseMetadata() aws.Response
- func (s AddLayerVersionPermissionOutput) String() string
- type AddLayerVersionPermissionRequest
- type AddPermissionInput
- func (s AddPermissionInput) GoString() string
- func (s AddPermissionInput) MarshalFields(e protocol.FieldEncoder) error
- func (s AddPermissionInput) String() string
- func (s *AddPermissionInput) Validate() error
- type AddPermissionOutput
- func (s AddPermissionOutput) GoString() string
- func (s AddPermissionOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s AddPermissionOutput) SDKResponseMetadata() aws.Response
- func (s AddPermissionOutput) String() string
- type AddPermissionRequest
- type AliasRoutingConfiguration
- func (s AliasRoutingConfiguration) GoString() string
- func (s AliasRoutingConfiguration) MarshalFields(e protocol.FieldEncoder) error
- func (s AliasRoutingConfiguration) String() string
- type CreateAliasInput
- func (s CreateAliasInput) GoString() string
- func (s CreateAliasInput) MarshalFields(e protocol.FieldEncoder) error
- func (s CreateAliasInput) String() string
- func (s *CreateAliasInput) Validate() error
- type CreateAliasRequest
- type CreateEventSourceMappingInput
- func (s CreateEventSourceMappingInput) GoString() string
- func (s CreateEventSourceMappingInput) MarshalFields(e protocol.FieldEncoder) error
- func (s CreateEventSourceMappingInput) String() string
- func (s *CreateEventSourceMappingInput) Validate() error
- type CreateEventSourceMappingRequest
- type CreateFunctionInput
- func (s CreateFunctionInput) GoString() string
- func (s CreateFunctionInput) MarshalFields(e protocol.FieldEncoder) error
- func (s CreateFunctionInput) String() string
- func (s *CreateFunctionInput) Validate() error
- type CreateFunctionRequest
- type DeadLetterConfig
- func (s DeadLetterConfig) GoString() string
- func (s DeadLetterConfig) MarshalFields(e protocol.FieldEncoder) error
- func (s DeadLetterConfig) String() string
- type DeleteAliasInput
- func (s DeleteAliasInput) GoString() string
- func (s DeleteAliasInput) MarshalFields(e protocol.FieldEncoder) error
- func (s DeleteAliasInput) String() string
- func (s *DeleteAliasInput) Validate() error
- type DeleteAliasOutput
- func (s DeleteAliasOutput) GoString() string
- func (s DeleteAliasOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s DeleteAliasOutput) SDKResponseMetadata() aws.Response
- func (s DeleteAliasOutput) String() string
- type DeleteAliasRequest
- type DeleteEventSourceMappingInput
- func (s DeleteEventSourceMappingInput) GoString() string
- func (s DeleteEventSourceMappingInput) MarshalFields(e protocol.FieldEncoder) error
- func (s DeleteEventSourceMappingInput) String() string
- func (s *DeleteEventSourceMappingInput) Validate() error
- type DeleteEventSourceMappingRequest
- type DeleteFunctionConcurrencyInput
- func (s DeleteFunctionConcurrencyInput) GoString() string
- func (s DeleteFunctionConcurrencyInput) MarshalFields(e protocol.FieldEncoder) error
- func (s DeleteFunctionConcurrencyInput) String() string
- func (s *DeleteFunctionConcurrencyInput) Validate() error
- type DeleteFunctionConcurrencyOutput
- func (s DeleteFunctionConcurrencyOutput) GoString() string
- func (s DeleteFunctionConcurrencyOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s DeleteFunctionConcurrencyOutput) SDKResponseMetadata() aws.Response
- func (s DeleteFunctionConcurrencyOutput) String() string
- type DeleteFunctionConcurrencyRequest
- type DeleteFunctionInput
- func (s DeleteFunctionInput) GoString() string
- func (s DeleteFunctionInput) MarshalFields(e protocol.FieldEncoder) error
- func (s DeleteFunctionInput) String() string
- func (s *DeleteFunctionInput) Validate() error
- type DeleteFunctionOutput
- func (s DeleteFunctionOutput) GoString() string
- func (s DeleteFunctionOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s DeleteFunctionOutput) SDKResponseMetadata() aws.Response
- func (s DeleteFunctionOutput) String() string
- type DeleteFunctionRequest
- type DeleteLayerVersionInput
- func (s DeleteLayerVersionInput) GoString() string
- func (s DeleteLayerVersionInput) MarshalFields(e protocol.FieldEncoder) error
- func (s DeleteLayerVersionInput) String() string
- func (s *DeleteLayerVersionInput) Validate() error
- type DeleteLayerVersionOutput
- func (s DeleteLayerVersionOutput) GoString() string
- func (s DeleteLayerVersionOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s DeleteLayerVersionOutput) SDKResponseMetadata() aws.Response
- func (s DeleteLayerVersionOutput) String() string
- type DeleteLayerVersionRequest
- type Environment
- func (s Environment) GoString() string
- func (s Environment) MarshalFields(e protocol.FieldEncoder) error
- func (s Environment) String() string
- type EnvironmentError
- func (s EnvironmentError) GoString() string
- func (s EnvironmentError) MarshalFields(e protocol.FieldEncoder) error
- func (s EnvironmentError) String() string
- type EnvironmentResponse
- func (s EnvironmentResponse) GoString() string
- func (s EnvironmentResponse) MarshalFields(e protocol.FieldEncoder) error
- func (s EnvironmentResponse) String() string
- type EventSourcePosition
- func (enum EventSourcePosition) MarshalValue() (string, error)
- func (enum EventSourcePosition) MarshalValueBuf(b []byte) ([]byte, error)
- type FunctionCode
- func (s FunctionCode) GoString() string
- func (s FunctionCode) MarshalFields(e protocol.FieldEncoder) error
- func (s FunctionCode) String() string
- func (s *FunctionCode) Validate() error
- type FunctionCodeLocation
- func (s FunctionCodeLocation) GoString() string
- func (s FunctionCodeLocation) MarshalFields(e protocol.FieldEncoder) error
- func (s FunctionCodeLocation) String() string
- type FunctionVersion
- func (enum FunctionVersion) MarshalValue() (string, error)
- func (enum FunctionVersion) MarshalValueBuf(b []byte) ([]byte, error)
- type GetAccountSettingsInput
- func (s GetAccountSettingsInput) GoString() string
- func (s GetAccountSettingsInput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetAccountSettingsInput) String() string
- type GetAccountSettingsOutput
- func (s GetAccountSettingsOutput) GoString() string
- func (s GetAccountSettingsOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetAccountSettingsOutput) SDKResponseMetadata() aws.Response
- func (s GetAccountSettingsOutput) String() string
- type GetAccountSettingsRequest
- type GetAliasInput
- func (s GetAliasInput) GoString() string
- func (s GetAliasInput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetAliasInput) String() string
- func (s *GetAliasInput) Validate() error
- type GetAliasRequest
- type GetEventSourceMappingInput
- func (s GetEventSourceMappingInput) GoString() string
- func (s GetEventSourceMappingInput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetEventSourceMappingInput) String() string
- func (s *GetEventSourceMappingInput) Validate() error
- type GetEventSourceMappingRequest
- type GetFunctionConfigurationInput
- func (s GetFunctionConfigurationInput) GoString() string
- func (s GetFunctionConfigurationInput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetFunctionConfigurationInput) String() string
- func (s *GetFunctionConfigurationInput) Validate() error
- type GetFunctionConfigurationRequest
- type GetFunctionInput
- func (s GetFunctionInput) GoString() string
- func (s GetFunctionInput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetFunctionInput) String() string
- func (s *GetFunctionInput) Validate() error
- type GetFunctionOutput
- func (s GetFunctionOutput) GoString() string
- func (s GetFunctionOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetFunctionOutput) SDKResponseMetadata() aws.Response
- func (s GetFunctionOutput) String() string
- type GetFunctionRequest
- type GetLayerVersionInput
- func (s GetLayerVersionInput) GoString() string
- func (s GetLayerVersionInput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetLayerVersionInput) String() string
- func (s *GetLayerVersionInput) Validate() error
- type GetLayerVersionOutput
- func (s GetLayerVersionOutput) GoString() string
- func (s GetLayerVersionOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetLayerVersionOutput) SDKResponseMetadata() aws.Response
- func (s GetLayerVersionOutput) String() string
- type GetLayerVersionPolicyInput
- func (s GetLayerVersionPolicyInput) GoString() string
- func (s GetLayerVersionPolicyInput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetLayerVersionPolicyInput) String() string
- func (s *GetLayerVersionPolicyInput) Validate() error
- type GetLayerVersionPolicyOutput
- func (s GetLayerVersionPolicyOutput) GoString() string
- func (s GetLayerVersionPolicyOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetLayerVersionPolicyOutput) SDKResponseMetadata() aws.Response
- func (s GetLayerVersionPolicyOutput) String() string
- type GetLayerVersionPolicyRequest
- type GetLayerVersionRequest
- type GetPolicyInput
- func (s GetPolicyInput) GoString() string
- func (s GetPolicyInput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetPolicyInput) String() string
- func (s *GetPolicyInput) Validate() error
- type GetPolicyOutput
- func (s GetPolicyOutput) GoString() string
- func (s GetPolicyOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s GetPolicyOutput) SDKResponseMetadata() aws.Response
- func (s GetPolicyOutput) String() string
- type GetPolicyRequest
- type InvocationType
- func (enum InvocationType) MarshalValue() (string, error)
- func (enum InvocationType) MarshalValueBuf(b []byte) ([]byte, error)
- type InvokeAsyncInput
- func (s InvokeAsyncInput) GoString() string
- func (s InvokeAsyncInput) MarshalFields(e protocol.FieldEncoder) error
- func (s InvokeAsyncInput) String() string
- func (s *InvokeAsyncInput) Validate() error
- type InvokeAsyncOutput
- func (s InvokeAsyncOutput) GoString() string
- func (s InvokeAsyncOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s InvokeAsyncOutput) SDKResponseMetadata() aws.Response
- func (s InvokeAsyncOutput) String() string
- type InvokeAsyncRequest
- type InvokeInput
- func (s InvokeInput) GoString() string
- func (s InvokeInput) MarshalFields(e protocol.FieldEncoder) error
- func (s InvokeInput) String() string
- func (s *InvokeInput) Validate() error
- type InvokeOutput
- func (s InvokeOutput) GoString() string
- func (s InvokeOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s InvokeOutput) SDKResponseMetadata() aws.Response
- func (s InvokeOutput) String() string
- type InvokeRequest
- type Lambda
- func New(config aws.Config) *Lambda
- func (c *Lambda) AddLayerVersionPermissionRequest(input *AddLayerVersionPermissionInput) AddLayerVersionPermissionRequest
- func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) AddPermissionRequest
- func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) CreateAliasRequest
- func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMappingInput) CreateEventSourceMappingRequest
- func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) CreateFunctionRequest
- func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) DeleteAliasRequest
- func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMappingInput) DeleteEventSourceMappingRequest
- func (c *Lambda) DeleteFunctionConcurrencyRequest(input *DeleteFunctionConcurrencyInput) DeleteFunctionConcurrencyRequest
- func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) DeleteFunctionRequest
- func (c *Lambda) DeleteLayerVersionRequest(input *DeleteLayerVersionInput) DeleteLayerVersionRequest
- func (c *Lambda) GetAccountSettingsRequest(input *GetAccountSettingsInput) GetAccountSettingsRequest
- func (c *Lambda) GetAliasRequest(input *GetAliasInput) GetAliasRequest
- func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) GetEventSourceMappingRequest
- func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfigurationInput) GetFunctionConfigurationRequest
- func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) GetFunctionRequest
- func (c *Lambda) GetLayerVersionPolicyRequest(input *GetLayerVersionPolicyInput) GetLayerVersionPolicyRequest
- func (c *Lambda) GetLayerVersionRequest(input *GetLayerVersionInput) GetLayerVersionRequest
- func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) GetPolicyRequest
- func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) InvokeAsyncRequest
- func (c *Lambda) InvokeRequest(input *InvokeInput) InvokeRequest
- func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) ListAliasesRequest
- func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsInput) ListEventSourceMappingsRequest
- func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) ListFunctionsRequest
- func (c *Lambda) ListLayerVersionsRequest(input *ListLayerVersionsInput) ListLayerVersionsRequest
- func (c *Lambda) ListLayersRequest(input *ListLayersInput) ListLayersRequest
- func (c *Lambda) ListTagsRequest(input *ListTagsInput) ListTagsRequest
- func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInput) ListVersionsByFunctionRequest
- func (c *Lambda) PublishLayerVersionRequest(input *PublishLayerVersionInput) PublishLayerVersionRequest
- func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) PublishVersionRequest
- func (c *Lambda) PutFunctionConcurrencyRequest(input *PutFunctionConcurrencyInput) PutFunctionConcurrencyRequest
- func (c *Lambda) RemoveLayerVersionPermissionRequest(input *RemoveLayerVersionPermissionInput) RemoveLayerVersionPermissionRequest
- func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) RemovePermissionRequest
- func (c *Lambda) TagResourceRequest(input *TagResourceInput) TagResourceRequest
- func (c *Lambda) UntagResourceRequest(input *UntagResourceInput) UntagResourceRequest
- func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) UpdateAliasRequest
- func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMappingInput) UpdateEventSourceMappingRequest
- func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) UpdateFunctionCodeRequest
- func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigurationInput) UpdateFunctionConfigurationRequest
- type Layer
- func (s Layer) GoString() string
- func (s Layer) MarshalFields(e protocol.FieldEncoder) error
- func (s Layer) String() string
- type LayerVersionContentInput
- func (s LayerVersionContentInput) GoString() string
- func (s LayerVersionContentInput) MarshalFields(e protocol.FieldEncoder) error
- func (s LayerVersionContentInput) String() string
- func (s *LayerVersionContentInput) Validate() error
- type LayerVersionContentOutput
- func (s LayerVersionContentOutput) GoString() string
- func (s LayerVersionContentOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s LayerVersionContentOutput) String() string
- type LayerVersionsListItem
- func (s LayerVersionsListItem) GoString() string
- func (s LayerVersionsListItem) MarshalFields(e protocol.FieldEncoder) error
- func (s LayerVersionsListItem) String() string
- type LayersListItem
- func (s LayersListItem) GoString() string
- func (s LayersListItem) MarshalFields(e protocol.FieldEncoder) error
- func (s LayersListItem) String() string
- type ListAliasesInput
- func (s ListAliasesInput) GoString() string
- func (s ListAliasesInput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListAliasesInput) String() string
- func (s *ListAliasesInput) Validate() error
- type ListAliasesOutput
- func (s ListAliasesOutput) GoString() string
- func (s ListAliasesOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListAliasesOutput) SDKResponseMetadata() aws.Response
- func (s ListAliasesOutput) String() string
- type ListAliasesRequest
- type ListEventSourceMappingsInput
- func (s ListEventSourceMappingsInput) GoString() string
- func (s ListEventSourceMappingsInput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListEventSourceMappingsInput) String() string
- func (s *ListEventSourceMappingsInput) Validate() error
- type ListEventSourceMappingsOutput
- func (s ListEventSourceMappingsOutput) GoString() string
- func (s ListEventSourceMappingsOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListEventSourceMappingsOutput) SDKResponseMetadata() aws.Response
- func (s ListEventSourceMappingsOutput) String() string
- type ListEventSourceMappingsPager
- type ListEventSourceMappingsRequest
- func (p *ListEventSourceMappingsRequest) Paginate(opts ...aws.Option) ListEventSourceMappingsPager
- func (r ListEventSourceMappingsRequest) Send() (*ListEventSourceMappingsOutput, error)
- type ListFunctionsInput
- func (s ListFunctionsInput) GoString() string
- func (s ListFunctionsInput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListFunctionsInput) String() string
- func (s *ListFunctionsInput) Validate() error
- type ListFunctionsOutput
- func (s ListFunctionsOutput) GoString() string
- func (s ListFunctionsOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListFunctionsOutput) SDKResponseMetadata() aws.Response
- func (s ListFunctionsOutput) String() string
- type ListFunctionsPager
- type ListFunctionsRequest
- func (p *ListFunctionsRequest) Paginate(opts ...aws.Option) ListFunctionsPager
- func (r ListFunctionsRequest) Send() (*ListFunctionsOutput, error)
- type ListLayerVersionsInput
- func (s ListLayerVersionsInput) GoString() string
- func (s ListLayerVersionsInput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListLayerVersionsInput) String() string
- func (s *ListLayerVersionsInput) Validate() error
- type ListLayerVersionsOutput
- func (s ListLayerVersionsOutput) GoString() string
- func (s ListLayerVersionsOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListLayerVersionsOutput) SDKResponseMetadata() aws.Response
- func (s ListLayerVersionsOutput) String() string
- type ListLayerVersionsRequest
- type ListLayersInput
- func (s ListLayersInput) GoString() string
- func (s ListLayersInput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListLayersInput) String() string
- func (s *ListLayersInput) Validate() error
- type ListLayersOutput
- func (s ListLayersOutput) GoString() string
- func (s ListLayersOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListLayersOutput) SDKResponseMetadata() aws.Response
- func (s ListLayersOutput) String() string
- type ListLayersRequest
- type ListTagsInput
- func (s ListTagsInput) GoString() string
- func (s ListTagsInput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListTagsInput) String() string
- func (s *ListTagsInput) Validate() error
- type ListTagsOutput
- func (s ListTagsOutput) GoString() string
- func (s ListTagsOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListTagsOutput) SDKResponseMetadata() aws.Response
- func (s ListTagsOutput) String() string
- type ListTagsRequest
- type ListVersionsByFunctionInput
- func (s ListVersionsByFunctionInput) GoString() string
- func (s ListVersionsByFunctionInput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListVersionsByFunctionInput) String() string
- func (s *ListVersionsByFunctionInput) Validate() error
- type ListVersionsByFunctionOutput
- func (s ListVersionsByFunctionOutput) GoString() string
- func (s ListVersionsByFunctionOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s ListVersionsByFunctionOutput) SDKResponseMetadata() aws.Response
- func (s ListVersionsByFunctionOutput) String() string
- type ListVersionsByFunctionRequest
- type LogType
- func (enum LogType) MarshalValue() (string, error)
- func (enum LogType) MarshalValueBuf(b []byte) ([]byte, error)
- type PublishLayerVersionInput
- func (s PublishLayerVersionInput) GoString() string
- func (s PublishLayerVersionInput) MarshalFields(e protocol.FieldEncoder) error
- func (s PublishLayerVersionInput) String() string
- func (s *PublishLayerVersionInput) Validate() error
- type PublishLayerVersionOutput
- func (s PublishLayerVersionOutput) GoString() string
- func (s PublishLayerVersionOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s PublishLayerVersionOutput) SDKResponseMetadata() aws.Response
- func (s PublishLayerVersionOutput) String() string
- type PublishLayerVersionRequest
- type PublishVersionInput
- func (s PublishVersionInput) GoString() string
- func (s PublishVersionInput) MarshalFields(e protocol.FieldEncoder) error
- func (s PublishVersionInput) String() string
- func (s *PublishVersionInput) Validate() error
- type PublishVersionRequest
- type PutFunctionConcurrencyInput
- func (s PutFunctionConcurrencyInput) GoString() string
- func (s PutFunctionConcurrencyInput) MarshalFields(e protocol.FieldEncoder) error
- func (s PutFunctionConcurrencyInput) String() string
- func (s *PutFunctionConcurrencyInput) Validate() error
- type PutFunctionConcurrencyOutput
- func (s PutFunctionConcurrencyOutput) GoString() string
- func (s PutFunctionConcurrencyOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s PutFunctionConcurrencyOutput) SDKResponseMetadata() aws.Response
- func (s PutFunctionConcurrencyOutput) String() string
- type PutFunctionConcurrencyRequest
- type RemoveLayerVersionPermissionInput
- func (s RemoveLayerVersionPermissionInput) GoString() string
- func (s RemoveLayerVersionPermissionInput) MarshalFields(e protocol.FieldEncoder) error
- func (s RemoveLayerVersionPermissionInput) String() string
- func (s *RemoveLayerVersionPermissionInput) Validate() error
- type RemoveLayerVersionPermissionOutput
- func (s RemoveLayerVersionPermissionOutput) GoString() string
- func (s RemoveLayerVersionPermissionOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s RemoveLayerVersionPermissionOutput) SDKResponseMetadata() aws.Response
- func (s RemoveLayerVersionPermissionOutput) String() string
- type RemoveLayerVersionPermissionRequest
- type RemovePermissionInput
- func (s RemovePermissionInput) GoString() string
- func (s RemovePermissionInput) MarshalFields(e protocol.FieldEncoder) error
- func (s RemovePermissionInput) String() string
- func (s *RemovePermissionInput) Validate() error
- type RemovePermissionOutput
- func (s RemovePermissionOutput) GoString() string
- func (s RemovePermissionOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s RemovePermissionOutput) SDKResponseMetadata() aws.Response
- func (s RemovePermissionOutput) String() string
- type RemovePermissionRequest
- type Runtime
- func (enum Runtime) MarshalValue() (string, error)
- func (enum Runtime) MarshalValueBuf(b []byte) ([]byte, error)
- type TagResourceInput
- func (s TagResourceInput) GoString() string
- func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error
- func (s TagResourceInput) String() string
- func (s *TagResourceInput) Validate() error
- type TagResourceOutput
- func (s TagResourceOutput) GoString() string
- func (s TagResourceOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s TagResourceOutput) SDKResponseMetadata() aws.Response
- func (s TagResourceOutput) String() string
- type TagResourceRequest
- type ThrottleReason
- func (enum ThrottleReason) MarshalValue() (string, error)
- func (enum ThrottleReason) MarshalValueBuf(b []byte) ([]byte, error)
- type TracingConfig
- func (s TracingConfig) GoString() string
- func (s TracingConfig) MarshalFields(e protocol.FieldEncoder) error
- func (s TracingConfig) String() string
- type TracingConfigResponse
- func (s TracingConfigResponse) GoString() string
- func (s TracingConfigResponse) MarshalFields(e protocol.FieldEncoder) error
- func (s TracingConfigResponse) String() string
- type TracingMode
- func (enum TracingMode) MarshalValue() (string, error)
- func (enum TracingMode) MarshalValueBuf(b []byte) ([]byte, error)
- type UntagResourceInput
- func (s UntagResourceInput) GoString() string
- func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error
- func (s UntagResourceInput) String() string
- func (s *UntagResourceInput) Validate() error
- type UntagResourceOutput
- func (s UntagResourceOutput) GoString() string
- func (s UntagResourceOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s UntagResourceOutput) SDKResponseMetadata() aws.Response
- func (s UntagResourceOutput) String() string
- type UntagResourceRequest
- type UpdateAliasInput
- func (s UpdateAliasInput) GoString() string
- func (s UpdateAliasInput) MarshalFields(e protocol.FieldEncoder) error
- func (s UpdateAliasInput) String() string
- func (s *UpdateAliasInput) Validate() error
- type UpdateAliasOutput
- func (s UpdateAliasOutput) GoString() string
- func (s UpdateAliasOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s UpdateAliasOutput) SDKResponseMetadata() aws.Response
- func (s UpdateAliasOutput) String() string
- type UpdateAliasRequest
- type UpdateEventSourceMappingInput
- func (s UpdateEventSourceMappingInput) GoString() string
- func (s UpdateEventSourceMappingInput) MarshalFields(e protocol.FieldEncoder) error
- func (s UpdateEventSourceMappingInput) String() string
- func (s *UpdateEventSourceMappingInput) Validate() error
- type UpdateEventSourceMappingOutput
- func (s UpdateEventSourceMappingOutput) GoString() string
- func (s UpdateEventSourceMappingOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s UpdateEventSourceMappingOutput) SDKResponseMetadata() aws.Response
- func (s UpdateEventSourceMappingOutput) String() string
- type UpdateEventSourceMappingRequest
- type UpdateFunctionCodeInput
- func (s UpdateFunctionCodeInput) GoString() string
- func (s UpdateFunctionCodeInput) MarshalFields(e protocol.FieldEncoder) error
- func (s UpdateFunctionCodeInput) String() string
- func (s *UpdateFunctionCodeInput) Validate() error
- type UpdateFunctionCodeRequest
- type UpdateFunctionConfigurationInput
- func (s UpdateFunctionConfigurationInput) GoString() string
- func (s UpdateFunctionConfigurationInput) MarshalFields(e protocol.FieldEncoder) error
- func (s UpdateFunctionConfigurationInput) String() string
- func (s *UpdateFunctionConfigurationInput) Validate() error
- type UpdateFunctionConfigurationOutput
- func (s UpdateFunctionConfigurationOutput) GoString() string
- func (s UpdateFunctionConfigurationOutput) MarshalFields(e protocol.FieldEncoder) error
- func (s UpdateFunctionConfigurationOutput) SDKResponseMetadata() aws.Response
- func (s UpdateFunctionConfigurationOutput) String() string
- type UpdateFunctionConfigurationRequest
- type VpcConfig
- func (s VpcConfig) GoString() string
- func (s VpcConfig) MarshalFields(e protocol.FieldEncoder) error
- func (s VpcConfig) String() string
- type VpcConfigResponse
Examples ¶
- Lambda.AddPermissionRequest (Shared00)
- Lambda.CreateFunctionRequest (Shared00)
- Lambda.DeleteAliasRequest (Shared00)
- Lambda.DeleteEventSourceMappingRequest (Shared00)
- Lambda.DeleteFunctionRequest (Shared00)
- Lambda.GetAccountSettingsRequest (Shared00)
- Lambda.GetAliasRequest (Shared00)
- Lambda.GetEventSourceMappingRequest (Shared00)
- Lambda.GetFunctionConfigurationRequest (Shared00)
- Lambda.GetFunctionRequest (Shared00)
- Lambda.GetPolicyRequest (Shared00)
- Lambda.InvokeAsyncRequest (Shared00)
- Lambda.InvokeRequest (Shared00)
- Lambda.ListAliasesRequest (Shared00)
- Lambda.ListFunctionsRequest (Shared00)
- Lambda.ListVersionsByFunctionRequest (Shared00)
- Lambda.PublishVersionRequest (Shared00)
- Lambda.RemovePermissionRequest (Shared00)
- Lambda.UpdateAliasRequest (Shared00)
- Lambda.UpdateEventSourceMappingRequest (Shared00)
- Lambda.UpdateFunctionCodeRequest (Shared00)
- Lambda.UpdateFunctionConfigurationRequest (Shared00)
Constants ¶
const ( // ErrCodeCodeStorageExceededException for service response error code // "CodeStorageExceededException". // // You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) ErrCodeCodeStorageExceededException = "CodeStorageExceededException" // ErrCodeEC2AccessDeniedException for service response error code // "EC2AccessDeniedException". // // Need additional permissions to configure VPC settings. ErrCodeEC2AccessDeniedException = "EC2AccessDeniedException" // ErrCodeEC2ThrottledException for service response error code // "EC2ThrottledException". // // AWS Lambda was throttled by Amazon EC2 during Lambda function initialization // using the execution role provided for the Lambda function. ErrCodeEC2ThrottledException = "EC2ThrottledException" // ErrCodeEC2UnexpectedException for service response error code // "EC2UnexpectedException". // // AWS Lambda received an unexpected EC2 client exception while setting up for // the Lambda function. ErrCodeEC2UnexpectedException = "EC2UnexpectedException" // ErrCodeENILimitReachedException for service response error code // "ENILimitReachedException". // // AWS Lambda was not able to create an Elastic Network Interface (ENI) in the // VPC, specified as part of Lambda function configuration, because the limit // for network interfaces has been reached. ErrCodeENILimitReachedException = "ENILimitReachedException" // ErrCodeInvalidParameterValueException for service response error code // "InvalidParameterValueException". // // One of the parameters in the request is invalid. For example, if you provided // an IAM role for AWS Lambda to assume in the CreateFunction or the UpdateFunctionConfiguration // API, that AWS Lambda is unable to assume you will get this exception. ErrCodeInvalidParameterValueException = "InvalidParameterValueException" // ErrCodeInvalidRequestContentException for service response error code // "InvalidRequestContentException". // // The request body could not be parsed as JSON. ErrCodeInvalidRequestContentException = "InvalidRequestContentException" // ErrCodeInvalidRuntimeException for service response error code // "InvalidRuntimeException". // // The runtime or runtime version specified is not supported. ErrCodeInvalidRuntimeException = "InvalidRuntimeException" // ErrCodeInvalidSecurityGroupIDException for service response error code // "InvalidSecurityGroupIDException". // // The Security Group ID provided in the Lambda function VPC configuration is // invalid. ErrCodeInvalidSecurityGroupIDException = "InvalidSecurityGroupIDException" // ErrCodeInvalidSubnetIDException for service response error code // "InvalidSubnetIDException". // // The Subnet ID provided in the Lambda function VPC configuration is invalid. ErrCodeInvalidSubnetIDException = "InvalidSubnetIDException" // ErrCodeInvalidZipFileException for service response error code // "InvalidZipFileException". // // AWS Lambda could not unzip the deployment package. ErrCodeInvalidZipFileException = "InvalidZipFileException" // ErrCodeKMSAccessDeniedException for service response error code // "KMSAccessDeniedException". // // Lambda was unable to decrypt the environment variables because KMS access // was denied. Check the Lambda function's KMS permissions. ErrCodeKMSAccessDeniedException = "KMSAccessDeniedException" // ErrCodeKMSDisabledException for service response error code // "KMSDisabledException". // // Lambda was unable to decrypt the environment variables because the KMS key // used is disabled. Check the Lambda function's KMS key settings. ErrCodeKMSDisabledException = "KMSDisabledException" // ErrCodeKMSInvalidStateException for service response error code // "KMSInvalidStateException". // // Lambda was unable to decrypt the environment variables because the KMS key // used is in an invalid state for Decrypt. Check the function's KMS key settings. ErrCodeKMSInvalidStateException = "KMSInvalidStateException" // ErrCodeKMSNotFoundException for service response error code // "KMSNotFoundException". // // Lambda was unable to decrypt the environment variables because the KMS key // was not found. Check the function's KMS key settings. ErrCodeKMSNotFoundException = "KMSNotFoundException" // ErrCodePolicyLengthExceededException for service response error code // "PolicyLengthExceededException". // // Lambda function access policy is limited to 20 KB. ErrCodePolicyLengthExceededException = "PolicyLengthExceededException" // ErrCodePreconditionFailedException for service response error code // "PreconditionFailedException". // // The RevisionId provided does not match the latest RevisionId for the Lambda // function or alias. Call the GetFunction or the GetAlias API to retrieve the // latest RevisionId for your resource. ErrCodePreconditionFailedException = "PreconditionFailedException" // ErrCodeRequestTooLargeException for service response error code // "RequestTooLargeException". // // The request payload exceeded the Invoke request body JSON input limit. For // more information, see Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html). ErrCodeRequestTooLargeException = "RequestTooLargeException" // ErrCodeResourceConflictException for service response error code // "ResourceConflictException". // // The resource already exists. ErrCodeResourceConflictException = "ResourceConflictException" // ErrCodeResourceInUseException for service response error code // "ResourceInUseException". // // The operation conflicts with the resource's availability. For example, you // attempted to update an EventSoure Mapping in CREATING, or tried to delete // a EventSoure mapping currently in the UPDATING state. ErrCodeResourceInUseException = "ResourceInUseException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeServiceException for service response error code // "ServiceException". // // The AWS Lambda service encountered an internal error. ErrCodeServiceException = "ServiceException" // ErrCodeSubnetIPAddressLimitReachedException for service response error code // "SubnetIPAddressLimitReachedException". // // AWS Lambda was not able to set up VPC access for the Lambda function because // one or more configured subnets has no available IP addresses. ErrCodeSubnetIPAddressLimitReachedException = "SubnetIPAddressLimitReachedException" // ErrCodeTooManyRequestsException for service response error code // "TooManyRequestsException". // // Request throughput limit exceeded ErrCodeTooManyRequestsException = "TooManyRequestsException" // ErrCodeUnsupportedMediaTypeException for service response error code // "UnsupportedMediaTypeException". // // The content type of the Invoke request body is not JSON. ErrCodeUnsupportedMediaTypeException = "UnsupportedMediaTypeException" )
const ( ServiceName = "lambda" // Service endpoint prefix API calls made to. EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. )
Service information constants
Types ¶
type AccountLimit ¶
type AccountLimit struct { // Size, in bytes, of code/dependencies that you can zip into a deployment package // (uncompressed zip/jar size) for uploading. The default limit is 250 MB. CodeSizeUnzipped *int64 `type:"long"` // Size, in bytes, of a single zipped code/dependencies package you can upload // for your Lambda function(.zip/.jar file). Try using Amazon S3 for uploading // larger files. Default limit is 50 MB. CodeSizeZipped *int64 `type:"long"` // Number of simultaneous executions of your function per region. The default // limit is 1000. ConcurrentExecutions *int64 `type:"integer"` // Maximum size, in bytes, of a code package you can upload per region. The // default size is 75 GB. TotalCodeSize *int64 `type:"long"` // The number of concurrent executions available to functions that do not have // concurrency limits set. For more information, see Managing Concurrency (http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html). UnreservedConcurrentExecutions *int64 `type:"integer"` // contains filtered or unexported fields }
Provides limits of code size and concurrency associated with the current account and region. For more information or to request a limit increase for concurrent executions, see Lambda Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html). Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AccountLimit
func (AccountLimit) GoString ¶
func (s AccountLimit) GoString() string
GoString returns the string representation
func (AccountLimit) MarshalFields ¶
func (s AccountLimit) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AccountLimit) String ¶
func (s AccountLimit) String() string
String returns the string representation
type AccountUsage ¶
type AccountUsage struct { // The number of your account's existing functions per region. FunctionCount *int64 `type:"long"` // Total size, in bytes, of the account's deployment packages per region. TotalCodeSize *int64 `type:"long"` // contains filtered or unexported fields }
Provides code size usage and function count associated with the current account and region. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AccountUsage
func (AccountUsage) GoString ¶
func (s AccountUsage) GoString() string
GoString returns the string representation
func (AccountUsage) MarshalFields ¶
func (s AccountUsage) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AccountUsage) String ¶
func (s AccountUsage) String() string
String returns the string representation
type AddLayerVersionPermissionInput ¶
type AddLayerVersionPermissionInput struct { // The API action that grants access to the layer. For example, lambda:GetLayerVersion. // // Action is a required field Action *string `type:"string" required:"true"` // The name of the layer. // // LayerName is a required field LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` // With the principal set to *, grant permission to all accounts in the specified // organization. OrganizationId *string `type:"string"` // An account ID, or * to grant permission to all AWS accounts. // // Principal is a required field Principal *string `type:"string" required:"true"` // Only update the policy if the revision ID matches the ID specified. Use this // option to avoid modifying a policy that has changed since you last read it. RevisionId *string `location:"querystring" locationName:"RevisionId" type:"string"` // An identifier that distinguishes the policy from others on the same layer // version. // // StatementId is a required field StatementId *string `min:"1" type:"string" required:"true"` // The version number. // // VersionNumber is a required field VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddLayerVersionPermissionRequest
func (AddLayerVersionPermissionInput) GoString ¶
func (s AddLayerVersionPermissionInput) GoString() string
GoString returns the string representation
func (AddLayerVersionPermissionInput) MarshalFields ¶
func (s AddLayerVersionPermissionInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AddLayerVersionPermissionInput) String ¶
func (s AddLayerVersionPermissionInput) String() string
String returns the string representation
func (*AddLayerVersionPermissionInput) Validate ¶
func (s *AddLayerVersionPermissionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AddLayerVersionPermissionOutput ¶
type AddLayerVersionPermissionOutput struct { // A unique identifier for the current revision of the policy. RevisionId *string `type:"string"` // The permission statement. Statement *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddLayerVersionPermissionResponse
func (AddLayerVersionPermissionOutput) GoString ¶
func (s AddLayerVersionPermissionOutput) GoString() string
GoString returns the string representation
func (AddLayerVersionPermissionOutput) MarshalFields ¶
func (s AddLayerVersionPermissionOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AddLayerVersionPermissionOutput) SDKResponseMetadata ¶
func (s AddLayerVersionPermissionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (AddLayerVersionPermissionOutput) String ¶
func (s AddLayerVersionPermissionOutput) String() string
String returns the string representation
type AddLayerVersionPermissionRequest ¶
type AddLayerVersionPermissionRequest struct { *aws.Request Input *AddLayerVersionPermissionInput Copy func(*AddLayerVersionPermissionInput) AddLayerVersionPermissionRequest }
AddLayerVersionPermissionRequest is a API request type for the AddLayerVersionPermission API operation.
func (AddLayerVersionPermissionRequest) Send ¶
func (r AddLayerVersionPermissionRequest) Send() (*AddLayerVersionPermissionOutput, error)
Send marshals and sends the AddLayerVersionPermission API request.
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"` // The name of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // The principal who is getting this permission. The principal can be an AWS // service (e.g. s3.amazonaws.com or sns.amazonaws.com) for service triggers, // or an account ID for cross-account access. If you specify a service as a // principal, use the SourceArn parameter to limit who can invoke the function // through that service. // // Principal is a required field Principal *string `type:"string" required:"true"` // Specify a version or alias to add permissions to a published version of the // function. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // An optional value you can use to ensure you are updating the latest update // of the function version or alias. If the RevisionID you pass doesn't match // the latest RevisionId of the function or alias, it will fail with an error // message, advising you to retrieve the latest function version or alias RevisionID // using either GetFunction or GetAlias RevisionId *string `type:"string"` // This parameter is used for S3 and SES. The AWS account ID (without a hyphen) // of the source owner. For example, if the SourceArn identifies a bucket, then // this is the bucket owner's account ID. You can use this additional condition // to ensure the bucket you specify is owned by a specific account (it is possible // the bucket owner deleted the bucket and some other AWS account created the // bucket). You can also use this condition to specify all sources (that is, // you don't specify the SourceArn) owned by a specific account. SourceAccount *string `type:"string"` // The Amazon Resource Name of the invoker. // // If you add a permission to a service principal without providing the source // ARN, any AWS account that creates a mapping to your function ARN can invoke // your Lambda function. SourceArn *string `type:"string"` // A unique statement identifier. // // StatementId is a required field StatementId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermissionRequest
func (AddPermissionInput) GoString ¶
func (s AddPermissionInput) GoString() string
GoString returns the string representation
func (AddPermissionInput) MarshalFields ¶
func (s AddPermissionInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AddPermissionInput) String ¶
func (s AddPermissionInput) String() string
String returns the string representation
func (*AddPermissionInput) Validate ¶
func (s *AddPermissionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AddPermissionOutput ¶
type AddPermissionOutput struct { // The permission statement 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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermissionResponse
func (AddPermissionOutput) GoString ¶
func (s AddPermissionOutput) GoString() string
GoString returns the string representation
func (AddPermissionOutput) MarshalFields ¶
func (s AddPermissionOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AddPermissionOutput) SDKResponseMetadata ¶
func (s AddPermissionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (AddPermissionOutput) String ¶
func (s AddPermissionOutput) String() string
String returns the string representation
type AddPermissionRequest ¶
type AddPermissionRequest struct { *aws.Request Input *AddPermissionInput Copy func(*AddPermissionInput) AddPermissionRequest }
AddPermissionRequest is a API request type for the AddPermission API operation.
func (AddPermissionRequest) Send ¶
func (r AddPermissionRequest) Send() (*AddPermissionOutput, error)
Send marshals and sends the AddPermission API request.
type AliasRoutingConfiguration ¶
type AliasRoutingConfiguration struct { // The name of the second alias, and the percentage of traffic that is routed // to it. AdditionalVersionWeights map[string]float64 `type:"map"` // contains filtered or unexported fields }
The alias's traffic shifting (http://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html) configuration. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AliasRoutingConfiguration
func (AliasRoutingConfiguration) GoString ¶
func (s AliasRoutingConfiguration) GoString() string
GoString returns the string representation
func (AliasRoutingConfiguration) MarshalFields ¶
func (s AliasRoutingConfiguration) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (AliasRoutingConfiguration) String ¶
func (s AliasRoutingConfiguration) String() string
String returns the string representation
type CreateAliasInput ¶
type CreateAliasInput struct { // Description of the alias. Description *string `type:"string"` // The name of the lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // Lambda function version for which you are creating the alias. // // FunctionVersion is a required field FunctionVersion *string `min:"1" type:"string" required:"true"` // Name for the alias you are creating. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // Specifies an additional version your alias can point to, allowing you to // dictate what percentage of traffic will invoke each version. For more information, // see Traffic Shifting Using Aliases (http://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html). RoutingConfig *AliasRoutingConfiguration `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAliasRequest
func (CreateAliasInput) GoString ¶
func (s CreateAliasInput) GoString() string
GoString returns the string representation
func (CreateAliasInput) MarshalFields ¶
func (s CreateAliasInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CreateAliasInput) String ¶
func (s CreateAliasInput) String() string
String returns the string representation
func (*CreateAliasInput) Validate ¶
func (s *CreateAliasInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateAliasRequest ¶
type CreateAliasRequest struct { *aws.Request Input *CreateAliasInput Copy func(*CreateAliasInput) CreateAliasRequest }
CreateAliasRequest is a API request type for the CreateAlias API operation.
func (CreateAliasRequest) Send ¶
func (r CreateAliasRequest) Send() (*UpdateAliasOutput, error)
Send marshals and sends the CreateAlias API request.
type CreateEventSourceMappingInput ¶
type CreateEventSourceMappingInput struct { // The maximum number of items to retrieve in a single batch. // // * Amazon Kinesis - Default 100. Max 10,000. // // * Amazon DynamoDB Streams - Default 100. Max 1,000. // // * Amazon Simple Queue Service - Default 10. Max 10. BatchSize *int64 `min:"1" type:"integer"` // Disables the event source mapping to pause polling and invocation. Enabled *bool `type:"boolean"` // The Amazon Resource Name (ARN) of the event source. // // * Amazon Kinesis - The ARN of the data stream or a stream consumer. // // * Amazon DynamoDB Streams - The ARN of the stream. // // * Amazon Simple Queue Service - The ARN of the queue. // // EventSourceArn is a required field EventSourceArn *string `type:"string" required:"true"` // The name of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it's limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `min:"1" type:"string" required:"true"` // The position in a stream from which to start reading. Required for Amazon // Kinesis and Amazon DynamoDB Streams sources. AT_TIMESTAMP is only supported // for Amazon Kinesis streams. StartingPosition EventSourcePosition `type:"string" enum:"true"` // With StartingPosition set to AT_TIMESTAMP, the Unix time in seconds from // which to start reading. StartingPositionTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMappingRequest
func (CreateEventSourceMappingInput) GoString ¶
func (s CreateEventSourceMappingInput) GoString() string
GoString returns the string representation
func (CreateEventSourceMappingInput) MarshalFields ¶
func (s CreateEventSourceMappingInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CreateEventSourceMappingInput) String ¶
func (s CreateEventSourceMappingInput) String() string
String returns the string representation
func (*CreateEventSourceMappingInput) Validate ¶
func (s *CreateEventSourceMappingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateEventSourceMappingRequest ¶
type CreateEventSourceMappingRequest struct { *aws.Request Input *CreateEventSourceMappingInput Copy func(*CreateEventSourceMappingInput) CreateEventSourceMappingRequest }
CreateEventSourceMappingRequest is a API request type for the CreateEventSourceMapping API operation.
func (CreateEventSourceMappingRequest) Send ¶
func (r CreateEventSourceMappingRequest) Send() (*UpdateEventSourceMappingOutput, error)
Send marshals and sends the CreateEventSourceMapping API request.
type CreateFunctionInput ¶
type CreateFunctionInput struct { // The code for the function. // // Code is a required field Code *FunctionCode `type:"structure" required:"true"` // A dead letter queue configuration that specifies the queue or topic where // Lambda sends asynchronous events when they fail processing. For more information, // see Dead Letter Queues (http://docs.aws.amazon.com/lambda/latest/dg/dlq.html). DeadLetterConfig *DeadLetterConfig `type:"structure"` // A description of the function. Description *string `type:"string"` // Environment variables that are accessible from function code during execution. Environment *Environment `type:"structure"` // The name of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `min:"1" type:"string" required:"true"` // The name of the method within your code that Lambda calls to execute your // function. For more information, see Programming Model (http://docs.aws.amazon.com/lambda/latest/dg/programming-model-v2.html). // // Handler is a required field Handler *string `type:"string" required:"true"` // The 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"` // A list of function layers (http://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) // to add to the function's execution environment. Layers []string `type:"list"` // The amount of memory that your function has access to. Increasing the function's // memory also increases it's CPU allocation. The default value is 128 MB. The // value must be a multiple of 64 MB. MemorySize *int64 `min:"128" type:"integer"` // Set to true to publish the first version of the function during creation. Publish *bool `type:"boolean"` // The Amazon Resource Name (ARN) of the function's execution role (http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role). // // Role is a required field Role *string `type:"string" required:"true"` // The runtime version for the function. // // Runtime is a required field Runtime Runtime `type:"string" required:"true" enum:"true"` // The list of tags (key-value pairs) assigned to the new function. For more // information, see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) // in the AWS Lambda Developer Guide. Tags map[string]string `type:"map"` // The amount of time that Lambda allows a function to run before terminating // it. The default is 3 seconds. The maximum allowed value is 900 seconds. Timeout *int64 `min:"1" type:"integer"` // Set Mode to Active to sample and trace a subset of incoming requests with // AWS X-Ray. TracingConfig *TracingConfig `type:"structure"` // If your Lambda function accesses resources in a VPC, you provide this parameter // identifying the list of security group IDs and subnet IDs. These must belong // to the same VPC. You must provide at least one security group and one subnet // ID. VpcConfig *VpcConfig `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionRequest
func (CreateFunctionInput) GoString ¶
func (s CreateFunctionInput) GoString() string
GoString returns the string representation
func (CreateFunctionInput) MarshalFields ¶
func (s CreateFunctionInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CreateFunctionInput) String ¶
func (s CreateFunctionInput) String() string
String returns the string representation
func (*CreateFunctionInput) Validate ¶
func (s *CreateFunctionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateFunctionRequest ¶
type CreateFunctionRequest struct { *aws.Request Input *CreateFunctionInput Copy func(*CreateFunctionInput) CreateFunctionRequest }
CreateFunctionRequest is a API request type for the CreateFunction API operation.
func (CreateFunctionRequest) Send ¶
func (r CreateFunctionRequest) Send() (*UpdateFunctionConfigurationOutput, error)
Send marshals and sends the CreateFunction API request.
type DeadLetterConfig ¶
type DeadLetterConfig struct { // The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic. TargetArn *string `type:"string"` // contains filtered or unexported fields }
The dead letter queue (http://docs.aws.amazon.com/lambda/latest/dg/dlq.html) for failed asynchronous invocations. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeadLetterConfig
func (DeadLetterConfig) GoString ¶
func (s DeadLetterConfig) GoString() string
GoString returns the string representation
func (DeadLetterConfig) MarshalFields ¶
func (s DeadLetterConfig) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeadLetterConfig) String ¶
func (s DeadLetterConfig) String() string
String returns the string representation
type DeleteAliasInput ¶
type DeleteAliasInput struct { // The name of the lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // 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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteAliasRequest
func (DeleteAliasInput) GoString ¶
func (s DeleteAliasInput) GoString() string
GoString returns the string representation
func (DeleteAliasInput) MarshalFields ¶
func (s DeleteAliasInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteAliasInput) String ¶
func (s DeleteAliasInput) String() string
String returns the string representation
func (*DeleteAliasInput) Validate ¶
func (s *DeleteAliasInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteAliasOutput ¶
type DeleteAliasOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteAliasOutput
func (DeleteAliasOutput) GoString ¶
func (s DeleteAliasOutput) GoString() string
GoString returns the string representation
func (DeleteAliasOutput) MarshalFields ¶
func (s DeleteAliasOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteAliasOutput) SDKResponseMetadata ¶
func (s DeleteAliasOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DeleteAliasOutput) String ¶
func (s DeleteAliasOutput) String() string
String returns the string representation
type DeleteAliasRequest ¶
type DeleteAliasRequest struct { *aws.Request Input *DeleteAliasInput Copy func(*DeleteAliasInput) DeleteAliasRequest }
DeleteAliasRequest is a API request type for the DeleteAlias API operation.
func (DeleteAliasRequest) Send ¶
func (r DeleteAliasRequest) Send() (*DeleteAliasOutput, error)
Send marshals and sends the DeleteAlias API request.
type DeleteEventSourceMappingInput ¶
type DeleteEventSourceMappingInput struct { // The identifier of the event source mapping. // // UUID is a required field UUID *string `location:"uri" locationName:"UUID" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMappingRequest
func (DeleteEventSourceMappingInput) GoString ¶
func (s DeleteEventSourceMappingInput) GoString() string
GoString returns the string representation
func (DeleteEventSourceMappingInput) MarshalFields ¶
func (s DeleteEventSourceMappingInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteEventSourceMappingInput) String ¶
func (s DeleteEventSourceMappingInput) String() string
String returns the string representation
func (*DeleteEventSourceMappingInput) Validate ¶
func (s *DeleteEventSourceMappingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteEventSourceMappingRequest ¶
type DeleteEventSourceMappingRequest struct { *aws.Request Input *DeleteEventSourceMappingInput Copy func(*DeleteEventSourceMappingInput) DeleteEventSourceMappingRequest }
DeleteEventSourceMappingRequest is a API request type for the DeleteEventSourceMapping API operation.
func (DeleteEventSourceMappingRequest) Send ¶
func (r DeleteEventSourceMappingRequest) Send() (*UpdateEventSourceMappingOutput, error)
Send marshals and sends the DeleteEventSourceMapping API request.
type DeleteFunctionConcurrencyInput ¶
type DeleteFunctionConcurrencyInput struct { // The name of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionConcurrencyRequest
func (DeleteFunctionConcurrencyInput) GoString ¶
func (s DeleteFunctionConcurrencyInput) GoString() string
GoString returns the string representation
func (DeleteFunctionConcurrencyInput) MarshalFields ¶
func (s DeleteFunctionConcurrencyInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteFunctionConcurrencyInput) String ¶
func (s DeleteFunctionConcurrencyInput) String() string
String returns the string representation
func (*DeleteFunctionConcurrencyInput) Validate ¶
func (s *DeleteFunctionConcurrencyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteFunctionConcurrencyOutput ¶
type DeleteFunctionConcurrencyOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionConcurrencyOutput
func (DeleteFunctionConcurrencyOutput) GoString ¶
func (s DeleteFunctionConcurrencyOutput) GoString() string
GoString returns the string representation
func (DeleteFunctionConcurrencyOutput) MarshalFields ¶
func (s DeleteFunctionConcurrencyOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteFunctionConcurrencyOutput) SDKResponseMetadata ¶
func (s DeleteFunctionConcurrencyOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DeleteFunctionConcurrencyOutput) String ¶
func (s DeleteFunctionConcurrencyOutput) String() string
String returns the string representation
type DeleteFunctionConcurrencyRequest ¶
type DeleteFunctionConcurrencyRequest struct { *aws.Request Input *DeleteFunctionConcurrencyInput Copy func(*DeleteFunctionConcurrencyInput) DeleteFunctionConcurrencyRequest }
DeleteFunctionConcurrencyRequest is a API request type for the DeleteFunctionConcurrency API operation.
func (DeleteFunctionConcurrencyRequest) Send ¶
func (r DeleteFunctionConcurrencyRequest) Send() (*DeleteFunctionConcurrencyOutput, error)
Send marshals and sends the DeleteFunctionConcurrency API request.
type DeleteFunctionInput ¶
type DeleteFunctionInput struct { // The name of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // Specify a version to delete. You cannot delete a version that is referenced // by an alias. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionRequest
func (DeleteFunctionInput) GoString ¶
func (s DeleteFunctionInput) GoString() string
GoString returns the string representation
func (DeleteFunctionInput) MarshalFields ¶
func (s DeleteFunctionInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteFunctionInput) String ¶
func (s DeleteFunctionInput) String() string
String returns the string representation
func (*DeleteFunctionInput) Validate ¶
func (s *DeleteFunctionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteFunctionOutput ¶
type DeleteFunctionOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionOutput
func (DeleteFunctionOutput) GoString ¶
func (s DeleteFunctionOutput) GoString() string
GoString returns the string representation
func (DeleteFunctionOutput) MarshalFields ¶
func (s DeleteFunctionOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteFunctionOutput) SDKResponseMetadata ¶
func (s DeleteFunctionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DeleteFunctionOutput) String ¶
func (s DeleteFunctionOutput) String() string
String returns the string representation
type DeleteFunctionRequest ¶
type DeleteFunctionRequest struct { *aws.Request Input *DeleteFunctionInput Copy func(*DeleteFunctionInput) DeleteFunctionRequest }
DeleteFunctionRequest is a API request type for the DeleteFunction API operation.
func (DeleteFunctionRequest) Send ¶
func (r DeleteFunctionRequest) Send() (*DeleteFunctionOutput, error)
Send marshals and sends the DeleteFunction API request.
type DeleteLayerVersionInput ¶
type DeleteLayerVersionInput struct { // The name of the layer. // // LayerName is a required field LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` // The version number. // // VersionNumber is a required field VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteLayerVersionRequest
func (DeleteLayerVersionInput) GoString ¶
func (s DeleteLayerVersionInput) GoString() string
GoString returns the string representation
func (DeleteLayerVersionInput) MarshalFields ¶
func (s DeleteLayerVersionInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteLayerVersionInput) String ¶
func (s DeleteLayerVersionInput) String() string
String returns the string representation
func (*DeleteLayerVersionInput) Validate ¶
func (s *DeleteLayerVersionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteLayerVersionOutput ¶
type DeleteLayerVersionOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteLayerVersionOutput
func (DeleteLayerVersionOutput) GoString ¶
func (s DeleteLayerVersionOutput) GoString() string
GoString returns the string representation
func (DeleteLayerVersionOutput) MarshalFields ¶
func (s DeleteLayerVersionOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DeleteLayerVersionOutput) SDKResponseMetadata ¶
func (s DeleteLayerVersionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DeleteLayerVersionOutput) String ¶
func (s DeleteLayerVersionOutput) String() string
String returns the string representation
type DeleteLayerVersionRequest ¶
type DeleteLayerVersionRequest struct { *aws.Request Input *DeleteLayerVersionInput Copy func(*DeleteLayerVersionInput) DeleteLayerVersionRequest }
DeleteLayerVersionRequest is a API request type for the DeleteLayerVersion API operation.
func (DeleteLayerVersionRequest) Send ¶
func (r DeleteLayerVersionRequest) Send() (*DeleteLayerVersionOutput, error)
Send marshals and sends the DeleteLayerVersion API request.
type Environment ¶
type Environment struct { // Environment variable key-value pairs. Variables map[string]string `type:"map"` // contains filtered or unexported fields }
A function's environment variable settings. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Environment
func (Environment) GoString ¶
func (s Environment) GoString() string
GoString returns the string representation
func (Environment) MarshalFields ¶
func (s Environment) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (Environment) String ¶
func (s Environment) String() string
String returns the string representation
type EnvironmentError ¶
type EnvironmentError struct { // The error code. ErrorCode *string `type:"string"` // The error message. Message *string `type:"string"` // contains filtered or unexported fields }
Error messages for environment variables that could not be applied. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EnvironmentError
func (EnvironmentError) GoString ¶
func (s EnvironmentError) GoString() string
GoString returns the string representation
func (EnvironmentError) MarshalFields ¶
func (s EnvironmentError) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (EnvironmentError) String ¶
func (s EnvironmentError) String() string
String returns the string representation
type EnvironmentResponse ¶
type EnvironmentResponse struct { // Error messages for environment variables that could not be applied. Error *EnvironmentError `type:"structure"` // Environment variable key-value pairs. Variables map[string]string `type:"map"` // contains filtered or unexported fields }
The results of a configuration update that applied environment variables. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EnvironmentResponse
func (EnvironmentResponse) GoString ¶
func (s EnvironmentResponse) GoString() string
GoString returns the string representation
func (EnvironmentResponse) MarshalFields ¶
func (s EnvironmentResponse) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (EnvironmentResponse) String ¶
func (s EnvironmentResponse) String() string
String returns the string representation
type EventSourcePosition ¶
type EventSourcePosition string
const ( EventSourcePositionTrimHorizon EventSourcePosition = "TRIM_HORIZON" EventSourcePositionLatest EventSourcePosition = "LATEST" EventSourcePositionAtTimestamp EventSourcePosition = "AT_TIMESTAMP" )
Enum values for EventSourcePosition
func (EventSourcePosition) MarshalValue ¶
func (enum EventSourcePosition) MarshalValue() (string, error)
func (EventSourcePosition) MarshalValueBuf ¶
func (enum EventSourcePosition) MarshalValueBuf(b []byte) ([]byte, error)
type FunctionCode ¶
type FunctionCode struct { // An Amazon S3 bucket in the same region as your function. S3Bucket *string `min:"3" type:"string"` // The Amazon S3 key of the deployment package. S3Key *string `min:"1" type:"string"` // For versioned objects, the version of the deployment package object to use. S3ObjectVersion *string `min:"1" type:"string"` // The base64-encoded contents of your zip file containing your deployment package. // AWS SDK and AWS CLI clients handle the encoding for you. // // ZipFile is automatically base64 encoded/decoded by the SDK. ZipFile []byte `type:"blob"` // contains filtered or unexported fields }
The code for the Lambda function. You can specify either an S3 location, or upload a deployment package directly. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionCode
func (FunctionCode) GoString ¶
func (s FunctionCode) GoString() string
GoString returns the string representation
func (FunctionCode) MarshalFields ¶
func (s FunctionCode) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (FunctionCode) String ¶
func (s FunctionCode) String() string
String returns the string representation
func (*FunctionCode) Validate ¶
func (s *FunctionCode) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type FunctionCodeLocation ¶
type FunctionCodeLocation struct { // 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. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionCodeLocation
func (FunctionCodeLocation) GoString ¶
func (s FunctionCodeLocation) GoString() string
GoString returns the string representation
func (FunctionCodeLocation) MarshalFields ¶
func (s FunctionCodeLocation) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (FunctionCodeLocation) String ¶
func (s FunctionCodeLocation) String() string
String returns the string representation
type FunctionVersion ¶
type FunctionVersion string
const ( FunctionVersionAll FunctionVersion = "ALL" )
Enum values for FunctionVersion
func (FunctionVersion) MarshalValue ¶
func (enum FunctionVersion) MarshalValue() (string, error)
func (FunctionVersion) MarshalValueBuf ¶
func (enum FunctionVersion) MarshalValueBuf(b []byte) ([]byte, error)
type GetAccountSettingsInput ¶
type GetAccountSettingsInput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettingsRequest
func (GetAccountSettingsInput) GoString ¶
func (s GetAccountSettingsInput) GoString() string
GoString returns the string representation
func (GetAccountSettingsInput) MarshalFields ¶
func (s GetAccountSettingsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetAccountSettingsInput) String ¶
func (s GetAccountSettingsInput) String() string
String returns the string representation
type GetAccountSettingsOutput ¶
type GetAccountSettingsOutput struct { // Limits related to concurrency and code storage. AccountLimit *AccountLimit `type:"structure"` // The number of functions and amount of storage in use. AccountUsage *AccountUsage `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettingsResponse
func (GetAccountSettingsOutput) GoString ¶
func (s GetAccountSettingsOutput) GoString() string
GoString returns the string representation
func (GetAccountSettingsOutput) MarshalFields ¶
func (s GetAccountSettingsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetAccountSettingsOutput) SDKResponseMetadata ¶
func (s GetAccountSettingsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetAccountSettingsOutput) String ¶
func (s GetAccountSettingsOutput) String() string
String returns the string representation
type GetAccountSettingsRequest ¶
type GetAccountSettingsRequest struct { *aws.Request Input *GetAccountSettingsInput Copy func(*GetAccountSettingsInput) GetAccountSettingsRequest }
GetAccountSettingsRequest is a API request type for the GetAccountSettings API operation.
func (GetAccountSettingsRequest) Send ¶
func (r GetAccountSettingsRequest) Send() (*GetAccountSettingsOutput, error)
Send marshals and sends the GetAccountSettings API request.
type GetAliasInput ¶
type GetAliasInput struct { // The name of the lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // 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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAliasRequest
func (GetAliasInput) GoString ¶
func (s GetAliasInput) GoString() string
GoString returns the string representation
func (GetAliasInput) MarshalFields ¶
func (s GetAliasInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetAliasInput) String ¶
func (s GetAliasInput) String() string
String returns the string representation
func (*GetAliasInput) Validate ¶
func (s *GetAliasInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetAliasRequest ¶
type GetAliasRequest struct { *aws.Request Input *GetAliasInput Copy func(*GetAliasInput) GetAliasRequest }
GetAliasRequest is a API request type for the GetAlias API operation.
func (GetAliasRequest) Send ¶
func (r GetAliasRequest) Send() (*UpdateAliasOutput, error)
Send marshals and sends the GetAlias API request.
type GetEventSourceMappingInput ¶
type GetEventSourceMappingInput struct { // The identifier of the event source mapping. // // UUID is a required field UUID *string `location:"uri" locationName:"UUID" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMappingRequest
func (GetEventSourceMappingInput) GoString ¶
func (s GetEventSourceMappingInput) GoString() string
GoString returns the string representation
func (GetEventSourceMappingInput) MarshalFields ¶
func (s GetEventSourceMappingInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetEventSourceMappingInput) String ¶
func (s GetEventSourceMappingInput) String() string
String returns the string representation
func (*GetEventSourceMappingInput) Validate ¶
func (s *GetEventSourceMappingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetEventSourceMappingRequest ¶
type GetEventSourceMappingRequest struct { *aws.Request Input *GetEventSourceMappingInput Copy func(*GetEventSourceMappingInput) GetEventSourceMappingRequest }
GetEventSourceMappingRequest is a API request type for the GetEventSourceMapping API operation.
func (GetEventSourceMappingRequest) Send ¶
func (r GetEventSourceMappingRequest) Send() (*UpdateEventSourceMappingOutput, error)
Send marshals and sends the GetEventSourceMapping API request.
type GetFunctionConfigurationInput ¶
type GetFunctionConfigurationInput struct { // The name of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // Specify a version or alias to get details about a published version of the // function. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfigurationRequest
func (GetFunctionConfigurationInput) GoString ¶
func (s GetFunctionConfigurationInput) GoString() string
GoString returns the string representation
func (GetFunctionConfigurationInput) MarshalFields ¶
func (s GetFunctionConfigurationInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetFunctionConfigurationInput) String ¶
func (s GetFunctionConfigurationInput) String() string
String returns the string representation
func (*GetFunctionConfigurationInput) Validate ¶
func (s *GetFunctionConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetFunctionConfigurationRequest ¶
type GetFunctionConfigurationRequest struct { *aws.Request Input *GetFunctionConfigurationInput Copy func(*GetFunctionConfigurationInput) GetFunctionConfigurationRequest }
GetFunctionConfigurationRequest is a API request type for the GetFunctionConfiguration API operation.
func (GetFunctionConfigurationRequest) Send ¶
func (r GetFunctionConfigurationRequest) Send() (*UpdateFunctionConfigurationOutput, error)
Send marshals and sends the GetFunctionConfiguration API request.
type GetFunctionInput ¶
type GetFunctionInput struct { // The name of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // Specify a version or alias to get details about a published version of the // function. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionRequest
func (GetFunctionInput) GoString ¶
func (s GetFunctionInput) GoString() string
GoString returns the string representation
func (GetFunctionInput) MarshalFields ¶
func (s GetFunctionInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetFunctionInput) String ¶
func (s GetFunctionInput) String() string
String returns the string representation
func (*GetFunctionInput) Validate ¶
func (s *GetFunctionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetFunctionOutput ¶
type GetFunctionOutput struct { // The function's code. Code *FunctionCodeLocation `type:"structure"` // The concurrent execution limit set for this function. For more information, // see Managing Concurrency (http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html). Concurrency *PutFunctionConcurrencyOutput `type:"structure"` // The function's configuration. Configuration *UpdateFunctionConfigurationOutput `type:"structure"` // Returns the list of tags associated with the function. For more information, // see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) // in the AWS Lambda Developer Guide. Tags map[string]string `type:"map"` // contains filtered or unexported fields }
This response contains the object for the Lambda function location (see FunctionCodeLocation. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionResponse
func (GetFunctionOutput) GoString ¶
func (s GetFunctionOutput) GoString() string
GoString returns the string representation
func (GetFunctionOutput) MarshalFields ¶
func (s GetFunctionOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetFunctionOutput) SDKResponseMetadata ¶
func (s GetFunctionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetFunctionOutput) String ¶
func (s GetFunctionOutput) String() string
String returns the string representation
type GetFunctionRequest ¶
type GetFunctionRequest struct { *aws.Request Input *GetFunctionInput Copy func(*GetFunctionInput) GetFunctionRequest }
GetFunctionRequest is a API request type for the GetFunction API operation.
func (GetFunctionRequest) Send ¶
func (r GetFunctionRequest) Send() (*GetFunctionOutput, error)
Send marshals and sends the GetFunction API request.
type GetLayerVersionInput ¶
type GetLayerVersionInput struct { // The name of the layer. // // LayerName is a required field LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` // The version number. // // VersionNumber is a required field VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionRequest
func (GetLayerVersionInput) GoString ¶
func (s GetLayerVersionInput) GoString() string
GoString returns the string representation
func (GetLayerVersionInput) MarshalFields ¶
func (s GetLayerVersionInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetLayerVersionInput) String ¶
func (s GetLayerVersionInput) String() string
String returns the string representation
func (*GetLayerVersionInput) Validate ¶
func (s *GetLayerVersionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetLayerVersionOutput ¶
type GetLayerVersionOutput struct { // The layer's compatible runtimes. CompatibleRuntimes []Runtime `type:"list"` // Details about the layer version. Content *LayerVersionContentOutput `type:"structure"` // The date that the layer version was created, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime) // (YYYY-MM-DDThh:mm:ss.sTZD). CreatedDate *string `type:"string"` // The description of the version. Description *string `type:"string"` // The Amazon Resource Name (ARN) of the function layer. LayerArn *string `min:"1" type:"string"` // The ARN of the layer version. LayerVersionArn *string `min:"1" type:"string"` // The layer's software license. LicenseInfo *string `type:"string"` // The version number. Version *int64 `type:"long"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionResponse
func (GetLayerVersionOutput) GoString ¶
func (s GetLayerVersionOutput) GoString() string
GoString returns the string representation
func (GetLayerVersionOutput) MarshalFields ¶
func (s GetLayerVersionOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetLayerVersionOutput) SDKResponseMetadata ¶
func (s GetLayerVersionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetLayerVersionOutput) String ¶
func (s GetLayerVersionOutput) String() string
String returns the string representation
type GetLayerVersionPolicyInput ¶
type GetLayerVersionPolicyInput struct { // The name of the layer. // // LayerName is a required field LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` // The version number. // // VersionNumber is a required field VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionPolicyRequest
func (GetLayerVersionPolicyInput) GoString ¶
func (s GetLayerVersionPolicyInput) GoString() string
GoString returns the string representation
func (GetLayerVersionPolicyInput) MarshalFields ¶
func (s GetLayerVersionPolicyInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetLayerVersionPolicyInput) String ¶
func (s GetLayerVersionPolicyInput) String() string
String returns the string representation
func (*GetLayerVersionPolicyInput) Validate ¶
func (s *GetLayerVersionPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetLayerVersionPolicyOutput ¶
type GetLayerVersionPolicyOutput struct { // The policy document. Policy *string `type:"string"` // A unique identifier for the current revision of the policy. RevisionId *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionPolicyResponse
func (GetLayerVersionPolicyOutput) GoString ¶
func (s GetLayerVersionPolicyOutput) GoString() string
GoString returns the string representation
func (GetLayerVersionPolicyOutput) MarshalFields ¶
func (s GetLayerVersionPolicyOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetLayerVersionPolicyOutput) SDKResponseMetadata ¶
func (s GetLayerVersionPolicyOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetLayerVersionPolicyOutput) String ¶
func (s GetLayerVersionPolicyOutput) String() string
String returns the string representation
type GetLayerVersionPolicyRequest ¶
type GetLayerVersionPolicyRequest struct { *aws.Request Input *GetLayerVersionPolicyInput Copy func(*GetLayerVersionPolicyInput) GetLayerVersionPolicyRequest }
GetLayerVersionPolicyRequest is a API request type for the GetLayerVersionPolicy API operation.
func (GetLayerVersionPolicyRequest) Send ¶
func (r GetLayerVersionPolicyRequest) Send() (*GetLayerVersionPolicyOutput, error)
Send marshals and sends the GetLayerVersionPolicy API request.
type GetLayerVersionRequest ¶
type GetLayerVersionRequest struct { *aws.Request Input *GetLayerVersionInput Copy func(*GetLayerVersionInput) GetLayerVersionRequest }
GetLayerVersionRequest is a API request type for the GetLayerVersion API operation.
func (GetLayerVersionRequest) Send ¶
func (r GetLayerVersionRequest) Send() (*GetLayerVersionOutput, error)
Send marshals and sends the GetLayerVersion API request.
type GetPolicyInput ¶
type GetPolicyInput struct { // The name of the lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // 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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicyRequest
func (GetPolicyInput) GoString ¶
func (s GetPolicyInput) GoString() string
GoString returns the string representation
func (GetPolicyInput) MarshalFields ¶
func (s GetPolicyInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetPolicyInput) String ¶
func (s GetPolicyInput) String() string
String returns the string representation
func (*GetPolicyInput) Validate ¶
func (s *GetPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetPolicyOutput ¶
type GetPolicyOutput struct { // The resource policy associated with the specified function. The response // returns the same as a string using a backslash ("\") as an escape character // in the JSON. Policy *string `type:"string"` // Represents the latest updated revision of the function or alias. RevisionId *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicyResponse
func (GetPolicyOutput) GoString ¶
func (s GetPolicyOutput) GoString() string
GoString returns the string representation
func (GetPolicyOutput) MarshalFields ¶
func (s GetPolicyOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (GetPolicyOutput) SDKResponseMetadata ¶
func (s GetPolicyOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetPolicyOutput) String ¶
func (s GetPolicyOutput) String() string
String returns the string representation
type GetPolicyRequest ¶
type GetPolicyRequest struct { *aws.Request Input *GetPolicyInput Copy func(*GetPolicyInput) GetPolicyRequest }
GetPolicyRequest is a API request type for the GetPolicy API operation.
func (GetPolicyRequest) Send ¶
func (r GetPolicyRequest) Send() (*GetPolicyOutput, error)
Send marshals and sends the GetPolicy API request.
type InvocationType ¶
type InvocationType string
const ( InvocationTypeEvent InvocationType = "Event" InvocationTypeRequestResponse InvocationType = "RequestResponse" InvocationTypeDryRun InvocationType = "DryRun" )
Enum values for InvocationType
func (InvocationType) MarshalValue ¶
func (enum InvocationType) MarshalValue() (string, error)
func (InvocationType) MarshalValueBuf ¶
func (enum InvocationType) MarshalValueBuf(b []byte) ([]byte, error)
type InvokeAsyncInput ¶
type InvokeAsyncInput struct { // The name of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // 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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeAsyncRequest
func (InvokeAsyncInput) GoString ¶
func (s InvokeAsyncInput) GoString() string
GoString returns the string representation
func (InvokeAsyncInput) MarshalFields ¶
func (s InvokeAsyncInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (InvokeAsyncInput) String ¶
func (s InvokeAsyncInput) String() string
String returns the string representation
func (*InvokeAsyncInput) Validate ¶
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. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeAsyncResponse
func (InvokeAsyncOutput) GoString ¶
func (s InvokeAsyncOutput) GoString() string
GoString returns the string representation
func (InvokeAsyncOutput) MarshalFields ¶
func (s InvokeAsyncOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (InvokeAsyncOutput) SDKResponseMetadata ¶
func (s InvokeAsyncOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (InvokeAsyncOutput) String ¶
func (s InvokeAsyncOutput) String() string
String returns the string representation
type InvokeAsyncRequest ¶
type InvokeAsyncRequest struct { *aws.Request Input *InvokeAsyncInput Copy func(*InvokeAsyncInput) InvokeAsyncRequest }
InvokeAsyncRequest is a API request type for the InvokeAsync API operation.
func (InvokeAsyncRequest) Send ¶
func (r InvokeAsyncRequest) Send() (*InvokeAsyncOutput, error)
Send marshals and sends the InvokeAsync API request.
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 and has a maximum size of 3583 // bytes. // // ClientContext information is returned only if you use the synchronous (RequestResponse) // invocation type. ClientContext *string `location:"header" locationName:"X-Amz-Client-Context" type:"string"` // The name of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // Choose from the following options. // // * RequestResponse (default) - Invoke the function synchronously. Keep // the connection open until the function returns a response or times out. // // * Event - Invoke the function asynchronously. Send events that fail multiple // times to the function's dead-letter queue (if configured). // // * DryRun - Validate parameter values and verify that the user or role // has permission to invoke the function. InvocationType InvocationType `location:"header" locationName:"X-Amz-Invocation-Type" type:"string" enum:"true"` // 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 LogType `location:"header" locationName:"X-Amz-Log-Type" type:"string" enum:"true"` // JSON that you want to provide to your Lambda function as input. Payload []byte `type:"blob"` // Specify a version or alias to invoke a published version of the function. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvocationRequest
func (InvokeInput) GoString ¶
func (s InvokeInput) GoString() string
GoString returns the string representation
func (InvokeInput) MarshalFields ¶
func (s InvokeInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (InvokeInput) String ¶
func (s InvokeInput) String() string
String returns the string representation
func (*InvokeInput) Validate ¶
func (s *InvokeInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InvokeOutput ¶
type InvokeOutput struct { // The function version that has been executed. This value is returned only // if the invocation type is RequestResponse. For more information, see Traffic // Shifting Using Aliases (http://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html). ExecutedVersion *string `location:"header" locationName:"X-Amz-Executed-Version" min:"1" type:"string"` // Indicates whether an error occurred while executing the Lambda function. // If an error occurred this field will have one of two values; Handled or Unhandled. // Handled errors are errors that are reported by the function while the Unhandled // errors are those detected and reported by AWS Lambda. Unhandled errors include // out of memory errors and function timeouts. For information about how to // report an Handled error, see Programming Model (http://docs.aws.amazon.com/lambda/latest/dg/programming-model.html). FunctionError *string `location:"header" locationName:"X-Amz-Function-Error" type:"string"` // It is the base64-encoded logs for the Lambda function invocation. This is // present only if the invocation type is RequestResponse and the logs were // requested. LogResult *string `location:"header" locationName:"X-Amz-Log-Result" type:"string"` // It is the JSON representation of the object returned by the Lambda function. // This is present only if the invocation type is RequestResponse. // // In the event of a function error this field contains a message describing // the error. For the Handled errors the Lambda function will report this message. // For Unhandled errors AWS Lambda reports the message. Payload []byte `type:"blob"` // The HTTP status code will be in the 200 range for successful request. For // the RequestResponse invocation type this status code will be 200. For the // Event invocation type this status code will be 202. For the DryRun invocation // type the status code will be 204. StatusCode *int64 `location:"statusCode" type:"integer"` // contains filtered or unexported fields }
Upon success, returns an empty response. Otherwise, throws an exception. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvocationResponse
func (InvokeOutput) GoString ¶
func (s InvokeOutput) GoString() string
GoString returns the string representation
func (InvokeOutput) MarshalFields ¶
func (s InvokeOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (InvokeOutput) SDKResponseMetadata ¶
func (s InvokeOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (InvokeOutput) String ¶
func (s InvokeOutput) String() string
String returns the string representation
type InvokeRequest ¶
type InvokeRequest struct { *aws.Request Input *InvokeInput Copy func(*InvokeInput) InvokeRequest }
InvokeRequest is a API request type for the Invoke API operation.
func (InvokeRequest) Send ¶
func (r InvokeRequest) Send() (*InvokeOutput, error)
Send marshals and sends the Invoke API request.
type Lambda ¶
Lambda provides the API operation methods for making requests to AWS Lambda. See this package's package overview docs for details on the service.
Lambda methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
New creates a new instance of the Lambda client with a config.
Example:
// Create a Lambda client from just a config. svc := lambda.New(myConfig)
func (*Lambda) AddLayerVersionPermissionRequest ¶
func (c *Lambda) AddLayerVersionPermissionRequest(input *AddLayerVersionPermissionInput) AddLayerVersionPermissionRequest
AddLayerVersionPermissionRequest returns a request value for making API operation for AWS Lambda.
Adds permissions to the resource-based policy of a version of a function layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all AWS accounts, or all accounts in an organization.
To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.
// Example sending a request using the AddLayerVersionPermissionRequest method. req := client.AddLayerVersionPermissionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddLayerVersionPermission
func (*Lambda) AddPermissionRequest ¶
func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) AddPermissionRequest
AddPermissionRequest returns a request value for making API operation for AWS Lambda.
Adds a permission to the resource policy associated with the specified AWS Lambda function. You use resource policies to grant permissions to event sources that use the push model. In a push model, event sources (such as Amazon S3 and custom applications) invoke your Lambda function. Each permission you add to the resource policy allows an event source permission to invoke the Lambda function.
Permissions apply to the Amazon Resource Name (ARN) used to invoke the function, which can be unqualified (the unpublished version of the function), or include a version or alias. If a client uses a version or alias to invoke a function, use the Qualifier parameter to apply permissions to that ARN. For more information about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).
This operation requires permission for the lambda:AddPermission action.
// Example sending a request using the AddPermissionRequest method. req := client.AddPermissionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermission
add-permission
This example adds a permission for an S3 bucket to invoke a Lambda function.
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.AddPermissionInput{
Action: aws.String("lambda:InvokeFunction"),
FunctionName: aws.String("MyFunction"),
Principal: aws.String("s3.amazonaws.com"),
SourceAccount: aws.String("123456789012"),
SourceArn: aws.String("arn:aws:s3:::examplebucket/*"),
StatementId: aws.String("ID-1"),
}
req := svc.AddPermissionRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeResourceConflictException:
fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
case lambda.ErrCodePolicyLengthExceededException:
fmt.Println(lambda.ErrCodePolicyLengthExceededException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
case lambda.ErrCodePreconditionFailedException:
fmt.Println(lambda.ErrCodePreconditionFailedException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) CreateAliasRequest ¶
func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) CreateAliasRequest
CreateAliasRequest returns a request value for making API operation for AWS Lambda.
Creates an alias that points to the specified Lambda function version. For more information, see Introduction to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html).
Alias names are unique for a given function. This requires permission for the lambda:CreateAlias action.
// Example sending a request using the CreateAliasRequest method. req := client.CreateAliasRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAlias
func (*Lambda) CreateEventSourceMappingRequest ¶
func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMappingInput) CreateEventSourceMappingRequest
CreateEventSourceMappingRequest returns a request value for making API operation for AWS Lambda.
Creates a mapping between an event source and an AWS Lambda function. Lambda reads items from the event source and triggers the function.
For details about each event source type, see the following topics.
Using AWS Lambda with Amazon Kinesis (http://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html)
Using AWS Lambda with Amazon SQS (http://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html)
Using AWS Lambda with Amazon DynamoDB (http://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html)
// Example sending a request using the CreateEventSourceMappingRequest method. req := client.CreateEventSourceMappingRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping
func (*Lambda) CreateFunctionRequest ¶
func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) CreateFunctionRequest
CreateFunctionRequest returns a request value for making API operation for AWS Lambda.
Creates a new Lambda function. The function configuration is created from the request parameters, and the code for the function is provided by a .zip file. The function name is case-sensitive.
This operation requires permission for the lambda:CreateFunction action.
// Example sending a request using the CreateFunctionRequest method. req := client.CreateFunctionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction
create-function
This example creates a Lambda function.
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.CreateFunctionInput{
Code: &lambda.FunctionCode{},
Description: aws.String(""),
FunctionName: aws.String("MyFunction"),
Handler: aws.String("souce_file.handler_name"),
MemorySize: aws.Int64(128),
Publish: aws.Bool(true),
Role: aws.String("arn:aws:iam::123456789012:role/service-role/role-name"),
Runtime: lambda.RuntimeNodejs43,
Timeout: aws.Int64(15),
VpcConfig: &lambda.VpcConfig{},
}
req := svc.CreateFunctionRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeResourceConflictException:
fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
case lambda.ErrCodeCodeStorageExceededException:
fmt.Println(lambda.ErrCodeCodeStorageExceededException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) DeleteAliasRequest ¶
func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) DeleteAliasRequest
DeleteAliasRequest returns a request value for making API operation for AWS Lambda.
Deletes the specified Lambda function alias. For more information, see Introduction to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html).
This requires permission for the lambda:DeleteAlias action.
// Example sending a request using the DeleteAliasRequest method. req := client.DeleteAliasRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteAlias
To delete a Lambda function alias
This operation deletes a Lambda function alias
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.DeleteAliasInput{
FunctionName: aws.String("myFunction"),
Name: aws.String("alias"),
}
req := svc.DeleteAliasRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) DeleteEventSourceMappingRequest ¶
func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMappingInput) DeleteEventSourceMappingRequest
DeleteEventSourceMappingRequest returns a request value for making API operation for AWS Lambda.
Deletes an event source mapping.
// Example sending a request using the DeleteEventSourceMappingRequest method. req := client.DeleteEventSourceMappingRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping
To delete a Lambda function event source mapping
This operation deletes a Lambda function event source mapping
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.DeleteEventSourceMappingInput{
UUID: aws.String("12345kxodurf3443"),
}
req := svc.DeleteEventSourceMappingRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
case lambda.ErrCodeResourceInUseException:
fmt.Println(lambda.ErrCodeResourceInUseException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) DeleteFunctionConcurrencyRequest ¶
func (c *Lambda) DeleteFunctionConcurrencyRequest(input *DeleteFunctionConcurrencyInput) DeleteFunctionConcurrencyRequest
DeleteFunctionConcurrencyRequest returns a request value for making API operation for AWS Lambda.
Removes concurrent execution limits from this function. For more information, see Managing Concurrency (http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html).
// Example sending a request using the DeleteFunctionConcurrencyRequest method. req := client.DeleteFunctionConcurrencyRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionConcurrency
func (*Lambda) DeleteFunctionRequest ¶
func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) DeleteFunctionRequest
DeleteFunctionRequest returns a request value for making API operation for AWS Lambda.
Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted. Event source mappings are not deleted.
This operation requires permission for the lambda:DeleteFunction action.
// Example sending a request using the DeleteFunctionRequest method. req := client.DeleteFunctionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunction
To delete a Lambda function
This operation deletes a Lambda function
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.DeleteFunctionInput{
FunctionName: aws.String("myFunction"),
Qualifier: aws.String("1"),
}
req := svc.DeleteFunctionRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
case lambda.ErrCodeResourceConflictException:
fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) DeleteLayerVersionRequest ¶
func (c *Lambda) DeleteLayerVersionRequest(input *DeleteLayerVersionInput) DeleteLayerVersionRequest
DeleteLayerVersionRequest returns a request value for making API operation for AWS Lambda.
Deletes a version of a function layer. Deleted versions can no longer be viewed or added to functions. However, a copy of the version remains in Lambda until no functions refer to it.
// Example sending a request using the DeleteLayerVersionRequest method. req := client.DeleteLayerVersionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteLayerVersion
func (*Lambda) GetAccountSettingsRequest ¶
func (c *Lambda) GetAccountSettingsRequest(input *GetAccountSettingsInput) GetAccountSettingsRequest
GetAccountSettingsRequest returns a request value for making API operation for AWS Lambda.
Retrieves details about your account's limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) and usage in a region.
// Example sending a request using the GetAccountSettingsRequest method. req := client.GetAccountSettingsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettings
To retrieves a Lambda customer's account settings
This operation retrieves a Lambda customer's account settings
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.GetAccountSettingsInput{}
req := svc.GetAccountSettingsRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) GetAliasRequest ¶
func (c *Lambda) GetAliasRequest(input *GetAliasInput) GetAliasRequest
GetAliasRequest returns a request value for making API operation for AWS Lambda.
Returns the specified alias information such as the alias ARN, description, and function version it is pointing to. For more information, see Introduction to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html).
This requires permission for the lambda:GetAlias action.
// Example sending a request using the GetAliasRequest method. req := client.GetAliasRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAlias
To retrieve a Lambda function alias
This operation retrieves a Lambda function alias
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.GetAliasInput{
FunctionName: aws.String("myFunction"),
Name: aws.String("myFunctionAlias"),
}
req := svc.GetAliasRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) GetEventSourceMappingRequest ¶
func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) GetEventSourceMappingRequest
GetEventSourceMappingRequest returns a request value for making API operation for AWS Lambda.
Returns details about an event source mapping.
// Example sending a request using the GetEventSourceMappingRequest method. req := client.GetEventSourceMappingRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping
To retrieve a Lambda function's event source mapping
This operation retrieves a Lambda function's event source mapping
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.GetEventSourceMappingInput{
UUID: aws.String("123489-xxxxx-kdla8d89d7"),
}
req := svc.GetEventSourceMappingRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) GetFunctionConfigurationRequest ¶
func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfigurationInput) GetFunctionConfigurationRequest
GetFunctionConfigurationRequest returns a request value for making API operation for AWS Lambda.
Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using CreateFunction.
If you are using the versioning feature, you can retrieve this information for a specific function version by using the optional Qualifier parameter and specifying the function version or alias that points to it. If you don't provide it, the API returns information about the $LATEST version of the function. For more information about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).
This operation requires permission for the lambda:GetFunctionConfiguration operation.
// Example sending a request using the GetFunctionConfigurationRequest method. req := client.GetFunctionConfigurationRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfiguration
To retrieve a Lambda function's event source mapping
This operation retrieves a Lambda function's event source mapping
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.GetFunctionConfigurationInput{
FunctionName: aws.String("myFunction"),
Qualifier: aws.String("1"),
}
req := svc.GetFunctionConfigurationRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) GetFunctionRequest ¶
func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) GetFunctionRequest
GetFunctionRequest returns a request value for making API operation for AWS Lambda.
Returns the configuration information of the Lambda function and a presigned URL link to the .zip file you uploaded with CreateFunction so you can download the .zip file. Note that the URL is valid for up to 10 minutes. The configuration information is the same information you provided as parameters when uploading the function.
Use the Qualifier parameter to retrieve a published version of the function. Otherwise, returns the unpublished version ($LATEST). For more information, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).
This operation requires permission for the lambda:GetFunction action.
// Example sending a request using the GetFunctionRequest method. req := client.GetFunctionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunction
To retrieve a Lambda function's event source mapping
This operation retrieves a Lambda function's event source mapping
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.GetFunctionInput{
FunctionName: aws.String("myFunction"),
Qualifier: aws.String("1"),
}
req := svc.GetFunctionRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) GetLayerVersionPolicyRequest ¶
func (c *Lambda) GetLayerVersionPolicyRequest(input *GetLayerVersionPolicyInput) GetLayerVersionPolicyRequest
GetLayerVersionPolicyRequest returns a request value for making API operation for AWS Lambda.
Returns the permission policy for a layer version. For more information, see AddLayerVersionPermission.
// Example sending a request using the GetLayerVersionPolicyRequest method. req := client.GetLayerVersionPolicyRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionPolicy
func (*Lambda) GetLayerVersionRequest ¶
func (c *Lambda) GetLayerVersionRequest(input *GetLayerVersionInput) GetLayerVersionRequest
GetLayerVersionRequest returns a request value for making API operation for AWS Lambda.
Returns information about a version of a function layer, with a link to download the layer archive that's valid for 10 minutes.
// Example sending a request using the GetLayerVersionRequest method. req := client.GetLayerVersionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersion
func (*Lambda) GetPolicyRequest ¶
func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) GetPolicyRequest
GetPolicyRequest returns a request value for making API operation for AWS Lambda.
Returns the resource policy associated with the specified Lambda function.
This action requires permission for the lambda:GetPolicy action.
// Example sending a request using the GetPolicyRequest method. req := client.GetPolicyRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicy
To retrieve a Lambda function policy
This operation retrieves a Lambda function policy
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.GetPolicyInput{
FunctionName: aws.String("myFunction"),
Qualifier: aws.String("1"),
}
req := svc.GetPolicyRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) InvokeAsyncRequest ¶
func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) InvokeAsyncRequest
InvokeAsyncRequest returns a request value for making API operation for AWS Lambda.
For asynchronous function invocation, use 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.
// Example sending a request using the InvokeAsyncRequest method. req := client.InvokeAsyncRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeAsync
To invoke a Lambda function asynchronously
This operation invokes a Lambda function asynchronously
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"strings"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.InvokeAsyncInput{
FunctionName: aws.String("myFunction"),
InvokeArgs: aws.ReadSeekCloser(strings.NewReader("fileb://file-path/input.json")),
}
req := svc.InvokeAsyncRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeInvalidRequestContentException:
fmt.Println(lambda.ErrCodeInvalidRequestContentException, aerr.Error())
case lambda.ErrCodeInvalidRuntimeException:
fmt.Println(lambda.ErrCodeInvalidRuntimeException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) InvokeRequest ¶
func (c *Lambda) InvokeRequest(input *InvokeInput) InvokeRequest
InvokeRequest returns a request value for making API operation for AWS Lambda.
Invokes a Lambda function. For an example, see Create the Lambda Function and Test It Manually (http://docs.aws.amazon.com/lambda/latest/dg/with-dynamodb-create-function.html#with-dbb-invoke-manually).
Specify just a function name to invoke the latest version of the function. To invoke a published version, use the Qualifier parameter to specify a version or alias (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).
If you use the RequestResponse (synchronous) invocation option, the function will be invoked only once. If you use the Event (asynchronous) invocation option, the function will be invoked at least once in response to an event and the function must be idempotent to handle this.
For functions with a long timeout, your client may be disconnected during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.
This operation requires permission for the lambda:InvokeFunction action.
The TooManyRequestsException noted below will return the following: ConcurrentInvocationLimitExceeded will be returned if you have no functions with reserved concurrency and have exceeded your account concurrent limit or if a function without reserved concurrency exceeds the account's unreserved concurrency limit. ReservedFunctionConcurrentInvocationLimitExceeded will be returned when a function with reserved concurrency exceeds its configured concurrency limit.
// Example sending a request using the InvokeRequest method. req := client.InvokeRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Invoke
To invoke a Lambda function
This operation invokes a Lambda function
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.InvokeInput{
ClientContext: aws.String("MyApp"),
FunctionName: aws.String("MyFunction"),
InvocationType: lambda.InvocationTypeEvent,
LogType: lambda.LogTypeTail,
Payload: []byte("fileb://file-path/input.json"),
Qualifier: aws.String("1"),
}
req := svc.InvokeRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeInvalidRequestContentException:
fmt.Println(lambda.ErrCodeInvalidRequestContentException, aerr.Error())
case lambda.ErrCodeRequestTooLargeException:
fmt.Println(lambda.ErrCodeRequestTooLargeException, aerr.Error())
case lambda.ErrCodeUnsupportedMediaTypeException:
fmt.Println(lambda.ErrCodeUnsupportedMediaTypeException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
case lambda.ErrCodeEC2UnexpectedException:
fmt.Println(lambda.ErrCodeEC2UnexpectedException, aerr.Error())
case lambda.ErrCodeSubnetIPAddressLimitReachedException:
fmt.Println(lambda.ErrCodeSubnetIPAddressLimitReachedException, aerr.Error())
case lambda.ErrCodeENILimitReachedException:
fmt.Println(lambda.ErrCodeENILimitReachedException, aerr.Error())
case lambda.ErrCodeEC2ThrottledException:
fmt.Println(lambda.ErrCodeEC2ThrottledException, aerr.Error())
case lambda.ErrCodeEC2AccessDeniedException:
fmt.Println(lambda.ErrCodeEC2AccessDeniedException, aerr.Error())
case lambda.ErrCodeInvalidSubnetIDException:
fmt.Println(lambda.ErrCodeInvalidSubnetIDException, aerr.Error())
case lambda.ErrCodeInvalidSecurityGroupIDException:
fmt.Println(lambda.ErrCodeInvalidSecurityGroupIDException, aerr.Error())
case lambda.ErrCodeInvalidZipFileException:
fmt.Println(lambda.ErrCodeInvalidZipFileException, aerr.Error())
case lambda.ErrCodeKMSDisabledException:
fmt.Println(lambda.ErrCodeKMSDisabledException, aerr.Error())
case lambda.ErrCodeKMSInvalidStateException:
fmt.Println(lambda.ErrCodeKMSInvalidStateException, aerr.Error())
case lambda.ErrCodeKMSAccessDeniedException:
fmt.Println(lambda.ErrCodeKMSAccessDeniedException, aerr.Error())
case lambda.ErrCodeKMSNotFoundException:
fmt.Println(lambda.ErrCodeKMSNotFoundException, aerr.Error())
case lambda.ErrCodeInvalidRuntimeException:
fmt.Println(lambda.ErrCodeInvalidRuntimeException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) ListAliasesRequest ¶
func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) ListAliasesRequest
ListAliasesRequest returns a request value for making API operation for AWS Lambda.
Returns list of aliases created for a Lambda function. For each alias, the response includes information such as the alias ARN, description, alias name, and the function version to which it points. For more information, see Introduction to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html).
This requires permission for the lambda:ListAliases action.
// Example sending a request using the ListAliasesRequest method. req := client.ListAliasesRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliases
To retrieve a Lambda function aliases
This operation retrieves a Lambda function's aliases
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.ListAliasesInput{
FunctionName: aws.String("myFunction"),
FunctionVersion: aws.String("1"),
Marker: aws.String(""),
MaxItems: aws.Int64(123),
}
req := svc.ListAliasesRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) ListEventSourceMappingsRequest ¶
func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsInput) ListEventSourceMappingsRequest
ListEventSourceMappingsRequest returns a request value for making API operation for AWS Lambda.
Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a single event source.
// Example sending a request using the ListEventSourceMappingsRequest method. req := client.ListEventSourceMappingsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings
func (*Lambda) ListFunctionsRequest ¶
func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) ListFunctionsRequest
ListFunctionsRequest returns a request value for making API operation for AWS Lambda.
Returns a list of your Lambda functions. For each function, the response includes the function configuration information. You must use GetFunction to retrieve the code for your function.
This operation requires permission for the lambda:ListFunctions action.
If you are using the versioning feature, you can list all of your functions or only $LATEST versions. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).
// Example sending a request using the ListFunctionsRequest method. req := client.ListFunctionsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions
To retrieve a list of Lambda functions
This operation retrieves a Lambda functions
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.ListFunctionsInput{
Marker: aws.String(""),
MaxItems: aws.Int64(123),
}
req := svc.ListFunctionsRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) ListLayerVersionsRequest ¶
func (c *Lambda) ListLayerVersionsRequest(input *ListLayerVersionsInput) ListLayerVersionsRequest
ListLayerVersionsRequest returns a request value for making API operation for AWS Lambda.
Lists the versions of a function layer. Versions that have been deleted aren't listed. Specify a runtime identifier (http://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) to list only versions that indicate that they're compatible with that runtime.
// Example sending a request using the ListLayerVersionsRequest method. req := client.ListLayerVersionsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayerVersions
func (*Lambda) ListLayersRequest ¶
func (c *Lambda) ListLayersRequest(input *ListLayersInput) ListLayersRequest
ListLayersRequest returns a request value for making API operation for AWS Lambda.
Lists function layers and shows information about the latest version of each. Specify a runtime identifier (http://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) to list only layers that indicate that they're compatible with that runtime.
// Example sending a request using the ListLayersRequest method. req := client.ListLayersRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayers
func (*Lambda) ListTagsRequest ¶
func (c *Lambda) ListTagsRequest(input *ListTagsInput) ListTagsRequest
ListTagsRequest returns a request value for making API operation for AWS Lambda.
Returns a list of tags assigned to a function when supplied the function ARN (Amazon Resource Name). For more information on Tagging, see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) in the AWS Lambda Developer Guide.
// Example sending a request using the ListTagsRequest method. req := client.ListTagsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTags
func (*Lambda) ListVersionsByFunctionRequest ¶
func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInput) ListVersionsByFunctionRequest
ListVersionsByFunctionRequest returns a request value for making API operation for AWS Lambda.
Lists all versions of a function. For information about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).
// Example sending a request using the ListVersionsByFunctionRequest method. req := client.ListVersionsByFunctionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction
To retrieve a list of Lambda function versions
This operation retrieves a Lambda function versions
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.ListVersionsByFunctionInput{
FunctionName: aws.String("myFunction"),
Marker: aws.String(""),
MaxItems: aws.Int64(123),
}
req := svc.ListVersionsByFunctionRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) PublishLayerVersionRequest ¶
func (c *Lambda) PublishLayerVersionRequest(input *PublishLayerVersionInput) PublishLayerVersionRequest
PublishLayerVersionRequest returns a request value for making API operation for AWS Lambda.
Creates a function layer from a ZIP archive. Each time you call PublishLayerVersion with the same version name, a new version is created.
Add layers to your function with CreateFunction or UpdateFunctionConfiguration.
// Example sending a request using the PublishLayerVersionRequest method. req := client.PublishLayerVersionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishLayerVersion
func (*Lambda) PublishVersionRequest ¶
func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) PublishVersionRequest
PublishVersionRequest returns a request value for making API operation for AWS Lambda.
Publishes a version of your function from the current snapshot of $LATEST. That is, AWS Lambda takes a snapshot of the function code and configuration information from $LATEST and publishes a new version. The code and configuration cannot be modified after publication. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).
// Example sending a request using the PublishVersionRequest method. req := client.PublishVersionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion
To publish a version of a Lambda function
This operation publishes a version of a Lambda function
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.PublishVersionInput{
CodeSha256: aws.String(""),
Description: aws.String(""),
FunctionName: aws.String("myFunction"),
}
req := svc.PublishVersionRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
case lambda.ErrCodeCodeStorageExceededException:
fmt.Println(lambda.ErrCodeCodeStorageExceededException, aerr.Error())
case lambda.ErrCodePreconditionFailedException:
fmt.Println(lambda.ErrCodePreconditionFailedException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) PutFunctionConcurrencyRequest ¶
func (c *Lambda) PutFunctionConcurrencyRequest(input *PutFunctionConcurrencyInput) PutFunctionConcurrencyRequest
PutFunctionConcurrencyRequest returns a request value for making API operation for AWS Lambda.
Sets a limit on the number of concurrent executions available to this function. It is a subset of your account's total concurrent execution limit per region. Note that Lambda automatically reserves a buffer of 100 concurrent executions for functions without any reserved concurrency limit. This means if your account limit is 1000, you have a total of 900 available to allocate to individual functions. For more information, see Managing Concurrency (http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html).
// Example sending a request using the PutFunctionConcurrencyRequest method. req := client.PutFunctionConcurrencyRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionConcurrency
func (*Lambda) RemoveLayerVersionPermissionRequest ¶
func (c *Lambda) RemoveLayerVersionPermissionRequest(input *RemoveLayerVersionPermissionInput) RemoveLayerVersionPermissionRequest
RemoveLayerVersionPermissionRequest returns a request value for making API operation for AWS Lambda.
Removes a statement from the permissions policy for a layer version. For more information, see AddLayerVersionPermission.
// Example sending a request using the RemoveLayerVersionPermissionRequest method. req := client.RemoveLayerVersionPermissionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemoveLayerVersionPermission
func (*Lambda) RemovePermissionRequest ¶
func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) RemovePermissionRequest
RemovePermissionRequest returns a request value for making API operation for AWS Lambda.
Removes permissions from a function. You can remove individual permissions from an resource policy associated with a Lambda function by providing a statement ID that you provided when you added the permission. When you remove permissions, disable the event source mapping or trigger configuration first to avoid errors.
Permissions apply to the Amazon Resource Name (ARN) used to invoke the function, which can be unqualified (the unpublished version of the function), or include a version or alias. If a client uses a version or alias to invoke a function, use the Qualifier parameter to apply permissions to that ARN. For more information about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).
You need permission for the lambda:RemovePermission action.
// Example sending a request using the RemovePermissionRequest method. req := client.RemovePermissionRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermission
To remove a Lambda function's permissions
This operation removes a Lambda function's permissions
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.RemovePermissionInput{
FunctionName: aws.String("myFunction"),
Qualifier: aws.String("1"),
StatementId: aws.String("role-statement-id"),
}
req := svc.RemovePermissionRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
case lambda.ErrCodePreconditionFailedException:
fmt.Println(lambda.ErrCodePreconditionFailedException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) TagResourceRequest ¶
func (c *Lambda) TagResourceRequest(input *TagResourceInput) TagResourceRequest
TagResourceRequest returns a request value for making API operation for AWS Lambda.
Creates a list of tags (key-value pairs) on the Lambda function. Requires the Lambda function ARN (Amazon Resource Name). If a key is specified without a value, Lambda creates a tag with the specified key and a value of null. For more information, see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) in the AWS Lambda Developer Guide.
// Example sending a request using the TagResourceRequest method. req := client.TagResourceRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResource
func (*Lambda) UntagResourceRequest ¶
func (c *Lambda) UntagResourceRequest(input *UntagResourceInput) UntagResourceRequest
UntagResourceRequest returns a request value for making API operation for AWS Lambda.
Removes tags from a Lambda function. Requires the function ARN (Amazon Resource Name). For more information, see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) in the AWS Lambda Developer Guide.
// Example sending a request using the UntagResourceRequest method. req := client.UntagResourceRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResource
func (*Lambda) UpdateAliasRequest ¶
func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) UpdateAliasRequest
UpdateAliasRequest returns a request value for making API operation for AWS Lambda.
Using this API you can update the function version to which the alias points and the alias description. For more information, see Introduction to AWS Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html).
This requires permission for the lambda:UpdateAlias action.
// Example sending a request using the UpdateAliasRequest method. req := client.UpdateAliasRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAlias
To update a Lambda function alias
This operation updates a Lambda function alias
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.UpdateAliasInput{
Description: aws.String(""),
FunctionName: aws.String("myFunction"),
FunctionVersion: aws.String("1"),
Name: aws.String("functionAlias"),
}
req := svc.UpdateAliasRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
case lambda.ErrCodePreconditionFailedException:
fmt.Println(lambda.ErrCodePreconditionFailedException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) UpdateEventSourceMappingRequest ¶
func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMappingInput) UpdateEventSourceMappingRequest
UpdateEventSourceMappingRequest returns a request value for making API operation for AWS Lambda.
Updates an event source mapping. You can change the function that AWS Lambda invokes, or pause invocation and resume later from the same location.
// Example sending a request using the UpdateEventSourceMappingRequest method. req := client.UpdateEventSourceMappingRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping
To update a Lambda function event source mapping
This operation updates a Lambda function event source mapping
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.UpdateEventSourceMappingInput{
BatchSize: aws.Int64(123),
Enabled: aws.Bool(true),
FunctionName: aws.String("myFunction"),
UUID: aws.String("1234xCy789012"),
}
req := svc.UpdateEventSourceMappingRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
case lambda.ErrCodeResourceConflictException:
fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
case lambda.ErrCodeResourceInUseException:
fmt.Println(lambda.ErrCodeResourceInUseException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) UpdateFunctionCodeRequest ¶
func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) UpdateFunctionCodeRequest
UpdateFunctionCodeRequest returns a request value for making API operation for AWS Lambda.
Updates the code for the specified Lambda function. This operation must only be used on an existing Lambda function and cannot be used to update the function configuration.
If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).
This operation requires permission for the lambda:UpdateFunctionCode action.
// Example sending a request using the UpdateFunctionCodeRequest method. req := client.UpdateFunctionCodeRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode
To update a Lambda function's code
This operation updates a Lambda function's code
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.UpdateFunctionCodeInput{
FunctionName: aws.String("myFunction"),
Publish: aws.Bool(true),
S3Bucket: aws.String("myBucket"),
S3Key: aws.String("myKey"),
S3ObjectVersion: aws.String("1"),
ZipFile: []byte("fileb://file-path/file.zip"),
}
req := svc.UpdateFunctionCodeRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
case lambda.ErrCodeCodeStorageExceededException:
fmt.Println(lambda.ErrCodeCodeStorageExceededException, aerr.Error())
case lambda.ErrCodePreconditionFailedException:
fmt.Println(lambda.ErrCodePreconditionFailedException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
func (*Lambda) UpdateFunctionConfigurationRequest ¶
func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigurationInput) UpdateFunctionConfigurationRequest
UpdateFunctionConfigurationRequest returns a request value for making API operation for AWS Lambda.
Updates the configuration parameters for the specified Lambda function by using the values provided in the request. You provide only the parameters you want to change. This operation must only be used on an existing Lambda function and cannot be used to update the function's code.
If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).
This operation requires permission for the lambda:UpdateFunctionConfiguration action.
// Example sending a request using the UpdateFunctionConfigurationRequest method. req := client.UpdateFunctionConfigurationRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration
To update a Lambda function's configuration
This operation updates a Lambda function's configuration
Code:play
Example (Shared00)¶
package main
import (
"fmt"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/lambda"
)
func main() {
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic("failed to load config, " + err.Error())
}
svc := lambda.New(cfg)
input := &lambda.UpdateFunctionConfigurationInput{
Description: aws.String(""),
FunctionName: aws.String("myFunction"),
Handler: aws.String("index.handler"),
MemorySize: aws.Int64(128),
Role: aws.String("arn:aws:iam::123456789012:role/lambda_basic_execution"),
Runtime: lambda.RuntimePython27,
Timeout: aws.Int64(123),
VpcConfig: &lambda.VpcConfig{},
}
req := svc.UpdateFunctionConfigurationRequest(input)
result, err := req.Send()
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case lambda.ErrCodeServiceException:
fmt.Println(lambda.ErrCodeServiceException, aerr.Error())
case lambda.ErrCodeResourceNotFoundException:
fmt.Println(lambda.ErrCodeResourceNotFoundException, aerr.Error())
case lambda.ErrCodeInvalidParameterValueException:
fmt.Println(lambda.ErrCodeInvalidParameterValueException, aerr.Error())
case lambda.ErrCodeTooManyRequestsException:
fmt.Println(lambda.ErrCodeTooManyRequestsException, aerr.Error())
case lambda.ErrCodeResourceConflictException:
fmt.Println(lambda.ErrCodeResourceConflictException, aerr.Error())
case lambda.ErrCodePreconditionFailedException:
fmt.Println(lambda.ErrCodePreconditionFailedException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
type Layer ¶
type Layer struct { // The Amazon Resource Name (ARN) of the function layer. Arn *string `min:"1" type:"string"` // The size of the layer archive in bytes. CodeSize *int64 `type:"long"` // contains filtered or unexported fields }
A function layer. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Layer
func (Layer) GoString ¶
GoString returns the string representation
func (Layer) MarshalFields ¶
func (s Layer) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (Layer) String ¶
String returns the string representation
type LayerVersionContentInput ¶
type LayerVersionContentInput struct { // The Amazon S3 bucket of the layer archive. S3Bucket *string `min:"3" type:"string"` // The Amazon S3 key of the layer archive. S3Key *string `min:"1" type:"string"` // For versioned objects, the version of the layer archive object to use. S3ObjectVersion *string `min:"1" type:"string"` // The base64-encoded contents of the layer archive. AWS SDK and AWS CLI clients // handle the encoding for you. // // ZipFile is automatically base64 encoded/decoded by the SDK. ZipFile []byte `type:"blob"` // contains filtered or unexported fields }
A ZIP archive that contains the contents of the function layer. You can specify either an Amazon S3 location, or upload a layer archive directly. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/LayerVersionContentInput
func (LayerVersionContentInput) GoString ¶
func (s LayerVersionContentInput) GoString() string
GoString returns the string representation
func (LayerVersionContentInput) MarshalFields ¶
func (s LayerVersionContentInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (LayerVersionContentInput) String ¶
func (s LayerVersionContentInput) String() string
String returns the string representation
func (*LayerVersionContentInput) Validate ¶
func (s *LayerVersionContentInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type LayerVersionContentOutput ¶
type LayerVersionContentOutput struct { // The SHA-256 hash of the layer archive. CodeSha256 *string `type:"string"` // The size of the layer archive in bytes. CodeSize *int64 `type:"long"` // A link to the layer archive in Amazon S3 that is valid for 10 minutes. Location *string `type:"string"` // contains filtered or unexported fields }
Details about a layer version. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/LayerVersionContentOutput
func (LayerVersionContentOutput) GoString ¶
func (s LayerVersionContentOutput) GoString() string
GoString returns the string representation
func (LayerVersionContentOutput) MarshalFields ¶
func (s LayerVersionContentOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (LayerVersionContentOutput) String ¶
func (s LayerVersionContentOutput) String() string
String returns the string representation
type LayerVersionsListItem ¶
type LayerVersionsListItem struct { // The layer's compatible runtimes. CompatibleRuntimes []Runtime `type:"list"` // The date that the version was created, in ISO 8601 format. For example, 2018-11-27T15:10:45.123+0000. CreatedDate *string `type:"string"` // The description of the version. Description *string `type:"string"` // The ARN of the layer version. LayerVersionArn *string `min:"1" type:"string"` // The layer's open-source license. LicenseInfo *string `type:"string"` // The version number. Version *int64 `type:"long"` // contains filtered or unexported fields }
Details about a layer version. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/LayerVersionsListItem
func (LayerVersionsListItem) GoString ¶
func (s LayerVersionsListItem) GoString() string
GoString returns the string representation
func (LayerVersionsListItem) MarshalFields ¶
func (s LayerVersionsListItem) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (LayerVersionsListItem) String ¶
func (s LayerVersionsListItem) String() string
String returns the string representation
type LayersListItem ¶
type LayersListItem struct { // The newest version of the layer. LatestMatchingVersion *LayerVersionsListItem `type:"structure"` // The Amazon Resource Name (ARN) of the function layer. LayerArn *string `min:"1" type:"string"` // The name of the layer. LayerName *string `min:"1" type:"string"` // contains filtered or unexported fields }
Details about a function layer. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/LayersListItem
func (LayersListItem) GoString ¶
func (s LayersListItem) GoString() string
GoString returns the string representation
func (LayersListItem) MarshalFields ¶
func (s LayersListItem) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (LayersListItem) String ¶
func (s LayersListItem) String() string
String returns the string representation
type ListAliasesInput ¶
type ListAliasesInput struct { // The name of the lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // 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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliasesRequest
func (ListAliasesInput) GoString ¶
func (s ListAliasesInput) GoString() string
GoString returns the string representation
func (ListAliasesInput) MarshalFields ¶
func (s ListAliasesInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListAliasesInput) String ¶
func (s ListAliasesInput) String() string
String returns the string representation
func (*ListAliasesInput) Validate ¶
func (s *ListAliasesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListAliasesOutput ¶
type ListAliasesOutput struct { // A list of aliases. Aliases []UpdateAliasOutput `type:"list"` // A string, present if there are more aliases. NextMarker *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliasesResponse
func (ListAliasesOutput) GoString ¶
func (s ListAliasesOutput) GoString() string
GoString returns the string representation
func (ListAliasesOutput) MarshalFields ¶
func (s ListAliasesOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListAliasesOutput) SDKResponseMetadata ¶
func (s ListAliasesOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListAliasesOutput) String ¶
func (s ListAliasesOutput) String() string
String returns the string representation
type ListAliasesRequest ¶
type ListAliasesRequest struct { *aws.Request Input *ListAliasesInput Copy func(*ListAliasesInput) ListAliasesRequest }
ListAliasesRequest is a API request type for the ListAliases API operation.
func (ListAliasesRequest) Send ¶
func (r ListAliasesRequest) Send() (*ListAliasesOutput, error)
Send marshals and sends the ListAliases API request.
type ListEventSourceMappingsInput ¶
type ListEventSourceMappingsInput struct { // The Amazon Resource Name (ARN) of the event source. // // * Amazon Kinesis - The ARN of the data stream or a stream consumer. // // * Amazon DynamoDB Streams - The ARN of the stream. // // * Amazon Simple Queue Service - The ARN of the queue. EventSourceArn *string `location:"querystring" locationName:"EventSourceArn" type:"string"` // The name of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it's limited to 64 characters in length. FunctionName *string `location:"querystring" locationName:"FunctionName" min:"1" type:"string"` // A pagination token returned by a previous call. Marker *string `location:"querystring" locationName:"Marker" type:"string"` // The maximum number of event source mappings to return. MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappingsRequest
func (ListEventSourceMappingsInput) GoString ¶
func (s ListEventSourceMappingsInput) GoString() string
GoString returns the string representation
func (ListEventSourceMappingsInput) MarshalFields ¶
func (s ListEventSourceMappingsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListEventSourceMappingsInput) String ¶
func (s ListEventSourceMappingsInput) String() string
String returns the string representation
func (*ListEventSourceMappingsInput) Validate ¶
func (s *ListEventSourceMappingsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListEventSourceMappingsOutput ¶
type ListEventSourceMappingsOutput struct { // A list of event source mappings. EventSourceMappings []UpdateEventSourceMappingOutput `type:"list"` // A pagination token that's returned when the response doesn't contain all // event source mappings. NextMarker *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappingsResponse
func (ListEventSourceMappingsOutput) GoString ¶
func (s ListEventSourceMappingsOutput) GoString() string
GoString returns the string representation
func (ListEventSourceMappingsOutput) MarshalFields ¶
func (s ListEventSourceMappingsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListEventSourceMappingsOutput) SDKResponseMetadata ¶
func (s ListEventSourceMappingsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListEventSourceMappingsOutput) String ¶
func (s ListEventSourceMappingsOutput) String() string
String returns the string representation
type ListEventSourceMappingsPager ¶
ListEventSourceMappingsPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListEventSourceMappingsPager) CurrentPage ¶
func (p *ListEventSourceMappingsPager) CurrentPage() *ListEventSourceMappingsOutput
type ListEventSourceMappingsRequest ¶
type ListEventSourceMappingsRequest struct { *aws.Request Input *ListEventSourceMappingsInput Copy func(*ListEventSourceMappingsInput) ListEventSourceMappingsRequest }
ListEventSourceMappingsRequest is a API request type for the ListEventSourceMappings API operation.
func (*ListEventSourceMappingsRequest) Paginate ¶
func (p *ListEventSourceMappingsRequest) Paginate(opts ...aws.Option) ListEventSourceMappingsPager
Paginate pages iterates over the pages of a ListEventSourceMappingsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListEventSourceMappings operation. req := client.ListEventSourceMappingsRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListEventSourceMappingsRequest) Send ¶
func (r ListEventSourceMappingsRequest) Send() (*ListEventSourceMappingsOutput, error)
Send marshals and sends the ListEventSourceMappings API request.
type ListFunctionsInput ¶
type ListFunctionsInput struct { // Set to ALL to list all published versions. If not specified, only the latest // unpublished version ARN is returned. FunctionVersion FunctionVersion `location:"querystring" locationName:"FunctionVersion" type:"string" enum:"true"` // 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"` // Specify a region (e.g. us-east-2) to only list functions that were created // in that region, or ALL to include functions replicated from any region. If // specified, you also must specify the FunctionVersion. MasterRegion *string `location:"querystring" locationName:"MasterRegion" type:"string"` // Optional integer. Specifies the maximum number of AWS Lambda functions to // return in response. This parameter value must be greater than 0. The absolute // maximum of AWS Lambda functions that can be returned is 50. MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsRequest
func (ListFunctionsInput) GoString ¶
func (s ListFunctionsInput) GoString() string
GoString returns the string representation
func (ListFunctionsInput) MarshalFields ¶
func (s ListFunctionsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListFunctionsInput) String ¶
func (s ListFunctionsInput) String() string
String returns the string representation
func (*ListFunctionsInput) Validate ¶
func (s *ListFunctionsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListFunctionsOutput ¶
type ListFunctionsOutput struct { // A list of Lambda functions. Functions []UpdateFunctionConfigurationOutput `type:"list"` // A string, present if there are more functions. NextMarker *string `type:"string"` // contains filtered or unexported fields }
A list of Lambda functions. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsResponse
func (ListFunctionsOutput) GoString ¶
func (s ListFunctionsOutput) GoString() string
GoString returns the string representation
func (ListFunctionsOutput) MarshalFields ¶
func (s ListFunctionsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListFunctionsOutput) SDKResponseMetadata ¶
func (s ListFunctionsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListFunctionsOutput) String ¶
func (s ListFunctionsOutput) String() string
String returns the string representation
type ListFunctionsPager ¶
ListFunctionsPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListFunctionsPager) CurrentPage ¶
func (p *ListFunctionsPager) CurrentPage() *ListFunctionsOutput
type ListFunctionsRequest ¶
type ListFunctionsRequest struct { *aws.Request Input *ListFunctionsInput Copy func(*ListFunctionsInput) ListFunctionsRequest }
ListFunctionsRequest is a API request type for the ListFunctions API operation.
func (*ListFunctionsRequest) Paginate ¶
func (p *ListFunctionsRequest) Paginate(opts ...aws.Option) ListFunctionsPager
Paginate pages iterates over the pages of a ListFunctionsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListFunctions operation. req := client.ListFunctionsRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListFunctionsRequest) Send ¶
func (r ListFunctionsRequest) Send() (*ListFunctionsOutput, error)
Send marshals and sends the ListFunctions API request.
type ListLayerVersionsInput ¶
type ListLayerVersionsInput struct { // A runtime identifier. For example, go1.x. CompatibleRuntime Runtime `location:"querystring" locationName:"CompatibleRuntime" type:"string" enum:"true"` // The name of the layer. // // LayerName is a required field LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` // A pagination token returned by a previous call. Marker *string `location:"querystring" locationName:"Marker" type:"string"` // The maximum number of versions to return. MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayerVersionsRequest
func (ListLayerVersionsInput) GoString ¶
func (s ListLayerVersionsInput) GoString() string
GoString returns the string representation
func (ListLayerVersionsInput) MarshalFields ¶
func (s ListLayerVersionsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListLayerVersionsInput) String ¶
func (s ListLayerVersionsInput) String() string
String returns the string representation
func (*ListLayerVersionsInput) Validate ¶
func (s *ListLayerVersionsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListLayerVersionsOutput ¶
type ListLayerVersionsOutput struct { // A list of versions. LayerVersions []LayerVersionsListItem `type:"list"` // A pagination token returned when the response doesn't contain all versions. NextMarker *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayerVersionsResponse
func (ListLayerVersionsOutput) GoString ¶
func (s ListLayerVersionsOutput) GoString() string
GoString returns the string representation
func (ListLayerVersionsOutput) MarshalFields ¶
func (s ListLayerVersionsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListLayerVersionsOutput) SDKResponseMetadata ¶
func (s ListLayerVersionsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListLayerVersionsOutput) String ¶
func (s ListLayerVersionsOutput) String() string
String returns the string representation
type ListLayerVersionsRequest ¶
type ListLayerVersionsRequest struct { *aws.Request Input *ListLayerVersionsInput Copy func(*ListLayerVersionsInput) ListLayerVersionsRequest }
ListLayerVersionsRequest is a API request type for the ListLayerVersions API operation.
func (ListLayerVersionsRequest) Send ¶
func (r ListLayerVersionsRequest) Send() (*ListLayerVersionsOutput, error)
Send marshals and sends the ListLayerVersions API request.
type ListLayersInput ¶
type ListLayersInput struct { // A runtime identifier. For example, go1.x. CompatibleRuntime Runtime `location:"querystring" locationName:"CompatibleRuntime" type:"string" enum:"true"` // A pagination token returned by a previous call. Marker *string `location:"querystring" locationName:"Marker" type:"string"` // The maximum number of layers to return. MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayersRequest
func (ListLayersInput) GoString ¶
func (s ListLayersInput) GoString() string
GoString returns the string representation
func (ListLayersInput) MarshalFields ¶
func (s ListLayersInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListLayersInput) String ¶
func (s ListLayersInput) String() string
String returns the string representation
func (*ListLayersInput) Validate ¶
func (s *ListLayersInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListLayersOutput ¶
type ListLayersOutput struct { // A list of function layers. Layers []LayersListItem `type:"list"` // A pagination token returned when the response doesn't contain all layers. NextMarker *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayersResponse
func (ListLayersOutput) GoString ¶
func (s ListLayersOutput) GoString() string
GoString returns the string representation
func (ListLayersOutput) MarshalFields ¶
func (s ListLayersOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListLayersOutput) SDKResponseMetadata ¶
func (s ListLayersOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListLayersOutput) String ¶
func (s ListLayersOutput) String() string
String returns the string representation
type ListLayersRequest ¶
type ListLayersRequest struct { *aws.Request Input *ListLayersInput Copy func(*ListLayersInput) ListLayersRequest }
ListLayersRequest is a API request type for the ListLayers API operation.
func (ListLayersRequest) Send ¶
func (r ListLayersRequest) Send() (*ListLayersOutput, error)
Send marshals and sends the ListLayers API request.
type ListTagsInput ¶
type ListTagsInput struct { // The ARN (Amazon Resource Name) of the function. For more information, see // Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) // in the AWS Lambda Developer Guide. // // Resource is a required field Resource *string `location:"uri" locationName:"ARN" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTagsRequest
func (ListTagsInput) GoString ¶
func (s ListTagsInput) GoString() string
GoString returns the string representation
func (ListTagsInput) MarshalFields ¶
func (s ListTagsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListTagsInput) String ¶
func (s ListTagsInput) String() string
String returns the string representation
func (*ListTagsInput) Validate ¶
func (s *ListTagsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListTagsOutput ¶
type ListTagsOutput struct { // The list of tags assigned to the function. For more information, see Tagging // Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) // in the AWS Lambda Developer Guide. Tags map[string]string `type:"map"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTagsResponse
func (ListTagsOutput) GoString ¶
func (s ListTagsOutput) GoString() string
GoString returns the string representation
func (ListTagsOutput) MarshalFields ¶
func (s ListTagsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListTagsOutput) SDKResponseMetadata ¶
func (s ListTagsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListTagsOutput) String ¶
func (s ListTagsOutput) String() string
String returns the string representation
type ListTagsRequest ¶
type ListTagsRequest struct { *aws.Request Input *ListTagsInput Copy func(*ListTagsInput) ListTagsRequest }
ListTagsRequest is a API request type for the ListTags API operation.
func (ListTagsRequest) Send ¶
func (r ListTagsRequest) Send() (*ListTagsOutput, error)
Send marshals and sends the ListTags API request.
type ListVersionsByFunctionInput ¶
type ListVersionsByFunctionInput struct { // The name of the lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // 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 }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunctionRequest
func (ListVersionsByFunctionInput) GoString ¶
func (s ListVersionsByFunctionInput) GoString() string
GoString returns the string representation
func (ListVersionsByFunctionInput) MarshalFields ¶
func (s ListVersionsByFunctionInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListVersionsByFunctionInput) String ¶
func (s ListVersionsByFunctionInput) String() string
String returns the string representation
func (*ListVersionsByFunctionInput) Validate ¶
func (s *ListVersionsByFunctionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListVersionsByFunctionOutput ¶
type ListVersionsByFunctionOutput struct { // A string, present if there are more function versions. NextMarker *string `type:"string"` // A list of Lambda function versions. Versions []UpdateFunctionConfigurationOutput `type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunctionResponse
func (ListVersionsByFunctionOutput) GoString ¶
func (s ListVersionsByFunctionOutput) GoString() string
GoString returns the string representation
func (ListVersionsByFunctionOutput) MarshalFields ¶
func (s ListVersionsByFunctionOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListVersionsByFunctionOutput) SDKResponseMetadata ¶
func (s ListVersionsByFunctionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListVersionsByFunctionOutput) String ¶
func (s ListVersionsByFunctionOutput) String() string
String returns the string representation
type ListVersionsByFunctionRequest ¶
type ListVersionsByFunctionRequest struct { *aws.Request Input *ListVersionsByFunctionInput Copy func(*ListVersionsByFunctionInput) ListVersionsByFunctionRequest }
ListVersionsByFunctionRequest is a API request type for the ListVersionsByFunction API operation.
func (ListVersionsByFunctionRequest) Send ¶
func (r ListVersionsByFunctionRequest) Send() (*ListVersionsByFunctionOutput, error)
Send marshals and sends the ListVersionsByFunction API request.
type LogType ¶
type LogType string
Enum values for LogType
func (LogType) MarshalValue ¶
func (LogType) MarshalValueBuf ¶
type PublishLayerVersionInput ¶
type PublishLayerVersionInput struct { // A list of compatible function runtimes (http://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). // Used for filtering with ListLayers and ListLayerVersions. CompatibleRuntimes []Runtime `type:"list"` // The function layer archive. // // Content is a required field Content *LayerVersionContentInput `type:"structure" required:"true"` // The description of the version. Description *string `type:"string"` // The name of the layer. // // LayerName is a required field LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` // The layer's software license. It can be any of the following: // // * An SPDX license identifier (https://spdx.org/licenses/). For example, // MIT. // // * The URL of a license hosted on the internet. For example, https://opensource.org/licenses/MIT. // // * The full text of the license. LicenseInfo *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishLayerVersionRequest
func (PublishLayerVersionInput) GoString ¶
func (s PublishLayerVersionInput) GoString() string
GoString returns the string representation
func (PublishLayerVersionInput) MarshalFields ¶
func (s PublishLayerVersionInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (PublishLayerVersionInput) String ¶
func (s PublishLayerVersionInput) String() string
String returns the string representation
func (*PublishLayerVersionInput) Validate ¶
func (s *PublishLayerVersionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PublishLayerVersionOutput ¶
type PublishLayerVersionOutput struct { // The layer's compatible runtimes. CompatibleRuntimes []Runtime `type:"list"` // Details about the layer version. Content *LayerVersionContentOutput `type:"structure"` // The date that the layer version was created, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime) // (YYYY-MM-DDThh:mm:ss.sTZD). CreatedDate *string `type:"string"` // The description of the version. Description *string `type:"string"` // The Amazon Resource Name (ARN) of the function layer. LayerArn *string `min:"1" type:"string"` // The ARN of the layer version. LayerVersionArn *string `min:"1" type:"string"` // The layer's software license. LicenseInfo *string `type:"string"` // The version number. Version *int64 `type:"long"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishLayerVersionResponse
func (PublishLayerVersionOutput) GoString ¶
func (s PublishLayerVersionOutput) GoString() string
GoString returns the string representation
func (PublishLayerVersionOutput) MarshalFields ¶
func (s PublishLayerVersionOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (PublishLayerVersionOutput) SDKResponseMetadata ¶
func (s PublishLayerVersionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (PublishLayerVersionOutput) String ¶
func (s PublishLayerVersionOutput) String() string
String returns the string representation
type PublishLayerVersionRequest ¶
type PublishLayerVersionRequest struct { *aws.Request Input *PublishLayerVersionInput Copy func(*PublishLayerVersionInput) PublishLayerVersionRequest }
PublishLayerVersionRequest is a API request type for the PublishLayerVersion API operation.
func (PublishLayerVersionRequest) Send ¶
func (r PublishLayerVersionRequest) Send() (*PublishLayerVersionOutput, error)
Send marshals and sends the PublishLayerVersion API request.
type PublishVersionInput ¶
type PublishVersionInput struct { // The SHA256 hash of the deployment package you want to publish. This provides // validation on the code you are publishing. If you provide this parameter, // the value must match the SHA256 of the $LATEST version for the publication // to succeed. You can use the DryRun parameter of UpdateFunctionCode to verify // the hash value that will be returned before publishing your new version. CodeSha256 *string `type:"string"` // The description for the version you are publishing. If not provided, AWS // Lambda copies the description from the $LATEST version. Description *string `type:"string"` // The name of the lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // An optional value you can use to ensure you are updating the latest update // of the function version or alias. If the RevisionID you pass doesn't match // the latest RevisionId of the function or alias, it will fail with an error // message, advising you retrieve the latest function version or alias RevisionID // using either GetFunction or GetAlias. RevisionId *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersionRequest
func (PublishVersionInput) GoString ¶
func (s PublishVersionInput) GoString() string
GoString returns the string representation
func (PublishVersionInput) MarshalFields ¶
func (s PublishVersionInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (PublishVersionInput) String ¶
func (s PublishVersionInput) String() string
String returns the string representation
func (*PublishVersionInput) Validate ¶
func (s *PublishVersionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PublishVersionRequest ¶
type PublishVersionRequest struct { *aws.Request Input *PublishVersionInput Copy func(*PublishVersionInput) PublishVersionRequest }
PublishVersionRequest is a API request type for the PublishVersion API operation.
func (PublishVersionRequest) Send ¶
func (r PublishVersionRequest) Send() (*UpdateFunctionConfigurationOutput, error)
Send marshals and sends the PublishVersion API request.
type PutFunctionConcurrencyInput ¶
type PutFunctionConcurrencyInput struct { // The name of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // The concurrent execution limit reserved for this function. // // ReservedConcurrentExecutions is a required field ReservedConcurrentExecutions *int64 `type:"integer" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionConcurrencyRequest
func (PutFunctionConcurrencyInput) GoString ¶
func (s PutFunctionConcurrencyInput) GoString() string
GoString returns the string representation
func (PutFunctionConcurrencyInput) MarshalFields ¶
func (s PutFunctionConcurrencyInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (PutFunctionConcurrencyInput) String ¶
func (s PutFunctionConcurrencyInput) String() string
String returns the string representation
func (*PutFunctionConcurrencyInput) Validate ¶
func (s *PutFunctionConcurrencyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutFunctionConcurrencyOutput ¶
type PutFunctionConcurrencyOutput struct { // The number of concurrent executions reserved for this function. For more // information, see Managing Concurrency (http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html). ReservedConcurrentExecutions *int64 `type:"integer"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Concurrency
func (PutFunctionConcurrencyOutput) GoString ¶
func (s PutFunctionConcurrencyOutput) GoString() string
GoString returns the string representation
func (PutFunctionConcurrencyOutput) MarshalFields ¶
func (s PutFunctionConcurrencyOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (PutFunctionConcurrencyOutput) SDKResponseMetadata ¶
func (s PutFunctionConcurrencyOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (PutFunctionConcurrencyOutput) String ¶
func (s PutFunctionConcurrencyOutput) String() string
String returns the string representation
type PutFunctionConcurrencyRequest ¶
type PutFunctionConcurrencyRequest struct { *aws.Request Input *PutFunctionConcurrencyInput Copy func(*PutFunctionConcurrencyInput) PutFunctionConcurrencyRequest }
PutFunctionConcurrencyRequest is a API request type for the PutFunctionConcurrency API operation.
func (PutFunctionConcurrencyRequest) Send ¶
func (r PutFunctionConcurrencyRequest) Send() (*PutFunctionConcurrencyOutput, error)
Send marshals and sends the PutFunctionConcurrency API request.
type RemoveLayerVersionPermissionInput ¶
type RemoveLayerVersionPermissionInput struct { // The name of the layer. // // LayerName is a required field LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` // Only update the policy if the revision ID matches the ID specified. Use this // option to avoid modifying a policy that has changed since you last read it. RevisionId *string `location:"querystring" locationName:"RevisionId" type:"string"` // The identifier that was specified when the statement was added. // // StatementId is a required field StatementId *string `location:"uri" locationName:"StatementId" min:"1" type:"string" required:"true"` // The version number. // // VersionNumber is a required field VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemoveLayerVersionPermissionRequest
func (RemoveLayerVersionPermissionInput) GoString ¶
func (s RemoveLayerVersionPermissionInput) GoString() string
GoString returns the string representation
func (RemoveLayerVersionPermissionInput) MarshalFields ¶
func (s RemoveLayerVersionPermissionInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RemoveLayerVersionPermissionInput) String ¶
func (s RemoveLayerVersionPermissionInput) String() string
String returns the string representation
func (*RemoveLayerVersionPermissionInput) Validate ¶
func (s *RemoveLayerVersionPermissionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RemoveLayerVersionPermissionOutput ¶
type RemoveLayerVersionPermissionOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemoveLayerVersionPermissionOutput
func (RemoveLayerVersionPermissionOutput) GoString ¶
func (s RemoveLayerVersionPermissionOutput) GoString() string
GoString returns the string representation
func (RemoveLayerVersionPermissionOutput) MarshalFields ¶
func (s RemoveLayerVersionPermissionOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RemoveLayerVersionPermissionOutput) SDKResponseMetadata ¶
func (s RemoveLayerVersionPermissionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (RemoveLayerVersionPermissionOutput) String ¶
func (s RemoveLayerVersionPermissionOutput) String() string
String returns the string representation
type RemoveLayerVersionPermissionRequest ¶
type RemoveLayerVersionPermissionRequest struct { *aws.Request Input *RemoveLayerVersionPermissionInput Copy func(*RemoveLayerVersionPermissionInput) RemoveLayerVersionPermissionRequest }
RemoveLayerVersionPermissionRequest is a API request type for the RemoveLayerVersionPermission API operation.
func (RemoveLayerVersionPermissionRequest) Send ¶
func (r RemoveLayerVersionPermissionRequest) Send() (*RemoveLayerVersionPermissionOutput, error)
Send marshals and sends the RemoveLayerVersionPermission API request.
type RemovePermissionInput ¶
type RemovePermissionInput struct { // The name of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // Specify a version or alias to remove permissions from a published version // of the function. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // An optional value you can use to ensure you are updating the latest update // of the function version or alias. If the RevisionID you pass doesn't match // the latest RevisionId of the function or alias, it will fail with an error // message, advising you to retrieve the latest function version or alias RevisionID // using either GetFunction or GetAlias. RevisionId *string `location:"querystring" locationName:"RevisionId" type:"string"` // Statement ID of the permission to remove. // // StatementId is a required field StatementId *string `location:"uri" locationName:"StatementId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermissionRequest
func (RemovePermissionInput) GoString ¶
func (s RemovePermissionInput) GoString() string
GoString returns the string representation
func (RemovePermissionInput) MarshalFields ¶
func (s RemovePermissionInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RemovePermissionInput) String ¶
func (s RemovePermissionInput) String() string
String returns the string representation
func (*RemovePermissionInput) Validate ¶
func (s *RemovePermissionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RemovePermissionOutput ¶
type RemovePermissionOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermissionOutput
func (RemovePermissionOutput) GoString ¶
func (s RemovePermissionOutput) GoString() string
GoString returns the string representation
func (RemovePermissionOutput) MarshalFields ¶
func (s RemovePermissionOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (RemovePermissionOutput) SDKResponseMetadata ¶
func (s RemovePermissionOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (RemovePermissionOutput) String ¶
func (s RemovePermissionOutput) String() string
String returns the string representation
type RemovePermissionRequest ¶
type RemovePermissionRequest struct { *aws.Request Input *RemovePermissionInput Copy func(*RemovePermissionInput) RemovePermissionRequest }
RemovePermissionRequest is a API request type for the RemovePermission API operation.
func (RemovePermissionRequest) Send ¶
func (r RemovePermissionRequest) Send() (*RemovePermissionOutput, error)
Send marshals and sends the RemovePermission API request.
type Runtime ¶
type Runtime string
const ( RuntimeNodejs Runtime = "nodejs" RuntimeNodejs43 Runtime = "nodejs4.3" RuntimeNodejs610 Runtime = "nodejs6.10" RuntimeNodejs810 Runtime = "nodejs8.10" RuntimeJava8 Runtime = "java8" RuntimePython27 Runtime = "python2.7" RuntimePython36 Runtime = "python3.6" RuntimePython37 Runtime = "python3.7" RuntimeDotnetcore10 Runtime = "dotnetcore1.0" RuntimeDotnetcore20 Runtime = "dotnetcore2.0" RuntimeDotnetcore21 Runtime = "dotnetcore2.1" RuntimeNodejs43Edge Runtime = "nodejs4.3-edge" RuntimeGo1X Runtime = "go1.x" RuntimeRuby25 Runtime = "ruby2.5" RuntimeProvided Runtime = "provided" )
Enum values for Runtime
func (Runtime) MarshalValue ¶
func (Runtime) MarshalValueBuf ¶
type TagResourceInput ¶
type TagResourceInput struct { // The ARN (Amazon Resource Name) of the Lambda function. For more information, // see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) // in the AWS Lambda Developer Guide. // // Resource is a required field Resource *string `location:"uri" locationName:"ARN" type:"string" required:"true"` // The list of tags (key-value pairs) you are assigning to the Lambda function. // For more information, see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) // in the AWS Lambda Developer Guide. // // Tags is a required field Tags map[string]string `type:"map" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResourceRequest
func (TagResourceInput) GoString ¶
func (s TagResourceInput) GoString() string
GoString returns the string representation
func (TagResourceInput) MarshalFields ¶
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (TagResourceInput) String ¶
func (s TagResourceInput) String() string
String returns the string representation
func (*TagResourceInput) Validate ¶
func (s *TagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TagResourceOutput ¶
type TagResourceOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResourceOutput
func (TagResourceOutput) GoString ¶
func (s TagResourceOutput) GoString() string
GoString returns the string representation
func (TagResourceOutput) MarshalFields ¶
func (s TagResourceOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (TagResourceOutput) SDKResponseMetadata ¶
func (s TagResourceOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (TagResourceOutput) String ¶
func (s TagResourceOutput) String() string
String returns the string representation
type TagResourceRequest ¶
type TagResourceRequest struct { *aws.Request Input *TagResourceInput Copy func(*TagResourceInput) TagResourceRequest }
TagResourceRequest is a API request type for the TagResource API operation.
func (TagResourceRequest) Send ¶
func (r TagResourceRequest) Send() (*TagResourceOutput, error)
Send marshals and sends the TagResource API request.
type ThrottleReason ¶
type ThrottleReason string
const ( ThrottleReasonConcurrentInvocationLimitExceeded ThrottleReason = "ConcurrentInvocationLimitExceeded" ThrottleReasonFunctionInvocationRateLimitExceeded ThrottleReason = "FunctionInvocationRateLimitExceeded" ThrottleReasonReservedFunctionConcurrentInvocationLimitExceeded ThrottleReason = "ReservedFunctionConcurrentInvocationLimitExceeded" ThrottleReasonReservedFunctionInvocationRateLimitExceeded ThrottleReason = "ReservedFunctionInvocationRateLimitExceeded" ThrottleReasonCallerRateLimitExceeded ThrottleReason = "CallerRateLimitExceeded" )
Enum values for ThrottleReason
func (ThrottleReason) MarshalValue ¶
func (enum ThrottleReason) MarshalValue() (string, error)
func (ThrottleReason) MarshalValueBuf ¶
func (enum ThrottleReason) MarshalValueBuf(b []byte) ([]byte, error)
type TracingConfig ¶
type TracingConfig struct { // The tracing mode. Mode TracingMode `type:"string" enum:"true"` // contains filtered or unexported fields }
The function's AWS X-Ray tracing configuration. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TracingConfig
func (TracingConfig) GoString ¶
func (s TracingConfig) GoString() string
GoString returns the string representation
func (TracingConfig) MarshalFields ¶
func (s TracingConfig) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (TracingConfig) String ¶
func (s TracingConfig) String() string
String returns the string representation
type TracingConfigResponse ¶
type TracingConfigResponse struct { // The tracing mode. Mode TracingMode `type:"string" enum:"true"` // contains filtered or unexported fields }
The function's AWS X-Ray tracing configuration. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TracingConfigResponse
func (TracingConfigResponse) GoString ¶
func (s TracingConfigResponse) GoString() string
GoString returns the string representation
func (TracingConfigResponse) MarshalFields ¶
func (s TracingConfigResponse) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (TracingConfigResponse) String ¶
func (s TracingConfigResponse) String() string
String returns the string representation
type TracingMode ¶
type TracingMode string
const ( TracingModeActive TracingMode = "Active" TracingModePassThrough TracingMode = "PassThrough" )
Enum values for TracingMode
func (TracingMode) MarshalValue ¶
func (enum TracingMode) MarshalValue() (string, error)
func (TracingMode) MarshalValueBuf ¶
func (enum TracingMode) MarshalValueBuf(b []byte) ([]byte, error)
type UntagResourceInput ¶
type UntagResourceInput struct { // The ARN (Amazon Resource Name) of the function. For more information, see // Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) // in the AWS Lambda Developer Guide. // // Resource is a required field Resource *string `location:"uri" locationName:"ARN" type:"string" required:"true"` // The list of tag keys to be deleted from the function. For more information, // see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) // in the AWS Lambda Developer Guide. // // TagKeys is a required field TagKeys []string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResourceRequest
func (UntagResourceInput) GoString ¶
func (s UntagResourceInput) GoString() string
GoString returns the string representation
func (UntagResourceInput) MarshalFields ¶
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UntagResourceInput) String ¶
func (s UntagResourceInput) String() string
String returns the string representation
func (*UntagResourceInput) Validate ¶
func (s *UntagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UntagResourceOutput ¶
type UntagResourceOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResourceOutput
func (UntagResourceOutput) GoString ¶
func (s UntagResourceOutput) GoString() string
GoString returns the string representation
func (UntagResourceOutput) MarshalFields ¶
func (s UntagResourceOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UntagResourceOutput) SDKResponseMetadata ¶
func (s UntagResourceOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (UntagResourceOutput) String ¶
func (s UntagResourceOutput) String() string
String returns the string representation
type UntagResourceRequest ¶
type UntagResourceRequest struct { *aws.Request Input *UntagResourceInput Copy func(*UntagResourceInput) UntagResourceRequest }
UntagResourceRequest is a API request type for the UntagResource API operation.
func (UntagResourceRequest) Send ¶
func (r UntagResourceRequest) Send() (*UntagResourceOutput, error)
Send marshals and sends the UntagResource API request.
type UpdateAliasInput ¶
type UpdateAliasInput struct { // You can change the description of the alias using this parameter. Description *string `type:"string"` // The name of the lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // Using this parameter you can change the Lambda function version to which // the alias points. FunctionVersion *string `min:"1" type:"string"` // The alias name. // // Name is a required field Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"` // An optional value you can use to ensure you are updating the latest update // of the function version or alias. If the RevisionID you pass doesn't match // the latest RevisionId of the function or alias, it will fail with an error // message, advising you retrieve the latest function version or alias RevisionID // using either GetFunction or GetAlias. RevisionId *string `type:"string"` // Specifies an additional version your alias can point to, allowing you to // dictate what percentage of traffic will invoke each version. For more information, // see Traffic Shifting Using Aliases (http://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html). RoutingConfig *AliasRoutingConfiguration `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAliasRequest
func (UpdateAliasInput) GoString ¶
func (s UpdateAliasInput) GoString() string
GoString returns the string representation
func (UpdateAliasInput) MarshalFields ¶
func (s UpdateAliasInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UpdateAliasInput) String ¶
func (s UpdateAliasInput) String() string
String returns the string representation
func (*UpdateAliasInput) Validate ¶
func (s *UpdateAliasInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateAliasOutput ¶
type UpdateAliasOutput struct { // Lambda function ARN that is qualified using the alias name as the suffix. // For example, if you create an alias called BETA that points to a helloworld // function version, the ARN is arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA. AliasArn *string `type:"string"` // Alias description. Description *string `type:"string"` // Function version to which the alias points. FunctionVersion *string `min:"1" type:"string"` // Alias name. Name *string `min:"1" type:"string"` // Represents the latest updated revision of the function or alias. RevisionId *string `type:"string"` // Specifies an additional function versions the alias points to, allowing you // to dictate what percentage of traffic will invoke each version. RoutingConfig *AliasRoutingConfiguration `type:"structure"` // contains filtered or unexported fields }
Provides configuration information about a Lambda function version alias. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAliasOutput
func (UpdateAliasOutput) GoString ¶
func (s UpdateAliasOutput) GoString() string
GoString returns the string representation
func (UpdateAliasOutput) MarshalFields ¶
func (s UpdateAliasOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UpdateAliasOutput) SDKResponseMetadata ¶
func (s UpdateAliasOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (UpdateAliasOutput) String ¶
func (s UpdateAliasOutput) String() string
String returns the string representation
type UpdateAliasRequest ¶
type UpdateAliasRequest struct { *aws.Request Input *UpdateAliasInput Copy func(*UpdateAliasInput) UpdateAliasRequest }
UpdateAliasRequest is a API request type for the UpdateAlias API operation.
func (UpdateAliasRequest) Send ¶
func (r UpdateAliasRequest) Send() (*UpdateAliasOutput, error)
Send marshals and sends the UpdateAlias API request.
type UpdateEventSourceMappingInput ¶
type UpdateEventSourceMappingInput struct { // The maximum number of items to retrieve in a single batch. // // * Amazon Kinesis - Default 100. Max 10,000. // // * Amazon DynamoDB Streams - Default 100. Max 1,000. // // * Amazon Simple Queue Service - Default 10. Max 10. BatchSize *int64 `min:"1" type:"integer"` // Disables the event source mapping to pause polling and invocation. Enabled *bool `type:"boolean"` // The name of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it's limited to 64 characters in length. FunctionName *string `min:"1" type:"string"` // The identifier of the event source mapping. // // UUID is a required field UUID *string `location:"uri" locationName:"UUID" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMappingRequest
func (UpdateEventSourceMappingInput) GoString ¶
func (s UpdateEventSourceMappingInput) GoString() string
GoString returns the string representation
func (UpdateEventSourceMappingInput) MarshalFields ¶
func (s UpdateEventSourceMappingInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UpdateEventSourceMappingInput) String ¶
func (s UpdateEventSourceMappingInput) String() string
String returns the string representation
func (*UpdateEventSourceMappingInput) Validate ¶
func (s *UpdateEventSourceMappingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateEventSourceMappingOutput ¶
type UpdateEventSourceMappingOutput struct { // The maximum number of items to retrieve in a single batch. BatchSize *int64 `min:"1" type:"integer"` // The Amazon Resource Name (ARN) of the event source. EventSourceArn *string `type:"string"` // The ARN of the Lambda function. FunctionArn *string `type:"string"` // The date that the event source mapping was last updated, in Unix time seconds. 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 one of the following: Creating, // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string `type:"string"` // The cause of the last state change, either User initiated or Lambda initiated. StateTransitionReason *string `type:"string"` // The identifier of the event source mapping. UUID *string `type:"string"` // contains filtered or unexported fields }
A mapping between an AWS resource and an AWS Lambda function. See CreateEventSourceMapping for details. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMappingOutput
func (UpdateEventSourceMappingOutput) GoString ¶
func (s UpdateEventSourceMappingOutput) GoString() string
GoString returns the string representation
func (UpdateEventSourceMappingOutput) MarshalFields ¶
func (s UpdateEventSourceMappingOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UpdateEventSourceMappingOutput) SDKResponseMetadata ¶
func (s UpdateEventSourceMappingOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (UpdateEventSourceMappingOutput) String ¶
func (s UpdateEventSourceMappingOutput) String() string
String returns the string representation
type UpdateEventSourceMappingRequest ¶
type UpdateEventSourceMappingRequest struct { *aws.Request Input *UpdateEventSourceMappingInput Copy func(*UpdateEventSourceMappingInput) UpdateEventSourceMappingRequest }
UpdateEventSourceMappingRequest is a API request type for the UpdateEventSourceMapping API operation.
func (UpdateEventSourceMappingRequest) Send ¶
func (r UpdateEventSourceMappingRequest) Send() (*UpdateEventSourceMappingOutput, error)
Send marshals and sends the UpdateEventSourceMapping API request.
type UpdateFunctionCodeInput ¶
type UpdateFunctionCodeInput struct { // This boolean parameter can be used to test your request to AWS Lambda to // update the Lambda function and publish a version as an atomic operation. // It will do all necessary computation and validation of your code but will // not upload it or a publish a version. Each time this operation is invoked, // the CodeSha256 hash value of the provided code will also be computed and // returned in the response. DryRun *bool `type:"boolean"` // The name of the Lambda function. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // This boolean parameter can be used to request AWS Lambda to update the Lambda // function and publish a version as an atomic operation. Publish *bool `type:"boolean"` // An optional value you can use to ensure you are updating the latest update // of the function version or alias. If the RevisionID you pass doesn't match // the latest RevisionId of the function or alias, it will fail with an error // message, advising you to retrieve the latest function version or alias RevisionID // using either using using either GetFunction or GetAlias. RevisionId *string `type:"string"` // Amazon S3 bucket name where the .zip file containing your deployment package // is stored. This bucket must reside in the same AWS Region where you are creating // the Lambda function. S3Bucket *string `min:"3" type:"string"` // The Amazon S3 object (the deployment package) key name you want to upload. S3Key *string `min:"1" type:"string"` // The Amazon S3 object (the deployment package) version you want to upload. S3ObjectVersion *string `min:"1" type:"string"` // The contents of your zip file containing your deployment package. If you // are using the web API directly, the contents of the zip file must be base64-encoded. // If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the // encoding for you. For more information about creating a .zip file, see Execution // Permissions (http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html). // // ZipFile is automatically base64 encoded/decoded by the SDK. ZipFile []byte `type:"blob"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCodeRequest
func (UpdateFunctionCodeInput) GoString ¶
func (s UpdateFunctionCodeInput) GoString() string
GoString returns the string representation
func (UpdateFunctionCodeInput) MarshalFields ¶
func (s UpdateFunctionCodeInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UpdateFunctionCodeInput) String ¶
func (s UpdateFunctionCodeInput) String() string
String returns the string representation
func (*UpdateFunctionCodeInput) Validate ¶
func (s *UpdateFunctionCodeInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateFunctionCodeRequest ¶
type UpdateFunctionCodeRequest struct { *aws.Request Input *UpdateFunctionCodeInput Copy func(*UpdateFunctionCodeInput) UpdateFunctionCodeRequest }
UpdateFunctionCodeRequest is a API request type for the UpdateFunctionCode API operation.
func (UpdateFunctionCodeRequest) Send ¶
func (r UpdateFunctionCodeRequest) Send() (*UpdateFunctionConfigurationOutput, error)
Send marshals and sends the UpdateFunctionCode API request.
type UpdateFunctionConfigurationInput ¶
type UpdateFunctionConfigurationInput struct { // A dead letter queue configuration that specifies the queue or topic where // Lambda sends asynchronous events when they fail processing. For more information, // see Dead Letter Queues (http://docs.aws.amazon.com/lambda/latest/dg/dlq.html). 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. // // Name formats // // * Function name - MyFunction. // // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // // * Partial ARN - 123456789012:function:MyFunction. // // The length constraint applies only to the full ARN. If you specify only the // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // The function 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"` // A list of function layers (http://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) // to add to the function's execution environment. Layers []string `type:"list"` // The amount of memory, in MB, your Lambda function is given. AWS Lambda uses // this memory size to infer the amount of CPU allocated to your function. Your // function use-case determines your CPU and memory requirements. For example, // a database operation might need less memory compared to an image processing // function. The default value is 128 MB. The value must be a multiple of 64 // MB. MemorySize *int64 `min:"128" type:"integer"` // An optional value you can use to ensure you are updating the latest update // of the function version or alias. If the RevisionID you pass doesn't match // the latest RevisionId of the function or alias, it will fail with an error // message, advising you to retrieve the latest function version or alias RevisionID // using either GetFunction or GetAlias. RevisionId *string `type:"string"` // The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when // it executes your function. Role *string `type:"string"` // The runtime version for the function. Runtime Runtime `type:"string" enum:"true"` // The amount of time that Lambda allows a function to run before terminating // it. The default is 3 seconds. The maximum allowed value is 900 seconds. Timeout *int64 `min:"1" type:"integer"` // Set Mode to Active to sample and trace a subset of incoming requests with // AWS X-Ray. TracingConfig *TracingConfig `type:"structure"` // Specify security groups and subnets in a VPC to which your Lambda function // needs access. VpcConfig *VpcConfig `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfigurationRequest
func (UpdateFunctionConfigurationInput) GoString ¶
func (s UpdateFunctionConfigurationInput) GoString() string
GoString returns the string representation
func (UpdateFunctionConfigurationInput) MarshalFields ¶
func (s UpdateFunctionConfigurationInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UpdateFunctionConfigurationInput) String ¶
func (s UpdateFunctionConfigurationInput) String() string
String returns the string representation
func (*UpdateFunctionConfigurationInput) Validate ¶
func (s *UpdateFunctionConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateFunctionConfigurationOutput ¶
type UpdateFunctionConfigurationOutput struct { // The SHA256 hash of the function's deployment package. CodeSha256 *string `type:"string"` // The size of the function's deployment package in bytes. CodeSize *int64 `type:"long"` // The function's dead letter queue. DeadLetterConfig *DeadLetterConfig `type:"structure"` // The function's description. Description *string `type:"string"` // The function's environment variables. Environment *EnvironmentResponse `type:"structure"` // The function's Amazon Resource Name. 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 KMS key used to encrypt the function's environment variables. Only returned // if you've configured a customer managed CMK. KMSKeyArn *string `type:"string"` // The date and time that the function was last updated, in ISO-8601 format // (https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD). LastModified *string `type:"string"` // A list of function layers (http://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). Layers []Layer `type:"list"` // The ARN of the master function. MasterArn *string `type:"string"` // The memory allocated to the function MemorySize *int64 `min:"128" type:"integer"` // Represents the latest updated revision of the function or alias. RevisionId *string `type:"string"` // The function's execution role. Role *string `type:"string"` // The runtime environment for the Lambda function. Runtime Runtime `type:"string" enum:"true"` // The amount of time that Lambda allows a function to run before terminating // it. Timeout *int64 `min:"1" type:"integer"` // The function's AWS X-Ray tracing configuration. TracingConfig *TracingConfigResponse `type:"structure"` // The version of the Lambda function. Version *string `min:"1" type:"string"` // The function's networking configuration. VpcConfig *VpcConfigResponse `type:"structure"` // contains filtered or unexported fields }
A Lambda function's configuration settings. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCodeOutput
func (UpdateFunctionConfigurationOutput) GoString ¶
func (s UpdateFunctionConfigurationOutput) GoString() string
GoString returns the string representation
func (UpdateFunctionConfigurationOutput) MarshalFields ¶
func (s UpdateFunctionConfigurationOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UpdateFunctionConfigurationOutput) SDKResponseMetadata ¶
func (s UpdateFunctionConfigurationOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (UpdateFunctionConfigurationOutput) String ¶
func (s UpdateFunctionConfigurationOutput) String() string
String returns the string representation
type UpdateFunctionConfigurationRequest ¶
type UpdateFunctionConfigurationRequest struct { *aws.Request Input *UpdateFunctionConfigurationInput Copy func(*UpdateFunctionConfigurationInput) UpdateFunctionConfigurationRequest }
UpdateFunctionConfigurationRequest is a API request type for the UpdateFunctionConfiguration API operation.
func (UpdateFunctionConfigurationRequest) Send ¶
func (r UpdateFunctionConfigurationRequest) Send() (*UpdateFunctionConfigurationOutput, error)
Send marshals and sends the UpdateFunctionConfiguration API request.
type VpcConfig ¶
type VpcConfig struct { // A list of VPC security groups IDs. SecurityGroupIds []string `type:"list"` // A list of VPC subnet IDs. SubnetIds []string `type:"list"` // contains filtered or unexported fields }
The VPC security groups and subnets attached to a Lambda function. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/VpcConfig
func (VpcConfig) GoString ¶
GoString returns the string representation
func (VpcConfig) MarshalFields ¶
func (s VpcConfig) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (VpcConfig) String ¶
String returns the string representation
type VpcConfigResponse ¶
type VpcConfigResponse struct { // A list of VPC security groups IDs. SecurityGroupIds []string `type:"list"` // A list of VPC subnet IDs. SubnetIds []string `type:"list"` // The ID of the VPC. VpcId *string `type:"string"` // contains filtered or unexported fields }
The VPC security groups and subnets attached to a Lambda function. Please also see https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/VpcConfigResponse
func (VpcConfigResponse) GoString ¶
func (s VpcConfigResponse) GoString() string
GoString returns the string representation
func (VpcConfigResponse) MarshalFields ¶
func (s VpcConfigResponse) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (VpcConfigResponse) String ¶
func (s VpcConfigResponse) String() string
String returns the string representation
Source Files ¶
api.go doc.go errors.go service.go
Directories ¶
Path | Synopsis |
---|---|
service/lambda/lambdaiface | Package lambdaiface provides an interface to enable mocking the AWS Lambda service client for testing your code. |
- Version
- v0.6.0
- Published
- Dec 3, 2018
- Platform
- windows/amd64
- Imports
- 7 packages
- Last checked
- 15 minutes ago –
Tools for package owners.