lambda

package module
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceAPIVersion = "2015-03-31"
View Source
const ServiceID = "Lambda"

Variables

This section is empty.

Functions

func AddResolveEndpointMiddleware

func AddResolveEndpointMiddleware(stack *middleware.Stack, options ResolveEndpointMiddlewareOptions)

func NewDefaultEndpointResolver

func NewDefaultEndpointResolver() *internalendpoints.Resolver

NewDefaultEndpointResolver constructs a new service endpoint resolver

func RemoveResolveEndpointMiddleware

func RemoveResolveEndpointMiddleware(stack *middleware.Stack) error

Types

type AddLayerVersionPermissionInput

type AddLayerVersionPermissionInput struct {
	// The API action that grants access to the layer. For example,
	// lambda:GetLayerVersion.
	Action *string
	// An identifier that distinguishes the policy from others on the same layer
	// version.
	StatementId *string
	// An account ID, or * to grant permission to all AWS accounts.
	Principal *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
	// The version number.
	VersionNumber *int64
	// The name or Amazon Resource Name (ARN) of the layer.
	LayerName *string
	// With the principal set to *, grant permission to all accounts in the specified
	// organization.
	OrganizationId *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.
	Action *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
	// 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
	// A statement identifier that differentiates the statement from others in the same
	// policy.
	StatementId *string
	// The name of the Lambda function, version, or alias. Name formats
	//
	//     * Function
	// name - my-function (name-only), my-function:v1 (with alias).
	//
	//     * Function ARN
	// - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//     * Partial ARN
	// - 123456789012:function:my-function.
	//
	// You can append a version number or alias
	// to any of the formats. The length constraint applies only to the full ARN. If
	// you specify only the function name, it is limited to 64 characters in length.
	FunctionName *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
	// 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.
	Principal *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 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
}

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.

func New

func New(options Options, optFns ...func(*Options)) *Client

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

func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client

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. <p>To grant permission to another account, specify the account ID as the <code>Principal</code>. For AWS services, the principal is a domain-style identifier defined by the service, like <code>s3.amazonaws.com</code> or <code>sns.amazonaws.com</code>. For AWS services, you can also specify the ARN of the associated resource as the <code>SourceArn</code>. 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.</p> <p>This action adds a statement to a resource-based permissions policy for the function. For more information about function policies, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html">Lambda Function Policies</a>. </p>

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)

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.

*

MaximumRetryAttempts - Discard records after the specified number of retries.

* 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. <p>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 <code>State</code>, <code>StateReason</code>, and <code>StateReasonCode</code> fields in the response from <a>GetFunctionConfiguration</a> indicate when the function is ready to invoke. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html">Function States</a>.</p> <p>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 <code>Publish</code> parameter to create version <code>1</code> of your function from its initial configuration.</p> <p>The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with <a>UpdateFunctionConfiguration</a>. Function-level settings apply to both the unpublished and published versions of the function, and include tags (<a>TagResource</a>) and per-function concurrency limits (<a>PutFunctionConcurrency</a>).</p> <p>If another account or an AWS service invokes your function, use <a>AddPermission</a> 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.</p> <p>To invoke your function directly, use <a>Invoke</a>. To invoke your function in response to events in other AWS services, create an event source mapping (<a>CreateEventSourceMapping</a>), or configure a function trigger in the other service. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html">Invoking Functions</a>.</p>

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. <p>To delete Lambda event source mappings that invoke a function, use <a>DeleteEventSourceMapping</a>. For AWS services and resources that invoke your function directly, delete the trigger in the service where you originally configured it.</p>

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. <p>For <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-sync.html">synchronous invocation</a>, 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 <a href="https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions.html">execution log</a> and <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html">trace</a>.</p> <p>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 <a href="https://docs.aws.amazon.com/lambda/latest/dg/retries-on-errors.html">Retry Behavior</a>.</p> <p>For <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html">asynchronous invocation</a>, 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 <a href="https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#dlq">dead-letter queue</a>.</p> <p>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, <a href="https://docs.aws.amazon.com/lambda/latest/dg/limits.html">limit errors</a>, or issues with your function's code and configuration. For example, Lambda returns <code>TooManyRequestsException</code> if executing the function would cause you to exceed a concurrency limit at either the account level (<code>ConcurrentInvocationLimitExceeded</code>) or function level (<code>ReservedFunctionConcurrentInvocationLimitExceeded</code>).</p> <p>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.</p> <p>This operation requires permission for the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awslambda.html">lambda:InvokeFunction</a> action.</p>

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. <p>AWS Lambda doesn't publish a version if the function's configuration and code haven't changed since the last version. Use <a>UpdateFunctionCode</a> or <a>UpdateFunctionConfiguration</a> to update the function before publishing a version.</p> <p>Clients can invoke versions directly or with an alias. To create an alias, use <a>CreateAlias</a>.</p>

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.

*

MaximumRetryAttempts - Discard records after the specified number of retries.

* 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. <p>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.</p>

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. <p>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 <code>LastUpdateStatus</code>, <code>LastUpdateStatusReason</code>, and <code>LastUpdateStatusReasonCode</code> fields in the response from <a>GetFunctionConfiguration</a> indicate when the update is complete and the function is processing events with the new configuration. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html">Function States</a>.</p> <p>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.</p> <p>To configure function concurrency, use <a>PutFunctionConcurrency</a>. To grant invoke permissions to an account or AWS service, use <a>AddPermission</a>.</p>

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 routing configuration
	// (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing)
	// of the alias.
	RoutingConfig *types.AliasRoutingConfiguration
	// The name of the Lambda function. Name formats
	//
	//     * Function name -
	// MyFunction.
	//
	//     * Function ARN -
	// arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
	//
	//     * Partial ARN -
	// 123456789012:function:MyFunction.
	//
	// The length constraint applies only to the
	// full ARN. If you specify only the function name, it is limited to 64 characters
	// in length.
	FunctionName *string
	// A description of the alias.
	Description *string
	// The function version that the alias invokes.
	FunctionVersion *string
	// The name of the alias.
	Name *string
}

