package lambda
import "github.com/aws/aws-sdk-go-v2/service/lambda"
Package lambda provides the API client, operations, and parameter types for AWS Lambda.
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 (https://docs.aws.amazon.com/lambda/latest/dg/welcome.html), and for information about how the service works, see AWS Lambda: How it Works (https://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html) in the AWS Lambda Developer Guide.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- type AddLayerVersionPermissionInput
- type AddLayerVersionPermissionOutput
- type AddPermissionInput
- type AddPermissionOutput
- type Client
- func New(options Options, optFns ...func(*Options)) *Client
- func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client
- func (c *Client) AddLayerVersionPermission(ctx context.Context, params *AddLayerVersionPermissionInput, optFns ...func(*Options)) (*AddLayerVersionPermissionOutput, error)
- func (c *Client) AddPermission(ctx context.Context, params *AddPermissionInput, optFns ...func(*Options)) (*AddPermissionOutput, error)
- func (c *Client) CreateAlias(ctx context.Context, params *CreateAliasInput, optFns ...func(*Options)) (*CreateAliasOutput, error)
- func (c *Client) CreateEventSourceMapping(ctx context.Context, params *CreateEventSourceMappingInput, optFns ...func(*Options)) (*CreateEventSourceMappingOutput, error)
- func (c *Client) CreateFunction(ctx context.Context, params *CreateFunctionInput, optFns ...func(*Options)) (*CreateFunctionOutput, error)
- func (c *Client) DeleteAlias(ctx context.Context, params *DeleteAliasInput, optFns ...func(*Options)) (*DeleteAliasOutput, error)
- func (c *Client) DeleteEventSourceMapping(ctx context.Context, params *DeleteEventSourceMappingInput, optFns ...func(*Options)) (*DeleteEventSourceMappingOutput, error)
- func (c *Client) DeleteFunction(ctx context.Context, params *DeleteFunctionInput, optFns ...func(*Options)) (*DeleteFunctionOutput, error)
- func (c *Client) DeleteFunctionConcurrency(ctx context.Context, params *DeleteFunctionConcurrencyInput, optFns ...func(*Options)) (*DeleteFunctionConcurrencyOutput, error)
- func (c *Client) DeleteFunctionEventInvokeConfig(ctx context.Context, params *DeleteFunctionEventInvokeConfigInput, optFns ...func(*Options)) (*DeleteFunctionEventInvokeConfigOutput, error)
- func (c *Client) DeleteLayerVersion(ctx context.Context, params *DeleteLayerVersionInput, optFns ...func(*Options)) (*DeleteLayerVersionOutput, error)
- func (c *Client) DeleteProvisionedConcurrencyConfig(ctx context.Context, params *DeleteProvisionedConcurrencyConfigInput, optFns ...func(*Options)) (*DeleteProvisionedConcurrencyConfigOutput, error)
- func (c *Client) GetAccountSettings(ctx context.Context, params *GetAccountSettingsInput, optFns ...func(*Options)) (*GetAccountSettingsOutput, error)
- func (c *Client) GetAlias(ctx context.Context, params *GetAliasInput, optFns ...func(*Options)) (*GetAliasOutput, error)
- func (c *Client) GetEventSourceMapping(ctx context.Context, params *GetEventSourceMappingInput, optFns ...func(*Options)) (*GetEventSourceMappingOutput, error)
- func (c *Client) GetFunction(ctx context.Context, params *GetFunctionInput, optFns ...func(*Options)) (*GetFunctionOutput, error)
- func (c *Client) GetFunctionConcurrency(ctx context.Context, params *GetFunctionConcurrencyInput, optFns ...func(*Options)) (*GetFunctionConcurrencyOutput, error)
- func (c *Client) GetFunctionConfiguration(ctx context.Context, params *GetFunctionConfigurationInput, optFns ...func(*Options)) (*GetFunctionConfigurationOutput, error)
- func (c *Client) GetFunctionEventInvokeConfig(ctx context.Context, params *GetFunctionEventInvokeConfigInput, optFns ...func(*Options)) (*GetFunctionEventInvokeConfigOutput, error)
- func (c *Client) GetLayerVersion(ctx context.Context, params *GetLayerVersionInput, optFns ...func(*Options)) (*GetLayerVersionOutput, error)
- func (c *Client) GetLayerVersionByArn(ctx context.Context, params *GetLayerVersionByArnInput, optFns ...func(*Options)) (*GetLayerVersionByArnOutput, error)
- func (c *Client) GetLayerVersionPolicy(ctx context.Context, params *GetLayerVersionPolicyInput, optFns ...func(*Options)) (*GetLayerVersionPolicyOutput, error)
- func (c *Client) GetPolicy(ctx context.Context, params *GetPolicyInput, optFns ...func(*Options)) (*GetPolicyOutput, error)
- func (c *Client) GetProvisionedConcurrencyConfig(ctx context.Context, params *GetProvisionedConcurrencyConfigInput, optFns ...func(*Options)) (*GetProvisionedConcurrencyConfigOutput, error)
- func (c *Client) Invoke(ctx context.Context, params *InvokeInput, optFns ...func(*Options)) (*InvokeOutput, error)
- func (c *Client) InvokeAsync(ctx context.Context, params *InvokeAsyncInput, optFns ...func(*Options)) (*InvokeAsyncOutput, error)
- func (c *Client) ListAliases(ctx context.Context, params *ListAliasesInput, optFns ...func(*Options)) (*ListAliasesOutput, error)
- func (c *Client) ListEventSourceMappings(ctx context.Context, params *ListEventSourceMappingsInput, optFns ...func(*Options)) (*ListEventSourceMappingsOutput, error)
- func (c *Client) ListFunctionEventInvokeConfigs(ctx context.Context, params *ListFunctionEventInvokeConfigsInput, optFns ...func(*Options)) (*ListFunctionEventInvokeConfigsOutput, error)
- func (c *Client) ListFunctions(ctx context.Context, params *ListFunctionsInput, optFns ...func(*Options)) (*ListFunctionsOutput, error)
- func (c *Client) ListLayerVersions(ctx context.Context, params *ListLayerVersionsInput, optFns ...func(*Options)) (*ListLayerVersionsOutput, error)
- func (c *Client) ListLayers(ctx context.Context, params *ListLayersInput, optFns ...func(*Options)) (*ListLayersOutput, error)
- func (c *Client) ListProvisionedConcurrencyConfigs(ctx context.Context, params *ListProvisionedConcurrencyConfigsInput, optFns ...func(*Options)) (*ListProvisionedConcurrencyConfigsOutput, error)
- func (c *Client) ListTags(ctx context.Context, params *ListTagsInput, optFns ...func(*Options)) (*ListTagsOutput, error)
- func (c *Client) ListVersionsByFunction(ctx context.Context, params *ListVersionsByFunctionInput, optFns ...func(*Options)) (*ListVersionsByFunctionOutput, error)
- func (c *Client) PublishLayerVersion(ctx context.Context, params *PublishLayerVersionInput, optFns ...func(*Options)) (*PublishLayerVersionOutput, error)
- func (c *Client) PublishVersion(ctx context.Context, params *PublishVersionInput, optFns ...func(*Options)) (*PublishVersionOutput, error)
- func (c *Client) PutFunctionConcurrency(ctx context.Context, params *PutFunctionConcurrencyInput, optFns ...func(*Options)) (*PutFunctionConcurrencyOutput, error)
- func (c *Client) PutFunctionEventInvokeConfig(ctx context.Context, params *PutFunctionEventInvokeConfigInput, optFns ...func(*Options)) (*PutFunctionEventInvokeConfigOutput, error)
- func (c *Client) PutProvisionedConcurrencyConfig(ctx context.Context, params *PutProvisionedConcurrencyConfigInput, optFns ...func(*Options)) (*PutProvisionedConcurrencyConfigOutput, error)
- func (c *Client) RemoveLayerVersionPermission(ctx context.Context, params *RemoveLayerVersionPermissionInput, optFns ...func(*Options)) (*RemoveLayerVersionPermissionOutput, error)
- func (c *Client) RemovePermission(ctx context.Context, params *RemovePermissionInput, optFns ...func(*Options)) (*RemovePermissionOutput, error)
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
- func (c *Client) UpdateAlias(ctx context.Context, params *UpdateAliasInput, optFns ...func(*Options)) (*UpdateAliasOutput, error)
- func (c *Client) UpdateEventSourceMapping(ctx context.Context, params *UpdateEventSourceMappingInput, optFns ...func(*Options)) (*UpdateEventSourceMappingOutput, error)
- func (c *Client) UpdateFunctionCode(ctx context.Context, params *UpdateFunctionCodeInput, optFns ...func(*Options)) (*UpdateFunctionCodeOutput, error)
- func (c *Client) UpdateFunctionConfiguration(ctx context.Context, params *UpdateFunctionConfigurationInput, optFns ...func(*Options)) (*UpdateFunctionConfigurationOutput, error)
- func (c *Client) UpdateFunctionEventInvokeConfig(ctx context.Context, params *UpdateFunctionEventInvokeConfigInput, optFns ...func(*Options)) (*UpdateFunctionEventInvokeConfigOutput, error)
- type CreateAliasInput
- type CreateAliasOutput
- type CreateEventSourceMappingInput
- type CreateEventSourceMappingOutput
- type CreateFunctionInput
- type CreateFunctionOutput
- type DeleteAliasInput
- type DeleteAliasOutput
- type DeleteEventSourceMappingInput
- type DeleteEventSourceMappingOutput
- type DeleteFunctionConcurrencyInput
- type DeleteFunctionConcurrencyOutput
- type DeleteFunctionEventInvokeConfigInput
- type DeleteFunctionEventInvokeConfigOutput
- type DeleteFunctionInput
- type DeleteFunctionOutput
- type DeleteLayerVersionInput
- type DeleteLayerVersionOutput
- type DeleteProvisionedConcurrencyConfigInput
- type DeleteProvisionedConcurrencyConfigOutput
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type GetAccountSettingsInput
- type GetAccountSettingsOutput
- type GetAliasInput
- type GetAliasOutput
- type GetEventSourceMappingInput
- type GetEventSourceMappingOutput
- type GetFunctionConcurrencyInput
- type GetFunctionConcurrencyOutput
- type GetFunctionConfigurationInput
- type GetFunctionConfigurationOutput
- type GetFunctionEventInvokeConfigInput
- type GetFunctionEventInvokeConfigOutput
- type GetFunctionInput
- type GetFunctionOutput
- type GetLayerVersionByArnInput
- type GetLayerVersionByArnOutput
- type GetLayerVersionInput
- type GetLayerVersionOutput
- type GetLayerVersionPolicyInput
- type GetLayerVersionPolicyOutput
- type GetPolicyInput
- type GetPolicyOutput
- type GetProvisionedConcurrencyConfigInput
- type GetProvisionedConcurrencyConfigOutput
- type HTTPClient
- type HTTPSignerV4
- type InvokeAsyncInput
- type InvokeAsyncOutput
- type InvokeInput
- type InvokeOutput
- type ListAliasesAPIClient
- type ListAliasesInput
- type ListAliasesOutput
- type ListAliasesPaginator
- func NewListAliasesPaginator(client ListAliasesAPIClient, params *ListAliasesInput, optFns ...func(*ListAliasesPaginatorOptions)) *ListAliasesPaginator
- func (p *ListAliasesPaginator) HasMorePages() bool
- func (p *ListAliasesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAliasesOutput, error)
- type ListAliasesPaginatorOptions
- type ListEventSourceMappingsAPIClient
- type ListEventSourceMappingsInput
- type ListEventSourceMappingsOutput
- type ListEventSourceMappingsPaginator
- func NewListEventSourceMappingsPaginator(client ListEventSourceMappingsAPIClient, params *ListEventSourceMappingsInput, optFns ...func(*ListEventSourceMappingsPaginatorOptions)) *ListEventSourceMappingsPaginator
- func (p *ListEventSourceMappingsPaginator) HasMorePages() bool
- func (p *ListEventSourceMappingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListEventSourceMappingsOutput, error)
- type ListEventSourceMappingsPaginatorOptions
- type ListFunctionEventInvokeConfigsAPIClient
- type ListFunctionEventInvokeConfigsInput
- type ListFunctionEventInvokeConfigsOutput
- type ListFunctionEventInvokeConfigsPaginator
- func NewListFunctionEventInvokeConfigsPaginator(client ListFunctionEventInvokeConfigsAPIClient, params *ListFunctionEventInvokeConfigsInput, optFns ...func(*ListFunctionEventInvokeConfigsPaginatorOptions)) *ListFunctionEventInvokeConfigsPaginator
- func (p *ListFunctionEventInvokeConfigsPaginator) HasMorePages() bool
- func (p *ListFunctionEventInvokeConfigsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListFunctionEventInvokeConfigsOutput, error)
- type ListFunctionEventInvokeConfigsPaginatorOptions
- type ListFunctionsAPIClient
- type ListFunctionsInput
- type ListFunctionsOutput
- type ListFunctionsPaginator
- func NewListFunctionsPaginator(client ListFunctionsAPIClient, params *ListFunctionsInput, optFns ...func(*ListFunctionsPaginatorOptions)) *ListFunctionsPaginator
- func (p *ListFunctionsPaginator) HasMorePages() bool
- func (p *ListFunctionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListFunctionsOutput, error)
- type ListFunctionsPaginatorOptions
- type ListLayerVersionsAPIClient
- type ListLayerVersionsInput
- type ListLayerVersionsOutput
- type ListLayerVersionsPaginator
- func NewListLayerVersionsPaginator(client ListLayerVersionsAPIClient, params *ListLayerVersionsInput, optFns ...func(*ListLayerVersionsPaginatorOptions)) *ListLayerVersionsPaginator
- func (p *ListLayerVersionsPaginator) HasMorePages() bool
- func (p *ListLayerVersionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListLayerVersionsOutput, error)
- type ListLayerVersionsPaginatorOptions
- type ListLayersAPIClient
- type ListLayersInput
- type ListLayersOutput
- type ListLayersPaginator
- func NewListLayersPaginator(client ListLayersAPIClient, params *ListLayersInput, optFns ...func(*ListLayersPaginatorOptions)) *ListLayersPaginator
- func (p *ListLayersPaginator) HasMorePages() bool
- func (p *ListLayersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListLayersOutput, error)
- type ListLayersPaginatorOptions
- type ListProvisionedConcurrencyConfigsAPIClient
- type ListProvisionedConcurrencyConfigsInput
- type ListProvisionedConcurrencyConfigsOutput
- type ListProvisionedConcurrencyConfigsPaginator
- func NewListProvisionedConcurrencyConfigsPaginator(client ListProvisionedConcurrencyConfigsAPIClient, params *ListProvisionedConcurrencyConfigsInput, optFns ...func(*ListProvisionedConcurrencyConfigsPaginatorOptions)) *ListProvisionedConcurrencyConfigsPaginator
- func (p *ListProvisionedConcurrencyConfigsPaginator) HasMorePages() bool
- func (p *ListProvisionedConcurrencyConfigsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListProvisionedConcurrencyConfigsOutput, error)
- type ListProvisionedConcurrencyConfigsPaginatorOptions
- type ListTagsInput
- type ListTagsOutput
- type ListVersionsByFunctionAPIClient
- type ListVersionsByFunctionInput
- type ListVersionsByFunctionOutput
- type ListVersionsByFunctionPaginator
- func NewListVersionsByFunctionPaginator(client ListVersionsByFunctionAPIClient, params *ListVersionsByFunctionInput, optFns ...func(*ListVersionsByFunctionPaginatorOptions)) *ListVersionsByFunctionPaginator
- func (p *ListVersionsByFunctionPaginator) HasMorePages() bool
- func (p *ListVersionsByFunctionPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListVersionsByFunctionOutput, error)
- type ListVersionsByFunctionPaginatorOptions
- type Options
- type PublishLayerVersionInput
- type PublishLayerVersionOutput
- type PublishVersionInput
- type PublishVersionOutput
- type PutFunctionConcurrencyInput
- type PutFunctionConcurrencyOutput
- type PutFunctionEventInvokeConfigInput
- type PutFunctionEventInvokeConfigOutput
- type PutProvisionedConcurrencyConfigInput
- type PutProvisionedConcurrencyConfigOutput
- type RemoveLayerVersionPermissionInput
- type RemoveLayerVersionPermissionOutput
- type RemovePermissionInput
- type RemovePermissionOutput
- type ResolveEndpoint
- func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
- func (*ResolveEndpoint) ID() string
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdateAliasInput
- type UpdateAliasOutput
- type UpdateEventSourceMappingInput
- type UpdateEventSourceMappingOutput
- type UpdateFunctionCodeInput
- type UpdateFunctionCodeOutput
- type UpdateFunctionConfigurationInput
- type UpdateFunctionConfigurationOutput
- type UpdateFunctionEventInvokeConfigInput
- type UpdateFunctionEventInvokeConfigOutput
Constants ¶
const ServiceAPIVersion = "2015-03-31"
const ServiceID = "Lambda"
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
Types ¶
type AddLayerVersionPermissionInput ¶
type AddLayerVersionPermissionInput struct { // The API action that grants access to the layer. For example, // lambda:GetLayerVersion. // // This member is required. Action *string // The name or Amazon Resource Name (ARN) of the layer. // // This member is required. LayerName *string // An account ID, or * to grant permission to all AWS accounts. // // This member is required. Principal *string // An identifier that distinguishes the policy from others on the same layer // version. // // This member is required. StatementId *string // The version number. // // This member is required. VersionNumber int64 // With the principal set to *, grant permission to all accounts in the specified // organization. OrganizationId *string // 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 }
type AddLayerVersionPermissionOutput ¶
type AddLayerVersionPermissionOutput struct { // A unique identifier for the current revision of the policy. RevisionId *string // The permission statement. Statement *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type AddPermissionInput ¶
type AddPermissionInput struct { // The action that the principal can use on the function. For example, // lambda:InvokeFunction or lambda:GetFunction. // // This member is required. Action *string // The name of the Lambda function, version, or alias. Name formats // // * Function // name - my-function (name-only), my-function:v1 (with alias). // // * Function ARN - // arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN - // 123456789012:function:my-function. // // You can append a version number or alias to // any of the formats. The length constraint applies only to the full ARN. If you // specify only the function name, it is limited to 64 characters in length. // // This member is required. FunctionName *string // The AWS service or account that invokes the function. If you specify a service, // use SourceArn or SourceAccount to limit who can invoke the function through that // service. // // This member is required. Principal *string // A statement identifier that differentiates the statement from others in the same // policy. // // This member is required. StatementId *string // For Alexa Smart Home functions, a token that must be supplied by the invoker. EventSourceToken *string // Specify a version or alias to add permissions to a published version of the // function. Qualifier *string // Only update the policy if the revision ID matches the ID that's specified. Use // this option to avoid modifying a policy that has changed since you last read it. RevisionId *string // For Amazon S3, the ID of the account that owns the resource. Use this together // with SourceArn to ensure that the resource is owned by the specified account. It // is possible for an Amazon S3 bucket to be deleted by its owner and recreated by // another account. SourceAccount *string // For AWS services, the ARN of the AWS resource that invokes the function. For // example, an Amazon S3 bucket or Amazon SNS topic. SourceArn *string }
type AddPermissionOutput ¶
type AddPermissionOutput struct { // The permission statement that's added to the function policy. Statement *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for AWS Lambda.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) AddLayerVersionPermission ¶
func (c *Client) AddLayerVersionPermission(ctx context.Context, params *AddLayerVersionPermissionInput, optFns ...func(*Options)) (*AddLayerVersionPermissionOutput, error)
Adds permissions to the resource-based policy of a version of an AWS Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all AWS accounts, or all accounts in an organization. To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.
func (*Client) AddPermission ¶
func (c *Client) AddPermission(ctx context.Context, params *AddPermissionInput, optFns ...func(*Options)) (*AddPermissionOutput, error)
Grants an AWS service or another account permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. To grant permission to another account, specify the account ID as the Principal. For AWS services, the principal is a domain-style identifier defined by the service, like s3.amazonaws.com or sns.amazonaws.com. For AWS services, you can also specify the ARN of the associated resource as the SourceArn. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function. This action adds a statement to a resource-based permissions policy for the function. For more information about function policies, see Lambda Function Policies (https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html).
func (*Client) CreateAlias ¶
func (c *Client) CreateAlias(ctx context.Context, params *CreateAliasInput, optFns ...func(*Options)) (*CreateAliasOutput, error)
Creates an alias (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version. You can also map an alias to split invocation requests between two versions. Use the RoutingConfig parameter to specify a second version and the percentage of invocation requests that it receives.
func (*Client) CreateEventSourceMapping ¶
func (c *Client) CreateEventSourceMapping(ctx context.Context, params *CreateEventSourceMappingInput, optFns ...func(*Options)) (*CreateEventSourceMappingOutput, error)
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 DynamoDB (https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html)
* Using AWS Lambda with Amazon Kinesis (https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html)
* Using AWS Lambda with Amazon SQS (https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html)
* Using AWS Lambda with Amazon MQ (https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html)
* Using AWS Lambda with Amazon MSK (https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html)
The following error handling options are only available for stream sources (DynamoDB and Kinesis):
* BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry.
* DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic.
* MaximumRecordAgeInSeconds - Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires
* MaximumRetryAttempts - Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
* ParallelizationFactor - Process multiple batches from each shard concurrently.
func (*Client) CreateFunction ¶
func (c *Client) CreateFunction(ctx context.Context, params *CreateFunctionInput, optFns ...func(*Options)) (*CreateFunctionOutput, error)
Creates a Lambda function. To create a function, you need a deployment package (https://docs.aws.amazon.com/lambda/latest/dg/deployment-package-v2.html) and an execution role (https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role). The deployment package contains your function code. The execution role grants the function permission to use AWS services, such as Amazon CloudWatch Logs for log streaming and AWS X-Ray for request tracing. When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify the function. The State, StateReason, and StateReasonCode fields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Function States (https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html). A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the Publish parameter to create version 1 of your function from its initial configuration. The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency). If another account or an AWS service invokes your function, use AddPermission to grant permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version, or on an alias. To invoke your function directly, use Invoke. To invoke your function in response to events in other AWS services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Functions (https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html).
func (*Client) DeleteAlias ¶
func (c *Client) DeleteAlias(ctx context.Context, params *DeleteAliasInput, optFns ...func(*Options)) (*DeleteAliasOutput, error)
Deletes a Lambda function alias (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).
func (*Client) DeleteEventSourceMapping ¶
func (c *Client) DeleteEventSourceMapping(ctx context.Context, params *DeleteEventSourceMappingInput, optFns ...func(*Options)) (*DeleteEventSourceMappingOutput, error)
Deletes an event source mapping (https://docs.aws.amazon.com/lambda/latest/dg/intro-invocation-modes.html). You can get the identifier of a mapping from the output of ListEventSourceMappings. When you delete an event source mapping, it enters a Deleting state and might not be completely deleted for several seconds.
func (*Client) DeleteFunction ¶
func (c *Client) DeleteFunction(ctx context.Context, params *DeleteFunctionInput, optFns ...func(*Options)) (*DeleteFunctionOutput, error)
Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted. To delete Lambda event source mappings that invoke a function, use DeleteEventSourceMapping. For AWS services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.
func (*Client) DeleteFunctionConcurrency ¶
func (c *Client) DeleteFunctionConcurrency(ctx context.Context, params *DeleteFunctionConcurrencyInput, optFns ...func(*Options)) (*DeleteFunctionConcurrencyOutput, error)
Removes a concurrent execution limit from a function.
func (*Client) DeleteFunctionEventInvokeConfig ¶
func (c *Client) DeleteFunctionEventInvokeConfig(ctx context.Context, params *DeleteFunctionEventInvokeConfigInput, optFns ...func(*Options)) (*DeleteFunctionEventInvokeConfigOutput, error)
Deletes the configuration for asynchronous invocation for a function, version, or alias. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
func (*Client) DeleteLayerVersion ¶
func (c *Client) DeleteLayerVersion(ctx context.Context, params *DeleteLayerVersionInput, optFns ...func(*Options)) (*DeleteLayerVersionOutput, error)
Deletes a version of an AWS Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.
func (*Client) DeleteProvisionedConcurrencyConfig ¶
func (c *Client) DeleteProvisionedConcurrencyConfig(ctx context.Context, params *DeleteProvisionedConcurrencyConfigInput, optFns ...func(*Options)) (*DeleteProvisionedConcurrencyConfigOutput, error)
Deletes the provisioned concurrency configuration for a function.
func (*Client) GetAccountSettings ¶
func (c *Client) GetAccountSettings(ctx context.Context, params *GetAccountSettingsInput, optFns ...func(*Options)) (*GetAccountSettingsOutput, error)
Retrieves details about your account's limits (https://docs.aws.amazon.com/lambda/latest/dg/limits.html) and usage in an AWS Region.
func (*Client) GetAlias ¶
func (c *Client) GetAlias(ctx context.Context, params *GetAliasInput, optFns ...func(*Options)) (*GetAliasOutput, error)
Returns details about a Lambda function alias (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).
func (*Client) GetEventSourceMapping ¶
func (c *Client) GetEventSourceMapping(ctx context.Context, params *GetEventSourceMappingInput, optFns ...func(*Options)) (*GetEventSourceMappingOutput, error)
Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
func (*Client) GetFunction ¶
func (c *Client) GetFunction(ctx context.Context, params *GetFunctionInput, optFns ...func(*Options)) (*GetFunctionOutput, error)
Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.
func (*Client) GetFunctionConcurrency ¶
func (c *Client) GetFunctionConcurrency(ctx context.Context, params *GetFunctionConcurrencyInput, optFns ...func(*Options)) (*GetFunctionConcurrencyOutput, error)
Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.
func (*Client) GetFunctionConfiguration ¶
func (c *Client) GetFunctionConfiguration(ctx context.Context, params *GetFunctionConfigurationInput, optFns ...func(*Options)) (*GetFunctionConfigurationOutput, error)
Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration. To get all of a function's details, including function-level settings, use GetFunction.
func (*Client) GetFunctionEventInvokeConfig ¶
func (c *Client) GetFunctionEventInvokeConfig(ctx context.Context, params *GetFunctionEventInvokeConfigInput, optFns ...func(*Options)) (*GetFunctionEventInvokeConfigOutput, error)
Retrieves the configuration for asynchronous invocation for a function, version, or alias. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
func (*Client) GetLayerVersion ¶
func (c *Client) GetLayerVersion(ctx context.Context, params *GetLayerVersionInput, optFns ...func(*Options)) (*GetLayerVersionOutput, error)
Returns information about a version of an AWS Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html), with a link to download the layer archive that's valid for 10 minutes.
func (*Client) GetLayerVersionByArn ¶
func (c *Client) GetLayerVersionByArn(ctx context.Context, params *GetLayerVersionByArnInput, optFns ...func(*Options)) (*GetLayerVersionByArnOutput, error)
Returns information about a version of an AWS Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html), with a link to download the layer archive that's valid for 10 minutes.
func (*Client) GetLayerVersionPolicy ¶
func (c *Client) GetLayerVersionPolicy(ctx context.Context, params *GetLayerVersionPolicyInput, optFns ...func(*Options)) (*GetLayerVersionPolicyOutput, error)
Returns the permission policy for a version of an AWS Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). For more information, see AddLayerVersionPermission.
func (*Client) GetPolicy ¶
func (c *Client) GetPolicy(ctx context.Context, params *GetPolicyInput, optFns ...func(*Options)) (*GetPolicyOutput, error)
Returns the resource-based IAM policy (https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html) for a function, version, or alias.
func (*Client) GetProvisionedConcurrencyConfig ¶
func (c *Client) GetProvisionedConcurrencyConfig(ctx context.Context, params *GetProvisionedConcurrencyConfigInput, optFns ...func(*Options)) (*GetProvisionedConcurrencyConfigOutput, error)
Retrieves the provisioned concurrency configuration for a function's alias or version.
func (*Client) Invoke ¶
func (c *Client) Invoke(ctx context.Context, params *InvokeInput, optFns ...func(*Options)) (*InvokeOutput, error)
Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. To invoke a function asynchronously, set InvocationType to Event. For synchronous invocation (https://docs.aws.amazon.com/lambda/latest/dg/invocation-sync.html), details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the execution log (https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions.html) and trace (https://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html). When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see Retry Behavior (https://docs.aws.amazon.com/lambda/latest/dg/retries-on-errors.html). For asynchronous invocation (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html), Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a dead-letter queue (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq). The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your function from executing, such as permissions errors, limit errors (https://docs.aws.amazon.com/lambda/latest/dg/limits.html), or issues with your function's code and configuration. For example, Lambda returns TooManyRequestsException if executing the function would cause you to exceed a concurrency limit at either the account level (ConcurrentInvocationLimitExceeded) or function level (ReservedFunctionConcurrentInvocationLimitExceeded). For functions with a long timeout, your client might be disconnected during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings. This operation requires permission for the lambda:InvokeFunction (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html) action.
func (*Client) InvokeAsync ¶
func (c *Client) InvokeAsync(ctx context.Context, params *InvokeAsyncInput, optFns ...func(*Options)) (*InvokeAsyncOutput, error)
For asynchronous function invocation, use Invoke. Invokes a function asynchronously.
func (*Client) ListAliases ¶
func (c *Client) ListAliases(ctx context.Context, params *ListAliasesInput, optFns ...func(*Options)) (*ListAliasesOutput, error)
Returns a list of aliases (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) for a Lambda function.
func (*Client) ListEventSourceMappings ¶
func (c *Client) ListEventSourceMappings(ctx context.Context, params *ListEventSourceMappingsInput, optFns ...func(*Options)) (*ListEventSourceMappingsOutput, error)
Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a single event source.
func (*Client) ListFunctionEventInvokeConfigs ¶
func (c *Client) ListFunctionEventInvokeConfigs(ctx context.Context, params *ListFunctionEventInvokeConfigsInput, optFns ...func(*Options)) (*ListFunctionEventInvokeConfigsOutput, error)
Retrieves a list of configurations for asynchronous invocation for a function. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
func (*Client) ListFunctions ¶
func (c *Client) ListFunctions(ctx context.Context, params *ListFunctionsInput, optFns ...func(*Options)) (*ListFunctionsOutput, error)
Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call. Set FunctionVersion to ALL to include all published versions of each function in addition to the unpublished version. To get more information about a function or version, use GetFunction.
func (*Client) ListLayerVersions ¶
func (c *Client) ListLayerVersions(ctx context.Context, params *ListLayerVersionsInput, optFns ...func(*Options)) (*ListLayerVersionsOutput, error)
Lists the versions of an AWS Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). Versions that have been deleted aren't listed. Specify a runtime identifier (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) to list only versions that indicate that they're compatible with that runtime.
func (*Client) ListLayers ¶
func (c *Client) ListLayers(ctx context.Context, params *ListLayersInput, optFns ...func(*Options)) (*ListLayersOutput, error)
Lists AWS Lambda layers (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) and shows information about the latest version of each. Specify a runtime identifier (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) to list only layers that indicate that they're compatible with that runtime.
func (*Client) ListProvisionedConcurrencyConfigs ¶
func (c *Client) ListProvisionedConcurrencyConfigs(ctx context.Context, params *ListProvisionedConcurrencyConfigsInput, optFns ...func(*Options)) (*ListProvisionedConcurrencyConfigsOutput, error)
Retrieves a list of provisioned concurrency configurations for a function.
func (*Client) ListTags ¶
func (c *Client) ListTags(ctx context.Context, params *ListTagsInput, optFns ...func(*Options)) (*ListTagsOutput, error)
Returns a function's tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html). You can also view tags with GetFunction.
func (*Client) ListVersionsByFunction ¶
func (c *Client) ListVersionsByFunction(ctx context.Context, params *ListVersionsByFunctionInput, optFns ...func(*Options)) (*ListVersionsByFunctionOutput, error)
Returns a list of versions (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html), with the version-specific configuration of each. Lambda returns up to 50 versions per call.
func (*Client) PublishLayerVersion ¶
func (c *Client) PublishLayerVersion(ctx context.Context, params *PublishLayerVersionInput, optFns ...func(*Options)) (*PublishLayerVersionOutput, error)
Creates an AWS Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) from a ZIP archive. Each time you call PublishLayerVersion with the same layer name, a new version is created. Add layers to your function with CreateFunction or UpdateFunctionConfiguration.
func (*Client) PublishVersion ¶
func (c *Client) PublishVersion(ctx context.Context, params *PublishVersionInput, optFns ...func(*Options)) (*PublishVersionOutput, error)
Creates a version (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change. AWS Lambda doesn't publish a version if the function's configuration and code haven't changed since the last version. Use UpdateFunctionCode or UpdateFunctionConfiguration to update the function before publishing a version. Clients can invoke versions directly or with an alias. To create an alias, use CreateAlias.
func (*Client) PutFunctionConcurrency ¶
func (c *Client) PutFunctionConcurrency(ctx context.Context, params *PutFunctionConcurrencyInput, optFns ...func(*Options)) (*PutFunctionConcurrencyOutput, error)
Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level. Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use GetFunction to see the current setting for a function. Use GetAccountSettings to see your Regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Managing Concurrency (https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html).
func (*Client) PutFunctionEventInvokeConfig ¶
func (c *Client) PutFunctionEventInvokeConfig(ctx context.Context, params *PutFunctionEventInvokeConfigInput, optFns ...func(*Options)) (*PutFunctionEventInvokeConfigOutput, error)
Configures options for asynchronous invocation (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html) on a function, version, or alias. If a configuration already exists for a function, version, or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without affecting existing settings for other options, use UpdateFunctionEventInvokeConfig. By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it. To retain discarded events, configure a dead-letter queue with UpdateFunctionConfiguration. To send an invocation record to a queue, topic, function, or event bus, specify a destination (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations). You can configure separate destinations for successful invocations (on-success) and events that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a dead-letter queue.
func (*Client) PutProvisionedConcurrencyConfig ¶
func (c *Client) PutProvisionedConcurrencyConfig(ctx context.Context, params *PutProvisionedConcurrencyConfigInput, optFns ...func(*Options)) (*PutProvisionedConcurrencyConfigOutput, error)
Adds a provisioned concurrency configuration to a function's alias or version.
func (*Client) RemoveLayerVersionPermission ¶
func (c *Client) RemoveLayerVersionPermission(ctx context.Context, params *RemoveLayerVersionPermissionInput, optFns ...func(*Options)) (*RemoveLayerVersionPermissionOutput, error)
Removes a statement from the permissions policy for a version of an AWS Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). For more information, see AddLayerVersionPermission.
func (*Client) RemovePermission ¶
func (c *Client) RemovePermission(ctx context.Context, params *RemovePermissionInput, optFns ...func(*Options)) (*RemovePermissionOutput, error)
Revokes function-use permission from an AWS service or another account. You can get the ID of the statement from the output of GetPolicy.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Adds tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to a function.
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) from a function.
func (*Client) UpdateAlias ¶
func (c *Client) UpdateAlias(ctx context.Context, params *UpdateAliasInput, optFns ...func(*Options)) (*UpdateAliasOutput, error)
Updates the configuration of a Lambda function alias (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).
func (*Client) UpdateEventSourceMapping ¶
func (c *Client) UpdateEventSourceMapping(ctx context.Context, params *UpdateEventSourceMappingInput, optFns ...func(*Options)) (*UpdateEventSourceMappingOutput, error)
Updates an event source mapping. You can change the function that AWS Lambda invokes, or pause invocation and resume later from the same location. The following error handling options are only available for stream sources (DynamoDB and Kinesis):
* BisectBatchOnFunctionError - If the function returns an error, split the batch in two and retry.
* DestinationConfig - Send discarded records to an Amazon SQS queue or Amazon SNS topic.
* MaximumRecordAgeInSeconds - Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires
* MaximumRetryAttempts - Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
* ParallelizationFactor - Process multiple batches from each shard concurrently.
func (*Client) UpdateFunctionCode ¶
func (c *Client) UpdateFunctionCode(ctx context.Context, params *UpdateFunctionCodeInput, optFns ...func(*Options)) (*UpdateFunctionCodeOutput, error)
Updates a Lambda function's code. The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.
func (*Client) UpdateFunctionConfiguration ¶
func (c *Client) UpdateFunctionConfiguration(ctx context.Context, params *UpdateFunctionConfigurationInput, optFns ...func(*Options)) (*UpdateFunctionConfigurationOutput, error)
Modify the version-specific settings of a Lambda function. When you update a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify the function, but you can still invoke it. The LastUpdateStatus, LastUpdateStatusReason, and LastUpdateStatusReasonCode fields in the response from GetFunctionConfiguration indicate when the update is complete and the function is processing events with the new configuration. For more information, see Function States (https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html). These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version. To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an account or AWS service, use AddPermission.
func (*Client) UpdateFunctionEventInvokeConfig ¶
func (c *Client) UpdateFunctionEventInvokeConfig(ctx context.Context, params *UpdateFunctionEventInvokeConfigInput, optFns ...func(*Options)) (*UpdateFunctionEventInvokeConfigOutput, error)
Updates the configuration for asynchronous invocation for a function, version, or alias. To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
type CreateAliasInput ¶
type CreateAliasInput 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. // // This member is required. FunctionName *string // The function version that the alias invokes. // // This member is required. FunctionVersion *string // The name of the alias. // // This member is required. Name *string // A description of the alias. Description *string // The routing configuration // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing) // of the alias. RoutingConfig *types.AliasRoutingConfiguration }
type CreateAliasOutput ¶
type CreateAliasOutput struct { // The Amazon Resource Name (ARN) of the alias. AliasArn *string // A description of the alias. Description *string // The function version that the alias invokes. FunctionVersion *string // The name of the alias. Name *string // A unique identifier that changes when you update the alias. RevisionId *string // The routing configuration // (https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html) // of the alias. RoutingConfig *types.AliasRoutingConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Provides configuration information about a Lambda function alias (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).
type CreateEventSourceMappingInput ¶
type CreateEventSourceMappingInput struct { // The Amazon Resource Name (ARN) of the event source. // // * Amazon Kinesis - The ARN // of the data stream or a stream consumer. // // * Amazon DynamoDB Streams - The ARN of // the stream. // // * Amazon Simple Queue Service - The ARN of the queue. // // * Amazon // Managed Streaming for Apache Kafka - The ARN of the cluster. // // This member is required. EventSourceArn *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. // // This member is required. FunctionName *string // 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. // // * Amazon Managed Streaming // for Apache Kafka - Default 100. Max 10,000. BatchSize *int32 // (Streams) If the function returns an error, split the batch in two and retry. BisectBatchOnFunctionError *bool // (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded // records. DestinationConfig *types.DestinationConfig // If true, the event source mapping is active. Set to false to pause polling and // invocation. Enabled *bool // (Streams) The maximum amount of time to gather records before invoking the // function, in seconds. MaximumBatchingWindowInSeconds *int32 // (Streams) Discard records older than the specified age. The default value is // infinite (-1). MaximumRecordAgeInSeconds *int32 // (Streams) Discard records after the specified number of retries. The default // value is infinite (-1). When set to infinite (-1), failed records will be // retried until the record expires. MaximumRetryAttempts *int32 // (Streams) The number of batches to process from each shard concurrently. ParallelizationFactor *int32 // (MQ) The name of the Amazon MQ broker destination queue to consume. Queues []string // (MQ) The Secrets Manager secret that stores your broker credentials. To store // your secret, use the following format: { "username": "your username", // "password": "your password" } To reference the secret, use the following format: // [ { "Type": "BASIC_AUTH", "URI": "secretARN" } ] // // The value of Type is always // BASIC_AUTH. To encrypt the secret, you can use customer or service managed keys. // When using a customer managed KMS key, the Lambda execution role requires // kms:Decrypt permissions. SourceAccessConfigurations []types.SourceAccessConfiguration // The position in a stream from which to start reading. Required for Amazon // Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only // supported for Amazon Kinesis streams. StartingPosition types.EventSourcePosition // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. StartingPositionTimestamp *time.Time // (MSK) The name of the Kafka topic. Topics []string }
type CreateEventSourceMappingOutput ¶
type CreateEventSourceMappingOutput struct { // The maximum number of items to retrieve in a single batch. BatchSize *int32 // (Streams) If the function returns an error, split the batch in two and retry. // The default value is false. BisectBatchOnFunctionError *bool // (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded // records. DestinationConfig *types.DestinationConfig // The Amazon Resource Name (ARN) of the event source. EventSourceArn *string // The ARN of the Lambda function. FunctionArn *string // The date that the event source mapping was last updated, or its state changed. LastModified *time.Time // The result of the last AWS Lambda invocation of your Lambda function. LastProcessingResult *string // (Streams) The maximum amount of time to gather records before invoking the // function, in seconds. The default value is zero. MaximumBatchingWindowInSeconds *int32 // (Streams) Discard records older than the specified age. The default value is // infinite (-1). When set to infinite (-1), failed records are retried until the // record expires. MaximumRecordAgeInSeconds *int32 // (Streams) Discard records after the specified number of retries. The default // value is infinite (-1). When set to infinite (-1), failed records are retried // until the record expires. MaximumRetryAttempts *int32 // (Streams) The number of batches to process from each shard concurrently. The // default value is 1. ParallelizationFactor *int32 // (MQ) The name of the Amazon MQ broker destination queue to consume. Queues []string // (MQ) The Secrets Manager secret that stores your broker credentials. To store // your secret, use the following format: { "username": "your username", // "password": "your password" } To reference the secret, use the following format: // [ { "Type": "BASIC_AUTH", "URI": "secretARN" } ] // // The value of Type is always // BASIC_AUTH. To encrypt the secret, you can use customer or service managed keys. // When using a customer managed KMS key, the Lambda execution role requires // kms:Decrypt permissions. SourceAccessConfigurations []types.SourceAccessConfiguration // The position in a stream from which to start reading. Required for Amazon // Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only // supported for Amazon Kinesis streams. StartingPosition types.EventSourcePosition // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. StartingPositionTimestamp *time.Time // The state of the event source mapping. It can be one of the following: Creating, // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string // Indicates whether the last change to the event source mapping was made by a // user, or by the Lambda service. StateTransitionReason *string // (MSK) The name of the Kafka topic to consume. Topics []string // The identifier of the event source mapping. UUID *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
A mapping between an AWS resource and an AWS Lambda function. See CreateEventSourceMapping for details.
type CreateFunctionInput ¶
type CreateFunctionInput struct { // The code for the function. // // This member is required. Code *types.FunctionCode // The name of the Lambda function. Name formats // // * Function name - my-function. // // * // Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * // Partial ARN - 123456789012:function:my-function. // // The length constraint applies // only to the full ARN. If you specify only the function name, it is limited to 64 // characters in length. // // This member is required. FunctionName *string // The name of the method within your code that Lambda calls to execute your // function. The format includes the file name. It can also include namespaces and // other qualifiers, depending on the runtime. For more information, see // Programming Model // (https://docs.aws.amazon.com/lambda/latest/dg/programming-model-v2.html). // // This member is required. Handler *string // The Amazon Resource Name (ARN) of the function's execution role. // // This member is required. Role *string // The identifier of the function's runtime // (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). // // This member is required. Runtime types.Runtime // A dead letter queue configuration that specifies the queue or topic where Lambda // sends asynchronous events when they fail processing. For more information, see // Dead Letter Queues // (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq). DeadLetterConfig *types.DeadLetterConfig // A description of the function. Description *string // Environment variables that are accessible from function code during execution. Environment *types.Environment // Connection settings for an Amazon EFS file system. FileSystemConfigs []types.FileSystemConfig // The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt // your function's environment variables. If it's not provided, AWS Lambda uses a // default service key. KMSKeyArn *string // A list of function layers // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) to add // to the function's execution environment. Specify each layer by its ARN, // including the version. Layers []string // The amount of memory that your function has access to. Increasing the function's // memory also increases its CPU allocation. The default value is 128 MB. The value // must be a multiple of 64 MB. MemorySize *int32 // Set to true to publish the first version of the function during creation. Publish bool // A list of tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to // apply to the function. Tags map[string]string // The amount of time that Lambda allows a function to run before stopping it. The // default is 3 seconds. The maximum allowed value is 900 seconds. Timeout *int32 // Set Mode to Active to sample and trace a subset of incoming requests with AWS // X-Ray. TracingConfig *types.TracingConfig // For network connectivity to AWS resources in a VPC, specify a list of security // groups and subnets in the VPC. When you connect a function to a VPC, it can only // access resources and the internet through that VPC. For more information, see // VPC Settings // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). VpcConfig *types.VpcConfig }
type CreateFunctionOutput ¶
type CreateFunctionOutput struct { // The SHA256 hash of the function's deployment package. CodeSha256 *string // The size of the function's deployment package, in bytes. CodeSize int64 // The function's dead letter queue. DeadLetterConfig *types.DeadLetterConfig // The function's description. Description *string // The function's environment variables. Environment *types.EnvironmentResponse // Connection settings for an Amazon EFS file system. FileSystemConfigs []types.FileSystemConfig // The function's Amazon Resource Name (ARN). FunctionArn *string // The name of the function. FunctionName *string // The function that Lambda calls to begin executing your function. Handler *string // The KMS key that's used to encrypt the function's environment variables. This // key is only returned if you've configured a customer managed CMK. KMSKeyArn *string // 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 // The status of the last update that was performed on the function. This is first // set to Successful after function creation completes. LastUpdateStatus types.LastUpdateStatus // The reason for the last update that was performed on the function. LastUpdateStatusReason *string // The reason code for the last update that was performed on the function. LastUpdateStatusReasonCode types.LastUpdateStatusReasonCode // The function's layers // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). Layers []types.Layer // For Lambda@Edge functions, the ARN of the master function. MasterArn *string // The memory that's allocated to the function. MemorySize *int32 // The latest updated revision of the function or alias. RevisionId *string // The function's execution role. Role *string // The runtime environment for the Lambda function. Runtime types.Runtime // The current state of the function. When the state is Inactive, you can // reactivate the function by invoking it. State types.State // The reason for the function's current state. StateReason *string // The reason code for the function's current state. When the code is Creating, you // can't invoke or modify the function. StateReasonCode types.StateReasonCode // The amount of time in seconds that Lambda allows a function to run before // stopping it. Timeout *int32 // The function's AWS X-Ray tracing configuration. TracingConfig *types.TracingConfigResponse // The version of the Lambda function. Version *string // The function's networking configuration. VpcConfig *types.VpcConfigResponse // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Details about a function's configuration.
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. // // This member is required. FunctionName *string // The name of the alias. // // This member is required. Name *string }
type DeleteAliasOutput ¶
type DeleteAliasOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteEventSourceMappingInput ¶
type DeleteEventSourceMappingInput struct { // The identifier of the event source mapping. // // This member is required. UUID *string }
type DeleteEventSourceMappingOutput ¶
type DeleteEventSourceMappingOutput struct { // The maximum number of items to retrieve in a single batch. BatchSize *int32 // (Streams) If the function returns an error, split the batch in two and retry. // The default value is false. BisectBatchOnFunctionError *bool // (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded // records. DestinationConfig *types.DestinationConfig // The Amazon Resource Name (ARN) of the event source. EventSourceArn *string // The ARN of the Lambda function. FunctionArn *string // The date that the event source mapping was last updated, or its state changed. LastModified *time.Time // The result of the last AWS Lambda invocation of your Lambda function. LastProcessingResult *string // (Streams) The maximum amount of time to gather records before invoking the // function, in seconds. The default value is zero. MaximumBatchingWindowInSeconds *int32 // (Streams) Discard records older than the specified age. The default value is // infinite (-1). When set to infinite (-1), failed records are retried until the // record expires. MaximumRecordAgeInSeconds *int32 // (Streams) Discard records after the specified number of retries. The default // value is infinite (-1). When set to infinite (-1), failed records are retried // until the record expires. MaximumRetryAttempts *int32 // (Streams) The number of batches to process from each shard concurrently. The // default value is 1. ParallelizationFactor *int32 // (MQ) The name of the Amazon MQ broker destination queue to consume. Queues []string // (MQ) The Secrets Manager secret that stores your broker credentials. To store // your secret, use the following format: { "username": "your username", // "password": "your password" } To reference the secret, use the following format: // [ { "Type": "BASIC_AUTH", "URI": "secretARN" } ] // // The value of Type is always // BASIC_AUTH. To encrypt the secret, you can use customer or service managed keys. // When using a customer managed KMS key, the Lambda execution role requires // kms:Decrypt permissions. SourceAccessConfigurations []types.SourceAccessConfiguration // The position in a stream from which to start reading. Required for Amazon // Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only // supported for Amazon Kinesis streams. StartingPosition types.EventSourcePosition // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. StartingPositionTimestamp *time.Time // The state of the event source mapping. It can be one of the following: Creating, // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string // Indicates whether the last change to the event source mapping was made by a // user, or by the Lambda service. StateTransitionReason *string // (MSK) The name of the Kafka topic to consume. Topics []string // The identifier of the event source mapping. UUID *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
A mapping between an AWS resource and an AWS Lambda function. See CreateEventSourceMapping for details.
type DeleteFunctionConcurrencyInput ¶
type DeleteFunctionConcurrencyInput struct { // The name of the Lambda function. Name formats // // * Function name - my-function. // // * // Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * // Partial ARN - 123456789012:function:my-function. // // The length constraint applies // only to the full ARN. If you specify only the function name, it is limited to 64 // characters in length. // // This member is required. FunctionName *string }
type DeleteFunctionConcurrencyOutput ¶
type DeleteFunctionConcurrencyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteFunctionEventInvokeConfigInput ¶
type DeleteFunctionEventInvokeConfigInput struct { // The name of the Lambda function, version, or alias. Name formats // // * Function // name - my-function (name-only), my-function:v1 (with alias). // // * Function ARN - // arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN - // 123456789012:function:my-function. // // You can append a version number or alias to // any of the formats. The length constraint applies only to the full ARN. If you // specify only the function name, it is limited to 64 characters in length. // // This member is required. FunctionName *string // A version number or alias name. Qualifier *string }
type DeleteFunctionEventInvokeConfigOutput ¶
type DeleteFunctionEventInvokeConfigOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteFunctionInput ¶
type DeleteFunctionInput struct { // The name of the Lambda function or version. Name formats // // * Function name - // my-function (name-only), my-function:1 (with version). // // * Function ARN - // arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN - // 123456789012:function:my-function. // // You can append a version number or alias to // any of the formats. The length constraint applies only to the full ARN. If you // specify only the function name, it is limited to 64 characters in length. // // This member is required. FunctionName *string // Specify a version to delete. You can't delete a version that's referenced by an // alias. Qualifier *string }
type DeleteFunctionOutput ¶
type DeleteFunctionOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteLayerVersionInput ¶
type DeleteLayerVersionInput struct { // The name or Amazon Resource Name (ARN) of the layer. // // This member is required. LayerName *string // The version number. // // This member is required. VersionNumber int64 }
type DeleteLayerVersionOutput ¶
type DeleteLayerVersionOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteProvisionedConcurrencyConfigInput ¶
type DeleteProvisionedConcurrencyConfigInput struct { // The name of the Lambda function. Name formats // // * Function name - my-function. // // * // Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * // Partial ARN - 123456789012:function:my-function. // // The length constraint applies // only to the full ARN. If you specify only the function name, it is limited to 64 // characters in length. // // This member is required. FunctionName *string // The version number or alias name. // // This member is required. Qualifier *string }
type DeleteProvisionedConcurrencyConfigOutput ¶
type DeleteProvisionedConcurrencyConfigOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type EndpointResolver ¶
type EndpointResolver interface { ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) }
EndpointResolver interface for resolving service endpoints.
func WithEndpointResolver ¶
func WithEndpointResolver(awsResolver aws.EndpointResolver, fallbackResolver EndpointResolver) EndpointResolver
WithEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided fallbackResolver for resolution. awsResolver and fallbackResolver must not be nil
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type GetAccountSettingsInput ¶
type GetAccountSettingsInput struct { }
type GetAccountSettingsOutput ¶
type GetAccountSettingsOutput struct { // Limits that are related to concurrency and code storage. AccountLimit *types.AccountLimit // The number of functions and amount of storage in use. AccountUsage *types.AccountUsage // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
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. // // This member is required. FunctionName *string // The name of the alias. // // This member is required. Name *string }
type GetAliasOutput ¶
type GetAliasOutput struct { // The Amazon Resource Name (ARN) of the alias. AliasArn *string // A description of the alias. Description *string // The function version that the alias invokes. FunctionVersion *string // The name of the alias. Name *string // A unique identifier that changes when you update the alias. RevisionId *string // The routing configuration // (https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html) // of the alias. RoutingConfig *types.AliasRoutingConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Provides configuration information about a Lambda function alias (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).
type GetEventSourceMappingInput ¶
type GetEventSourceMappingInput struct { // The identifier of the event source mapping. // // This member is required. UUID *string }
type GetEventSourceMappingOutput ¶
type GetEventSourceMappingOutput struct { // The maximum number of items to retrieve in a single batch. BatchSize *int32 // (Streams) If the function returns an error, split the batch in two and retry. // The default value is false. BisectBatchOnFunctionError *bool // (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded // records. DestinationConfig *types.DestinationConfig // The Amazon Resource Name (ARN) of the event source. EventSourceArn *string // The ARN of the Lambda function. FunctionArn *string // The date that the event source mapping was last updated, or its state changed. LastModified *time.Time // The result of the last AWS Lambda invocation of your Lambda function. LastProcessingResult *string // (Streams) The maximum amount of time to gather records before invoking the // function, in seconds. The default value is zero. MaximumBatchingWindowInSeconds *int32 // (Streams) Discard records older than the specified age. The default value is // infinite (-1). When set to infinite (-1), failed records are retried until the // record expires. MaximumRecordAgeInSeconds *int32 // (Streams) Discard records after the specified number of retries. The default // value is infinite (-1). When set to infinite (-1), failed records are retried // until the record expires. MaximumRetryAttempts *int32 // (Streams) The number of batches to process from each shard concurrently. The // default value is 1. ParallelizationFactor *int32 // (MQ) The name of the Amazon MQ broker destination queue to consume. Queues []string // (MQ) The Secrets Manager secret that stores your broker credentials. To store // your secret, use the following format: { "username": "your username", // "password": "your password" } To reference the secret, use the following format: // [ { "Type": "BASIC_AUTH", "URI": "secretARN" } ] // // The value of Type is always // BASIC_AUTH. To encrypt the secret, you can use customer or service managed keys. // When using a customer managed KMS key, the Lambda execution role requires // kms:Decrypt permissions. SourceAccessConfigurations []types.SourceAccessConfiguration // The position in a stream from which to start reading. Required for Amazon // Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only // supported for Amazon Kinesis streams. StartingPosition types.EventSourcePosition // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. StartingPositionTimestamp *time.Time // The state of the event source mapping. It can be one of the following: Creating, // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string // Indicates whether the last change to the event source mapping was made by a // user, or by the Lambda service. StateTransitionReason *string // (MSK) The name of the Kafka topic to consume. Topics []string // The identifier of the event source mapping. UUID *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
A mapping between an AWS resource and an AWS Lambda function. See CreateEventSourceMapping for details.
type GetFunctionConcurrencyInput ¶
type GetFunctionConcurrencyInput struct { // The name of the Lambda function. Name formats // // * Function name - my-function. // // * // Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * // Partial ARN - 123456789012:function:my-function. // // The length constraint applies // only to the full ARN. If you specify only the function name, it is limited to 64 // characters in length. // // This member is required. FunctionName *string }
type GetFunctionConcurrencyOutput ¶
type GetFunctionConcurrencyOutput struct { // The number of simultaneous executions that are reserved for the function. ReservedConcurrentExecutions *int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetFunctionConfigurationInput ¶
type GetFunctionConfigurationInput struct { // The name of the Lambda function, version, or alias. Name formats // // * Function // name - my-function (name-only), my-function:v1 (with alias). // // * Function ARN - // arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN - // 123456789012:function:my-function. // // You can append a version number or alias to // any of the formats. The length constraint applies only to the full ARN. If you // specify only the function name, it is limited to 64 characters in length. // // This member is required. FunctionName *string // Specify a version or alias to get details about a published version of the // function. Qualifier *string }
type GetFunctionConfigurationOutput ¶
type GetFunctionConfigurationOutput struct { // The SHA256 hash of the function's deployment package. CodeSha256 *string // The size of the function's deployment package, in bytes. CodeSize int64 // The function's dead letter queue. DeadLetterConfig *types.DeadLetterConfig // The function's description. Description *string // The function's environment variables. Environment *types.EnvironmentResponse // Connection settings for an Amazon EFS file system. FileSystemConfigs []types.FileSystemConfig // The function's Amazon Resource Name (ARN). FunctionArn *string // The name of the function. FunctionName *string // The function that Lambda calls to begin executing your function. Handler *string // The KMS key that's used to encrypt the function's environment variables. This // key is only returned if you've configured a customer managed CMK. KMSKeyArn *string // 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 // The status of the last update that was performed on the function. This is first // set to Successful after function creation completes. LastUpdateStatus types.LastUpdateStatus // The reason for the last update that was performed on the function. LastUpdateStatusReason *string // The reason code for the last update that was performed on the function. LastUpdateStatusReasonCode types.LastUpdateStatusReasonCode // The function's layers // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). Layers []types.Layer // For Lambda@Edge functions, the ARN of the master function. MasterArn *string // The memory that's allocated to the function. MemorySize *int32 // The latest updated revision of the function or alias. RevisionId *string // The function's execution role. Role *string // The runtime environment for the Lambda function. Runtime types.Runtime // The current state of the function. When the state is Inactive, you can // reactivate the function by invoking it. State types.State // The reason for the function's current state. StateReason *string // The reason code for the function's current state. When the code is Creating, you // can't invoke or modify the function. StateReasonCode types.StateReasonCode // The amount of time in seconds that Lambda allows a function to run before // stopping it. Timeout *int32 // The function's AWS X-Ray tracing configuration. TracingConfig *types.TracingConfigResponse // The version of the Lambda function. Version *string // The function's networking configuration. VpcConfig *types.VpcConfigResponse // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Details about a function's configuration.
type GetFunctionEventInvokeConfigInput ¶
type GetFunctionEventInvokeConfigInput struct { // The name of the Lambda function, version, or alias. Name formats // // * Function // name - my-function (name-only), my-function:v1 (with alias). // // * Function ARN - // arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN - // 123456789012:function:my-function. // // You can append a version number or alias to // any of the formats. The length constraint applies only to the full ARN. If you // specify only the function name, it is limited to 64 characters in length. // // This member is required. FunctionName *string // A version number or alias name. Qualifier *string }
type GetFunctionEventInvokeConfigOutput ¶
type GetFunctionEventInvokeConfigOutput struct { // A destination for events after they have been sent to a function for processing. // Destinations // // * Function - The Amazon Resource Name (ARN) of a Lambda // function. // // * Queue - The ARN of an SQS queue. // // * Topic - The ARN of an SNS // topic. // // * Event Bus - The ARN of an Amazon EventBridge event bus. DestinationConfig *types.DestinationConfig // The Amazon Resource Name (ARN) of the function. FunctionArn *string // The date and time that the configuration was last updated. LastModified *time.Time // The maximum age of a request that Lambda sends to a function for processing. MaximumEventAgeInSeconds *int32 // The maximum number of times to retry when the function returns an error. MaximumRetryAttempts *int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetFunctionInput ¶
type GetFunctionInput struct { // The name of the Lambda function, version, or alias. Name formats // // * Function // name - my-function (name-only), my-function:v1 (with alias). // // * Function ARN - // arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN - // 123456789012:function:my-function. // // You can append a version number or alias to // any of the formats. The length constraint applies only to the full ARN. If you // specify only the function name, it is limited to 64 characters in length. // // This member is required. FunctionName *string // Specify a version or alias to get details about a published version of the // function. Qualifier *string }
type GetFunctionOutput ¶
type GetFunctionOutput struct { // The deployment package of the function or version. Code *types.FunctionCodeLocation // The function's reserved concurrency // (https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html). Concurrency *types.Concurrency // The configuration of the function or version. Configuration *types.FunctionConfiguration // The function's tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html). Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetLayerVersionByArnInput ¶
type GetLayerVersionByArnInput struct { // The ARN of the layer version. // // This member is required. Arn *string }
type GetLayerVersionByArnOutput ¶
type GetLayerVersionByArnOutput struct { // The layer's compatible runtimes. CompatibleRuntimes []types.Runtime // Details about the layer version. Content *types.LayerVersionContentOutput // 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 // The description of the version. Description *string // The ARN of the layer. LayerArn *string // The ARN of the layer version. LayerVersionArn *string // The layer's software license. LicenseInfo *string // The version number. Version int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetLayerVersionInput ¶
type GetLayerVersionInput struct { // The name or Amazon Resource Name (ARN) of the layer. // // This member is required. LayerName *string // The version number. // // This member is required. VersionNumber int64 }
type GetLayerVersionOutput ¶
type GetLayerVersionOutput struct { // The layer's compatible runtimes. CompatibleRuntimes []types.Runtime // Details about the layer version. Content *types.LayerVersionContentOutput // 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 // The description of the version. Description *string // The ARN of the layer. LayerArn *string // The ARN of the layer version. LayerVersionArn *string // The layer's software license. LicenseInfo *string // The version number. Version int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetLayerVersionPolicyInput ¶
type GetLayerVersionPolicyInput struct { // The name or Amazon Resource Name (ARN) of the layer. // // This member is required. LayerName *string // The version number. // // This member is required. VersionNumber int64 }
type GetLayerVersionPolicyOutput ¶
type GetLayerVersionPolicyOutput struct { // The policy document. Policy *string // A unique identifier for the current revision of the policy. RevisionId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetPolicyInput ¶
type GetPolicyInput struct { // The name of the Lambda function, version, or alias. Name formats // // * Function // name - my-function (name-only), my-function:v1 (with alias). // // * Function ARN - // arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN - // 123456789012:function:my-function. // // You can append a version number or alias to // any of the formats. The length constraint applies only to the full ARN. If you // specify only the function name, it is limited to 64 characters in length. // // This member is required. FunctionName *string // Specify a version or alias to get the policy for that resource. Qualifier *string }
type GetPolicyOutput ¶
type GetPolicyOutput struct { // The resource-based policy. Policy *string // A unique identifier for the current revision of the policy. RevisionId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetProvisionedConcurrencyConfigInput ¶
type GetProvisionedConcurrencyConfigInput struct { // The name of the Lambda function. Name formats // // * Function name - my-function. // // * // Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * // Partial ARN - 123456789012:function:my-function. // // The length constraint applies // only to the full ARN. If you specify only the function name, it is limited to 64 // characters in length. // // This member is required. FunctionName *string // The version number or alias name. // // This member is required. Qualifier *string }
type GetProvisionedConcurrencyConfigOutput ¶
type GetProvisionedConcurrencyConfigOutput struct { // The amount of provisioned concurrency allocated. AllocatedProvisionedConcurrentExecutions *int32 // The amount of provisioned concurrency available. AvailableProvisionedConcurrentExecutions *int32 // The date and time that a user last updated the configuration, in ISO 8601 format // (https://www.iso.org/iso-8601-date-and-time-format.html). LastModified *string // The amount of provisioned concurrency requested. RequestedProvisionedConcurrentExecutions *int32 // The status of the allocation process. Status types.ProvisionedConcurrencyStatusEnum // For failed allocations, the reason that provisioned concurrency could not be // allocated. StatusReason *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type HTTPClient ¶
type HTTPSignerV4 ¶
type HTTPSignerV4 interface { SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time) error }
type InvokeAsyncInput ¶
type InvokeAsyncInput struct { // The name of the Lambda function. Name formats // // * Function name - my-function. // // * // Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * // Partial ARN - 123456789012:function:my-function. // // The length constraint applies // only to the full ARN. If you specify only the function name, it is limited to 64 // characters in length. // // This member is required. FunctionName *string // The JSON that you want to provide to your Lambda function as input. // // This member is required. InvokeArgs io.Reader }
type InvokeAsyncOutput ¶
type InvokeAsyncOutput struct { // The status code. Status int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
A success response (202 Accepted) indicates that the request is queued for invocation.
type InvokeInput ¶
type InvokeInput struct { // The name of the Lambda function, version, or alias. Name formats // // * Function // name - my-function (name-only), my-function:v1 (with alias). // // * Function ARN - // arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN - // 123456789012:function:my-function. // // You can append a version number or alias to // any of the formats. The length constraint applies only to the full ARN. If you // specify only the function name, it is limited to 64 characters in length. // // This member is required. FunctionName *string // Up to 3583 bytes of base64-encoded data about the invoking client to pass to the // function in the context object. ClientContext *string // Choose from the following options. // // * RequestResponse (default) - Invoke the // function synchronously. Keep the connection open until the function returns a // response or times out. The API response includes the function response and // additional data. // // * Event - Invoke the function asynchronously. Send events that // fail multiple times to the function's dead-letter queue (if it's configured). // The API response only includes a status code. // // * DryRun - Validate parameter // values and verify that the user or role has permission to invoke the function. InvocationType types.InvocationType // Set to Tail to include the execution log in the response. LogType types.LogType // The JSON that you want to provide to your Lambda function as input. Payload []byte // Specify a version or alias to invoke a published version of the function. Qualifier *string }
type InvokeOutput ¶
type InvokeOutput struct { // The version of the function that executed. When you invoke a function with an // alias, this indicates which version the alias resolved to. ExecutedVersion *string // If present, indicates that an error occurred during function execution. Details // about the error are included in the response payload. FunctionError *string // The last 4 KB of the execution log, which is base64 encoded. LogResult *string // The response from the function, or an error object. Payload []byte // The HTTP status code is in the 200 range for a successful request. For the // RequestResponse invocation type, this status code is 200. For the Event // invocation type, this status code is 202. For the DryRun invocation type, the // status code is 204. StatusCode int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListAliasesAPIClient ¶
type ListAliasesAPIClient interface { ListAliases(context.Context, *ListAliasesInput, ...func(*Options)) (*ListAliasesOutput, error) }
ListAliasesAPIClient is a client that implements the ListAliases operation.
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. // // This member is required. FunctionName *string // Specify a function version to only list aliases that invoke that version. FunctionVersion *string // Specify the pagination token that's returned by a previous request to retrieve // the next page of results. Marker *string // Limit the number of aliases returned. MaxItems *int32 }
type ListAliasesOutput ¶
type ListAliasesOutput struct { // A list of aliases. Aliases []types.AliasConfiguration // The pagination token that's included if more results are available. NextMarker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListAliasesPaginator ¶
type ListAliasesPaginator struct {
// contains filtered or unexported fields
}
ListAliasesPaginator is a paginator for ListAliases
func NewListAliasesPaginator ¶
func NewListAliasesPaginator(client ListAliasesAPIClient, params *ListAliasesInput, optFns ...func(*ListAliasesPaginatorOptions)) *ListAliasesPaginator
NewListAliasesPaginator returns a new ListAliasesPaginator
func (*ListAliasesPaginator) HasMorePages ¶
func (p *ListAliasesPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListAliasesPaginator) NextPage ¶
func (p *ListAliasesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAliasesOutput, error)
NextPage retrieves the next ListAliases page.
type ListAliasesPaginatorOptions ¶
type ListAliasesPaginatorOptions struct { // Limit the number of aliases returned. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListAliasesPaginatorOptions is the paginator options for ListAliases
type ListEventSourceMappingsAPIClient ¶
type ListEventSourceMappingsAPIClient interface { ListEventSourceMappings(context.Context, *ListEventSourceMappingsInput, ...func(*Options)) (*ListEventSourceMappingsOutput, error) }
ListEventSourceMappingsAPIClient is a client that implements the ListEventSourceMappings operation.
type ListEventSourceMappingsInput ¶
type ListEventSourceMappingsInput struct { // The Amazon Resource Name (ARN) of the event source. // // * Amazon Kinesis - The ARN // of the data stream or a stream consumer. // // * Amazon DynamoDB Streams - The ARN of // the stream. // // * Amazon Simple Queue Service - The ARN of the queue. // // * Amazon // Managed Streaming for Apache Kafka - The ARN of the cluster. EventSourceArn *string // 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 // A pagination token returned by a previous call. Marker *string // The maximum number of event source mappings to return. MaxItems *int32 }
type ListEventSourceMappingsOutput ¶
type ListEventSourceMappingsOutput struct { // A list of event source mappings. EventSourceMappings []types.EventSourceMappingConfiguration // A pagination token that's returned when the response doesn't contain all event // source mappings. NextMarker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListEventSourceMappingsPaginator ¶
type ListEventSourceMappingsPaginator struct {
// contains filtered or unexported fields
}
ListEventSourceMappingsPaginator is a paginator for ListEventSourceMappings
func NewListEventSourceMappingsPaginator ¶
func NewListEventSourceMappingsPaginator(client ListEventSourceMappingsAPIClient, params *ListEventSourceMappingsInput, optFns ...func(*ListEventSourceMappingsPaginatorOptions)) *ListEventSourceMappingsPaginator
NewListEventSourceMappingsPaginator returns a new ListEventSourceMappingsPaginator
func (*ListEventSourceMappingsPaginator) HasMorePages ¶
func (p *ListEventSourceMappingsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListEventSourceMappingsPaginator) NextPage ¶
func (p *ListEventSourceMappingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListEventSourceMappingsOutput, error)
NextPage retrieves the next ListEventSourceMappings page.
type ListEventSourceMappingsPaginatorOptions ¶
type ListEventSourceMappingsPaginatorOptions struct { // The maximum number of event source mappings to return. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListEventSourceMappingsPaginatorOptions is the paginator options for ListEventSourceMappings
type ListFunctionEventInvokeConfigsAPIClient ¶
type ListFunctionEventInvokeConfigsAPIClient interface { ListFunctionEventInvokeConfigs(context.Context, *ListFunctionEventInvokeConfigsInput, ...func(*Options)) (*ListFunctionEventInvokeConfigsOutput, error) }
ListFunctionEventInvokeConfigsAPIClient is a client that implements the ListFunctionEventInvokeConfigs operation.
type ListFunctionEventInvokeConfigsInput ¶
type ListFunctionEventInvokeConfigsInput struct { // The name of the Lambda function. Name formats // // * Function name - my-function. // // * // Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * // Partial ARN - 123456789012:function:my-function. // // The length constraint applies // only to the full ARN. If you specify only the function name, it is limited to 64 // characters in length. // // This member is required. FunctionName *string // Specify the pagination token that's returned by a previous request to retrieve // the next page of results. Marker *string // The maximum number of configurations to return. MaxItems *int32 }
type ListFunctionEventInvokeConfigsOutput ¶
type ListFunctionEventInvokeConfigsOutput struct { // A list of configurations. FunctionEventInvokeConfigs []types.FunctionEventInvokeConfig // The pagination token that's included if more results are available. NextMarker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListFunctionEventInvokeConfigsPaginator ¶
type ListFunctionEventInvokeConfigsPaginator struct {
// contains filtered or unexported fields
}
ListFunctionEventInvokeConfigsPaginator is a paginator for ListFunctionEventInvokeConfigs
func NewListFunctionEventInvokeConfigsPaginator ¶
func NewListFunctionEventInvokeConfigsPaginator(client ListFunctionEventInvokeConfigsAPIClient, params *ListFunctionEventInvokeConfigsInput, optFns ...func(*ListFunctionEventInvokeConfigsPaginatorOptions)) *ListFunctionEventInvokeConfigsPaginator
NewListFunctionEventInvokeConfigsPaginator returns a new ListFunctionEventInvokeConfigsPaginator
func (*ListFunctionEventInvokeConfigsPaginator) HasMorePages ¶
func (p *ListFunctionEventInvokeConfigsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListFunctionEventInvokeConfigsPaginator) NextPage ¶
func (p *ListFunctionEventInvokeConfigsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListFunctionEventInvokeConfigsOutput, error)
NextPage retrieves the next ListFunctionEventInvokeConfigs page.
type ListFunctionEventInvokeConfigsPaginatorOptions ¶
type ListFunctionEventInvokeConfigsPaginatorOptions struct { // The maximum number of configurations to return. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListFunctionEventInvokeConfigsPaginatorOptions is the paginator options for ListFunctionEventInvokeConfigs
type ListFunctionsAPIClient ¶
type ListFunctionsAPIClient interface { ListFunctions(context.Context, *ListFunctionsInput, ...func(*Options)) (*ListFunctionsOutput, error) }
ListFunctionsAPIClient is a client that implements the ListFunctions operation.
type ListFunctionsInput ¶
type ListFunctionsInput struct { // Set to ALL to include entries for all published versions of each function. FunctionVersion types.FunctionVersion // Specify the pagination token that's returned by a previous request to retrieve // the next page of results. Marker *string // For Lambda@Edge functions, the AWS Region of the master function. For example, // us-east-1 filters the list of functions to only include Lambda@Edge functions // replicated from a master function in US East (N. Virginia). If specified, you // must set FunctionVersion to ALL. MasterRegion *string // The maximum number of functions to return. MaxItems *int32 }
type ListFunctionsOutput ¶
type ListFunctionsOutput struct { // A list of Lambda functions. Functions []types.FunctionConfiguration // The pagination token that's included if more results are available. NextMarker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
A list of Lambda functions.
type ListFunctionsPaginator ¶
type ListFunctionsPaginator struct {
// contains filtered or unexported fields
}
ListFunctionsPaginator is a paginator for ListFunctions
func NewListFunctionsPaginator ¶
func NewListFunctionsPaginator(client ListFunctionsAPIClient, params *ListFunctionsInput, optFns ...func(*ListFunctionsPaginatorOptions)) *ListFunctionsPaginator
NewListFunctionsPaginator returns a new ListFunctionsPaginator
func (*ListFunctionsPaginator) HasMorePages ¶
func (p *ListFunctionsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListFunctionsPaginator) NextPage ¶
func (p *ListFunctionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListFunctionsOutput, error)
NextPage retrieves the next ListFunctions page.
type ListFunctionsPaginatorOptions ¶
type ListFunctionsPaginatorOptions struct { // The maximum number of functions to return. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListFunctionsPaginatorOptions is the paginator options for ListFunctions
type ListLayerVersionsAPIClient ¶
type ListLayerVersionsAPIClient interface { ListLayerVersions(context.Context, *ListLayerVersionsInput, ...func(*Options)) (*ListLayerVersionsOutput, error) }
ListLayerVersionsAPIClient is a client that implements the ListLayerVersions operation.
type ListLayerVersionsInput ¶
type ListLayerVersionsInput struct { // The name or Amazon Resource Name (ARN) of the layer. // // This member is required. LayerName *string // A runtime identifier. For example, go1.x. CompatibleRuntime types.Runtime // A pagination token returned by a previous call. Marker *string // The maximum number of versions to return. MaxItems *int32 }
type ListLayerVersionsOutput ¶
type ListLayerVersionsOutput struct { // A list of versions. LayerVersions []types.LayerVersionsListItem // A pagination token returned when the response doesn't contain all versions. NextMarker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListLayerVersionsPaginator ¶
type ListLayerVersionsPaginator struct {
// contains filtered or unexported fields
}
ListLayerVersionsPaginator is a paginator for ListLayerVersions
func NewListLayerVersionsPaginator ¶
func NewListLayerVersionsPaginator(client ListLayerVersionsAPIClient, params *ListLayerVersionsInput, optFns ...func(*ListLayerVersionsPaginatorOptions)) *ListLayerVersionsPaginator
NewListLayerVersionsPaginator returns a new ListLayerVersionsPaginator
func (*ListLayerVersionsPaginator) HasMorePages ¶
func (p *ListLayerVersionsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListLayerVersionsPaginator) NextPage ¶
func (p *ListLayerVersionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListLayerVersionsOutput, error)
NextPage retrieves the next ListLayerVersions page.
type ListLayerVersionsPaginatorOptions ¶
type ListLayerVersionsPaginatorOptions struct { // The maximum number of versions to return. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListLayerVersionsPaginatorOptions is the paginator options for ListLayerVersions
type ListLayersAPIClient ¶
type ListLayersAPIClient interface { ListLayers(context.Context, *ListLayersInput, ...func(*Options)) (*ListLayersOutput, error) }
ListLayersAPIClient is a client that implements the ListLayers operation.
type ListLayersInput ¶
type ListLayersInput struct { // A runtime identifier. For example, go1.x. CompatibleRuntime types.Runtime // A pagination token returned by a previous call. Marker *string // The maximum number of layers to return. MaxItems *int32 }
type ListLayersOutput ¶
type ListLayersOutput struct { // A list of function layers. Layers []types.LayersListItem // A pagination token returned when the response doesn't contain all layers. NextMarker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListLayersPaginator ¶
type ListLayersPaginator struct {
// contains filtered or unexported fields
}
ListLayersPaginator is a paginator for ListLayers
func NewListLayersPaginator ¶
func NewListLayersPaginator(client ListLayersAPIClient, params *ListLayersInput, optFns ...func(*ListLayersPaginatorOptions)) *ListLayersPaginator
NewListLayersPaginator returns a new ListLayersPaginator
func (*ListLayersPaginator) HasMorePages ¶
func (p *ListLayersPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListLayersPaginator) NextPage ¶
func (p *ListLayersPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListLayersOutput, error)
NextPage retrieves the next ListLayers page.
type ListLayersPaginatorOptions ¶
type ListLayersPaginatorOptions struct { // The maximum number of layers to return. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListLayersPaginatorOptions is the paginator options for ListLayers
type ListProvisionedConcurrencyConfigsAPIClient ¶
type ListProvisionedConcurrencyConfigsAPIClient interface { ListProvisionedConcurrencyConfigs(context.Context, *ListProvisionedConcurrencyConfigsInput, ...func(*Options)) (*ListProvisionedConcurrencyConfigsOutput, error) }
ListProvisionedConcurrencyConfigsAPIClient is a client that implements the ListProvisionedConcurrencyConfigs operation.
type ListProvisionedConcurrencyConfigsInput ¶
type ListProvisionedConcurrencyConfigsInput struct { // The name of the Lambda function. Name formats // // * Function name - my-function. // // * // Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * // Partial ARN - 123456789012:function:my-function. // // The length constraint applies // only to the full ARN. If you specify only the function name, it is limited to 64 // characters in length. // // This member is required. FunctionName *string // Specify the pagination token that's returned by a previous request to retrieve // the next page of results. Marker *string // Specify a number to limit the number of configurations returned. MaxItems *int32 }
type ListProvisionedConcurrencyConfigsOutput ¶
type ListProvisionedConcurrencyConfigsOutput struct { // The pagination token that's included if more results are available. NextMarker *string // A list of provisioned concurrency configurations. ProvisionedConcurrencyConfigs []types.ProvisionedConcurrencyConfigListItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListProvisionedConcurrencyConfigsPaginator ¶
type ListProvisionedConcurrencyConfigsPaginator struct {
// contains filtered or unexported fields
}
ListProvisionedConcurrencyConfigsPaginator is a paginator for ListProvisionedConcurrencyConfigs
func NewListProvisionedConcurrencyConfigsPaginator ¶
func NewListProvisionedConcurrencyConfigsPaginator(client ListProvisionedConcurrencyConfigsAPIClient, params *ListProvisionedConcurrencyConfigsInput, optFns ...func(*ListProvisionedConcurrencyConfigsPaginatorOptions)) *ListProvisionedConcurrencyConfigsPaginator
NewListProvisionedConcurrencyConfigsPaginator returns a new ListProvisionedConcurrencyConfigsPaginator
func (*ListProvisionedConcurrencyConfigsPaginator) HasMorePages ¶
func (p *ListProvisionedConcurrencyConfigsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListProvisionedConcurrencyConfigsPaginator) NextPage ¶
func (p *ListProvisionedConcurrencyConfigsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListProvisionedConcurrencyConfigsOutput, error)
NextPage retrieves the next ListProvisionedConcurrencyConfigs page.
type ListProvisionedConcurrencyConfigsPaginatorOptions ¶
type ListProvisionedConcurrencyConfigsPaginatorOptions struct { // Specify a number to limit the number of configurations returned. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListProvisionedConcurrencyConfigsPaginatorOptions is the paginator options for ListProvisionedConcurrencyConfigs
type ListTagsInput ¶
type ListTagsInput struct { // The function's Amazon Resource Name (ARN). // // This member is required. Resource *string }
type ListTagsOutput ¶
type ListTagsOutput struct { // The function's tags. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListVersionsByFunctionAPIClient ¶
type ListVersionsByFunctionAPIClient interface { ListVersionsByFunction(context.Context, *ListVersionsByFunctionInput, ...func(*Options)) (*ListVersionsByFunctionOutput, error) }
ListVersionsByFunctionAPIClient is a client that implements the ListVersionsByFunction operation.
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. // // This member is required. FunctionName *string // Specify the pagination token that's returned by a previous request to retrieve // the next page of results. Marker *string // The maximum number of versions to return. MaxItems *int32 }
type ListVersionsByFunctionOutput ¶
type ListVersionsByFunctionOutput struct { // The pagination token that's included if more results are available. NextMarker *string // A list of Lambda function versions. Versions []types.FunctionConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListVersionsByFunctionPaginator ¶
type ListVersionsByFunctionPaginator struct {
// contains filtered or unexported fields
}
ListVersionsByFunctionPaginator is a paginator for ListVersionsByFunction
func NewListVersionsByFunctionPaginator ¶
func NewListVersionsByFunctionPaginator(client ListVersionsByFunctionAPIClient, params *ListVersionsByFunctionInput, optFns ...func(*ListVersionsByFunctionPaginatorOptions)) *ListVersionsByFunctionPaginator
NewListVersionsByFunctionPaginator returns a new ListVersionsByFunctionPaginator
func (*ListVersionsByFunctionPaginator) HasMorePages ¶
func (p *ListVersionsByFunctionPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListVersionsByFunctionPaginator) NextPage ¶
func (p *ListVersionsByFunctionPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListVersionsByFunctionOutput, error)
NextPage retrieves the next ListVersionsByFunction page.
type ListVersionsByFunctionPaginatorOptions ¶
type ListVersionsByFunctionPaginatorOptions struct { // The maximum number of versions to return. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListVersionsByFunctionPaginatorOptions is the paginator options for ListVersionsByFunction
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The logger writer interface to write logging messages to. Logger logging.Logger // The region to send requests to. (Required) Region string // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. Retryer retry.Retryer // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient }
func (Options) Copy ¶
Copy creates a clone where the APIOptions list is deep copied.
type PublishLayerVersionInput ¶
type PublishLayerVersionInput struct { // The function layer archive. // // This member is required. Content *types.LayerVersionContentInput // The name or Amazon Resource Name (ARN) of the layer. // // This member is required. LayerName *string // A list of compatible function runtimes // (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Used for // filtering with ListLayers and ListLayerVersions. CompatibleRuntimes []types.Runtime // The description of the version. Description *string // 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 PublishLayerVersionOutput ¶
type PublishLayerVersionOutput struct { // The layer's compatible runtimes. CompatibleRuntimes []types.Runtime // Details about the layer version. Content *types.LayerVersionContentOutput // 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 // The description of the version. Description *string // The ARN of the layer. LayerArn *string // The ARN of the layer version. LayerVersionArn *string // The layer's software license. LicenseInfo *string // The version number. Version int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type PublishVersionInput ¶
type PublishVersionInput 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. // // This member is required. FunctionName *string // Only publish a version if the hash value matches the value that's specified. Use // this option to avoid publishing a version if the function code has changed since // you last updated it. You can get the hash for the version that you uploaded from // the output of UpdateFunctionCode. CodeSha256 *string // A description for the version to override the description in the function // configuration. Description *string // Only update the function if the revision ID matches the ID that's specified. Use // this option to avoid publishing a version if the function configuration has // changed since you last updated it. RevisionId *string }
type PublishVersionOutput ¶
type PublishVersionOutput struct { // The SHA256 hash of the function's deployment package. CodeSha256 *string // The size of the function's deployment package, in bytes. CodeSize int64 // The function's dead letter queue. DeadLetterConfig *types.DeadLetterConfig // The function's description. Description *string // The function's environment variables. Environment *types.EnvironmentResponse // Connection settings for an Amazon EFS file system. FileSystemConfigs []types.FileSystemConfig // The function's Amazon Resource Name (ARN). FunctionArn *string // The name of the function. FunctionName *string // The function that Lambda calls to begin executing your function. Handler *string // The KMS key that's used to encrypt the function's environment variables. This // key is only returned if you've configured a customer managed CMK. KMSKeyArn *string // 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 // The status of the last update that was performed on the function. This is first // set to Successful after function creation completes. LastUpdateStatus types.LastUpdateStatus // The reason for the last update that was performed on the function. LastUpdateStatusReason *string // The reason code for the last update that was performed on the function. LastUpdateStatusReasonCode types.LastUpdateStatusReasonCode // The function's layers // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). Layers []types.Layer // For Lambda@Edge functions, the ARN of the master function. MasterArn *string // The memory that's allocated to the function. MemorySize *int32 // The latest updated revision of the function or alias. RevisionId *string // The function's execution role. Role *string // The runtime environment for the Lambda function. Runtime types.Runtime // The current state of the function. When the state is Inactive, you can // reactivate the function by invoking it. State types.State // The reason for the function's current state. StateReason *string // The reason code for the function's current state. When the code is Creating, you // can't invoke or modify the function. StateReasonCode types.StateReasonCode // The amount of time in seconds that Lambda allows a function to run before // stopping it. Timeout *int32 // The function's AWS X-Ray tracing configuration. TracingConfig *types.TracingConfigResponse // The version of the Lambda function. Version *string // The function's networking configuration. VpcConfig *types.VpcConfigResponse // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Details about a function's configuration.
type PutFunctionConcurrencyInput ¶
type PutFunctionConcurrencyInput struct { // The name of the Lambda function. Name formats // // * Function name - my-function. // // * // Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * // Partial ARN - 123456789012:function:my-function. // // The length constraint applies // only to the full ARN. If you specify only the function name, it is limited to 64 // characters in length. // // This member is required. FunctionName *string // The number of simultaneous executions to reserve for the function. // // This member is required. ReservedConcurrentExecutions *int32 }
type PutFunctionConcurrencyOutput ¶
type PutFunctionConcurrencyOutput struct { // The number of concurrent executions that are reserved for this function. For // more information, see Managing Concurrency // (https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html). ReservedConcurrentExecutions *int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type PutFunctionEventInvokeConfigInput ¶
type PutFunctionEventInvokeConfigInput struct { // The name of the Lambda function, version, or alias. Name formats // // * Function // name - my-function (name-only), my-function:v1 (with alias). // // * Function ARN - // arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN - // 123456789012:function:my-function. // // You can append a version number or alias to // any of the formats. The length constraint applies only to the full ARN. If you // specify only the function name, it is limited to 64 characters in length. // // This member is required. FunctionName *string // A destination for events after they have been sent to a function for processing. // Destinations // // * Function - The Amazon Resource Name (ARN) of a Lambda // function. // // * Queue - The ARN of an SQS queue. // // * Topic - The ARN of an SNS // topic. // // * Event Bus - The ARN of an Amazon EventBridge event bus. DestinationConfig *types.DestinationConfig // The maximum age of a request that Lambda sends to a function for processing. MaximumEventAgeInSeconds *int32 // The maximum number of times to retry when the function returns an error. MaximumRetryAttempts *int32 // A version number or alias name. Qualifier *string }
type PutFunctionEventInvokeConfigOutput ¶
type PutFunctionEventInvokeConfigOutput struct { // A destination for events after they have been sent to a function for processing. // Destinations // // * Function - The Amazon Resource Name (ARN) of a Lambda // function. // // * Queue - The ARN of an SQS queue. // // * Topic - The ARN of an SNS // topic. // // * Event Bus - The ARN of an Amazon EventBridge event bus. DestinationConfig *types.DestinationConfig // The Amazon Resource Name (ARN) of the function. FunctionArn *string // The date and time that the configuration was last updated. LastModified *time.Time // The maximum age of a request that Lambda sends to a function for processing. MaximumEventAgeInSeconds *int32 // The maximum number of times to retry when the function returns an error. MaximumRetryAttempts *int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type PutProvisionedConcurrencyConfigInput ¶
type PutProvisionedConcurrencyConfigInput struct { // The name of the Lambda function. Name formats // // * Function name - my-function. // // * // Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * // Partial ARN - 123456789012:function:my-function. // // The length constraint applies // only to the full ARN. If you specify only the function name, it is limited to 64 // characters in length. // // This member is required. FunctionName *string // The amount of provisioned concurrency to allocate for the version or alias. // // This member is required. ProvisionedConcurrentExecutions *int32 // The version number or alias name. // // This member is required. Qualifier *string }
type PutProvisionedConcurrencyConfigOutput ¶
type PutProvisionedConcurrencyConfigOutput struct { // The amount of provisioned concurrency allocated. AllocatedProvisionedConcurrentExecutions *int32 // The amount of provisioned concurrency available. AvailableProvisionedConcurrentExecutions *int32 // The date and time that a user last updated the configuration, in ISO 8601 format // (https://www.iso.org/iso-8601-date-and-time-format.html). LastModified *string // The amount of provisioned concurrency requested. RequestedProvisionedConcurrentExecutions *int32 // The status of the allocation process. Status types.ProvisionedConcurrencyStatusEnum // For failed allocations, the reason that provisioned concurrency could not be // allocated. StatusReason *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type RemoveLayerVersionPermissionInput ¶
type RemoveLayerVersionPermissionInput struct { // The name or Amazon Resource Name (ARN) of the layer. // // This member is required. LayerName *string // The identifier that was specified when the statement was added. // // This member is required. StatementId *string // The version number. // // This member is required. VersionNumber int64 // 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 }
type RemoveLayerVersionPermissionOutput ¶
type RemoveLayerVersionPermissionOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type RemovePermissionInput ¶
type RemovePermissionInput struct { // The name of the Lambda function, version, or alias. Name formats // // * Function // name - my-function (name-only), my-function:v1 (with alias). // // * Function ARN - // arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN - // 123456789012:function:my-function. // // You can append a version number or alias to // any of the formats. The length constraint applies only to the full ARN. If you // specify only the function name, it is limited to 64 characters in length. // // This member is required. FunctionName *string // Statement ID of the permission to remove. // // This member is required. StatementId *string // Specify a version or alias to remove permissions from a published version of the // function. Qualifier *string // Only update the policy if the revision ID matches the ID that's specified. Use // this option to avoid modifying a policy that has changed since you last read it. RevisionId *string }
type RemovePermissionOutput ¶
type RemovePermissionOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type TagResourceInput ¶
type TagResourceInput struct { // The function's Amazon Resource Name (ARN). // // This member is required. Resource *string // A list of tags to apply to the function. // // This member is required. Tags map[string]string }
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UntagResourceInput ¶
type UntagResourceInput struct { // The function's Amazon Resource Name (ARN). // // This member is required. Resource *string // A list of tag keys to remove from the function. // // This member is required. TagKeys []string }
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UpdateAliasInput ¶
type UpdateAliasInput 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. // // This member is required. FunctionName *string // The name of the alias. // // This member is required. Name *string // A description of the alias. Description *string // The function version that the alias invokes. FunctionVersion *string // Only update the alias if the revision ID matches the ID that's specified. Use // this option to avoid modifying an alias that has changed since you last read it. RevisionId *string // The routing configuration // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing) // of the alias. RoutingConfig *types.AliasRoutingConfiguration }
type UpdateAliasOutput ¶
type UpdateAliasOutput struct { // The Amazon Resource Name (ARN) of the alias. AliasArn *string // A description of the alias. Description *string // The function version that the alias invokes. FunctionVersion *string // The name of the alias. Name *string // A unique identifier that changes when you update the alias. RevisionId *string // The routing configuration // (https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html) // of the alias. RoutingConfig *types.AliasRoutingConfiguration // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Provides configuration information about a Lambda function alias (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html).
type UpdateEventSourceMappingInput ¶
type UpdateEventSourceMappingInput struct { // The identifier of the event source mapping. // // This member is required. UUID *string // 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. // // * Amazon Managed Streaming // for Apache Kafka - Default 100. Max 10,000. BatchSize *int32 // (Streams) If the function returns an error, split the batch in two and retry. BisectBatchOnFunctionError *bool // (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded // records. DestinationConfig *types.DestinationConfig // If true, the event source mapping is active. Set to false to pause polling and // invocation. Enabled *bool // 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 // (Streams) The maximum amount of time to gather records before invoking the // function, in seconds. MaximumBatchingWindowInSeconds *int32 // (Streams) Discard records older than the specified age. The default value is // infinite (-1). MaximumRecordAgeInSeconds *int32 // (Streams) Discard records after the specified number of retries. The default // value is infinite (-1). When set to infinite (-1), failed records will be // retried until the record expires. MaximumRetryAttempts *int32 // (Streams) The number of batches to process from each shard concurrently. ParallelizationFactor *int32 // (MQ) The Secrets Manager secret that stores your broker credentials. To store // your secret, use the following format: { "username": "your username", // "password": "your password" } To reference the secret, use the following format: // [ { "Type": "BASIC_AUTH", "URI": "secretARN" } ] // // The value of Type is always // BASIC_AUTH. To encrypt the secret, you can use customer or service managed keys. // When using a customer managed KMS key, the Lambda execution role requires // kms:Decrypt permissions. SourceAccessConfigurations []types.SourceAccessConfiguration }
type UpdateEventSourceMappingOutput ¶
type UpdateEventSourceMappingOutput struct { // The maximum number of items to retrieve in a single batch. BatchSize *int32 // (Streams) If the function returns an error, split the batch in two and retry. // The default value is false. BisectBatchOnFunctionError *bool // (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded // records. DestinationConfig *types.DestinationConfig // The Amazon Resource Name (ARN) of the event source. EventSourceArn *string // The ARN of the Lambda function. FunctionArn *string // The date that the event source mapping was last updated, or its state changed. LastModified *time.Time // The result of the last AWS Lambda invocation of your Lambda function. LastProcessingResult *string // (Streams) The maximum amount of time to gather records before invoking the // function, in seconds. The default value is zero. MaximumBatchingWindowInSeconds *int32 // (Streams) Discard records older than the specified age. The default value is // infinite (-1). When set to infinite (-1), failed records are retried until the // record expires. MaximumRecordAgeInSeconds *int32 // (Streams) Discard records after the specified number of retries. The default // value is infinite (-1). When set to infinite (-1), failed records are retried // until the record expires. MaximumRetryAttempts *int32 // (Streams) The number of batches to process from each shard concurrently. The // default value is 1. ParallelizationFactor *int32 // (MQ) The name of the Amazon MQ broker destination queue to consume. Queues []string // (MQ) The Secrets Manager secret that stores your broker credentials. To store // your secret, use the following format: { "username": "your username", // "password": "your password" } To reference the secret, use the following format: // [ { "Type": "BASIC_AUTH", "URI": "secretARN" } ] // // The value of Type is always // BASIC_AUTH. To encrypt the secret, you can use customer or service managed keys. // When using a customer managed KMS key, the Lambda execution role requires // kms:Decrypt permissions. SourceAccessConfigurations []types.SourceAccessConfiguration // The position in a stream from which to start reading. Required for Amazon // Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources. AT_TIMESTAMP is only // supported for Amazon Kinesis streams. StartingPosition types.EventSourcePosition // With StartingPosition set to AT_TIMESTAMP, the time from which to start reading. StartingPositionTimestamp *time.Time // The state of the event source mapping. It can be one of the following: Creating, // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string // Indicates whether the last change to the event source mapping was made by a // user, or by the Lambda service. StateTransitionReason *string // (MSK) The name of the Kafka topic to consume. Topics []string // The identifier of the event source mapping. UUID *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
A mapping between an AWS resource and an AWS Lambda function. See CreateEventSourceMapping for details.
type UpdateFunctionCodeInput ¶
type UpdateFunctionCodeInput struct { // The name of the Lambda function. Name formats // // * Function name - my-function. // // * // Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * // Partial ARN - 123456789012:function:my-function. // // The length constraint applies // only to the full ARN. If you specify only the function name, it is limited to 64 // characters in length. // // This member is required. FunctionName *string // Set to true to validate the request parameters and access permissions without // modifying the function code. DryRun bool // Set to true to publish a new version of the function after updating the code. // This has the same effect as calling PublishVersion separately. Publish bool // Only update the function if the revision ID matches the ID that's specified. Use // this option to avoid modifying a function that has changed since you last read // it. RevisionId *string // An Amazon S3 bucket in the same AWS Region as your function. The bucket can be // in a different AWS account. S3Bucket *string // The Amazon S3 key of the deployment package. S3Key *string // For versioned objects, the version of the deployment package object to use. S3ObjectVersion *string // The base64-encoded contents of the deployment package. AWS SDK and AWS CLI // clients handle the encoding for you. ZipFile []byte }
type UpdateFunctionCodeOutput ¶
type UpdateFunctionCodeOutput struct { // The SHA256 hash of the function's deployment package. CodeSha256 *string // The size of the function's deployment package, in bytes. CodeSize int64 // The function's dead letter queue. DeadLetterConfig *types.DeadLetterConfig // The function's description. Description *string // The function's environment variables. Environment *types.EnvironmentResponse // Connection settings for an Amazon EFS file system. FileSystemConfigs []types.FileSystemConfig // The function's Amazon Resource Name (ARN). FunctionArn *string // The name of the function. FunctionName *string // The function that Lambda calls to begin executing your function. Handler *string // The KMS key that's used to encrypt the function's environment variables. This // key is only returned if you've configured a customer managed CMK. KMSKeyArn *string // 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 // The status of the last update that was performed on the function. This is first // set to Successful after function creation completes. LastUpdateStatus types.LastUpdateStatus // The reason for the last update that was performed on the function. LastUpdateStatusReason *string // The reason code for the last update that was performed on the function. LastUpdateStatusReasonCode types.LastUpdateStatusReasonCode // The function's layers // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). Layers []types.Layer // For Lambda@Edge functions, the ARN of the master function. MasterArn *string // The memory that's allocated to the function. MemorySize *int32 // The latest updated revision of the function or alias. RevisionId *string // The function's execution role. Role *string // The runtime environment for the Lambda function. Runtime types.Runtime // The current state of the function. When the state is Inactive, you can // reactivate the function by invoking it. State types.State // The reason for the function's current state. StateReason *string // The reason code for the function's current state. When the code is Creating, you // can't invoke or modify the function. StateReasonCode types.StateReasonCode // The amount of time in seconds that Lambda allows a function to run before // stopping it. Timeout *int32 // The function's AWS X-Ray tracing configuration. TracingConfig *types.TracingConfigResponse // The version of the Lambda function. Version *string // The function's networking configuration. VpcConfig *types.VpcConfigResponse // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Details about a function's configuration.
type UpdateFunctionConfigurationInput ¶
type UpdateFunctionConfigurationInput struct { // The name of the Lambda function. Name formats // // * Function name - my-function. // // * // Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * // Partial ARN - 123456789012:function:my-function. // // The length constraint applies // only to the full ARN. If you specify only the function name, it is limited to 64 // characters in length. // // This member is required. FunctionName *string // A dead letter queue configuration that specifies the queue or topic where Lambda // sends asynchronous events when they fail processing. For more information, see // Dead Letter Queues // (https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq). DeadLetterConfig *types.DeadLetterConfig // A description of the function. Description *string // Environment variables that are accessible from function code during execution. Environment *types.Environment // Connection settings for an Amazon EFS file system. FileSystemConfigs []types.FileSystemConfig // The name of the method within your code that Lambda calls to execute your // function. The format includes the file name. It can also include namespaces and // other qualifiers, depending on the runtime. For more information, see // Programming Model // (https://docs.aws.amazon.com/lambda/latest/dg/programming-model-v2.html). Handler *string // The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt // your function's environment variables. If it's not provided, AWS Lambda uses a // default service key. KMSKeyArn *string // A list of function layers // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) to add // to the function's execution environment. Specify each layer by its ARN, // including the version. Layers []string // The amount of memory that your function has access to. Increasing the function's // memory also increases its CPU allocation. The default value is 128 MB. The value // must be a multiple of 64 MB. MemorySize *int32 // Only update the function if the revision ID matches the ID that's specified. Use // this option to avoid modifying a function that has changed since you last read // it. RevisionId *string // The Amazon Resource Name (ARN) of the function's execution role. Role *string // The identifier of the function's runtime // (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Runtime types.Runtime // The amount of time that Lambda allows a function to run before stopping it. The // default is 3 seconds. The maximum allowed value is 900 seconds. Timeout *int32 // Set Mode to Active to sample and trace a subset of incoming requests with AWS // X-Ray. TracingConfig *types.TracingConfig // For network connectivity to AWS resources in a VPC, specify a list of security // groups and subnets in the VPC. When you connect a function to a VPC, it can only // access resources and the internet through that VPC. For more information, see // VPC Settings // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). VpcConfig *types.VpcConfig }
type UpdateFunctionConfigurationOutput ¶
type UpdateFunctionConfigurationOutput struct { // The SHA256 hash of the function's deployment package. CodeSha256 *string // The size of the function's deployment package, in bytes. CodeSize int64 // The function's dead letter queue. DeadLetterConfig *types.DeadLetterConfig // The function's description. Description *string // The function's environment variables. Environment *types.EnvironmentResponse // Connection settings for an Amazon EFS file system. FileSystemConfigs []types.FileSystemConfig // The function's Amazon Resource Name (ARN). FunctionArn *string // The name of the function. FunctionName *string // The function that Lambda calls to begin executing your function. Handler *string // The KMS key that's used to encrypt the function's environment variables. This // key is only returned if you've configured a customer managed CMK. KMSKeyArn *string // 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 // The status of the last update that was performed on the function. This is first // set to Successful after function creation completes. LastUpdateStatus types.LastUpdateStatus // The reason for the last update that was performed on the function. LastUpdateStatusReason *string // The reason code for the last update that was performed on the function. LastUpdateStatusReasonCode types.LastUpdateStatusReasonCode // The function's layers // (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). Layers []types.Layer // For Lambda@Edge functions, the ARN of the master function. MasterArn *string // The memory that's allocated to the function. MemorySize *int32 // The latest updated revision of the function or alias. RevisionId *string // The function's execution role. Role *string // The runtime environment for the Lambda function. Runtime types.Runtime // The current state of the function. When the state is Inactive, you can // reactivate the function by invoking it. State types.State // The reason for the function's current state. StateReason *string // The reason code for the function's current state. When the code is Creating, you // can't invoke or modify the function. StateReasonCode types.StateReasonCode // The amount of time in seconds that Lambda allows a function to run before // stopping it. Timeout *int32 // The function's AWS X-Ray tracing configuration. TracingConfig *types.TracingConfigResponse // The version of the Lambda function. Version *string // The function's networking configuration. VpcConfig *types.VpcConfigResponse // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Details about a function's configuration.
type UpdateFunctionEventInvokeConfigInput ¶
type UpdateFunctionEventInvokeConfigInput struct { // The name of the Lambda function, version, or alias. Name formats // // * Function // name - my-function (name-only), my-function:v1 (with alias). // // * Function ARN - // arn:aws:lambda:us-west-2:123456789012:function:my-function. // // * Partial ARN - // 123456789012:function:my-function. // // You can append a version number or alias to // any of the formats. The length constraint applies only to the full ARN. If you // specify only the function name, it is limited to 64 characters in length. // // This member is required. FunctionName *string // A destination for events after they have been sent to a function for processing. // Destinations // // * Function - The Amazon Resource Name (ARN) of a Lambda // function. // // * Queue - The ARN of an SQS queue. // // * Topic - The ARN of an SNS // topic. // // * Event Bus - The ARN of an Amazon EventBridge event bus. DestinationConfig *types.DestinationConfig // The maximum age of a request that Lambda sends to a function for processing. MaximumEventAgeInSeconds *int32 // The maximum number of times to retry when the function returns an error. MaximumRetryAttempts *int32 // A version number or alias name. Qualifier *string }
type UpdateFunctionEventInvokeConfigOutput ¶
type UpdateFunctionEventInvokeConfigOutput struct { // A destination for events after they have been sent to a function for processing. // Destinations // // * Function - The Amazon Resource Name (ARN) of a Lambda // function. // // * Queue - The ARN of an SQS queue. // // * Topic - The ARN of an SNS // topic. // // * Event Bus - The ARN of an Amazon EventBridge event bus. DestinationConfig *types.DestinationConfig // The Amazon Resource Name (ARN) of the function. FunctionArn *string // The date and time that the configuration was last updated. LastModified *time.Time // The maximum age of a request that Lambda sends to a function for processing. MaximumEventAgeInSeconds *int32 // The maximum number of times to retry when the function returns an error. MaximumRetryAttempts *int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Source Files ¶
api_client.go api_op_AddLayerVersionPermission.go api_op_AddPermission.go api_op_CreateAlias.go api_op_CreateEventSourceMapping.go api_op_CreateFunction.go api_op_DeleteAlias.go api_op_DeleteEventSourceMapping.go api_op_DeleteFunction.go api_op_DeleteFunctionConcurrency.go api_op_DeleteFunctionEventInvokeConfig.go api_op_DeleteLayerVersion.go api_op_DeleteProvisionedConcurrencyConfig.go api_op_GetAccountSettings.go api_op_GetAlias.go api_op_GetEventSourceMapping.go api_op_GetFunction.go api_op_GetFunctionConcurrency.go api_op_GetFunctionConfiguration.go api_op_GetFunctionEventInvokeConfig.go api_op_GetLayerVersion.go api_op_GetLayerVersionByArn.go api_op_GetLayerVersionPolicy.go api_op_GetPolicy.go api_op_GetProvisionedConcurrencyConfig.go api_op_Invoke.go api_op_InvokeAsync.go api_op_ListAliases.go api_op_ListEventSourceMappings.go api_op_ListFunctionEventInvokeConfigs.go api_op_ListFunctions.go api_op_ListLayerVersions.go api_op_ListLayers.go api_op_ListProvisionedConcurrencyConfigs.go api_op_ListTags.go api_op_ListVersionsByFunction.go api_op_PublishLayerVersion.go api_op_PublishVersion.go api_op_PutFunctionConcurrency.go api_op_PutFunctionEventInvokeConfig.go api_op_PutProvisionedConcurrencyConfig.go api_op_RemoveLayerVersionPermission.go api_op_RemovePermission.go api_op_TagResource.go api_op_UntagResource.go api_op_UpdateAlias.go api_op_UpdateEventSourceMapping.go api_op_UpdateFunctionCode.go api_op_UpdateFunctionConfiguration.go api_op_UpdateFunctionEventInvokeConfig.go deserializers.go doc.go endpoints.go serializers.go validators.go
Directories ¶
Path | Synopsis |
---|---|
internal | |
types |
- Version
- v0.30.0
- Published
- Nov 30, 2020
- Platform
- js/wasm
- Imports
- 28 packages
- Last checked
- now –
Tools for package owners.