Struct aws_sdk_lambda::Client
source · pub struct Client { /* private fields */ }
Expand description
Client for AWS Lambda
Client for invoking operations on AWS Lambda. Each operation on AWS Lambda is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_lambda::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::retry::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_lambda::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_lambda::Client::from_conf(config);
Implementations§
source§impl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
source§impl Client
impl Client
sourcepub fn add_layer_version_permission(&self) -> AddLayerVersionPermission
pub fn add_layer_version_permission(&self) -> AddLayerVersionPermission
Constructs a fluent builder for the AddLayerVersionPermission
operation.
- The fluent builder is configurable:
layer_name(impl Into<String>)
/set_layer_name(Option<String>)
:The name or Amazon Resource Name (ARN) of the layer.
version_number(i64)
/set_version_number(i64)
:The version number.
statement_id(impl Into<String>)
/set_statement_id(Option<String>)
:An identifier that distinguishes the policy from others on the same layer version.
action(impl Into<String>)
/set_action(Option<String>)
:The API action that grants access to the layer. For example,
lambda:GetLayerVersion
.principal(impl Into<String>)
/set_principal(Option<String>)
:An account ID, or
*
to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (iforganizationId
is not specified). For the last case, make sure that you really do want all Amazon Web Services accounts to have usage permission to this layer.organization_id(impl Into<String>)
/set_organization_id(Option<String>)
:With the principal set to
*
, grant permission to all accounts in the specified organization.revision_id(impl Into<String>)
/set_revision_id(Option<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.
- On success, responds with
AddLayerVersionPermissionOutput
with field(s):statement(Option<String>)
:The permission statement.
revision_id(Option<String>)
:A unique identifier for the current revision of the policy.
- On failure, responds with
SdkError<AddLayerVersionPermissionError>
sourcepub fn add_permission(&self) -> AddPermission
pub fn add_permission(&self) -> AddPermission
Constructs a fluent builder for the AddPermission
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
statement_id(impl Into<String>)
/set_statement_id(Option<String>)
:A statement identifier that differentiates the statement from others in the same policy.
action(impl Into<String>)
/set_action(Option<String>)
:The action that the principal can use on the function. For example,
lambda:InvokeFunction
orlambda:GetFunction
.principal(impl Into<String>)
/set_principal(Option<String>)
:The Amazon Web Service or Amazon Web Services account that invokes the function. If you specify a service, use
SourceArn
orSourceAccount
to limit who can invoke the function through that service.source_arn(impl Into<String>)
/set_source_arn(Option<String>)
:For Amazon Web Services, the ARN of the Amazon Web Services resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.
Note that Lambda configures the comparison using the
StringLike
operator.source_account(impl Into<String>)
/set_source_account(Option<String>)
:For Amazon Web Service, the ID of the Amazon Web Services account that owns the resource. Use this together with
SourceArn
to ensure that the specified account owns the resource. It is possible for an Amazon S3 bucket to be deleted by its owner and recreated by another account.event_source_token(impl Into<String>)
/set_event_source_token(Option<String>)
:For Alexa Smart Home functions, a token that the invoker must supply.
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:Specify a version or alias to add permissions to a published version of the function.
revision_id(impl Into<String>)
/set_revision_id(Option<String>)
:Update the policy only 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.
principal_org_id(impl Into<String>)
/set_principal_org_id(Option<String>)
:The identifier for your organization in Organizations. Use this to grant permissions to all the Amazon Web Services accounts under this organization.
function_url_auth_type(FunctionUrlAuthType)
/set_function_url_auth_type(Option<FunctionUrlAuthType>)
:The type of authentication that your function URL uses. Set to
AWS_IAM
if you want to restrict access to authenticated IAM users only. Set toNONE
if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.
- On success, responds with
AddPermissionOutput
with field(s):statement(Option<String>)
:The permission statement that’s added to the function policy.
- On failure, responds with
SdkError<AddPermissionError>
sourcepub fn create_alias(&self) -> CreateAlias
pub fn create_alias(&self) -> CreateAlias
Constructs a fluent builder for the CreateAlias
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
name(impl Into<String>)
/set_name(Option<String>)
:The name of the alias.
function_version(impl Into<String>)
/set_function_version(Option<String>)
:The function version that the alias invokes.
description(impl Into<String>)
/set_description(Option<String>)
:A description of the alias.
routing_config(AliasRoutingConfiguration)
/set_routing_config(Option<AliasRoutingConfiguration>)
:The routing configuration of the alias.
- On success, responds with
CreateAliasOutput
with field(s):alias_arn(Option<String>)
:The Amazon Resource Name (ARN) of the alias.
name(Option<String>)
:The name of the alias.
function_version(Option<String>)
:The function version that the alias invokes.
description(Option<String>)
:A description of the alias.
routing_config(Option<AliasRoutingConfiguration>)
:The routing configuration of the alias.
revision_id(Option<String>)
:A unique identifier that changes when you update the alias.
- On failure, responds with
SdkError<CreateAliasError>
sourcepub fn create_code_signing_config(&self) -> CreateCodeSigningConfig
pub fn create_code_signing_config(&self) -> CreateCodeSigningConfig
Constructs a fluent builder for the CreateCodeSigningConfig
operation.
- The fluent builder is configurable:
description(impl Into<String>)
/set_description(Option<String>)
:Descriptive name for this code signing configuration.
allowed_publishers(AllowedPublishers)
/set_allowed_publishers(Option<AllowedPublishers>)
:Signing profiles for this code signing configuration.
code_signing_policies(CodeSigningPolicies)
/set_code_signing_policies(Option<CodeSigningPolicies>)
:The code signing policies define the actions to take if the validation checks fail.
- On success, responds with
CreateCodeSigningConfigOutput
with field(s):code_signing_config(Option<CodeSigningConfig>)
:The code signing configuration.
- On failure, responds with
SdkError<CreateCodeSigningConfigError>
sourcepub fn create_event_source_mapping(&self) -> CreateEventSourceMapping
pub fn create_event_source_mapping(&self) -> CreateEventSourceMapping
Constructs a fluent builder for the CreateEventSourceMapping
operation.
- The fluent builder is configurable:
event_source_arn(impl Into<String>)
/set_event_source_arn(Option<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.
-
Amazon Managed Streaming for Apache Kafka – The ARN of the cluster.
-
Amazon MQ – The ARN of the broker.
-
function_name(impl Into<String>)
/set_function_name(Option<String>)
:The name of the Lambda function.
Name formats
-
Function name –
MyFunction
. -
Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:MyFunction
. -
Version or Alias ARN –
arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
. -
Partial ARN –
123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it’s limited to 64 characters in length.
-
enabled(bool)
/set_enabled(Option<bool>)
:When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
Default: True
batch_size(i32)
/set_batch_size(Option<i32>)
:The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).
-
Amazon Kinesis – Default 100. Max 10,000.
-
Amazon DynamoDB Streams – Default 100. Max 10,000.
-
Amazon Simple Queue Service – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.
-
Amazon Managed Streaming for Apache Kafka – Default 100. Max 10,000.
-
Self-managed Apache Kafka – Default 100. Max 10,000.
-
Amazon MQ (ActiveMQ and RabbitMQ) – Default 100. Max 10,000.
-
filter_criteria(FilterCriteria)
/set_filter_criteria(Option<FilterCriteria>)
:An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.
maximum_batching_window_in_seconds(i32)
/set_maximum_batching_window_in_seconds(Option<i32>)
:The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure
MaximumBatchingWindowInSeconds
to any value from 0 seconds to 300 seconds in increments of seconds.For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and Amazon MQ event sources, the default batching window is 500 ms. Note that because you can only change
MaximumBatchingWindowInSeconds
in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.Related setting: For streams and Amazon SQS event sources, when you set
BatchSize
to a value greater than 10, you must setMaximumBatchingWindowInSeconds
to at least 1.parallelization_factor(i32)
/set_parallelization_factor(Option<i32>)
:(Streams only) The number of batches to process from each shard concurrently.
starting_position(EventSourcePosition)
/set_starting_position(Option<EventSourcePosition>)
:The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources.
AT_TIMESTAMP
is supported only for Amazon Kinesis streams.starting_position_timestamp(DateTime)
/set_starting_position_timestamp(Option<DateTime>)
:With
StartingPosition
set toAT_TIMESTAMP
, the time from which to start reading.destination_config(DestinationConfig)
/set_destination_config(Option<DestinationConfig>)
:(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
maximum_record_age_in_seconds(i32)
/set_maximum_record_age_in_seconds(Option<i32>)
:(Streams only) Discard records older than the specified age. The default value is infinite (-1).
bisect_batch_on_function_error(bool)
/set_bisect_batch_on_function_error(Option<bool>)
:(Streams only) If the function returns an error, split the batch in two and retry.
maximum_retry_attempts(i32)
/set_maximum_retry_attempts(Option<i32>)
:(Streams only) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
tumbling_window_in_seconds(i32)
/set_tumbling_window_in_seconds(Option<i32>)
:(Streams only) The duration in seconds of a processing window. The range is between 1 second and 900 seconds.
topics(Vec<String>)
/set_topics(Option<Vec<String>>)
:The name of the Kafka topic.
queues(Vec<String>)
/set_queues(Option<Vec<String>>)
:(MQ) The name of the Amazon MQ broker destination queue to consume.
source_access_configurations(Vec<SourceAccessConfiguration>)
/set_source_access_configurations(Option<Vec<SourceAccessConfiguration>>)
:An array of authentication protocols or VPC components required to secure your event source.
self_managed_event_source(SelfManagedEventSource)
/set_self_managed_event_source(Option<SelfManagedEventSource>)
:The self-managed Apache Kafka cluster to receive records from.
function_response_types(Vec<FunctionResponseType>)
/set_function_response_types(Option<Vec<FunctionResponseType>>)
:(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
amazon_managed_kafka_event_source_config(AmazonManagedKafkaEventSourceConfig)
/set_amazon_managed_kafka_event_source_config(Option<AmazonManagedKafkaEventSourceConfig>)
:Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
self_managed_kafka_event_source_config(SelfManagedKafkaEventSourceConfig)
/set_self_managed_kafka_event_source_config(Option<SelfManagedKafkaEventSourceConfig>)
:Specific configuration settings for a self-managed Apache Kafka event source.
scaling_config(ScalingConfig)
/set_scaling_config(Option<ScalingConfig>)
:(Amazon SQS only) The scaling configuration for the event source. For more information, see Configuring maximum concurrency for Amazon SQS event sources.
- On success, responds with
CreateEventSourceMappingOutput
with field(s):uuid(Option<String>)
:The identifier of the event source mapping.
starting_position(Option<EventSourcePosition>)
:The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources.
AT_TIMESTAMP
is supported only for Amazon Kinesis streams.starting_position_timestamp(Option<DateTime>)
:With
StartingPosition
set toAT_TIMESTAMP
, the time from which to start reading.batch_size(Option<i32>)
:The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).
Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.
Related setting: When you set
BatchSize
to a value greater than 10, you must setMaximumBatchingWindowInSeconds
to at least 1.maximum_batching_window_in_seconds(Option<i32>)
:The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure
MaximumBatchingWindowInSeconds
to any value from 0 seconds to 300 seconds in increments of seconds.For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and Amazon MQ event sources, the default batching window is 500 ms. Note that because you can only change
MaximumBatchingWindowInSeconds
in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.Related setting: For streams and Amazon SQS event sources, when you set
BatchSize
to a value greater than 10, you must setMaximumBatchingWindowInSeconds
to at least 1.parallelization_factor(Option<i32>)
:(Streams only) The number of batches to process concurrently from each shard. The default value is 1.
event_source_arn(Option<String>)
:The Amazon Resource Name (ARN) of the event source.
filter_criteria(Option<FilterCriteria>)
:An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.
function_arn(Option<String>)
:The ARN of the Lambda function.
last_modified(Option<DateTime>)
:The date that the event source mapping was last updated or that its state changed.
last_processing_result(Option<String>)
:The result of the last Lambda invocation of your function.
state(Option<String>)
:The state of the event source mapping. It can be one of the following:
Creating
,Enabling
,Enabled
,Disabling
,Disabled
,Updating
, orDeleting
.state_transition_reason(Option<String>)
:Indicates whether a user or Lambda made the last change to the event source mapping.
destination_config(Option<DestinationConfig>)
:(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
topics(Option<Vec<String>>)
:The name of the Kafka topic.
queues(Option<Vec<String>>)
:(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
source_access_configurations(Option<Vec<SourceAccessConfiguration>>)
:An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
self_managed_event_source(Option<SelfManagedEventSource>)
:The self-managed Apache Kafka cluster for your event source.
maximum_record_age_in_seconds(Option<i32>)
:(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.
bisect_batch_on_function_error(Option<bool>)
:(Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
maximum_retry_attempts(Option<i32>)
:(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.
tumbling_window_in_seconds(Option<i32>)
:(Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.
function_response_types(Option<Vec<FunctionResponseType>>)
:(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
amazon_managed_kafka_event_source_config(Option<AmazonManagedKafkaEventSourceConfig>)
:Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
self_managed_kafka_event_source_config(Option<SelfManagedKafkaEventSourceConfig>)
:Specific configuration settings for a self-managed Apache Kafka event source.
scaling_config(Option<ScalingConfig>)
:(Amazon SQS only) The scaling configuration for the event source. For more information, see Configuring maximum concurrency for Amazon SQS event sources.
- On failure, responds with
SdkError<CreateEventSourceMappingError>
sourcepub fn create_function(&self) -> CreateFunction
pub fn create_function(&self) -> CreateFunction
Constructs a fluent builder for the CreateFunction
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
runtime(Runtime)
/set_runtime(Option<Runtime>)
:The identifier of the function’s runtime. Runtime is required if the deployment package is a .zip file archive.
role(impl Into<String>)
/set_role(Option<String>)
:The Amazon Resource Name (ARN) of the function’s execution role.
handler(impl Into<String>)
/set_handler(Option<String>)
:The name of the method within your code that Lambda calls to run your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Lambda programming model.
code(FunctionCode)
/set_code(Option<FunctionCode>)
:The code for the function.
description(impl Into<String>)
/set_description(Option<String>)
:A description of the function.
timeout(i32)
/set_timeout(Option<i32>)
:The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see Lambda execution environment.
memory_size(i32)
/set_memory_size(Option<i32>)
:The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
publish(bool)
/set_publish(bool)
:Set to true to publish the first version of the function during creation.
vpc_config(VpcConfig)
/set_vpc_config(Option<VpcConfig>)
:For network connectivity to Amazon Web Services 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 access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.
package_type(PackageType)
/set_package_type(Option<PackageType>)
:The type of deployment package. Set to
Image
for container image and set toZip
for .zip file archive.dead_letter_config(DeadLetterConfig)
/set_dead_letter_config(Option<DeadLetterConfig>)
: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.
environment(Environment)
/set_environment(Option<Environment>)
:Environment variables that are accessible from function code during execution.
kms_key_arn(impl Into<String>)
/set_kms_key_arn(Option<String>)
:The ARN of the Key Management Service (KMS) key that’s used to encrypt your function’s environment variables. If it’s not provided, Lambda uses a default service key.
tracing_config(TracingConfig)
/set_tracing_config(Option<TracingConfig>)
:Set
Mode
toActive
to sample and trace a subset of incoming requests with X-Ray.tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:A list of tags to apply to the function.
layers(Vec<String>)
/set_layers(Option<Vec<String>>)
:A list of function layers to add to the function’s execution environment. Specify each layer by its ARN, including the version.
file_system_configs(Vec<FileSystemConfig>)
/set_file_system_configs(Option<Vec<FileSystemConfig>>)
:Connection settings for an Amazon EFS file system.
image_config(ImageConfig)
/set_image_config(Option<ImageConfig>)
:Container image configuration values that override the values in the container image Dockerfile.
code_signing_config_arn(impl Into<String>)
/set_code_signing_config_arn(Option<String>)
:To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function.
architectures(Vec<Architecture>)
/set_architectures(Option<Vec<Architecture>>)
:The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is
x86_64
.ephemeral_storage(EphemeralStorage)
/set_ephemeral_storage(Option<EphemeralStorage>)
:The size of the function’s
/tmp
directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB.snap_start(SnapStart)
/set_snap_start(Option<SnapStart>)
:The function’s SnapStart setting.
- On success, responds with
CreateFunctionOutput
with field(s):function_name(Option<String>)
:The name of the function.
function_arn(Option<String>)
:The function’s Amazon Resource Name (ARN).
runtime(Option<Runtime>)
:The runtime environment for the Lambda function.
role(Option<String>)
:The function’s execution role.
handler(Option<String>)
:The function that Lambda calls to begin running your function.
code_size(i64)
:The size of the function’s deployment package, in bytes.
description(Option<String>)
:The function’s description.
timeout(Option<i32>)
:The amount of time in seconds that Lambda allows a function to run before stopping it.
memory_size(Option<i32>)
:The amount of memory available to the function at runtime.
last_modified(Option<String>)
:The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
code_sha256(Option<String>)
:The SHA256 hash of the function’s deployment package.
version(Option<String>)
:The version of the Lambda function.
vpc_config(Option<VpcConfigResponse>)
:The function’s networking configuration.
dead_letter_config(Option<DeadLetterConfig>)
:The function’s dead letter queue.
environment(Option<EnvironmentResponse>)
:The function’s environment variables. Omitted from CloudTrail logs.
kms_key_arn(Option<String>)
:The KMS key that’s used to encrypt the function’s environment variables. This key is returned only if you’ve configured a customer managed key.
tracing_config(Option<TracingConfigResponse>)
:The function’s X-Ray tracing configuration.
master_arn(Option<String>)
:For Lambda@Edge functions, the ARN of the main function.
revision_id(Option<String>)
:The latest updated revision of the function or alias.
layers(Option<Vec<Layer>>)
:The function’s layers.
state(Option<State>)
:The current state of the function. When the state is
Inactive
, you can reactivate the function by invoking it.state_reason(Option<String>)
:The reason for the function’s current state.
state_reason_code(Option<StateReasonCode>)
:The reason code for the function’s current state. When the code is
Creating
, you can’t invoke or modify the function.last_update_status(Option<LastUpdateStatus>)
:The status of the last update that was performed on the function. This is first set to
Successful
after function creation completes.last_update_status_reason(Option<String>)
:The reason for the last update that was performed on the function.
last_update_status_reason_code(Option<LastUpdateStatusReasonCode>)
:The reason code for the last update that was performed on the function.
file_system_configs(Option<Vec<FileSystemConfig>>)
:Connection settings for an Amazon EFS file system.
package_type(Option<PackageType>)
:The type of deployment package. Set to
Image
for container image and setZip
for .zip file archive.image_config_response(Option<ImageConfigResponse>)
:The function’s image configuration values.
signing_profile_version_arn(Option<String>)
:The ARN of the signing profile version.
signing_job_arn(Option<String>)
:The ARN of the signing job.
architectures(Option<Vec<Architecture>>)
:The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is
x86_64
.ephemeral_storage(Option<EphemeralStorage>)
:The size of the function’s
/tmp
directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.snap_start(Option<SnapStartResponse>)
:Set
ApplyOn
toPublishedVersions
to create a snapshot of the initialized execution environment when you publish a function version. For more information, see Improving startup performance with Lambda SnapStart.runtime_version_config(Option<RuntimeVersionConfig>)
:The ARN of the runtime and any errors that occured.
- On failure, responds with
SdkError<CreateFunctionError>
sourcepub fn create_function_url_config(&self) -> CreateFunctionUrlConfig
pub fn create_function_url_config(&self) -> CreateFunctionUrlConfig
Constructs a fluent builder for the CreateFunctionUrlConfig
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:The alias name.
auth_type(FunctionUrlAuthType)
/set_auth_type(Option<FunctionUrlAuthType>)
:The type of authentication that your function URL uses. Set to
AWS_IAM
if you want to restrict access to authenticated IAM users only. Set toNONE
if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.cors(Cors)
/set_cors(Option<Cors>)
:The cross-origin resource sharing (CORS) settings for your function URL.
- On success, responds with
CreateFunctionUrlConfigOutput
with field(s):function_url(Option<String>)
:The HTTP URL endpoint for your function.
function_arn(Option<String>)
:The Amazon Resource Name (ARN) of your function.
auth_type(Option<FunctionUrlAuthType>)
:The type of authentication that your function URL uses. Set to
AWS_IAM
if you want to restrict access to authenticated IAM users only. Set toNONE
if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.cors(Option<Cors>)
:The cross-origin resource sharing (CORS) settings for your function URL.
creation_time(Option<String>)
:When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
- On failure, responds with
SdkError<CreateFunctionUrlConfigError>
sourcepub fn delete_alias(&self) -> DeleteAlias
pub fn delete_alias(&self) -> DeleteAlias
Constructs a fluent builder for the DeleteAlias
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
name(impl Into<String>)
/set_name(Option<String>)
:The name of the alias.
- On success, responds with
DeleteAliasOutput
- On failure, responds with
SdkError<DeleteAliasError>
sourcepub fn delete_code_signing_config(&self) -> DeleteCodeSigningConfig
pub fn delete_code_signing_config(&self) -> DeleteCodeSigningConfig
Constructs a fluent builder for the DeleteCodeSigningConfig
operation.
- The fluent builder is configurable:
code_signing_config_arn(impl Into<String>)
/set_code_signing_config_arn(Option<String>)
:The The Amazon Resource Name (ARN) of the code signing configuration.
- On success, responds with
DeleteCodeSigningConfigOutput
- On failure, responds with
SdkError<DeleteCodeSigningConfigError>
sourcepub fn delete_event_source_mapping(&self) -> DeleteEventSourceMapping
pub fn delete_event_source_mapping(&self) -> DeleteEventSourceMapping
Constructs a fluent builder for the DeleteEventSourceMapping
operation.
- The fluent builder is configurable:
uuid(impl Into<String>)
/set_uuid(Option<String>)
:The identifier of the event source mapping.
- On success, responds with
DeleteEventSourceMappingOutput
with field(s):uuid(Option<String>)
:The identifier of the event source mapping.
starting_position(Option<EventSourcePosition>)
:The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources.
AT_TIMESTAMP
is supported only for Amazon Kinesis streams.starting_position_timestamp(Option<DateTime>)
:With
StartingPosition
set toAT_TIMESTAMP
, the time from which to start reading.batch_size(Option<i32>)
:The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).
Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.
Related setting: When you set
BatchSize
to a value greater than 10, you must setMaximumBatchingWindowInSeconds
to at least 1.maximum_batching_window_in_seconds(Option<i32>)
:The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure
MaximumBatchingWindowInSeconds
to any value from 0 seconds to 300 seconds in increments of seconds.For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and Amazon MQ event sources, the default batching window is 500 ms. Note that because you can only change
MaximumBatchingWindowInSeconds
in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.Related setting: For streams and Amazon SQS event sources, when you set
BatchSize
to a value greater than 10, you must setMaximumBatchingWindowInSeconds
to at least 1.parallelization_factor(Option<i32>)
:(Streams only) The number of batches to process concurrently from each shard. The default value is 1.
event_source_arn(Option<String>)
:The Amazon Resource Name (ARN) of the event source.
filter_criteria(Option<FilterCriteria>)
:An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.
function_arn(Option<String>)
:The ARN of the Lambda function.
last_modified(Option<DateTime>)
:The date that the event source mapping was last updated or that its state changed.
last_processing_result(Option<String>)
:The result of the last Lambda invocation of your function.
state(Option<String>)
:The state of the event source mapping. It can be one of the following:
Creating
,Enabling
,Enabled
,Disabling
,Disabled
,Updating
, orDeleting
.state_transition_reason(Option<String>)
:Indicates whether a user or Lambda made the last change to the event source mapping.
destination_config(Option<DestinationConfig>)
:(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
topics(Option<Vec<String>>)
:The name of the Kafka topic.
queues(Option<Vec<String>>)
:(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
source_access_configurations(Option<Vec<SourceAccessConfiguration>>)
:An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
self_managed_event_source(Option<SelfManagedEventSource>)
:The self-managed Apache Kafka cluster for your event source.
maximum_record_age_in_seconds(Option<i32>)
:(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.
bisect_batch_on_function_error(Option<bool>)
:(Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
maximum_retry_attempts(Option<i32>)
:(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.
tumbling_window_in_seconds(Option<i32>)
:(Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.
function_response_types(Option<Vec<FunctionResponseType>>)
:(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
amazon_managed_kafka_event_source_config(Option<AmazonManagedKafkaEventSourceConfig>)
:Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
self_managed_kafka_event_source_config(Option<SelfManagedKafkaEventSourceConfig>)
:Specific configuration settings for a self-managed Apache Kafka event source.
scaling_config(Option<ScalingConfig>)
:(Amazon SQS only) The scaling configuration for the event source. For more information, see Configuring maximum concurrency for Amazon SQS event sources.
- On failure, responds with
SdkError<DeleteEventSourceMappingError>
sourcepub fn delete_function(&self) -> DeleteFunction
pub fn delete_function(&self) -> DeleteFunction
Constructs a fluent builder for the DeleteFunction
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<String>)
: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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:Specify a version to delete. You can’t delete a version that an alias references.
- On success, responds with
DeleteFunctionOutput
- On failure, responds with
SdkError<DeleteFunctionError>
sourcepub fn delete_function_code_signing_config(
&self
) -> DeleteFunctionCodeSigningConfig
pub fn delete_function_code_signing_config(
&self
) -> DeleteFunctionCodeSigningConfig
Constructs a fluent builder for the DeleteFunctionCodeSigningConfig
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
- On success, responds with
DeleteFunctionCodeSigningConfigOutput
- On failure, responds with
SdkError<DeleteFunctionCodeSigningConfigError>
sourcepub fn delete_function_concurrency(&self) -> DeleteFunctionConcurrency
pub fn delete_function_concurrency(&self) -> DeleteFunctionConcurrency
Constructs a fluent builder for the DeleteFunctionConcurrency
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
- On success, responds with
DeleteFunctionConcurrencyOutput
- On failure, responds with
SdkError<DeleteFunctionConcurrencyError>
sourcepub fn delete_function_event_invoke_config(
&self
) -> DeleteFunctionEventInvokeConfig
pub fn delete_function_event_invoke_config(
&self
) -> DeleteFunctionEventInvokeConfig
Constructs a fluent builder for the DeleteFunctionEventInvokeConfig
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:A version number or alias name.
- On success, responds with
DeleteFunctionEventInvokeConfigOutput
- On failure, responds with
SdkError<DeleteFunctionEventInvokeConfigError>
sourcepub fn delete_function_url_config(&self) -> DeleteFunctionUrlConfig
pub fn delete_function_url_config(&self) -> DeleteFunctionUrlConfig
Constructs a fluent builder for the DeleteFunctionUrlConfig
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:The alias name.
- On success, responds with
DeleteFunctionUrlConfigOutput
- On failure, responds with
SdkError<DeleteFunctionUrlConfigError>
sourcepub fn delete_layer_version(&self) -> DeleteLayerVersion
pub fn delete_layer_version(&self) -> DeleteLayerVersion
Constructs a fluent builder for the DeleteLayerVersion
operation.
- The fluent builder is configurable:
layer_name(impl Into<String>)
/set_layer_name(Option<String>)
:The name or Amazon Resource Name (ARN) of the layer.
version_number(i64)
/set_version_number(i64)
:The version number.
- On success, responds with
DeleteLayerVersionOutput
- On failure, responds with
SdkError<DeleteLayerVersionError>
sourcepub fn delete_provisioned_concurrency_config(
&self
) -> DeleteProvisionedConcurrencyConfig
pub fn delete_provisioned_concurrency_config(
&self
) -> DeleteProvisionedConcurrencyConfig
Constructs a fluent builder for the DeleteProvisionedConcurrencyConfig
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:The version number or alias name.
- On success, responds with
DeleteProvisionedConcurrencyConfigOutput
- On failure, responds with
SdkError<DeleteProvisionedConcurrencyConfigError>
sourcepub fn get_account_settings(&self) -> GetAccountSettings
pub fn get_account_settings(&self) -> GetAccountSettings
Constructs a fluent builder for the GetAccountSettings
operation.
- The fluent builder takes no input, just
send
it. - On success, responds with
GetAccountSettingsOutput
with field(s):account_limit(Option<AccountLimit>)
:Limits that are related to concurrency and code storage.
account_usage(Option<AccountUsage>)
:The number of functions and amount of storage in use.
- On failure, responds with
SdkError<GetAccountSettingsError>
sourcepub fn get_alias(&self) -> GetAlias
pub fn get_alias(&self) -> GetAlias
Constructs a fluent builder for the GetAlias
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
name(impl Into<String>)
/set_name(Option<String>)
:The name of the alias.
- On success, responds with
GetAliasOutput
with field(s):alias_arn(Option<String>)
:The Amazon Resource Name (ARN) of the alias.
name(Option<String>)
:The name of the alias.
function_version(Option<String>)
:The function version that the alias invokes.
description(Option<String>)
:A description of the alias.
routing_config(Option<AliasRoutingConfiguration>)
:The routing configuration of the alias.
revision_id(Option<String>)
:A unique identifier that changes when you update the alias.
- On failure, responds with
SdkError<GetAliasError>
sourcepub fn get_code_signing_config(&self) -> GetCodeSigningConfig
pub fn get_code_signing_config(&self) -> GetCodeSigningConfig
Constructs a fluent builder for the GetCodeSigningConfig
operation.
- The fluent builder is configurable:
code_signing_config_arn(impl Into<String>)
/set_code_signing_config_arn(Option<String>)
:The The Amazon Resource Name (ARN) of the code signing configuration.
- On success, responds with
GetCodeSigningConfigOutput
with field(s):code_signing_config(Option<CodeSigningConfig>)
:The code signing configuration
- On failure, responds with
SdkError<GetCodeSigningConfigError>
sourcepub fn get_event_source_mapping(&self) -> GetEventSourceMapping
pub fn get_event_source_mapping(&self) -> GetEventSourceMapping
Constructs a fluent builder for the GetEventSourceMapping
operation.
- The fluent builder is configurable:
uuid(impl Into<String>)
/set_uuid(Option<String>)
:The identifier of the event source mapping.
- On success, responds with
GetEventSourceMappingOutput
with field(s):uuid(Option<String>)
:The identifier of the event source mapping.
starting_position(Option<EventSourcePosition>)
:The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources.
AT_TIMESTAMP
is supported only for Amazon Kinesis streams.starting_position_timestamp(Option<DateTime>)
:With
StartingPosition
set toAT_TIMESTAMP
, the time from which to start reading.batch_size(Option<i32>)
:The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).
Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.
Related setting: When you set
BatchSize
to a value greater than 10, you must setMaximumBatchingWindowInSeconds
to at least 1.maximum_batching_window_in_seconds(Option<i32>)
:The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure
MaximumBatchingWindowInSeconds
to any value from 0 seconds to 300 seconds in increments of seconds.For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and Amazon MQ event sources, the default batching window is 500 ms. Note that because you can only change
MaximumBatchingWindowInSeconds
in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.Related setting: For streams and Amazon SQS event sources, when you set
BatchSize
to a value greater than 10, you must setMaximumBatchingWindowInSeconds
to at least 1.parallelization_factor(Option<i32>)
:(Streams only) The number of batches to process concurrently from each shard. The default value is 1.
event_source_arn(Option<String>)
:The Amazon Resource Name (ARN) of the event source.
filter_criteria(Option<FilterCriteria>)
:An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.
function_arn(Option<String>)
:The ARN of the Lambda function.
last_modified(Option<DateTime>)
:The date that the event source mapping was last updated or that its state changed.
last_processing_result(Option<String>)
:The result of the last Lambda invocation of your function.
state(Option<String>)
:The state of the event source mapping. It can be one of the following:
Creating
,Enabling
,Enabled
,Disabling
,Disabled
,Updating
, orDeleting
.state_transition_reason(Option<String>)
:Indicates whether a user or Lambda made the last change to the event source mapping.
destination_config(Option<DestinationConfig>)
:(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
topics(Option<Vec<String>>)
:The name of the Kafka topic.
queues(Option<Vec<String>>)
:(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
source_access_configurations(Option<Vec<SourceAccessConfiguration>>)
:An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
self_managed_event_source(Option<SelfManagedEventSource>)
:The self-managed Apache Kafka cluster for your event source.
maximum_record_age_in_seconds(Option<i32>)
:(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.
bisect_batch_on_function_error(Option<bool>)
:(Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
maximum_retry_attempts(Option<i32>)
:(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.
tumbling_window_in_seconds(Option<i32>)
:(Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.
function_response_types(Option<Vec<FunctionResponseType>>)
:(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
amazon_managed_kafka_event_source_config(Option<AmazonManagedKafkaEventSourceConfig>)
:Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
self_managed_kafka_event_source_config(Option<SelfManagedKafkaEventSourceConfig>)
:Specific configuration settings for a self-managed Apache Kafka event source.
scaling_config(Option<ScalingConfig>)
:(Amazon SQS only) The scaling configuration for the event source. For more information, see Configuring maximum concurrency for Amazon SQS event sources.
- On failure, responds with
SdkError<GetEventSourceMappingError>
sourcepub fn get_function(&self) -> GetFunction
pub fn get_function(&self) -> GetFunction
Constructs a fluent builder for the GetFunction
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:Specify a version or alias to get details about a published version of the function.
- On success, responds with
GetFunctionOutput
with field(s):configuration(Option<FunctionConfiguration>)
:The configuration of the function or version.
code(Option<FunctionCodeLocation>)
:The deployment package of the function or version.
tags(Option<HashMap<String, String>>)
:The function’s tags.
concurrency(Option<Concurrency>)
:The function’s reserved concurrency.
- On failure, responds with
SdkError<GetFunctionError>
sourcepub fn get_function_code_signing_config(&self) -> GetFunctionCodeSigningConfig
pub fn get_function_code_signing_config(&self) -> GetFunctionCodeSigningConfig
Constructs a fluent builder for the GetFunctionCodeSigningConfig
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
- On success, responds with
GetFunctionCodeSigningConfigOutput
with field(s):code_signing_config_arn(Option<String>)
:The The Amazon Resource Name (ARN) of the code signing configuration.
function_name(Option<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.
-
- On failure, responds with
SdkError<GetFunctionCodeSigningConfigError>
sourcepub fn get_function_concurrency(&self) -> GetFunctionConcurrency
pub fn get_function_concurrency(&self) -> GetFunctionConcurrency
Constructs a fluent builder for the GetFunctionConcurrency
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
- On success, responds with
GetFunctionConcurrencyOutput
with field(s):reserved_concurrent_executions(Option<i32>)
:The number of simultaneous executions that are reserved for the function.
- On failure, responds with
SdkError<GetFunctionConcurrencyError>
sourcepub fn get_function_configuration(&self) -> GetFunctionConfiguration
pub fn get_function_configuration(&self) -> GetFunctionConfiguration
Constructs a fluent builder for the GetFunctionConfiguration
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:Specify a version or alias to get details about a published version of the function.
- On success, responds with
GetFunctionConfigurationOutput
with field(s):function_name(Option<String>)
:The name of the function.
function_arn(Option<String>)
:The function’s Amazon Resource Name (ARN).
runtime(Option<Runtime>)
:The runtime environment for the Lambda function.
role(Option<String>)
:The function’s execution role.
handler(Option<String>)
:The function that Lambda calls to begin running your function.
code_size(i64)
:The size of the function’s deployment package, in bytes.
description(Option<String>)
:The function’s description.
timeout(Option<i32>)
:The amount of time in seconds that Lambda allows a function to run before stopping it.
memory_size(Option<i32>)
:The amount of memory available to the function at runtime.
last_modified(Option<String>)
:The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
code_sha256(Option<String>)
:The SHA256 hash of the function’s deployment package.
version(Option<String>)
:The version of the Lambda function.
vpc_config(Option<VpcConfigResponse>)
:The function’s networking configuration.
dead_letter_config(Option<DeadLetterConfig>)
:The function’s dead letter queue.
environment(Option<EnvironmentResponse>)
:The function’s environment variables. Omitted from CloudTrail logs.
kms_key_arn(Option<String>)
:The KMS key that’s used to encrypt the function’s environment variables. This key is returned only if you’ve configured a customer managed key.
tracing_config(Option<TracingConfigResponse>)
:The function’s X-Ray tracing configuration.
master_arn(Option<String>)
:For Lambda@Edge functions, the ARN of the main function.
revision_id(Option<String>)
:The latest updated revision of the function or alias.
layers(Option<Vec<Layer>>)
:The function’s layers.
state(Option<State>)
:The current state of the function. When the state is
Inactive
, you can reactivate the function by invoking it.state_reason(Option<String>)
:The reason for the function’s current state.
state_reason_code(Option<StateReasonCode>)
:The reason code for the function’s current state. When the code is
Creating
, you can’t invoke or modify the function.last_update_status(Option<LastUpdateStatus>)
:The status of the last update that was performed on the function. This is first set to
Successful
after function creation completes.last_update_status_reason(Option<String>)
:The reason for the last update that was performed on the function.
last_update_status_reason_code(Option<LastUpdateStatusReasonCode>)
:The reason code for the last update that was performed on the function.
file_system_configs(Option<Vec<FileSystemConfig>>)
:Connection settings for an Amazon EFS file system.
package_type(Option<PackageType>)
:The type of deployment package. Set to
Image
for container image and setZip
for .zip file archive.image_config_response(Option<ImageConfigResponse>)
:The function’s image configuration values.
signing_profile_version_arn(Option<String>)
:The ARN of the signing profile version.
signing_job_arn(Option<String>)
:The ARN of the signing job.
architectures(Option<Vec<Architecture>>)
:The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is
x86_64
.ephemeral_storage(Option<EphemeralStorage>)
:The size of the function’s
/tmp
directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.snap_start(Option<SnapStartResponse>)
:Set
ApplyOn
toPublishedVersions
to create a snapshot of the initialized execution environment when you publish a function version. For more information, see Improving startup performance with Lambda SnapStart.runtime_version_config(Option<RuntimeVersionConfig>)
:The ARN of the runtime and any errors that occured.
- On failure, responds with
SdkError<GetFunctionConfigurationError>
sourcepub fn get_function_event_invoke_config(&self) -> GetFunctionEventInvokeConfig
pub fn get_function_event_invoke_config(&self) -> GetFunctionEventInvokeConfig
Constructs a fluent builder for the GetFunctionEventInvokeConfig
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:A version number or alias name.
- On success, responds with
GetFunctionEventInvokeConfigOutput
with field(s):last_modified(Option<DateTime>)
:The date and time that the configuration was last updated.
function_arn(Option<String>)
:The Amazon Resource Name (ARN) of the function.
maximum_retry_attempts(Option<i32>)
:The maximum number of times to retry when the function returns an error.
maximum_event_age_in_seconds(Option<i32>)
:The maximum age of a request that Lambda sends to a function for processing.
destination_config(Option<DestinationConfig>)
: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.
-
- On failure, responds with
SdkError<GetFunctionEventInvokeConfigError>
sourcepub fn get_function_url_config(&self) -> GetFunctionUrlConfig
pub fn get_function_url_config(&self) -> GetFunctionUrlConfig
Constructs a fluent builder for the GetFunctionUrlConfig
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:The alias name.
- On success, responds with
GetFunctionUrlConfigOutput
with field(s):function_url(Option<String>)
:The HTTP URL endpoint for your function.
function_arn(Option<String>)
:The Amazon Resource Name (ARN) of your function.
auth_type(Option<FunctionUrlAuthType>)
:The type of authentication that your function URL uses. Set to
AWS_IAM
if you want to restrict access to authenticated IAM users only. Set toNONE
if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.cors(Option<Cors>)
:The cross-origin resource sharing (CORS) settings for your function URL.
creation_time(Option<String>)
:When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
last_modified_time(Option<String>)
:When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
- On failure, responds with
SdkError<GetFunctionUrlConfigError>
sourcepub fn get_layer_version(&self) -> GetLayerVersion
pub fn get_layer_version(&self) -> GetLayerVersion
Constructs a fluent builder for the GetLayerVersion
operation.
- The fluent builder is configurable:
layer_name(impl Into<String>)
/set_layer_name(Option<String>)
:The name or Amazon Resource Name (ARN) of the layer.
version_number(i64)
/set_version_number(i64)
:The version number.
- On success, responds with
GetLayerVersionOutput
with field(s):content(Option<LayerVersionContentOutput>)
:Details about the layer version.
layer_arn(Option<String>)
:The ARN of the layer.
layer_version_arn(Option<String>)
:The ARN of the layer version.
description(Option<String>)
:The description of the version.
created_date(Option<String>)
:The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
version(i64)
:The version number.
compatible_runtimes(Option<Vec<Runtime>>)
:The layer’s compatible runtimes.
license_info(Option<String>)
:The layer’s software license.
compatible_architectures(Option<Vec<Architecture>>)
:A list of compatible instruction set architectures.
- On failure, responds with
SdkError<GetLayerVersionError>
sourcepub fn get_layer_version_by_arn(&self) -> GetLayerVersionByArn
pub fn get_layer_version_by_arn(&self) -> GetLayerVersionByArn
Constructs a fluent builder for the GetLayerVersionByArn
operation.
- The fluent builder is configurable:
arn(impl Into<String>)
/set_arn(Option<String>)
:The ARN of the layer version.
- On success, responds with
GetLayerVersionByArnOutput
with field(s):content(Option<LayerVersionContentOutput>)
:Details about the layer version.
layer_arn(Option<String>)
:The ARN of the layer.
layer_version_arn(Option<String>)
:The ARN of the layer version.
description(Option<String>)
:The description of the version.
created_date(Option<String>)
:The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
version(i64)
:The version number.
compatible_runtimes(Option<Vec<Runtime>>)
:The layer’s compatible runtimes.
license_info(Option<String>)
:The layer’s software license.
compatible_architectures(Option<Vec<Architecture>>)
:A list of compatible instruction set architectures.
- On failure, responds with
SdkError<GetLayerVersionByArnError>
sourcepub fn get_layer_version_policy(&self) -> GetLayerVersionPolicy
pub fn get_layer_version_policy(&self) -> GetLayerVersionPolicy
Constructs a fluent builder for the GetLayerVersionPolicy
operation.
- The fluent builder is configurable:
layer_name(impl Into<String>)
/set_layer_name(Option<String>)
:The name or Amazon Resource Name (ARN) of the layer.
version_number(i64)
/set_version_number(i64)
:The version number.
- On success, responds with
GetLayerVersionPolicyOutput
with field(s):policy(Option<String>)
:The policy document.
revision_id(Option<String>)
:A unique identifier for the current revision of the policy.
- On failure, responds with
SdkError<GetLayerVersionPolicyError>
sourcepub fn get_policy(&self) -> GetPolicy
pub fn get_policy(&self) -> GetPolicy
Constructs a fluent builder for the GetPolicy
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:Specify a version or alias to get the policy for that resource.
- On success, responds with
GetPolicyOutput
with field(s):policy(Option<String>)
:The resource-based policy.
revision_id(Option<String>)
:A unique identifier for the current revision of the policy.
- On failure, responds with
SdkError<GetPolicyError>
sourcepub fn get_provisioned_concurrency_config(
&self
) -> GetProvisionedConcurrencyConfig
pub fn get_provisioned_concurrency_config(
&self
) -> GetProvisionedConcurrencyConfig
Constructs a fluent builder for the GetProvisionedConcurrencyConfig
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:The version number or alias name.
- On success, responds with
GetProvisionedConcurrencyConfigOutput
with field(s):requested_provisioned_concurrent_executions(Option<i32>)
:The amount of provisioned concurrency requested.
available_provisioned_concurrent_executions(Option<i32>)
:The amount of provisioned concurrency available.
allocated_provisioned_concurrent_executions(Option<i32>)
:The amount of provisioned concurrency allocated. When a weighted alias is used during linear and canary deployments, this value fluctuates depending on the amount of concurrency that is provisioned for the function versions.
status(Option<ProvisionedConcurrencyStatusEnum>)
:The status of the allocation process.
status_reason(Option<String>)
:For failed allocations, the reason that provisioned concurrency could not be allocated.
last_modified(Option<String>)
:The date and time that a user last updated the configuration, in ISO 8601 format.
- On failure, responds with
SdkError<GetProvisionedConcurrencyConfigError>
sourcepub fn get_runtime_management_config(&self) -> GetRuntimeManagementConfig
pub fn get_runtime_management_config(&self) -> GetRuntimeManagementConfig
Constructs a fluent builder for the GetRuntimeManagementConfig
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:Specify a version of the function. This can be
$LATEST
or a published version number. If no value is specified, the configuration for the$LATEST
version is returned.
- On success, responds with
GetRuntimeManagementConfigOutput
with field(s):update_runtime_on(Option<UpdateRuntimeOn>)
:The current runtime update mode of the function.
runtime_version_arn(Option<String>)
:The ARN of the runtime the function is configured to use. If the runtime update mode is Manual, the ARN is returned, otherwise
null
is returned.
- On failure, responds with
SdkError<GetRuntimeManagementConfigError>
sourcepub fn invoke(&self) -> Invoke
pub fn invoke(&self) -> Invoke
Constructs a fluent builder for the Invoke
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
invocation_type(InvocationType)
/set_invocation_type(Option<InvocationType>)
: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 one is 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.
-
log_type(LogType)
/set_log_type(Option<LogType>)
:Set to
Tail
to include the execution log in the response. Applies to synchronously invoked functions only.client_context(impl Into<String>)
/set_client_context(Option<String>)
:Up to 3,583 bytes of base64-encoded data about the invoking client to pass to the function in the context object.
payload(Blob)
/set_payload(Option<Blob>)
:The JSON that you want to provide to your Lambda function as input.
You can enter the JSON directly. For example,
–payload ‘{ “key”: “value” }’
. You can also specify a file path. For example,–payload file://payload.json
.qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:Specify a version or alias to invoke a published version of the function.
- On success, responds with
InvokeOutput
with field(s):status_code(i32)
:The HTTP status code is in the 200 range for a successful request. For the
RequestResponse
invocation type, this status code is 200. For theEvent
invocation type, this status code is 202. For theDryRun
invocation type, the status code is 204.function_error(Option<String>)
:If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
log_result(Option<String>)
:The last 4 KB of the execution log, which is base64-encoded.
payload(Option<Blob>)
:The response from the function, or an error object.
executed_version(Option<String>)
:The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
- On failure, responds with
SdkError<InvokeError>
sourcepub fn invoke_async(&self) -> InvokeAsync
pub fn invoke_async(&self) -> InvokeAsync
Constructs a fluent builder for the InvokeAsync
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
invoke_args(ByteStream)
/set_invoke_args(ByteStream)
:The JSON that you want to provide to your Lambda function as input.
- On success, responds with
InvokeAsyncOutput
with field(s):status(i32)
:The status code.
- On failure, responds with
SdkError<InvokeAsyncError>
sourcepub fn list_aliases(&self) -> ListAliases
pub fn list_aliases(&self) -> ListAliases
Constructs a fluent builder for the ListAliases
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
function_version(impl Into<String>)
/set_function_version(Option<String>)
:Specify a function version to only list aliases that invoke that version.
marker(impl Into<String>)
/set_marker(Option<String>)
:Specify the pagination token that’s returned by a previous request to retrieve the next page of results.
max_items(i32)
/set_max_items(Option<i32>)
:Limit the number of aliases returned.
- On success, responds with
ListAliasesOutput
with field(s):next_marker(Option<String>)
:The pagination token that’s included if more results are available.
aliases(Option<Vec<AliasConfiguration>>)
:A list of aliases.
- On failure, responds with
SdkError<ListAliasesError>
sourcepub fn list_code_signing_configs(&self) -> ListCodeSigningConfigs
pub fn list_code_signing_configs(&self) -> ListCodeSigningConfigs
Constructs a fluent builder for the ListCodeSigningConfigs
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
marker(impl Into<String>)
/set_marker(Option<String>)
:Specify the pagination token that’s returned by a previous request to retrieve the next page of results.
max_items(i32)
/set_max_items(Option<i32>)
:Maximum number of items to return.
- On success, responds with
ListCodeSigningConfigsOutput
with field(s):next_marker(Option<String>)
:The pagination token that’s included if more results are available.
code_signing_configs(Option<Vec<CodeSigningConfig>>)
:The code signing configurations
- On failure, responds with
SdkError<ListCodeSigningConfigsError>
sourcepub fn list_event_source_mappings(&self) -> ListEventSourceMappings
pub fn list_event_source_mappings(&self) -> ListEventSourceMappings
Constructs a fluent builder for the ListEventSourceMappings
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
event_source_arn(impl Into<String>)
/set_event_source_arn(Option<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.
-
Amazon Managed Streaming for Apache Kafka – The ARN of the cluster.
-
Amazon MQ – The ARN of the broker.
-
function_name(impl Into<String>)
/set_function_name(Option<String>)
:The name of the Lambda function.
Name formats
-
Function name –
MyFunction
. -
Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:MyFunction
. -
Version or Alias ARN –
arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
. -
Partial ARN –
123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it’s limited to 64 characters in length.
-
marker(impl Into<String>)
/set_marker(Option<String>)
:A pagination token returned by a previous call.
max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of event source mappings to return. Note that ListEventSourceMappings returns a maximum of 100 items in each response, even if you set the number higher.
- On success, responds with
ListEventSourceMappingsOutput
with field(s):next_marker(Option<String>)
:A pagination token that’s returned when the response doesn’t contain all event source mappings.
event_source_mappings(Option<Vec<EventSourceMappingConfiguration>>)
:A list of event source mappings.
- On failure, responds with
SdkError<ListEventSourceMappingsError>
sourcepub fn list_function_event_invoke_configs(
&self
) -> ListFunctionEventInvokeConfigs
pub fn list_function_event_invoke_configs(
&self
) -> ListFunctionEventInvokeConfigs
Constructs a fluent builder for the ListFunctionEventInvokeConfigs
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
marker(impl Into<String>)
/set_marker(Option<String>)
:Specify the pagination token that’s returned by a previous request to retrieve the next page of results.
max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of configurations to return.
- On success, responds with
ListFunctionEventInvokeConfigsOutput
with field(s):function_event_invoke_configs(Option<Vec<FunctionEventInvokeConfig>>)
:A list of configurations.
next_marker(Option<String>)
:The pagination token that’s included if more results are available.
- On failure, responds with
SdkError<ListFunctionEventInvokeConfigsError>
sourcepub fn list_functions(&self) -> ListFunctions
pub fn list_functions(&self) -> ListFunctions
Constructs a fluent builder for the ListFunctions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
master_region(impl Into<String>)
/set_master_region(Option<String>)
:For Lambda@Edge functions, the Amazon Web Services Region of the master function. For example,
us-east-1
filters the list of functions to include only Lambda@Edge functions replicated from a master function in US East (N. Virginia). If specified, you must setFunctionVersion
toALL
.function_version(FunctionVersion)
/set_function_version(Option<FunctionVersion>)
:Set to
ALL
to include entries for all published versions of each function.marker(impl Into<String>)
/set_marker(Option<String>)
:Specify the pagination token that’s returned by a previous request to retrieve the next page of results.
max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of functions to return in the response. Note that
ListFunctions
returns a maximum of 50 items in each response, even if you set the number higher.
- On success, responds with
ListFunctionsOutput
with field(s):next_marker(Option<String>)
:The pagination token that’s included if more results are available.
functions(Option<Vec<FunctionConfiguration>>)
:A list of Lambda functions.
- On failure, responds with
SdkError<ListFunctionsError>
sourcepub fn list_functions_by_code_signing_config(
&self
) -> ListFunctionsByCodeSigningConfig
pub fn list_functions_by_code_signing_config(
&self
) -> ListFunctionsByCodeSigningConfig
Constructs a fluent builder for the ListFunctionsByCodeSigningConfig
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
code_signing_config_arn(impl Into<String>)
/set_code_signing_config_arn(Option<String>)
:The The Amazon Resource Name (ARN) of the code signing configuration.
marker(impl Into<String>)
/set_marker(Option<String>)
:Specify the pagination token that’s returned by a previous request to retrieve the next page of results.
max_items(i32)
/set_max_items(Option<i32>)
:Maximum number of items to return.
- On success, responds with
ListFunctionsByCodeSigningConfigOutput
with field(s):next_marker(Option<String>)
:The pagination token that’s included if more results are available.
function_arns(Option<Vec<String>>)
:The function ARNs.
- On failure, responds with
SdkError<ListFunctionsByCodeSigningConfigError>
sourcepub fn list_function_url_configs(&self) -> ListFunctionUrlConfigs
pub fn list_function_url_configs(&self) -> ListFunctionUrlConfigs
Constructs a fluent builder for the ListFunctionUrlConfigs
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
marker(impl Into<String>)
/set_marker(Option<String>)
:Specify the pagination token that’s returned by a previous request to retrieve the next page of results.
max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of function URLs to return in the response. Note that
ListFunctionUrlConfigs
returns a maximum of 50 items in each response, even if you set the number higher.
- On success, responds with
ListFunctionUrlConfigsOutput
with field(s):function_url_configs(Option<Vec<FunctionUrlConfig>>)
:A list of function URL configurations.
next_marker(Option<String>)
:The pagination token that’s included if more results are available.
- On failure, responds with
SdkError<ListFunctionUrlConfigsError>
sourcepub fn list_layers(&self) -> ListLayers
pub fn list_layers(&self) -> ListLayers
Constructs a fluent builder for the ListLayers
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
compatible_runtime(Runtime)
/set_compatible_runtime(Option<Runtime>)
:A runtime identifier. For example,
go1.x
.marker(impl Into<String>)
/set_marker(Option<String>)
:A pagination token returned by a previous call.
max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of layers to return.
compatible_architecture(Architecture)
/set_compatible_architecture(Option<Architecture>)
:The compatible instruction set architecture.
- On success, responds with
ListLayersOutput
with field(s):next_marker(Option<String>)
:A pagination token returned when the response doesn’t contain all layers.
layers(Option<Vec<LayersListItem>>)
:A list of function layers.
- On failure, responds with
SdkError<ListLayersError>
sourcepub fn list_layer_versions(&self) -> ListLayerVersions
pub fn list_layer_versions(&self) -> ListLayerVersions
Constructs a fluent builder for the ListLayerVersions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
compatible_runtime(Runtime)
/set_compatible_runtime(Option<Runtime>)
:A runtime identifier. For example,
go1.x
.layer_name(impl Into<String>)
/set_layer_name(Option<String>)
:The name or Amazon Resource Name (ARN) of the layer.
marker(impl Into<String>)
/set_marker(Option<String>)
:A pagination token returned by a previous call.
max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of versions to return.
compatible_architecture(Architecture)
/set_compatible_architecture(Option<Architecture>)
:The compatible instruction set architecture.
- On success, responds with
ListLayerVersionsOutput
with field(s):next_marker(Option<String>)
:A pagination token returned when the response doesn’t contain all versions.
layer_versions(Option<Vec<LayerVersionsListItem>>)
:A list of versions.
- On failure, responds with
SdkError<ListLayerVersionsError>
sourcepub fn list_provisioned_concurrency_configs(
&self
) -> ListProvisionedConcurrencyConfigs
pub fn list_provisioned_concurrency_configs(
&self
) -> ListProvisionedConcurrencyConfigs
Constructs a fluent builder for the ListProvisionedConcurrencyConfigs
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
marker(impl Into<String>)
/set_marker(Option<String>)
:Specify the pagination token that’s returned by a previous request to retrieve the next page of results.
max_items(i32)
/set_max_items(Option<i32>)
:Specify a number to limit the number of configurations returned.
- On success, responds with
ListProvisionedConcurrencyConfigsOutput
with field(s):provisioned_concurrency_configs(Option<Vec<ProvisionedConcurrencyConfigListItem>>)
:A list of provisioned concurrency configurations.
next_marker(Option<String>)
:The pagination token that’s included if more results are available.
- On failure, responds with
SdkError<ListProvisionedConcurrencyConfigsError>
Constructs a fluent builder for the ListTags
operation.
- The fluent builder is configurable:
resource(impl Into<String>)
/set_resource(Option<String>)
:The function’s Amazon Resource Name (ARN). Note: Lambda does not support adding tags to aliases or versions.
- On success, responds with
ListTagsOutput
with field(s):tags(Option<HashMap<String, String>>)
:The function’s tags.
- On failure, responds with
SdkError<ListTagsError>
sourcepub fn list_versions_by_function(&self) -> ListVersionsByFunction
pub fn list_versions_by_function(&self) -> ListVersionsByFunction
Constructs a fluent builder for the ListVersionsByFunction
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
marker(impl Into<String>)
/set_marker(Option<String>)
:Specify the pagination token that’s returned by a previous request to retrieve the next page of results.
max_items(i32)
/set_max_items(Option<i32>)
:The maximum number of versions to return. Note that
ListVersionsByFunction
returns a maximum of 50 items in each response, even if you set the number higher.
- On success, responds with
ListVersionsByFunctionOutput
with field(s):next_marker(Option<String>)
:The pagination token that’s included if more results are available.
versions(Option<Vec<FunctionConfiguration>>)
:A list of Lambda function versions.
- On failure, responds with
SdkError<ListVersionsByFunctionError>
sourcepub fn publish_layer_version(&self) -> PublishLayerVersion
pub fn publish_layer_version(&self) -> PublishLayerVersion
Constructs a fluent builder for the PublishLayerVersion
operation.
- The fluent builder is configurable:
layer_name(impl Into<String>)
/set_layer_name(Option<String>)
:The name or Amazon Resource Name (ARN) of the layer.
description(impl Into<String>)
/set_description(Option<String>)
:The description of the version.
content(LayerVersionContentInput)
/set_content(Option<LayerVersionContentInput>)
:The function layer archive.
compatible_runtimes(Vec<Runtime>)
/set_compatible_runtimes(Option<Vec<Runtime>>)
:A list of compatible function runtimes. Used for filtering with
ListLayers
andListLayerVersions
.license_info(impl Into<String>)
/set_license_info(Option<String>)
:The layer’s software license. It can be any of the following:
-
An SPDX license identifier. 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.
-
compatible_architectures(Vec<Architecture>)
/set_compatible_architectures(Option<Vec<Architecture>>)
:A list of compatible instruction set architectures.
- On success, responds with
PublishLayerVersionOutput
with field(s):content(Option<LayerVersionContentOutput>)
:Details about the layer version.
layer_arn(Option<String>)
:The ARN of the layer.
layer_version_arn(Option<String>)
:The ARN of the layer version.
description(Option<String>)
:The description of the version.
created_date(Option<String>)
:The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
version(i64)
:The version number.
compatible_runtimes(Option<Vec<Runtime>>)
:The layer’s compatible runtimes.
license_info(Option<String>)
:The layer’s software license.
compatible_architectures(Option<Vec<Architecture>>)
:A list of compatible instruction set architectures.
- On failure, responds with
SdkError<PublishLayerVersionError>
sourcepub fn publish_version(&self) -> PublishVersion
pub fn publish_version(&self) -> PublishVersion
Constructs a fluent builder for the PublishVersion
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
code_sha256(impl Into<String>)
/set_code_sha256(Option<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
.description(impl Into<String>)
/set_description(Option<String>)
:A description for the version to override the description in the function configuration.
revision_id(impl Into<String>)
/set_revision_id(Option<String>)
:Only update the function if the revision ID matches the ID that’s specified. Use this option to avoid publishing a version if the function configuration has changed since you last updated it.
- On success, responds with
PublishVersionOutput
with field(s):function_name(Option<String>)
:The name of the function.
function_arn(Option<String>)
:The function’s Amazon Resource Name (ARN).
runtime(Option<Runtime>)
:The runtime environment for the Lambda function.
role(Option<String>)
:The function’s execution role.
handler(Option<String>)
:The function that Lambda calls to begin running your function.
code_size(i64)
:The size of the function’s deployment package, in bytes.
description(Option<String>)
:The function’s description.
timeout(Option<i32>)
:The amount of time in seconds that Lambda allows a function to run before stopping it.
memory_size(Option<i32>)
:The amount of memory available to the function at runtime.
last_modified(Option<String>)
:The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
code_sha256(Option<String>)
:The SHA256 hash of the function’s deployment package.
version(Option<String>)
:The version of the Lambda function.
vpc_config(Option<VpcConfigResponse>)
:The function’s networking configuration.
dead_letter_config(Option<DeadLetterConfig>)
:The function’s dead letter queue.
environment(Option<EnvironmentResponse>)
:The function’s environment variables. Omitted from CloudTrail logs.
kms_key_arn(Option<String>)
:The KMS key that’s used to encrypt the function’s environment variables. This key is returned only if you’ve configured a customer managed key.
tracing_config(Option<TracingConfigResponse>)
:The function’s X-Ray tracing configuration.
master_arn(Option<String>)
:For Lambda@Edge functions, the ARN of the main function.
revision_id(Option<String>)
:The latest updated revision of the function or alias.
layers(Option<Vec<Layer>>)
:The function’s layers.
state(Option<State>)
:The current state of the function. When the state is
Inactive
, you can reactivate the function by invoking it.state_reason(Option<String>)
:The reason for the function’s current state.
state_reason_code(Option<StateReasonCode>)
:The reason code for the function’s current state. When the code is
Creating
, you can’t invoke or modify the function.last_update_status(Option<LastUpdateStatus>)
:The status of the last update that was performed on the function. This is first set to
Successful
after function creation completes.last_update_status_reason(Option<String>)
:The reason for the last update that was performed on the function.
last_update_status_reason_code(Option<LastUpdateStatusReasonCode>)
:The reason code for the last update that was performed on the function.
file_system_configs(Option<Vec<FileSystemConfig>>)
:Connection settings for an Amazon EFS file system.
package_type(Option<PackageType>)
:The type of deployment package. Set to
Image
for container image and setZip
for .zip file archive.image_config_response(Option<ImageConfigResponse>)
:The function’s image configuration values.
signing_profile_version_arn(Option<String>)
:The ARN of the signing profile version.
signing_job_arn(Option<String>)
:The ARN of the signing job.
architectures(Option<Vec<Architecture>>)
:The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is
x86_64
.ephemeral_storage(Option<EphemeralStorage>)
:The size of the function’s
/tmp
directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.snap_start(Option<SnapStartResponse>)
:Set
ApplyOn
toPublishedVersions
to create a snapshot of the initialized execution environment when you publish a function version. For more information, see Improving startup performance with Lambda SnapStart.runtime_version_config(Option<RuntimeVersionConfig>)
:The ARN of the runtime and any errors that occured.
- On failure, responds with
SdkError<PublishVersionError>
sourcepub fn put_function_code_signing_config(&self) -> PutFunctionCodeSigningConfig
pub fn put_function_code_signing_config(&self) -> PutFunctionCodeSigningConfig
Constructs a fluent builder for the PutFunctionCodeSigningConfig
operation.
- The fluent builder is configurable:
code_signing_config_arn(impl Into<String>)
/set_code_signing_config_arn(Option<String>)
:The The Amazon Resource Name (ARN) of the code signing configuration.
function_name(impl Into<String>)
/set_function_name(Option<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.
-
- On success, responds with
PutFunctionCodeSigningConfigOutput
with field(s):code_signing_config_arn(Option<String>)
:The The Amazon Resource Name (ARN) of the code signing configuration.
function_name(Option<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.
-
- On failure, responds with
SdkError<PutFunctionCodeSigningConfigError>
sourcepub fn put_function_concurrency(&self) -> PutFunctionConcurrency
pub fn put_function_concurrency(&self) -> PutFunctionConcurrency
Constructs a fluent builder for the PutFunctionConcurrency
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
reserved_concurrent_executions(i32)
/set_reserved_concurrent_executions(Option<i32>)
:The number of simultaneous executions to reserve for the function.
- On success, responds with
PutFunctionConcurrencyOutput
with field(s):reserved_concurrent_executions(Option<i32>)
:The number of concurrent executions that are reserved for this function. For more information, see Managing Lambda reserved concurrency.
- On failure, responds with
SdkError<PutFunctionConcurrencyError>
sourcepub fn put_function_event_invoke_config(&self) -> PutFunctionEventInvokeConfig
pub fn put_function_event_invoke_config(&self) -> PutFunctionEventInvokeConfig
Constructs a fluent builder for the PutFunctionEventInvokeConfig
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:A version number or alias name.
maximum_retry_attempts(i32)
/set_maximum_retry_attempts(Option<i32>)
:The maximum number of times to retry when the function returns an error.
maximum_event_age_in_seconds(i32)
/set_maximum_event_age_in_seconds(Option<i32>)
:The maximum age of a request that Lambda sends to a function for processing.
destination_config(DestinationConfig)
/set_destination_config(Option<DestinationConfig>)
: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.
-
- On success, responds with
PutFunctionEventInvokeConfigOutput
with field(s):last_modified(Option<DateTime>)
:The date and time that the configuration was last updated.
function_arn(Option<String>)
:The Amazon Resource Name (ARN) of the function.
maximum_retry_attempts(Option<i32>)
:The maximum number of times to retry when the function returns an error.
maximum_event_age_in_seconds(Option<i32>)
:The maximum age of a request that Lambda sends to a function for processing.
destination_config(Option<DestinationConfig>)
: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.
-
- On failure, responds with
SdkError<PutFunctionEventInvokeConfigError>
sourcepub fn put_provisioned_concurrency_config(
&self
) -> PutProvisionedConcurrencyConfig
pub fn put_provisioned_concurrency_config(
&self
) -> PutProvisionedConcurrencyConfig
Constructs a fluent builder for the PutProvisionedConcurrencyConfig
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:The version number or alias name.
provisioned_concurrent_executions(i32)
/set_provisioned_concurrent_executions(Option<i32>)
:The amount of provisioned concurrency to allocate for the version or alias.
- On success, responds with
PutProvisionedConcurrencyConfigOutput
with field(s):requested_provisioned_concurrent_executions(Option<i32>)
:The amount of provisioned concurrency requested.
available_provisioned_concurrent_executions(Option<i32>)
:The amount of provisioned concurrency available.
allocated_provisioned_concurrent_executions(Option<i32>)
:The amount of provisioned concurrency allocated. When a weighted alias is used during linear and canary deployments, this value fluctuates depending on the amount of concurrency that is provisioned for the function versions.
status(Option<ProvisionedConcurrencyStatusEnum>)
:The status of the allocation process.
status_reason(Option<String>)
:For failed allocations, the reason that provisioned concurrency could not be allocated.
last_modified(Option<String>)
:The date and time that a user last updated the configuration, in ISO 8601 format.
- On failure, responds with
SdkError<PutProvisionedConcurrencyConfigError>
sourcepub fn put_runtime_management_config(&self) -> PutRuntimeManagementConfig
pub fn put_runtime_management_config(&self) -> PutRuntimeManagementConfig
Constructs a fluent builder for the PutRuntimeManagementConfig
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:Specify a version of the function. This can be
$LATEST
or a published version number. If no value is specified, the configuration for the$LATEST
version is returned.update_runtime_on(UpdateRuntimeOn)
/set_update_runtime_on(Option<UpdateRuntimeOn>)
:Specify the runtime update mode.
-
Auto (default) - Automatically update to the most recent and secure runtime version using a Two-phase runtime version rollout. This is the best choice for most customers to ensure they always benefit from runtime updates.
-
Function update - Lambda updates the runtime of your function to the most recent and secure runtime version when you update your function. This approach synchronizes runtime updates with function deployments, giving you control over when runtime updates are applied and allowing you to detect and mitigate rare runtime update incompatibilities early. When using this setting, you need to regularly update your functions to keep their runtime up-to-date.
-
Manual - You specify a runtime version in your function configuration. The function will use this runtime version indefinitely. In the rare case where a new runtime version is incompatible with an existing function, this allows you to roll back your function to an earlier runtime version. For more information, see Roll back a runtime version.
-
runtime_version_arn(impl Into<String>)
/set_runtime_version_arn(Option<String>)
:The ARN of the runtime version you want the function to use.
This is only required if you’re using the Manual runtime update mode.
- On success, responds with
PutRuntimeManagementConfigOutput
with field(s):update_runtime_on(Option<UpdateRuntimeOn>)
:The runtime update mode.
function_arn(Option<String>)
:The ARN of the function
runtime_version_arn(Option<String>)
:The ARN of the runtime the function is configured to use. If the runtime update mode is manual, the ARN is returned, otherwise
null
is returned.
- On failure, responds with
SdkError<PutRuntimeManagementConfigError>
sourcepub fn remove_layer_version_permission(&self) -> RemoveLayerVersionPermission
pub fn remove_layer_version_permission(&self) -> RemoveLayerVersionPermission
Constructs a fluent builder for the RemoveLayerVersionPermission
operation.
- The fluent builder is configurable:
layer_name(impl Into<String>)
/set_layer_name(Option<String>)
:The name or Amazon Resource Name (ARN) of the layer.
version_number(i64)
/set_version_number(i64)
:The version number.
statement_id(impl Into<String>)
/set_statement_id(Option<String>)
:The identifier that was specified when the statement was added.
revision_id(impl Into<String>)
/set_revision_id(Option<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.
- On success, responds with
RemoveLayerVersionPermissionOutput
- On failure, responds with
SdkError<RemoveLayerVersionPermissionError>
sourcepub fn remove_permission(&self) -> RemovePermission
pub fn remove_permission(&self) -> RemovePermission
Constructs a fluent builder for the RemovePermission
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
statement_id(impl Into<String>)
/set_statement_id(Option<String>)
:Statement ID of the permission to remove.
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:Specify a version or alias to remove permissions from a published version of the function.
revision_id(impl Into<String>)
/set_revision_id(Option<String>)
:Update the policy only 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.
- On success, responds with
RemovePermissionOutput
- On failure, responds with
SdkError<RemovePermissionError>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource(impl Into<String>)
/set_resource(Option<String>)
:The function’s Amazon Resource Name (ARN).
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:A list of tags to apply to the function.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource(impl Into<String>)
/set_resource(Option<String>)
:The function’s Amazon Resource Name (ARN).
tag_keys(Vec<String>)
/set_tag_keys(Option<Vec<String>>)
:A list of tag keys to remove from the function.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
sourcepub fn update_alias(&self) -> UpdateAlias
pub fn update_alias(&self) -> UpdateAlias
Constructs a fluent builder for the UpdateAlias
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
name(impl Into<String>)
/set_name(Option<String>)
:The name of the alias.
function_version(impl Into<String>)
/set_function_version(Option<String>)
:The function version that the alias invokes.
description(impl Into<String>)
/set_description(Option<String>)
:A description of the alias.
routing_config(AliasRoutingConfiguration)
/set_routing_config(Option<AliasRoutingConfiguration>)
:The routing configuration of the alias.
revision_id(impl Into<String>)
/set_revision_id(Option<String>)
:Only update the alias if the revision ID matches the ID that’s specified. Use this option to avoid modifying an alias that has changed since you last read it.
- On success, responds with
UpdateAliasOutput
with field(s):alias_arn(Option<String>)
:The Amazon Resource Name (ARN) of the alias.
name(Option<String>)
:The name of the alias.
function_version(Option<String>)
:The function version that the alias invokes.
description(Option<String>)
:A description of the alias.
routing_config(Option<AliasRoutingConfiguration>)
:The routing configuration of the alias.
revision_id(Option<String>)
:A unique identifier that changes when you update the alias.
- On failure, responds with
SdkError<UpdateAliasError>
sourcepub fn update_code_signing_config(&self) -> UpdateCodeSigningConfig
pub fn update_code_signing_config(&self) -> UpdateCodeSigningConfig
Constructs a fluent builder for the UpdateCodeSigningConfig
operation.
- The fluent builder is configurable:
code_signing_config_arn(impl Into<String>)
/set_code_signing_config_arn(Option<String>)
:The The Amazon Resource Name (ARN) of the code signing configuration.
description(impl Into<String>)
/set_description(Option<String>)
:Descriptive name for this code signing configuration.
allowed_publishers(AllowedPublishers)
/set_allowed_publishers(Option<AllowedPublishers>)
:Signing profiles for this code signing configuration.
code_signing_policies(CodeSigningPolicies)
/set_code_signing_policies(Option<CodeSigningPolicies>)
:The code signing policy.
- On success, responds with
UpdateCodeSigningConfigOutput
with field(s):code_signing_config(Option<CodeSigningConfig>)
:The code signing configuration
- On failure, responds with
SdkError<UpdateCodeSigningConfigError>
sourcepub fn update_event_source_mapping(&self) -> UpdateEventSourceMapping
pub fn update_event_source_mapping(&self) -> UpdateEventSourceMapping
Constructs a fluent builder for the UpdateEventSourceMapping
operation.
- The fluent builder is configurable:
uuid(impl Into<String>)
/set_uuid(Option<String>)
:The identifier of the event source mapping.
function_name(impl Into<String>)
/set_function_name(Option<String>)
:The name of the Lambda function.
Name formats
-
Function name –
MyFunction
. -
Function ARN –
arn:aws:lambda:us-west-2:123456789012:function:MyFunction
. -
Version or Alias ARN –
arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
. -
Partial ARN –
123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it’s limited to 64 characters in length.
-
enabled(bool)
/set_enabled(Option<bool>)
:When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
Default: True
batch_size(i32)
/set_batch_size(Option<i32>)
:The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).
-
Amazon Kinesis – Default 100. Max 10,000.
-
Amazon DynamoDB Streams – Default 100. Max 10,000.
-
Amazon Simple Queue Service – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.
-
Amazon Managed Streaming for Apache Kafka – Default 100. Max 10,000.
-
Self-managed Apache Kafka – Default 100. Max 10,000.
-
Amazon MQ (ActiveMQ and RabbitMQ) – Default 100. Max 10,000.
-
filter_criteria(FilterCriteria)
/set_filter_criteria(Option<FilterCriteria>)
:An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.
maximum_batching_window_in_seconds(i32)
/set_maximum_batching_window_in_seconds(Option<i32>)
:The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure
MaximumBatchingWindowInSeconds
to any value from 0 seconds to 300 seconds in increments of seconds.For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and Amazon MQ event sources, the default batching window is 500 ms. Note that because you can only change
MaximumBatchingWindowInSeconds
in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.Related setting: For streams and Amazon SQS event sources, when you set
BatchSize
to a value greater than 10, you must setMaximumBatchingWindowInSeconds
to at least 1.destination_config(DestinationConfig)
/set_destination_config(Option<DestinationConfig>)
:(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
maximum_record_age_in_seconds(i32)
/set_maximum_record_age_in_seconds(Option<i32>)
:(Streams only) Discard records older than the specified age. The default value is infinite (-1).
bisect_batch_on_function_error(bool)
/set_bisect_batch_on_function_error(Option<bool>)
:(Streams only) If the function returns an error, split the batch in two and retry.
maximum_retry_attempts(i32)
/set_maximum_retry_attempts(Option<i32>)
:(Streams only) Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
parallelization_factor(i32)
/set_parallelization_factor(Option<i32>)
:(Streams only) The number of batches to process from each shard concurrently.
source_access_configurations(Vec<SourceAccessConfiguration>)
/set_source_access_configurations(Option<Vec<SourceAccessConfiguration>>)
:An array of authentication protocols or VPC components required to secure your event source.
tumbling_window_in_seconds(i32)
/set_tumbling_window_in_seconds(Option<i32>)
:(Streams only) The duration in seconds of a processing window. The range is between 1 second and 900 seconds.
function_response_types(Vec<FunctionResponseType>)
/set_function_response_types(Option<Vec<FunctionResponseType>>)
:(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
scaling_config(ScalingConfig)
/set_scaling_config(Option<ScalingConfig>)
:(Amazon SQS only) The scaling configuration for the event source. For more information, see Configuring maximum concurrency for Amazon SQS event sources.
- On success, responds with
UpdateEventSourceMappingOutput
with field(s):uuid(Option<String>)
:The identifier of the event source mapping.
starting_position(Option<EventSourcePosition>)
:The position in a stream from which to start reading. Required for Amazon Kinesis, Amazon DynamoDB, and Amazon MSK stream sources.
AT_TIMESTAMP
is supported only for Amazon Kinesis streams.starting_position_timestamp(Option<DateTime>)
:With
StartingPosition
set toAT_TIMESTAMP
, the time from which to start reading.batch_size(Option<i32>)
:The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).
Default value: Varies by service. For Amazon SQS, the default is 10. For all other services, the default is 100.
Related setting: When you set
BatchSize
to a value greater than 10, you must setMaximumBatchingWindowInSeconds
to at least 1.maximum_batching_window_in_seconds(Option<i32>)
:The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. You can configure
MaximumBatchingWindowInSeconds
to any value from 0 seconds to 300 seconds in increments of seconds.For streams and Amazon SQS event sources, the default batching window is 0 seconds. For Amazon MSK, Self-managed Apache Kafka, and Amazon MQ event sources, the default batching window is 500 ms. Note that because you can only change
MaximumBatchingWindowInSeconds
in increments of seconds, you cannot revert back to the 500 ms default batching window after you have changed it. To restore the default batching window, you must create a new event source mapping.Related setting: For streams and Amazon SQS event sources, when you set
BatchSize
to a value greater than 10, you must setMaximumBatchingWindowInSeconds
to at least 1.parallelization_factor(Option<i32>)
:(Streams only) The number of batches to process concurrently from each shard. The default value is 1.
event_source_arn(Option<String>)
:The Amazon Resource Name (ARN) of the event source.
filter_criteria(Option<FilterCriteria>)
:An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.
function_arn(Option<String>)
:The ARN of the Lambda function.
last_modified(Option<DateTime>)
:The date that the event source mapping was last updated or that its state changed.
last_processing_result(Option<String>)
:The result of the last Lambda invocation of your function.
state(Option<String>)
:The state of the event source mapping. It can be one of the following:
Creating
,Enabling
,Enabled
,Disabling
,Disabled
,Updating
, orDeleting
.state_transition_reason(Option<String>)
:Indicates whether a user or Lambda made the last change to the event source mapping.
destination_config(Option<DestinationConfig>)
:(Streams only) An Amazon SQS queue or Amazon SNS topic destination for discarded records.
topics(Option<Vec<String>>)
:The name of the Kafka topic.
queues(Option<Vec<String>>)
:(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
source_access_configurations(Option<Vec<SourceAccessConfiguration>>)
:An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
self_managed_event_source(Option<SelfManagedEventSource>)
:The self-managed Apache Kafka cluster for your event source.
maximum_record_age_in_seconds(Option<i32>)
:(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.
bisect_batch_on_function_error(Option<bool>)
:(Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
maximum_retry_attempts(Option<i32>)
:(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.
tumbling_window_in_seconds(Option<i32>)
:(Streams only) The duration in seconds of a processing window. The range is 1–900 seconds.
function_response_types(Option<Vec<FunctionResponseType>>)
:(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
amazon_managed_kafka_event_source_config(Option<AmazonManagedKafkaEventSourceConfig>)
:Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
self_managed_kafka_event_source_config(Option<SelfManagedKafkaEventSourceConfig>)
:Specific configuration settings for a self-managed Apache Kafka event source.
scaling_config(Option<ScalingConfig>)
:(Amazon SQS only) The scaling configuration for the event source. For more information, see Configuring maximum concurrency for Amazon SQS event sources.
- On failure, responds with
SdkError<UpdateEventSourceMappingError>
sourcepub fn update_function_code(&self) -> UpdateFunctionCode
pub fn update_function_code(&self) -> UpdateFunctionCode
Constructs a fluent builder for the UpdateFunctionCode
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
zip_file(Blob)
/set_zip_file(Option<Blob>)
:The base64-encoded contents of the deployment package. Amazon Web Services SDK and CLI clients handle the encoding for you. Use only with a function defined with a .zip file archive deployment package.
s3_bucket(impl Into<String>)
/set_s3_bucket(Option<String>)
:An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account. Use only with a function defined with a .zip file archive deployment package.
s3_key(impl Into<String>)
/set_s3_key(Option<String>)
:The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive deployment package.
s3_object_version(impl Into<String>)
/set_s3_object_version(Option<String>)
:For versioned objects, the version of the deployment package object to use.
image_uri(impl Into<String>)
/set_image_uri(Option<String>)
:URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.
publish(bool)
/set_publish(bool)
:Set to true to publish a new version of the function after updating the code. This has the same effect as calling
PublishVersion
separately.dry_run(bool)
/set_dry_run(bool)
:Set to true to validate the request parameters and access permissions without modifying the function code.
revision_id(impl Into<String>)
/set_revision_id(Option<String>)
:Update the function only 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.
architectures(Vec<Architecture>)
/set_architectures(Option<Vec<Architecture>>)
:The instruction set architecture that the function supports. Enter a string array with one of the valid values (arm64 or x86_64). The default value is
x86_64
.
- On success, responds with
UpdateFunctionCodeOutput
with field(s):function_name(Option<String>)
:The name of the function.
function_arn(Option<String>)
:The function’s Amazon Resource Name (ARN).
runtime(Option<Runtime>)
:The runtime environment for the Lambda function.
role(Option<String>)
:The function’s execution role.
handler(Option<String>)
:The function that Lambda calls to begin running your function.
code_size(i64)
:The size of the function’s deployment package, in bytes.
description(Option<String>)
:The function’s description.
timeout(Option<i32>)
:The amount of time in seconds that Lambda allows a function to run before stopping it.
memory_size(Option<i32>)
:The amount of memory available to the function at runtime.
last_modified(Option<String>)
:The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
code_sha256(Option<String>)
:The SHA256 hash of the function’s deployment package.
version(Option<String>)
:The version of the Lambda function.
vpc_config(Option<VpcConfigResponse>)
:The function’s networking configuration.
dead_letter_config(Option<DeadLetterConfig>)
:The function’s dead letter queue.
environment(Option<EnvironmentResponse>)
:The function’s environment variables. Omitted from CloudTrail logs.
kms_key_arn(Option<String>)
:The KMS key that’s used to encrypt the function’s environment variables. This key is returned only if you’ve configured a customer managed key.
tracing_config(Option<TracingConfigResponse>)
:The function’s X-Ray tracing configuration.
master_arn(Option<String>)
:For Lambda@Edge functions, the ARN of the main function.
revision_id(Option<String>)
:The latest updated revision of the function or alias.
layers(Option<Vec<Layer>>)
:The function’s layers.
state(Option<State>)
:The current state of the function. When the state is
Inactive
, you can reactivate the function by invoking it.state_reason(Option<String>)
:The reason for the function’s current state.
state_reason_code(Option<StateReasonCode>)
:The reason code for the function’s current state. When the code is
Creating
, you can’t invoke or modify the function.last_update_status(Option<LastUpdateStatus>)
:The status of the last update that was performed on the function. This is first set to
Successful
after function creation completes.last_update_status_reason(Option<String>)
:The reason for the last update that was performed on the function.
last_update_status_reason_code(Option<LastUpdateStatusReasonCode>)
:The reason code for the last update that was performed on the function.
file_system_configs(Option<Vec<FileSystemConfig>>)
:Connection settings for an Amazon EFS file system.
package_type(Option<PackageType>)
:The type of deployment package. Set to
Image
for container image and setZip
for .zip file archive.image_config_response(Option<ImageConfigResponse>)
:The function’s image configuration values.
signing_profile_version_arn(Option<String>)
:The ARN of the signing profile version.
signing_job_arn(Option<String>)
:The ARN of the signing job.
architectures(Option<Vec<Architecture>>)
:The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is
x86_64
.ephemeral_storage(Option<EphemeralStorage>)
:The size of the function’s
/tmp
directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.snap_start(Option<SnapStartResponse>)
:Set
ApplyOn
toPublishedVersions
to create a snapshot of the initialized execution environment when you publish a function version. For more information, see Improving startup performance with Lambda SnapStart.runtime_version_config(Option<RuntimeVersionConfig>)
:The ARN of the runtime and any errors that occured.
- On failure, responds with
SdkError<UpdateFunctionCodeError>
sourcepub fn update_function_configuration(&self) -> UpdateFunctionConfiguration
pub fn update_function_configuration(&self) -> UpdateFunctionConfiguration
Constructs a fluent builder for the UpdateFunctionConfiguration
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
role(impl Into<String>)
/set_role(Option<String>)
:The Amazon Resource Name (ARN) of the function’s execution role.
handler(impl Into<String>)
/set_handler(Option<String>)
:The name of the method within your code that Lambda calls to run your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Lambda programming model.
description(impl Into<String>)
/set_description(Option<String>)
:A description of the function.
timeout(i32)
/set_timeout(Option<i32>)
:The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see Lambda execution environment.
memory_size(i32)
/set_memory_size(Option<i32>)
:The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
vpc_config(VpcConfig)
/set_vpc_config(Option<VpcConfig>)
:For network connectivity to Amazon Web Services 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 access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.
environment(Environment)
/set_environment(Option<Environment>)
:Environment variables that are accessible from function code during execution.
runtime(Runtime)
/set_runtime(Option<Runtime>)
:The identifier of the function’s runtime. Runtime is required if the deployment package is a .zip file archive.
dead_letter_config(DeadLetterConfig)
/set_dead_letter_config(Option<DeadLetterConfig>)
: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.
kms_key_arn(impl Into<String>)
/set_kms_key_arn(Option<String>)
:The ARN of the Key Management Service (KMS) key that’s used to encrypt your function’s environment variables. If it’s not provided, Lambda uses a default service key.
tracing_config(TracingConfig)
/set_tracing_config(Option<TracingConfig>)
:Set
Mode
toActive
to sample and trace a subset of incoming requests with X-Ray.revision_id(impl Into<String>)
/set_revision_id(Option<String>)
:Update the function only 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.
layers(Vec<String>)
/set_layers(Option<Vec<String>>)
:A list of function layers to add to the function’s execution environment. Specify each layer by its ARN, including the version.
file_system_configs(Vec<FileSystemConfig>)
/set_file_system_configs(Option<Vec<FileSystemConfig>>)
:Connection settings for an Amazon EFS file system.
image_config(ImageConfig)
/set_image_config(Option<ImageConfig>)
:Container image configuration values that override the values in the container image Docker file.
ephemeral_storage(EphemeralStorage)
/set_ephemeral_storage(Option<EphemeralStorage>)
:The size of the function’s
/tmp
directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB.snap_start(SnapStart)
/set_snap_start(Option<SnapStart>)
:The function’s SnapStart setting.
- On success, responds with
UpdateFunctionConfigurationOutput
with field(s):function_name(Option<String>)
:The name of the function.
function_arn(Option<String>)
:The function’s Amazon Resource Name (ARN).
runtime(Option<Runtime>)
:The runtime environment for the Lambda function.
role(Option<String>)
:The function’s execution role.
handler(Option<String>)
:The function that Lambda calls to begin running your function.
code_size(i64)
:The size of the function’s deployment package, in bytes.
description(Option<String>)
:The function’s description.
timeout(Option<i32>)
:The amount of time in seconds that Lambda allows a function to run before stopping it.
memory_size(Option<i32>)
:The amount of memory available to the function at runtime.
last_modified(Option<String>)
:The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
code_sha256(Option<String>)
:The SHA256 hash of the function’s deployment package.
version(Option<String>)
:The version of the Lambda function.
vpc_config(Option<VpcConfigResponse>)
:The function’s networking configuration.
dead_letter_config(Option<DeadLetterConfig>)
:The function’s dead letter queue.
environment(Option<EnvironmentResponse>)
:The function’s environment variables. Omitted from CloudTrail logs.
kms_key_arn(Option<String>)
:The KMS key that’s used to encrypt the function’s environment variables. This key is returned only if you’ve configured a customer managed key.
tracing_config(Option<TracingConfigResponse>)
:The function’s X-Ray tracing configuration.
master_arn(Option<String>)
:For Lambda@Edge functions, the ARN of the main function.
revision_id(Option<String>)
:The latest updated revision of the function or alias.
layers(Option<Vec<Layer>>)
:The function’s layers.
state(Option<State>)
:The current state of the function. When the state is
Inactive
, you can reactivate the function by invoking it.state_reason(Option<String>)
:The reason for the function’s current state.
state_reason_code(Option<StateReasonCode>)
:The reason code for the function’s current state. When the code is
Creating
, you can’t invoke or modify the function.last_update_status(Option<LastUpdateStatus>)
:The status of the last update that was performed on the function. This is first set to
Successful
after function creation completes.last_update_status_reason(Option<String>)
:The reason for the last update that was performed on the function.
last_update_status_reason_code(Option<LastUpdateStatusReasonCode>)
:The reason code for the last update that was performed on the function.
file_system_configs(Option<Vec<FileSystemConfig>>)
:Connection settings for an Amazon EFS file system.
package_type(Option<PackageType>)
:The type of deployment package. Set to
Image
for container image and setZip
for .zip file archive.image_config_response(Option<ImageConfigResponse>)
:The function’s image configuration values.
signing_profile_version_arn(Option<String>)
:The ARN of the signing profile version.
signing_job_arn(Option<String>)
:The ARN of the signing job.
architectures(Option<Vec<Architecture>>)
:The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is
x86_64
.ephemeral_storage(Option<EphemeralStorage>)
:The size of the function’s
/tmp
directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.snap_start(Option<SnapStartResponse>)
:Set
ApplyOn
toPublishedVersions
to create a snapshot of the initialized execution environment when you publish a function version. For more information, see Improving startup performance with Lambda SnapStart.runtime_version_config(Option<RuntimeVersionConfig>)
:The ARN of the runtime and any errors that occured.
- On failure, responds with
SdkError<UpdateFunctionConfigurationError>
sourcepub fn update_function_event_invoke_config(
&self
) -> UpdateFunctionEventInvokeConfig
pub fn update_function_event_invoke_config(
&self
) -> UpdateFunctionEventInvokeConfig
Constructs a fluent builder for the UpdateFunctionEventInvokeConfig
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:A version number or alias name.
maximum_retry_attempts(i32)
/set_maximum_retry_attempts(Option<i32>)
:The maximum number of times to retry when the function returns an error.
maximum_event_age_in_seconds(i32)
/set_maximum_event_age_in_seconds(Option<i32>)
:The maximum age of a request that Lambda sends to a function for processing.
destination_config(DestinationConfig)
/set_destination_config(Option<DestinationConfig>)
: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.
-
- On success, responds with
UpdateFunctionEventInvokeConfigOutput
with field(s):last_modified(Option<DateTime>)
:The date and time that the configuration was last updated.
function_arn(Option<String>)
:The Amazon Resource Name (ARN) of the function.
maximum_retry_attempts(Option<i32>)
:The maximum number of times to retry when the function returns an error.
maximum_event_age_in_seconds(Option<i32>)
:The maximum age of a request that Lambda sends to a function for processing.
destination_config(Option<DestinationConfig>)
: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.
-
- On failure, responds with
SdkError<UpdateFunctionEventInvokeConfigError>
sourcepub fn update_function_url_config(&self) -> UpdateFunctionUrlConfig
pub fn update_function_url_config(&self) -> UpdateFunctionUrlConfig
Constructs a fluent builder for the UpdateFunctionUrlConfig
operation.
- The fluent builder is configurable:
function_name(impl Into<String>)
/set_function_name(Option<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.
-
qualifier(impl Into<String>)
/set_qualifier(Option<String>)
:The alias name.
auth_type(FunctionUrlAuthType)
/set_auth_type(Option<FunctionUrlAuthType>)
:The type of authentication that your function URL uses. Set to
AWS_IAM
if you want to restrict access to authenticated IAM users only. Set toNONE
if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.cors(Cors)
/set_cors(Option<Cors>)
:The cross-origin resource sharing (CORS) settings for your function URL.
- On success, responds with
UpdateFunctionUrlConfigOutput
with field(s):function_url(Option<String>)
:The HTTP URL endpoint for your function.
function_arn(Option<String>)
:The Amazon Resource Name (ARN) of your function.
auth_type(Option<FunctionUrlAuthType>)
:The type of authentication that your function URL uses. Set to
AWS_IAM
if you want to restrict access to authenticated IAM users only. Set toNONE
if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs.cors(Option<Cors>)
:The cross-origin resource sharing (CORS) settings for your function URL.
creation_time(Option<String>)
:When the function URL was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
last_modified_time(Option<String>)
:When the function URL configuration was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
- On failure, responds with
SdkError<UpdateFunctionUrlConfigError>
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
Panics
- This method will panic if the
sdk_config
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
sdk_config
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it.
sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config
.
Panics
- This method will panic if the
conf
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
conf
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it.