type CreateAliasOutput

type CreateAliasOutput struct {
	// The routing configuration
	// (https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html)
	// of the alias.
	RoutingConfig *types.AliasRoutingConfiguration
	// The name of the alias.
	Name *string
	// The Amazon Resource Name (ARN) of the alias.
	AliasArn *string
	// A unique identifier that changes when you update the alias.
	RevisionId *string
	// The function version that the alias invokes.
	FunctionVersion *string
	// A description of the alias.
	Description *string

	// 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 {
	// Disables the event source mapping to pause polling and invocation.
	Enabled *bool
	// (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded
	// records.
	DestinationConfig *types.DestinationConfig
	// (Streams) If the function returns an error, split the batch in two and retry.
	BisectBatchOnFunctionError *bool
	// With StartingPosition set to AT_TIMESTAMP, the time from which to start reading.
	StartingPositionTimestamp *time.Time
	// (Streams) The number of batches to process from each shard concurrently.
	ParallelizationFactor *int32
	// The maximum number of items to retrieve in a single batch.
	//
	//     * Amazon Kinesis
	// - Default 100. Max 10,000.
	//
	//     * Amazon DynamoDB Streams - Default 100. Max
	// 1,000.
	//
	//     * Amazon Simple Queue Service - Default 10. Max 10.
	BatchSize *int32
	// (Streams) The maximum number of times to retry when the function returns an
	// error.
	MaximumRetryAttempts *int32
	// 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 age of a record that Lambda sends to a function for
	// processing.
	MaximumRecordAgeInSeconds *int32
	// The position in a stream from which to start reading. Required for Amazon
	// Kinesis and Amazon DynamoDB Streams sources. AT_TIMESTAMP is only supported for
	// Amazon Kinesis streams.
	StartingPosition types.EventSourcePosition
	// (Streams) The maximum amount of time to gather records before invoking the
	// function, in seconds.
	MaximumBatchingWindowInSeconds *int32
	// The Amazon Resource Name (ARN) of the event source.
	//
	//     * Amazon Kinesis - The
	// ARN of the data stream or a stream consumer.
	//
	//     * Amazon DynamoDB Streams -
	// The ARN of the stream.
	//
	//     * Amazon Simple Queue Service - The ARN of the
	// queue.
	EventSourceArn *string
}

type CreateEventSourceMappingOutput

