Class: Aws::Lambda::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Lambda::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-lambda/client.rb
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#add_permission(params = {}) ⇒ Types::AddPermissionResponse
Adds a permission to the resource policy associated with the specified AWS Lambda function.
-
#create_alias(params = {}) ⇒ Types::AliasConfiguration
Creates an alias that points to the specified Lambda function version.
-
#create_event_source_mapping(params = {}) ⇒ Types::EventSourceMappingConfiguration
Identifies a poll-based event source for a Lambda function.
-
#create_function(params = {}) ⇒ Types::FunctionConfiguration
Creates a new Lambda function.
-
#delete_alias(params = {}) ⇒ Struct
Deletes the specified Lambda function alias.
-
#delete_event_source_mapping(params = {}) ⇒ Types::EventSourceMappingConfiguration
Removes an event source mapping.
-
#delete_function(params = {}) ⇒ Struct
Deletes the specified Lambda function code and configuration.
-
#delete_function_concurrency(params = {}) ⇒ Struct
Removes concurrent execution limits from this function.
-
#get_account_settings(params = {}) ⇒ Types::GetAccountSettingsResponse
Returns a customer’s account settings.
-
#get_alias(params = {}) ⇒ Types::AliasConfiguration
Returns the specified alias information such as the alias ARN, description, and function version it is pointing to.
-
#get_event_source_mapping(params = {}) ⇒ Types::EventSourceMappingConfiguration
Returns configuration information for the specified event source mapping (see CreateEventSourceMapping).
-
#get_function(params = {}) ⇒ Types::GetFunctionResponse
Returns the configuration information of the Lambda function and a presigned URL link to the .zip file you uploaded with CreateFunction so you can download the .zip file.
-
#get_function_configuration(params = {}) ⇒ Types::FunctionConfiguration
Returns the configuration information of the Lambda function.
-
#get_policy(params = {}) ⇒ Types::GetPolicyResponse
Returns the resource policy associated with the specified Lambda function.
-
#invoke(params = {}) ⇒ Types::InvocationResponse
Invokes a specific Lambda function.
-
#invoke_async(params = {}) ⇒ Types::InvokeAsyncResponse
This API is deprecated.
-
#list_aliases(params = {}) ⇒ Types::ListAliasesResponse
Returns list of aliases created for a Lambda function.
-
#list_event_source_mappings(params = {}) ⇒ Types::ListEventSourceMappingsResponse
Returns a list of event source mappings you created using the ‘CreateEventSourceMapping` (see CreateEventSourceMapping).
-
#list_functions(params = {}) ⇒ Types::ListFunctionsResponse
Returns a list of your Lambda functions.
-
#list_tags(params = {}) ⇒ Types::ListTagsResponse
Returns a list of tags assigned to a function when supplied the function ARN (Amazon Resource Name).
-
#list_versions_by_function(params = {}) ⇒ Types::ListVersionsByFunctionResponse
List all versions of a function.
-
#publish_version(params = {}) ⇒ Types::FunctionConfiguration
Publishes a version of your function from the current snapshot of $LATEST.
-
#put_function_concurrency(params = {}) ⇒ Types::Concurrency
Sets a limit on the number of concurrent executions available to this function.
-
#remove_permission(params = {}) ⇒ Struct
You can remove individual permissions from an resource policy associated with a Lambda function by providing a statement ID that you provided when you added the permission.
-
#tag_resource(params = {}) ⇒ Struct
Creates a list of tags (key-value pairs) on the Lambda function.
-
#untag_resource(params = {}) ⇒ Struct
Removes tags from a Lambda function.
-
#update_alias(params = {}) ⇒ Types::AliasConfiguration
Using this API you can update the function version to which the alias points and the alias description.
-
#update_event_source_mapping(params = {}) ⇒ Types::EventSourceMappingConfiguration
You can update an event source mapping.
-
#update_function_code(params = {}) ⇒ Types::FunctionConfiguration
Updates the code for the specified Lambda function.
-
#update_function_configuration(params = {}) ⇒ Types::FunctionConfiguration
Updates the configuration parameters for the specified Lambda function by using the values provided in the request.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(*args) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(*args) ⇒ Client
Returns a new instance of Client.
153 154 155 |
# File 'lib/aws-sdk-lambda/client.rb', line 153 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3177 3178 3179 |
# File 'lib/aws-sdk-lambda/client.rb', line 3177 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3180 3181 3182 |
# File 'lib/aws-sdk-lambda/client.rb', line 3180 def errors_module Errors end |
Instance Method Details
#add_permission(params = {}) ⇒ Types::AddPermissionResponse
Adds a permission to the resource policy associated with the specified AWS Lambda function. You use resource policies to grant permissions to event sources that use push model. In a push model, event sources (such as Amazon S3 and custom applications) invoke your Lambda function. Each permission you add to the resource policy allows an event source, permission to invoke the Lambda function.
For information about the push model, see [Lambda Functions].
If you are using versioning, the permissions you add are specific to the Lambda function version or alias you specify in the ‘AddPermission` request via the `Qualifier` parameter. For more information about versioning, see [AWS Lambda Function Versioning and Aliases].
This operation requires permission for the ‘lambda:AddPermission` action.
[1]: docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html [2]: docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
307 308 309 310 |
# File 'lib/aws-sdk-lambda/client.rb', line 307 def (params = {}, = {}) req = build_request(:add_permission, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 |
# File 'lib/aws-sdk-lambda/client.rb', line 3155 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-lambda' context[:gem_version] = '1.8.0' Seahorse::Client::Request.new(handlers, context) end |
#create_alias(params = {}) ⇒ Types::AliasConfiguration
Creates an alias that points to the specified Lambda function version. For more information, see [Introduction to AWS Lambda Aliases].
Alias names are unique for a given function. This requires permission for the lambda:CreateAlias action.
[1]: docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html
379 380 381 382 |
# File 'lib/aws-sdk-lambda/client.rb', line 379 def create_alias(params = {}, = {}) req = build_request(:create_alias, params) req.send_request() end |
#create_event_source_mapping(params = {}) ⇒ Types::EventSourceMappingConfiguration
Identifies a poll-based event source for a Lambda function. It can be either an Amazon Kinesis or DynamoDB stream, or an Amazon SQS queue. AWS Lambda invokes the specified function when records are posted to the event source.
This association between a poll-based source and a Lambda function is called the event source mapping.
You provide mapping information (for example, which stream or SQS queue to read from and which Lambda function to invoke) in the request body.
Amazon Kinesis or DynamoDB stream event sources can be associated with multiple AWS Lambda functions and a given Lambda function can be associated with multiple AWS event sources. For Amazon SQS, you can configure multiple queues as event sources for a single Lambda function, but an SQS queue can be mapped only to a single Lambda function.
If you are using versioning, you can specify a specific function version or an alias via the function name parameter. For more information about versioning, see [AWS Lambda Function Versioning and Aliases].
This operation requires permission for the ‘lambda:CreateEventSourceMapping` action.
[1]: docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
519 520 521 522 |
# File 'lib/aws-sdk-lambda/client.rb', line 519 def create_event_source_mapping(params = {}, = {}) req = build_request(:create_event_source_mapping, params) req.send_request() end |
#create_function(params = {}) ⇒ Types::FunctionConfiguration
Creates a new Lambda function. The function metadata is created from the request parameters, and the code for the function is provided by a .zip file in the request body. If the function name already exists, the operation will fail. Note that the function name is case-sensitive.
If you are using versioning, you can also publish a version of the Lambda function you are creating using the ‘Publish` parameter. For more information about versioning, see [AWS Lambda Function Versioning and Aliases].
This operation requires permission for the ‘lambda:CreateFunction` action.
[1]: docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
778 779 780 781 |
# File 'lib/aws-sdk-lambda/client.rb', line 778 def create_function(params = {}, = {}) req = build_request(:create_function, params) req.send_request() end |
#delete_alias(params = {}) ⇒ Struct
Deletes the specified Lambda function alias. For more information, see [Introduction to AWS Lambda Aliases].
This requires permission for the lambda:DeleteAlias action.
[1]: docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html
825 826 827 828 |
# File 'lib/aws-sdk-lambda/client.rb', line 825 def delete_alias(params = {}, = {}) req = build_request(:delete_alias, params) req.send_request() end |
#delete_event_source_mapping(params = {}) ⇒ Types::EventSourceMappingConfiguration
Removes an event source mapping. This means AWS Lambda will no longer invoke the function for events in the associated source.
This operation requires permission for the ‘lambda:DeleteEventSourceMapping` action.
892 893 894 895 |
# File 'lib/aws-sdk-lambda/client.rb', line 892 def delete_event_source_mapping(params = {}, = {}) req = build_request(:delete_event_source_mapping, params) req.send_request() end |
#delete_function(params = {}) ⇒ Struct
Deletes the specified Lambda function code and configuration.
If you are using the versioning feature and you don’t specify a function version in your ‘DeleteFunction` request, AWS Lambda will delete the function, including all its versions, and any aliases pointing to the function versions. To delete a specific function version, you must provide the function version via the `Qualifier` parameter. For information about function versioning, see [AWS Lambda Function Versioning and Aliases].
When you delete a function the associated resource policy is also deleted. You will need to delete the event source mappings explicitly.
This operation requires permission for the ‘lambda:DeleteFunction` action.
[1]: docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
969 970 971 972 |
# File 'lib/aws-sdk-lambda/client.rb', line 969 def delete_function(params = {}, = {}) req = build_request(:delete_function, params) req.send_request() end |
#delete_function_concurrency(params = {}) ⇒ Struct
Removes concurrent execution limits from this function. For more information, see concurrent-executions.
993 994 995 996 |
# File 'lib/aws-sdk-lambda/client.rb', line 993 def delete_function_concurrency(params = {}, = {}) req = build_request(:delete_function_concurrency, params) req.send_request() end |
#get_account_settings(params = {}) ⇒ Types::GetAccountSettingsResponse
Returns a customer’s account settings.
You can use this operation to retrieve Lambda limits information, such as code size and concurrency limits. For more information about limits, see [AWS Lambda Limits]. You can also retrieve resource usage statistics, such as code storage usage and function count.
1044 1045 1046 1047 |
# File 'lib/aws-sdk-lambda/client.rb', line 1044 def get_account_settings(params = {}, = {}) req = build_request(:get_account_settings, params) req.send_request() end |
#get_alias(params = {}) ⇒ Types::AliasConfiguration
Returns the specified alias information such as the alias ARN, description, and function version it is pointing to. For more information, see [Introduction to AWS Lambda Aliases].
This requires permission for the ‘lambda:GetAlias` action.
[1]: docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html
1117 1118 1119 1120 |
# File 'lib/aws-sdk-lambda/client.rb', line 1117 def get_alias(params = {}, = {}) req = build_request(:get_alias, params) req.send_request() end |
#get_event_source_mapping(params = {}) ⇒ Types::EventSourceMappingConfiguration
Returns configuration information for the specified event source mapping (see CreateEventSourceMapping).
This operation requires permission for the ‘lambda:GetEventSourceMapping` action.
1184 1185 1186 1187 |
# File 'lib/aws-sdk-lambda/client.rb', line 1184 def get_event_source_mapping(params = {}, = {}) req = build_request(:get_event_source_mapping, params) req.send_request() end |
#get_function(params = {}) ⇒ Types::GetFunctionResponse
Returns the configuration information of the Lambda function and a presigned URL link to the .zip file you uploaded with CreateFunction so you can download the .zip file. Note that the URL is valid for up to 10 minutes. The configuration information is the same information you provided as parameters when uploading the function.
Using the optional ‘Qualifier` parameter, you can specify a specific function version for which you want this information. If you don’t specify this parameter, the API uses unqualified function ARN which return information about the ‘$LATEST` version of the Lambda function. For more information, see [AWS Lambda Function Versioning and Aliases].
This operation requires permission for the ‘lambda:GetFunction` action.
[1]: docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
1325 1326 1327 1328 |
# File 'lib/aws-sdk-lambda/client.rb', line 1325 def get_function(params = {}, = {}) req = build_request(:get_function, params) req.send_request() end |
#get_function_configuration(params = {}) ⇒ Types::FunctionConfiguration
Returns the configuration information of the Lambda function. This the same information you provided as parameters when uploading the function by using CreateFunction.
If you are using the versioning feature, you can retrieve this information for a specific function version by using the optional ‘Qualifier` parameter and specifying the function version or alias that points to it. If you don’t provide it, the API returns information about the $LATEST version of the function. For more information about versioning, see [AWS Lambda Function Versioning and Aliases].
This operation requires permission for the ‘lambda:GetFunctionConfiguration` operation.
[1]: docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
1468 1469 1470 1471 |
# File 'lib/aws-sdk-lambda/client.rb', line 1468 def get_function_configuration(params = {}, = {}) req = build_request(:get_function_configuration, params) req.send_request() end |
#get_policy(params = {}) ⇒ Types::GetPolicyResponse
Returns the resource policy associated with the specified Lambda function.
If you are using the versioning feature, you can get the resource policy associated with the specific Lambda function version or alias by specifying the version or alias name using the ‘Qualifier` parameter. For more information about versioning, see [AWS Lambda Function Versioning and Aliases].
You need permission for the ‘lambda:GetPolicy action.`
[1]: docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
1544 1545 1546 1547 |
# File 'lib/aws-sdk-lambda/client.rb', line 1544 def get_policy(params = {}, = {}) req = build_request(:get_policy, params) req.send_request() end |
#invoke(params = {}) ⇒ Types::InvocationResponse
Invokes a specific Lambda function. For an example, see [Create the Lambda Function and Test It Manually].
If you are using the versioning feature, you can invoke the specific function version by providing function version or alias name that is pointing to the function version using the ‘Qualifier` parameter in the request. If you don’t provide the ‘Qualifier` parameter, the `$LATEST` version of the Lambda function is invoked. Invocations occur at least once in response to an event and functions must be idempotent to handle this. For information about the versioning feature, see [AWS Lambda Function Versioning and Aliases].
This operation requires permission for the ‘lambda:InvokeFunction` action.
<note markdown=“1”> The ‘TooManyRequestsException` noted below will return the following: `ConcurrentInvocationLimitExceeded` will be returned if you have no functions with reserved concurrency and have exceeded your account concurrent limit or if a function without reserved concurrency exceeds the account’s unreserved concurrency limit. ‘ReservedFunctionConcurrentInvocationLimitExceeded` will be returned when a function with reserved concurrency exceeds its configured concurrency limit.
</note>
[1]: docs.aws.amazon.com/lambda/latest/dg/with-dynamodb-create-function.html#with-dbb-invoke-manually [2]: docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
1689 1690 1691 1692 |
# File 'lib/aws-sdk-lambda/client.rb', line 1689 def invoke(params = {}, = {}) req = build_request(:invoke, params) req.send_request() end |
#invoke_async(params = {}) ⇒ Types::InvokeAsyncResponse
This API is deprecated. We recommend you use ‘Invoke` API (see Invoke).
Submits an invocation request to AWS Lambda. Upon receiving the request, Lambda executes the specified function asynchronously. To see the logs generated by the Lambda function execution, see the CloudWatch Logs console.
This operation requires permission for the ‘lambda:InvokeFunction` action.
1747 1748 1749 1750 |
# File 'lib/aws-sdk-lambda/client.rb', line 1747 def invoke_async(params = {}, = {}) req = build_request(:invoke_async, params) req.send_request() end |
#list_aliases(params = {}) ⇒ Types::ListAliasesResponse
Returns list of aliases created for a Lambda function. For each alias, the response includes information such as the alias ARN, description, alias name, and the function version to which it points. For more information, see [Introduction to AWS Lambda Aliases].
This requires permission for the lambda:ListAliases action.
[1]: docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html
1832 1833 1834 1835 |
# File 'lib/aws-sdk-lambda/client.rb', line 1832 def list_aliases(params = {}, = {}) req = build_request(:list_aliases, params) req.send_request() end |
#list_event_source_mappings(params = {}) ⇒ Types::ListEventSourceMappingsResponse
Returns a list of event source mappings you created using the ‘CreateEventSourceMapping` (see CreateEventSourceMapping).
For each mapping, the API returns configuration information. You can optionally specify filters to retrieve specific event source mappings.
If you are using the versioning feature, you can get list of event source mappings for a specific Lambda function version or an alias as described in the ‘FunctionName` parameter. For information about the versioning feature, see [AWS Lambda Function Versioning and Aliases].
This operation requires permission for the ‘lambda:ListEventSourceMappings` action.
[1]: docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
1913 1914 1915 1916 |
# File 'lib/aws-sdk-lambda/client.rb', line 1913 def list_event_source_mappings(params = {}, = {}) req = build_request(:list_event_source_mappings, params) req.send_request() end |
#list_functions(params = {}) ⇒ Types::ListFunctionsResponse
Returns a list of your Lambda functions. For each function, the response includes the function configuration information. You must use GetFunction to retrieve the code for your function.
This operation requires permission for the ‘lambda:ListFunctions` action.
If you are using the versioning feature, you can list all of your functions or only ‘$LATEST` versions. For information about the versioning feature, see [AWS Lambda Function Versioning and Aliases].
[1]: docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
2031 2032 2033 2034 |
# File 'lib/aws-sdk-lambda/client.rb', line 2031 def list_functions(params = {}, = {}) req = build_request(:list_functions, params) req.send_request() end |
#list_tags(params = {}) ⇒ Types::ListTagsResponse
Returns a list of tags assigned to a function when supplied the function ARN (Amazon Resource Name). For more information on Tagging, see [Tagging Lambda Functions] in the **AWS Lambda Developer Guide**.
2073 2074 2075 2076 |
# File 'lib/aws-sdk-lambda/client.rb', line 2073 def (params = {}, = {}) req = build_request(:list_tags, params) req.send_request() end |
#list_versions_by_function(params = {}) ⇒ Types::ListVersionsByFunctionResponse
List all versions of a function. For information about the versioning feature, see [AWS Lambda Function Versioning and Aliases].
[1]: docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
2171 2172 2173 2174 |
# File 'lib/aws-sdk-lambda/client.rb', line 2171 def list_versions_by_function(params = {}, = {}) req = build_request(:list_versions_by_function, params) req.send_request() end |
#publish_version(params = {}) ⇒ Types::FunctionConfiguration
Publishes a version of your function from the current snapshot of $LATEST. That is, AWS Lambda takes a snapshot of the function code and configuration information from $LATEST and publishes a new version. The code and configuration cannot be modified after publication. For information about the versioning feature, see [AWS Lambda Function Versioning and Aliases].
[1]: docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
2309 2310 2311 2312 |
# File 'lib/aws-sdk-lambda/client.rb', line 2309 def publish_version(params = {}, = {}) req = build_request(:publish_version, params) req.send_request() end |
#put_function_concurrency(params = {}) ⇒ Types::Concurrency
Sets a limit on the number of concurrent executions available to this function. It is a subset of your account’s total concurrent execution limit per region. Note that Lambda automatically reserves a buffer of 100 concurrent executions for functions without any reserved concurrency limit. This means if your account limit is 1000, you have a total of 900 available to allocate to individual functions. For more information, see concurrent-executions.
2349 2350 2351 2352 |
# File 'lib/aws-sdk-lambda/client.rb', line 2349 def put_function_concurrency(params = {}, = {}) req = build_request(:put_function_concurrency, params) req.send_request() end |
#remove_permission(params = {}) ⇒ Struct
You can remove individual permissions from an resource policy associated with a Lambda function by providing a statement ID that you provided when you added the permission.
If you are using versioning, the permissions you remove are specific to the Lambda function version or alias you specify in the ‘AddPermission` request via the `Qualifier` parameter. For more information about versioning, see [AWS Lambda Function Versioning and Aliases].
Note that removal of a permission will cause an active event source to lose permission to the function.
You need permission for the ‘lambda:RemovePermission` action.
[1]: docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
2427 2428 2429 2430 |
# File 'lib/aws-sdk-lambda/client.rb', line 2427 def (params = {}, = {}) req = build_request(:remove_permission, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Creates a list of tags (key-value pairs) on the Lambda function. Requires the Lambda function ARN (Amazon Resource Name). If a key is specified without a value, Lambda creates a tag with the specified key and a value of null. For more information, see [Tagging Lambda Functions] in the **AWS Lambda Developer Guide**.
2475 2476 2477 2478 |
# File 'lib/aws-sdk-lambda/client.rb', line 2475 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from a Lambda function. Requires the function ARN (Amazon Resource Name). For more information, see [Tagging Lambda Functions] in the **AWS Lambda Developer Guide**.
2519 2520 2521 2522 |
# File 'lib/aws-sdk-lambda/client.rb', line 2519 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_alias(params = {}) ⇒ Types::AliasConfiguration
Using this API you can update the function version to which the alias points and the alias description. For more information, see [Introduction to AWS Lambda Aliases].
This requires permission for the lambda:UpdateAlias action.
[1]: docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html
2619 2620 2621 2622 |
# File 'lib/aws-sdk-lambda/client.rb', line 2619 def update_alias(params = {}, = {}) req = build_request(:update_alias, params) req.send_request() end |
#update_event_source_mapping(params = {}) ⇒ Types::EventSourceMappingConfiguration
You can update an event source mapping. This is useful if you want to change the parameters of the existing mapping without losing your position in the stream. You can change which function will receive the stream records, but to change the stream itself, you must create a new mapping.
If you are using the versioning feature, you can update the event source mapping to map to a specific Lambda function version or alias as described in the ‘FunctionName` parameter. For information about the versioning feature, see [AWS Lambda Function Versioning and Aliases].
If you disable the event source mapping, AWS Lambda stops polling. If you enable again, it will resume polling from the time it had stopped polling, so you don’t lose processing of any records. However, if you delete event source mapping and create it again, it will reset.
This operation requires permission for the ‘lambda:UpdateEventSourceMapping` action.
[1]: docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
2742 2743 2744 2745 |
# File 'lib/aws-sdk-lambda/client.rb', line 2742 def update_event_source_mapping(params = {}, = {}) req = build_request(:update_event_source_mapping, params) req.send_request() end |
#update_function_code(params = {}) ⇒ Types::FunctionConfiguration
Updates the code for the specified Lambda function. This operation must only be used on an existing Lambda function and cannot be used to update the function configuration.
If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see [AWS Lambda Function Versioning and Aliases].
This operation requires permission for the ‘lambda:UpdateFunctionCode` action.
[1]: docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
2917 2918 2919 2920 |
# File 'lib/aws-sdk-lambda/client.rb', line 2917 def update_function_code(params = {}, = {}) req = build_request(:update_function_code, params) req.send_request() end |
#update_function_configuration(params = {}) ⇒ Types::FunctionConfiguration
Updates the configuration parameters for the specified Lambda function by using the values provided in the request. You provide only the parameters you want to change. This operation must only be used on an existing Lambda function and cannot be used to update the function’s code.
If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see [AWS Lambda Function Versioning and Aliases].
This operation requires permission for the ‘lambda:UpdateFunctionConfiguration` action.
[1]: docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html
3146 3147 3148 3149 |
# File 'lib/aws-sdk-lambda/client.rb', line 3146 def update_function_configuration(params = {}, = {}) req = build_request(:update_function_configuration, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3170 3171 3172 |
# File 'lib/aws-sdk-lambda/client.rb', line 3170 def waiter_names [] end |