type CreateEventSourceMappingOutput struct {
	// The state of the event source mapping. It can be one of the following: Creating,
	// Enabling, Enabled, Disabling, Disabled, Updating, or Deleting.
	State *string
	// (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded
	// records.
	DestinationConfig *types.DestinationConfig
	// (Streams) The maximum amount of time to gather records before invoking the
	// function, in seconds.
	MaximumBatchingWindowInSeconds *int32
	// (Streams) The maximum number of times to retry when the function returns an
	// error.
	MaximumRetryAttempts *int32
	// The maximum number of items to retrieve in a single batch.
	BatchSize *int32
	// The result of the last AWS Lambda invocation of your Lambda function.
	LastProcessingResult *string
	// (Streams) The number of batches to process from each shard concurrently.
	ParallelizationFactor *int32
	// (Streams) If the function returns an error, split the batch in two and retry.
	BisectBatchOnFunctionError *bool
	// Indicates whether the last change to the event source mapping was made by a
	// user, or by the Lambda service.
	StateTransitionReason *string
	// (Streams) The maximum age of a record that Lambda sends to a function for
	// processing.
	MaximumRecordAgeInSeconds *int32
	// The date that the event source mapping was last updated, or its state changed.
	LastModified *time.Time
	// The ARN of the Lambda function.
	FunctionArn *string
	// The Amazon Resource Name (ARN) of the event source.
	EventSourceArn *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 {
	// 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
	// A description of the function.
	Description *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
	// 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
	// Set to true to publish the first version of the function during creation.
	Publish *bool
	// Set Mode to Active to sample and trace a subset of incoming requests with AWS
	// X-Ray.
	TracingConfig *types.TracingConfig
	// 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 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
	// The code for the function.
	Code *types.FunctionCode
	// The identifier of the function's runtime
	// (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html).
	Runtime types.Runtime
	// Connection settings for an Amazon EFS file system.
	FileSystemConfigs []*types.FileSystemConfig
	// The Amazon Resource Name (ARN) of the function's execution role.
	Role *string
	// Environment variables that are accessible from function code during execution.
	Environment *types.Environment
	// A list of tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) to
	// apply to the function.
	Tags map[string]*string
	// The name of the Lambda function. Name formats
	//
	//     * Function name -
	// my-function.
	//
	//     * Function ARN -
	// arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//     * Partial ARN -
	// 123456789012:function:my-function.
	//
	// The length constraint applies only to the
	// full ARN. If you specify only the function name, it is limited to 64 characters
	// in length.
	FunctionName *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
}

type CreateFunctionOutput

type CreateFunctionOutput struct {
	// The name of the function.
	FunctionName *string
	// The latest updated revision of the function or alias.
	RevisionId *string
	// For Lambda@Edge functions, the ARN of the master function.
	MasterArn *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 function's  layers
	// (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).
	Layers []*types.Layer
	// Connection settings for an Amazon EFS file system.
	FileSystemConfigs []*types.FileSystemConfig
	// The function's networking configuration.
	VpcConfig *types.VpcConfigResponse
	// The runtime environment for the Lambda function.
	Runtime types.Runtime
	// The SHA256 hash of the function's deployment package.
	CodeSha256 *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 memory that's allocated to the function.
	MemorySize *int32
	// The version of the Lambda function.
	Version *string
	// The amount of time in seconds that Lambda allows a function to run before
	// stopping it.
	Timeout *int32
	// The size of the function's deployment package, in bytes.
	CodeSize *int64
	// The function's Amazon Resource Name (ARN).
	FunctionArn *string
	// The function's environment variables.
	Environment *types.EnvironmentResponse
	// The reason for the last update that was performed on the function.
	LastUpdateStatusReason *string
	// The function that Lambda calls to begin executing your function.
	Handler *string
	// The function's AWS X-Ray tracing configuration.
	TracingConfig *types.TracingConfigResponse
	// 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 reason code for the last update that was performed on the function.
	LastUpdateStatusReasonCode types.LastUpdateStatusReasonCode
	// The function's description.
	Description *string
	// The function's execution role.
	Role *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 function's dead letter queue.
	DeadLetterConfig *types.DeadLetterConfig
	// The reason for the function's current state.
	StateReason *string
	// The current state of the function. When the state is Inactive, you can
	// reactivate the function by invoking it.
	State types.State

	// 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 alias.
	Name *string
	// The name of the Lambda function. Name formats
	//
	//     * Function name -
	// MyFunction.
	//
	//     * Function ARN -
	// arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
	//
	//     * Partial ARN -
	// 123456789012:function:MyFunction.
	//
	// The length constraint applies only to the
	// full ARN. If you specify only the function name, it is limited to 64 characters
	// in length.
	FunctionName *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.
	UUID *string
}

type DeleteEventSourceMappingOutput

type DeleteEventSourceMappingOutput struct {
	// The state of the event source mapping. It can be one of the following: Creating,
	// Enabling, Enabled, Disabling, Disabled, Updating, or Deleting.
	State *string
	// (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded
	// records.
	DestinationConfig *types.DestinationConfig
	// (Streams) The maximum amount of time to gather records before invoking the
	// function, in seconds.
	MaximumBatchingWindowInSeconds *int32
	// (Streams) The maximum number of times to retry when the function returns an
	// error.
	MaximumRetryAttempts *int32
	// The maximum number of items to retrieve in a single batch.
	BatchSize *int32
	// The result of the last AWS Lambda invocation of your Lambda function.
	LastProcessingResult *string
	// (Streams) The number of batches to process from each shard concurrently.
	ParallelizationFactor *int32
	// (Streams) If the function returns an error, split the batch in two and retry.
	BisectBatchOnFunctionError *bool
	// Indicates whether the last change to the event source mapping was made by a
	// user, or by the Lambda service.
	StateTransitionReason *string
	// (Streams) The maximum age of a record that Lambda sends to a function for
	// processing.
	MaximumRecordAgeInSeconds *int32
	// The date that the event source mapping was last updated, or its state changed.
	LastModified *time.Time
	// The ARN of the Lambda function.
	FunctionArn *string
	// The Amazon Resource Name (ARN) of the event source.
	EventSourceArn *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.
	FunctionName *string
}

type DeleteFunctionConcurrencyOutput

type DeleteFunctionConcurrencyOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type DeleteFunctionEventInvokeConfigInput

type DeleteFunctionEventInvokeConfigInput struct {
	// A version number or alias name.
	Qualifier *string
	// The name of the Lambda function, version, or alias. Name formats
	//
	//     * Function
	// name - my-function (name-only), my-function:v1 (with alias).
	//
	//     * Function ARN
	// - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//     * Partial ARN
	// - 123456789012:function:my-function.
	//
	// You can append a version number or alias
	// to any of the formats. The length constraint applies only to the full ARN. If
	// you specify only the function name, it is limited to 64 characters in length.
	FunctionName *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.
	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.
	LayerName *string
	// The version number.
	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.
	FunctionName *string
	// The version number or alias name.
	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 ResolverOptions) (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 ResolverOptions) (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 ResolverOptions) (endpoint aws.Endpoint, err error)

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.
	FunctionName *string
	// The name of the alias.
	Name *string
}

type GetAliasOutput

type GetAliasOutput struct {
	// The routing configuration
	// (https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html)
	// of the alias.
	RoutingConfig *types.AliasRoutingConfiguration
	// The name of the alias.
	Name *string
	// The Amazon Resource Name (ARN) of the alias.
	AliasArn *string
	// A unique identifier that changes when you update the alias.
	RevisionId *string
	// The function version that the alias invokes.
	FunctionVersion *string
	// A description of the alias.
	Description *string

	// 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.
	UUID *string
}

type GetEventSourceMappingOutput

type GetEventSourceMappingOutput struct {
	// The state of the event source mapping. It can be one of the following: Creating,
	// Enabling, Enabled, Disabling, Disabled, Updating, or Deleting.
	State *string
	// (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded
	// records.
	DestinationConfig *types.DestinationConfig
	// (Streams) The maximum amount of time to gather records before invoking the
	// function, in seconds.
	MaximumBatchingWindowInSeconds *int32
	// (Streams) The maximum number of times to retry when the function returns an
	// error.
	MaximumRetryAttempts *int32
	// The maximum number of items to retrieve in a single batch.
	BatchSize *int32
	// The result of the last AWS Lambda invocation of your Lambda function.
	LastProcessingResult *string
	// (Streams) The number of batches to process from each shard concurrently.
	ParallelizationFactor *int32
	// (Streams) If the function returns an error, split the batch in two and retry.
	BisectBatchOnFunctionError *bool
	// Indicates whether the last change to the event source mapping was made by a
	// user, or by the Lambda service.
	StateTransitionReason *string
	// (Streams) The maximum age of a record that Lambda sends to a function for
	// processing.
	MaximumRecordAgeInSeconds *int32
	// The date that the event source mapping was last updated, or its state changed.
	LastModified *time.Time
	// The ARN of the Lambda function.
	FunctionArn *string
	// The Amazon Resource Name (ARN) of the event source.
	EventSourceArn *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.
	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.
	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 name of the function.
	FunctionName *string
	// The latest updated revision of the function or alias.
	RevisionId *string
	// For Lambda@Edge functions, the ARN of the master function.
	MasterArn *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 function's  layers
	// (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).
	Layers []*types.Layer
	// Connection settings for an Amazon EFS file system.
	FileSystemConfigs []*types.FileSystemConfig
	// The function's networking configuration.
	VpcConfig *types.VpcConfigResponse
	// The runtime environment for the Lambda function.
	Runtime types.Runtime
	// The SHA256 hash of the function's deployment package.
	CodeSha256 *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 memory that's allocated to the function.
	MemorySize *int32
	// The version of the Lambda function.
	Version *string
	// The amount of time in seconds that Lambda allows a function to run before
	// stopping it.
	Timeout *int32
	// The size of the function's deployment package, in bytes.
	CodeSize *int64
	// The function's Amazon Resource Name (ARN).
	FunctionArn *string
	// The function's environment variables.
	Environment *types.EnvironmentResponse
	// The reason for the last update that was performed on the function.
	LastUpdateStatusReason *string
	// The function that Lambda calls to begin executing your function.
	Handler *string
	// The function's AWS X-Ray tracing configuration.
	TracingConfig *types.TracingConfigResponse
	// 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 reason code for the last update that was performed on the function.
	LastUpdateStatusReasonCode types.LastUpdateStatusReasonCode
	// The function's description.
	Description *string
	// The function's execution role.
	Role *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 function's dead letter queue.
	DeadLetterConfig *types.DeadLetterConfig
	// The reason for the function's current state.
	StateReason *string
	// The current state of the function. When the state is Inactive, you can
	// reactivate the function by invoking it.
	State types.State

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Details about a function's configuration.

type GetFunctionEventInvokeConfigInput

type GetFunctionEventInvokeConfigInput struct {
	// A version number or alias name.
	Qualifier *string
	// The name of the Lambda function, version, or alias. Name formats
	//
	//     * Function
	// name - my-function (name-only), my-function:v1 (with alias).
	//
	//     * Function ARN
	// - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//     * Partial ARN
	// - 123456789012:function:my-function.
	//
	// You can append a version number or alias
	// to any of the formats. The length constraint applies only to the full ARN. If
	// you specify only the function name, it is limited to 64 characters in length.
	FunctionName *string
}

type GetFunctionEventInvokeConfigOutput

type GetFunctionEventInvokeConfigOutput struct {
	// The maximum age of a request that Lambda sends to a function for processing.
	MaximumEventAgeInSeconds *int32
	// 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 date and time that the configuration was last updated.
	LastModified *time.Time
	// The maximum number of times to retry when the function returns an error.
	MaximumRetryAttempts *int32
	// The Amazon Resource Name (ARN) of the function.
	FunctionArn *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetFunctionInput

type GetFunctionInput struct {
	// Specify a version or alias to get details about a published version of the
	// function.
	Qualifier *string
	// The name of the Lambda function, version, or alias. Name formats
	//
	//     * Function
	// name - my-function (name-only), my-function:v1 (with alias).
	//
	//     * Function ARN
	// - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//     * Partial ARN
	// - 123456789012:function:my-function.
	//
	// You can append a version number or alias
	// to any of the formats. The length constraint applies only to the full ARN. If
	// you specify only the function name, it is limited to 64 characters in length.
	FunctionName *string
}

type GetFunctionOutput

type GetFunctionOutput struct {
	// The function's tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html).
	Tags map[string]*string
	// 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

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetLayerVersionByArnInput

type GetLayerVersionByArnInput struct {
	// The ARN of the layer version.
	Arn *string
}

type GetLayerVersionByArnOutput

type GetLayerVersionByArnOutput struct {
	// The layer's software license.
	LicenseInfo *string
	// The layer's compatible runtimes.
	CompatibleRuntimes []types.Runtime
	// The description of the version.
	Description *string
	// The ARN of the layer version.
	LayerVersionArn *string
	// The version number.
	Version *int64
	// 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 ARN of the layer.
	LayerArn *string

	// 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.
	LayerName *string
	// The version number.
	VersionNumber *int64
}

type GetLayerVersionOutput

type GetLayerVersionOutput struct {
	// The layer's software license.
	LicenseInfo *string
	// The layer's compatible runtimes.
	CompatibleRuntimes []types.Runtime
	// The description of the version.
	Description *string
	// The ARN of the layer version.
	LayerVersionArn *string
	// The version number.
	Version *int64
	// 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 ARN of the layer.
	LayerArn *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type GetLayerVersionPolicyInput

type GetLayerVersionPolicyInput struct {
	// The version number.
	VersionNumber *int64
	// The name or Amazon Resource Name (ARN) of the layer.
	LayerName *string
}

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.
	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 version number or alias name.
	Qualifier *string
	// The name of the Lambda function. Name formats
	//
	//     * Function name -
	// my-function.
	//
	//     * Function ARN -
	// arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//     * Partial ARN -
	// 123456789012:function:my-function.
	//
	// The length constraint applies only to the
	// full ARN. If you specify only the function name, it is limited to 64 characters
	// in length.
	FunctionName *string
}

type GetProvisionedConcurrencyConfigOutput

type GetProvisionedConcurrencyConfigOutput struct {
	// The amount of provisioned concurrency requested.
	RequestedProvisionedConcurrentExecutions *int32
	// The amount of provisioned concurrency available.
	AvailableProvisionedConcurrentExecutions *int32
	// For failed allocations, the reason that provisioned concurrency could not be
	// allocated.
	StatusReason *string
	// The date and time that a user last updated the configuration, in ISO 8601 format
	// (https://www.iso.org/iso-8601-date-and-time-format.html).
	LastModified *string
	// The status of the allocation process.
	Status types.ProvisionedConcurrencyStatusEnum
	// The amount of provisioned concurrency allocated.
	AllocatedProvisionedConcurrentExecutions *int32

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type HTTPClient

type HTTPClient interface {
	Do(*http.Request) (*http.Response, error)
}

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 JSON that you want to provide to your Lambda function as input.
	InvokeArgs io.Reader
	// The name of the Lambda function. Name formats
	//
	//     * Function name -
	// my-function.
	//
	//     * Function ARN -
	// arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//     * Partial ARN -
	// 123456789012:function:my-function.
	//
	// The length constraint applies only to the
	// full ARN. If you specify only the function name, it is limited to 64 characters
	// in length.
	FunctionName *string
}

type InvokeAsyncOutput

type InvokeAsyncOutput struct {
	// 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 {
	// 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
	// Up to 3583 bytes of base64-encoded data about the invoking client to pass to the
	// function in the context object.
	ClientContext *string
	// The name of the Lambda function, version, or alias. Name formats
	//
	//     * Function
	// name - my-function (name-only), my-function:v1 (with alias).
	//
	//     * Function ARN
	// - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//     * Partial ARN
	// - 123456789012:function:my-function.
	//
	// You can append a version number or alias
	// to any of the formats. The length constraint applies only to the full ARN. If
	// you specify only the function name, it is limited to 64 characters in length.
	FunctionName *string
}

type InvokeOutput

type InvokeOutput struct {
	// 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 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

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type ListAliasesInput

type ListAliasesInput struct {
	// 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
	// The name of the Lambda function. Name formats
	//
	//     * Function name -
	// MyFunction.
	//
	//     * Function ARN -
	// arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
	//
	//     * Partial ARN -
	// 123456789012:function:MyFunction.
	//
	// The length constraint applies only to the
	// full ARN. If you specify only the function name, it is limited to 64 characters
	// in length.
	FunctionName *string
	// Specify a function version to only list aliases that invoke that version.
	FunctionVersion *string
}

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 ListEventSourceMappingsInput

type ListEventSourceMappingsInput struct {
	// A pagination token returned by a previous call.
	Marker *string
	// The maximum number of event source mappings to return.
	MaxItems *int32
	// 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
	// The Amazon Resource Name (ARN) of the event source.
	//
	//     * Amazon Kinesis - The
	// ARN of the data stream or a stream consumer.
	//
	//     * Amazon DynamoDB Streams -
	// The ARN of the stream.
	//
	//     * Amazon Simple Queue Service - The ARN of the
	// queue.
	EventSourceArn *string
}

type ListEventSourceMappingsOutput

type ListEventSourceMappingsOutput struct {
	// A pagination token that's returned when the response doesn't contain all event
	// source mappings.
	NextMarker *string
	// A list of event source mappings.
	EventSourceMappings []*types.EventSourceMappingConfiguration

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type ListFunctionEventInvokeConfigsInput

type ListFunctionEventInvokeConfigsInput struct {
	// The name of the Lambda function. Name formats
	//
	//     * Function name -
	// my-function.
	//
	//     * Function ARN -
	// arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//     * Partial ARN -
	// 123456789012:function:my-function.
	//
	// The length constraint applies only to the
	// full ARN. If you specify only the function name, it is limited to 64 characters
	// in length.
	FunctionName *string
	// The maximum number of configurations to return.
	MaxItems *int32
	// Specify the pagination token that's returned by a previous request to retrieve
	// the next page of results.
	Marker *string
}

type ListFunctionEventInvokeConfigsOutput

type ListFunctionEventInvokeConfigsOutput struct {
	// The pagination token that's included if more results are available.
	NextMarker *string
	// A list of configurations.
	FunctionEventInvokeConfigs []*types.FunctionEventInvokeConfig

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type ListFunctionsInput

type ListFunctionsInput struct {
	// Set to ALL to include entries for all published versions of each function.
	FunctionVersion types.FunctionVersion
	// The maximum number of functions to return.
	MaxItems *int32
	// 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
	// Specify the pagination token that's returned by a previous request to retrieve
	// the next page of results.
	Marker *string
}

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 ListLayerVersionsInput

type ListLayerVersionsInput struct {
	// A runtime identifier. For example, go1.x.
	CompatibleRuntime types.Runtime
	// A pagination token returned by a previous call.
	Marker *string
	// The name or Amazon Resource Name (ARN) of the layer.
	LayerName *string
	// The maximum number of versions to return.
	MaxItems *int32
}

type ListLayerVersionsOutput

type ListLayerVersionsOutput struct {
	// A pagination token returned when the response doesn't contain all versions.
	NextMarker *string
	// A list of versions.
	LayerVersions []*types.LayerVersionsListItem

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type ListLayersInput

type ListLayersInput struct {
	// The maximum number of layers to return.
	MaxItems *int32
	// A runtime identifier. For example, go1.x.
	CompatibleRuntime types.Runtime
	// A pagination token returned by a previous call.
	Marker *string
}

type ListLayersOutput

type ListLayersOutput struct {
	// A pagination token returned when the response doesn't contain all layers.
	NextMarker *string
	// A list of function layers.
	Layers []*types.LayersListItem

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type ListProvisionedConcurrencyConfigsInput

type ListProvisionedConcurrencyConfigsInput struct {
	// 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
	// The name of the Lambda function. Name formats
	//
	//     * Function name -
	// my-function.
	//
	//     * Function ARN -
	// arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//     * Partial ARN -
	// 123456789012:function:my-function.
	//
	// The length constraint applies only to the
	// full ARN. If you specify only the function name, it is limited to 64 characters
	// in length.
	FunctionName *string
}

type ListProvisionedConcurrencyConfigsOutput

type ListProvisionedConcurrencyConfigsOutput struct {
	// A list of provisioned concurrency configurations.
	ProvisionedConcurrencyConfigs []*types.ProvisionedConcurrencyConfigListItem
	// The pagination token that's included if more results are available.
	NextMarker *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type ListTagsInput

type ListTagsInput struct {
	// The function's Amazon Resource Name (ARN).
	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 ListVersionsByFunctionInput

type ListVersionsByFunctionInput struct {
	// Specify the pagination token that's returned by a previous request to retrieve
	// the next page of results.
	Marker *string
	// The name of the Lambda function. Name formats
	//
	//     * Function name -
	// MyFunction.
	//
	//     * Function ARN -
	// arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
	//
	//     * Partial ARN -
	// 123456789012:function:MyFunction.
	//
	// The length constraint applies only to the
	// full ARN. If you specify only the function name, it is limited to 64 characters
	// in length.
	FunctionName *string
	// The maximum number of versions to return.
	MaxItems *int32
}

type ListVersionsByFunctionOutput

type ListVersionsByFunctionOutput struct {
	// A list of Lambda function versions.
	Versions []*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
}

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

	// The credentials object to use when signing requests.
	Credentials aws.CredentialsProvider

	// The endpoint options to be used when attempting to resolve an endpoint.
	EndpointOptions ResolverOptions

	// The service endpoint resolver.
	EndpointResolver EndpointResolver

	// Signature Version 4 (SigV4) Signer
	HTTPSignerV4 HTTPSignerV4

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

func (o Options) Copy() Options

Copy creates a clone where the APIOptions list is deep copied.

func (Options) GetCredentials

func (o Options) GetCredentials() aws.CredentialsProvider

func (Options) GetEndpointOptions

func (o Options) GetEndpointOptions() ResolverOptions

func (Options) GetEndpointResolver

func (o Options) GetEndpointResolver() EndpointResolver

func (Options) GetHTTPSignerV4

func (o Options) GetHTTPSignerV4() HTTPSignerV4

func (Options) GetRegion

func (o Options) GetRegion() string

func (Options) GetRetryer

func (o Options) GetRetryer() retry.Retryer

type PublishLayerVersionInput

type PublishLayerVersionInput struct {
	// The function layer archive.
	Content *types.LayerVersionContentInput
	// The description of the version.
	Description *string
	// The name or Amazon Resource Name (ARN) of the layer.
	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 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 description of the version.
	Description *string
	// The ARN of the layer version.
	LayerVersionArn *string
	// The version number.
	Version *int64
	// 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 ARN of the layer.
	LayerArn *string
	// Details about the layer version.
	Content *types.LayerVersionContentOutput
	// The layer's compatible runtimes.
	CompatibleRuntimes []types.Runtime
	// The layer's software license.
	LicenseInfo *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type PublishVersionInput

type PublishVersionInput struct {
	// 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
	// A description for the version to override the description in the function
	// configuration.
	Description *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
	// The name of the Lambda function. Name formats
	//
	//     * Function name -
	// MyFunction.
	//
	//     * Function ARN -
	// arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
	//
	//     * Partial ARN -
	// 123456789012:function:MyFunction.
	//
	// The length constraint applies only to the
	// full ARN. If you specify only the function name, it is limited to 64 characters
	// in length.
	FunctionName *string
}

type PublishVersionOutput

type PublishVersionOutput struct {
	// The name of the function.
	FunctionName *string
	// The latest updated revision of the function or alias.
	RevisionId *string
	// For Lambda@Edge functions, the ARN of the master function.
	MasterArn *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 function's  layers
	// (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).
	Layers []*types.Layer
	// Connection settings for an Amazon EFS file system.
	FileSystemConfigs []*types.FileSystemConfig
	// The function's networking configuration.
	VpcConfig *types.VpcConfigResponse
	// The runtime environment for the Lambda function.
	Runtime types.Runtime
	// The SHA256 hash of the function's deployment package.
	CodeSha256 *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 memory that's allocated to the function.
	MemorySize *int32
	// The version of the Lambda function.
	Version *string
	// The amount of time in seconds that Lambda allows a function to run before
	// stopping it.
	Timeout *int32
	// The size of the function's deployment package, in bytes.
	CodeSize *int64
	// The function's Amazon Resource Name (ARN).
	FunctionArn *string
	// The function's environment variables.
	Environment *types.EnvironmentResponse
	// The reason for the last update that was performed on the function.
	LastUpdateStatusReason *string
	// The function that Lambda calls to begin executing your function.
	Handler *string
	// The function's AWS X-Ray tracing configuration.
	TracingConfig *types.TracingConfigResponse
	// 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 reason code for the last update that was performed on the function.
	LastUpdateStatusReasonCode types.LastUpdateStatusReasonCode
	// The function's description.
	Description *string
	// The function's execution role.
	Role *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 function's dead letter queue.
	DeadLetterConfig *types.DeadLetterConfig
	// The reason for the function's current state.
	StateReason *string
	// The current state of the function. When the state is Inactive, you can
	// reactivate the function by invoking it.
	State types.State

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Details about a function's configuration.

type PutFunctionConcurrencyInput

type PutFunctionConcurrencyInput struct {
	// The number of simultaneous executions to reserve for the function.
	ReservedConcurrentExecutions *int32
	// The name of the Lambda function. Name formats
	//
	//     * Function name -
	// my-function.
	//
	//     * Function ARN -
	// arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//     * Partial ARN -
	// 123456789012:function:my-function.
	//
	// The length constraint applies only to the
	// full ARN. If you specify only the function name, it is limited to 64 characters
	// in length.
	FunctionName *string
}

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 {
	// A version number or alias name.
	Qualifier *string
	// The maximum number of times to retry when the function returns an error.
	MaximumRetryAttempts *int32
	// 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 name of the Lambda function, version, or alias. Name formats
	//
	//     * Function
	// name - my-function (name-only), my-function:v1 (with alias).
	//
	//     * Function ARN
	// - arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//     * Partial ARN
	// - 123456789012:function:my-function.
	//
	// You can append a version number or alias
	// to any of the formats. The length constraint applies only to the full ARN. If
	// you specify only the function name, it is limited to 64 characters in length.
	FunctionName *string
}

type PutFunctionEventInvokeConfigOutput

type PutFunctionEventInvokeConfigOutput struct {
	// The maximum age of a request that Lambda sends to a function for processing.
	MaximumEventAgeInSeconds *int32
	// 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 date and time that the configuration was last updated.
	LastModified *time.Time
	// The maximum number of times to retry when the function returns an error.
	MaximumRetryAttempts *int32
	// The Amazon Resource Name (ARN) of the function.
	FunctionArn *string

	// 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.
	FunctionName *string
	// The amount of provisioned concurrency to allocate for the version or alias.
	ProvisionedConcurrentExecutions *int32
	// The version number or alias name.
	Qualifier *string
}

type PutProvisionedConcurrencyConfigOutput

type PutProvisionedConcurrencyConfigOutput struct {
	// The amount of provisioned concurrency available.
	AvailableProvisionedConcurrentExecutions *int32
	// The status of the allocation process.
	Status types.ProvisionedConcurrencyStatusEnum
	// For failed allocations, the reason that provisioned concurrency could not be
	// allocated.
	StatusReason *string
	// The amount of provisioned concurrency requested.
	RequestedProvisionedConcurrentExecutions *int32
	// The amount of provisioned concurrency allocated.
	AllocatedProvisionedConcurrentExecutions *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

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type RemoveLayerVersionPermissionInput

type RemoveLayerVersionPermissionInput struct {
	// The version number.
	VersionNumber *int64
	// The name or Amazon Resource Name (ARN) of the layer.
	LayerName *string
	// The identifier that was specified when the statement was added.
	StatementId *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 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.
	FunctionName *string
	// Statement ID of the permission to remove.
	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  ResolverOptions
}

func (*ResolveEndpoint) HandleSerialize

func (*ResolveEndpoint) ID

func (*ResolveEndpoint) ID() string

type ResolveEndpointMiddlewareOptions

type ResolveEndpointMiddlewareOptions interface {
	GetEndpointResolver() EndpointResolver
	GetEndpointOptions() ResolverOptions
}

type ResolverOptions

type ResolverOptions = internalendpoints.Options

ResolverOptions is the service endpoint resolver options

type TagResourceInput

type TagResourceInput struct {
	// A list of tags to apply to the function.
	Tags map[string]*string
	// The function's Amazon Resource Name (ARN).
	Resource *string
}

type TagResourceOutput

type TagResourceOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

type UntagResourceInput

type UntagResourceInput struct {
	// A list of tag keys to remove from the function.
	TagKeys []*string
	// The function's Amazon Resource Name (ARN).
	Resource *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 alias.
	Name *string
	// The function version that the alias invokes.
	FunctionVersion *string
	// The routing configuration
	// (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing)
	// of the alias.
	RoutingConfig *types.AliasRoutingConfiguration
	// 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
	// A description of the alias.
	Description *string
	// The name of the Lambda function. Name formats
	//
	//     * Function name -
	// MyFunction.
	//
	//     * Function ARN -
	// arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
	//
	//     * Partial ARN -
	// 123456789012:function:MyFunction.
	//
	// The length constraint applies only to the
	// full ARN. If you specify only the function name, it is limited to 64 characters
	// in length.
	FunctionName *string
}

type UpdateAliasOutput

type UpdateAliasOutput struct {
	// The routing configuration
	// (https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html)
	// of the alias.
	RoutingConfig *types.AliasRoutingConfiguration
	// The name of the alias.
	Name *string
	// The Amazon Resource Name (ARN) of the alias.
	AliasArn *string
	// A unique identifier that changes when you update the alias.
	RevisionId *string
	// The function version that the alias invokes.
	FunctionVersion *string
	// A description of the alias.
	Description *string

	// 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 {
	// Disables the event source mapping 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) An Amazon SQS queue or Amazon SNS topic destination for discarded
	// records.
	DestinationConfig *types.DestinationConfig
	// The identifier of the event source mapping.
	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.
	BatchSize *int32
	// 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 age of a record that Lambda sends to a function for
	// processing.
	MaximumRecordAgeInSeconds *int32
	// (Streams) The number of batches to process from each shard concurrently.
	ParallelizationFactor *int32
	// (Streams) The maximum number of times to retry when the function returns an
	// error.
	MaximumRetryAttempts *int32
	// (Streams) If the function returns an error, split the batch in two and retry.
	BisectBatchOnFunctionError *bool
}

type UpdateEventSourceMappingOutput

type UpdateEventSourceMappingOutput struct {
	// The state of the event source mapping. It can be one of the following: Creating,
	// Enabling, Enabled, Disabling, Disabled, Updating, or Deleting.
	State *string
	// (Streams) An Amazon SQS queue or Amazon SNS topic destination for discarded
	// records.
	DestinationConfig *types.DestinationConfig
	// (Streams) The maximum amount of time to gather records before invoking the
	// function, in seconds.
	MaximumBatchingWindowInSeconds *int32
	// (Streams) The maximum number of times to retry when the function returns an
	// error.
	MaximumRetryAttempts *int32
	// The maximum number of items to retrieve in a single batch.
	BatchSize *int32
	// The result of the last AWS Lambda invocation of your Lambda function.
	LastProcessingResult *string
	// (Streams) The number of batches to process from each shard concurrently.
	ParallelizationFactor *int32
	// (Streams) If the function returns an error, split the batch in two and retry.
	BisectBatchOnFunctionError *bool
	// Indicates whether the last change to the event source mapping was made by a
	// user, or by the Lambda service.
	StateTransitionReason *string
	// (Streams) The maximum age of a record that Lambda sends to a function for
	// processing.
	MaximumRecordAgeInSeconds *int32
	// The date that the event source mapping was last updated, or its state changed.
	LastModified *time.Time
	// The ARN of the Lambda function.
	FunctionArn *string
	// The Amazon Resource Name (ARN) of the event source.
	EventSourceArn *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 {
	// 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
	// Set to true to validate the request parameters and access permissions without
	// modifying the function code.
	DryRun *bool
	// The name of the Lambda function. Name formats
	//
	//     * Function name -
	// my-function.
	//
	//     * Function ARN -
	// arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//     * Partial ARN -
	// 123456789012:function:my-function.
	//
	// The length constraint applies only to the
	// full ARN. If you specify only the function name, it is limited to 64 characters
	// in length.
	FunctionName *string
	// 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
	// Set to true to publish a new version of the function after updating the code.
	// This has the same effect as calling PublishVersion () separately.
	Publish *bool
}

type UpdateFunctionCodeOutput

type UpdateFunctionCodeOutput struct {
	// The name of the function.
	FunctionName *string
	// The latest updated revision of the function or alias.
	RevisionId *string
	// For Lambda@Edge functions, the ARN of the master function.
	MasterArn *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 function's  layers
	// (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).
	Layers []*types.Layer
	// Connection settings for an Amazon EFS file system.
	FileSystemConfigs []*types.FileSystemConfig
	// The function's networking configuration.
	VpcConfig *types.VpcConfigResponse
	// The runtime environment for the Lambda function.
	Runtime types.Runtime
	// The SHA256 hash of the function's deployment package.
	CodeSha256 *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 memory that's allocated to the function.
	MemorySize *int32
	// The version of the Lambda function.
	Version *string
	// The amount of time in seconds that Lambda allows a function to run before
	// stopping it.
	Timeout *int32
	// The size of the function's deployment package, in bytes.
	CodeSize *int64
	// The function's Amazon Resource Name (ARN).
	FunctionArn *string
	// The function's environment variables.
	Environment *types.EnvironmentResponse
	// The reason for the last update that was performed on the function.
	LastUpdateStatusReason *string
	// The function that Lambda calls to begin executing your function.
	Handler *string
	// The function's AWS X-Ray tracing configuration.
	TracingConfig *types.TracingConfigResponse
	// 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 reason code for the last update that was performed on the function.
	LastUpdateStatusReasonCode types.LastUpdateStatusReasonCode
	// The function's description.
	Description *string
	// The function's execution role.
	Role *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 function's dead letter queue.
	DeadLetterConfig *types.DeadLetterConfig
	// The reason for the function's current state.
	StateReason *string
	// The current state of the function. When the state is Inactive, you can
	// reactivate the function by invoking it.
	State types.State

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Details about a function's configuration.

type UpdateFunctionConfigurationInput

type UpdateFunctionConfigurationInput struct {
	// 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 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
	// 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
	// A description of the function.
	Description *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 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
	// Set Mode to Active to sample and trace a subset of incoming requests with AWS
	// X-Ray.
	TracingConfig *types.TracingConfig
	// 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
	// Connection settings for an Amazon EFS file system.
	FileSystemConfigs []*types.FileSystemConfig
	// The Amazon Resource Name (ARN) of the function's execution role.
	Role *string
	// The name of the Lambda function. Name formats
	//
	//     * Function name -
	// my-function.
	//
	//     * Function ARN -
	// arn:aws:lambda:us-west-2:123456789012:function:my-function.
	//
	//     * Partial ARN -
	// 123456789012:function:my-function.
	//
	// The length constraint applies only to the
	// full ARN. If you specify only the function name, it is limited to 64 characters
	// in length.
	FunctionName *string
	// The identifier of the function's runtime
	// (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html).
	Runtime types.Runtime
	// Environment variables that are accessible from function code during execution.
	Environment *types.Environment
	// 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
	// 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 name of the function.
	FunctionName *string
	// The latest updated revision of the function or alias.
	RevisionId *string
	// For Lambda@Edge functions, the ARN of the master function.
	MasterArn *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 function's  layers
	// (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).
	Layers []*types.Layer
	// Connection settings for an Amazon EFS file system.
	FileSystemConfigs []*types.FileSystemConfig
	// The function's networking configuration.
	VpcConfig *types.VpcConfigResponse
	// The runtime environment for the Lambda function.
	Runtime types.Runtime
	// The SHA256 hash of the function's deployment package.
	CodeSha256 *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 memory that's allocated to the function.
	MemorySize *int32
	// The version of the Lambda function.
	Version *string
	// The amount of time in seconds that Lambda allows a function to run before
	// stopping it.
	Timeout *int32
	// The size of the function's deployment package, in bytes.
	CodeSize *int64
	// The function's Amazon Resource Name (ARN).
	FunctionArn *string
	// The function's environment variables.
	Environment *types.EnvironmentResponse
	// The reason for the last update that was performed on the function.
	LastUpdateStatusReason *string
	// The function that Lambda calls to begin executing your function.
	Handler *string
	// The function's AWS X-Ray tracing configuration.
	TracingConfig *types.TracingConfigResponse
	// 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 reason code for the last update that was performed on the function.
	LastUpdateStatusReasonCode types.LastUpdateStatusReasonCode
	// The function's description.
	Description *string
	// The function's execution role.
	Role *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 function's dead letter queue.
	DeadLetterConfig *types.DeadLetterConfig
	// The reason for the function's current state.
	StateReason *string
	// The current state of the function. When the state is Inactive, you can
	// reactivate the function by invoking it.
	State types.State

	// 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.
	FunctionName *string
	// The maximum age of a request that Lambda sends to a function for processing.
	MaximumEventAgeInSeconds *int32
	// A version number or alias name.
	Qualifier *string
	// The maximum number of times to retry when the function returns an error.
	MaximumRetryAttempts *int32
	// 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
}

type UpdateFunctionEventInvokeConfigOutput

type UpdateFunctionEventInvokeConfigOutput struct {
	// The maximum age of a request that Lambda sends to a function for processing.
	MaximumEventAgeInSeconds *int32
	// 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 date and time that the configuration was last updated.
	LastModified *time.Time
	// The maximum number of times to retry when the function returns an error.
	MaximumRetryAttempts *int32
	// The Amazon Resource Name (ARN) of the function.
	FunctionArn *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
}

Source Files

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL