Class: Aws::Lambda::Types::UpdateFunctionCodeRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Lambda::Types::UpdateFunctionCodeRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-lambda/types.rb
Overview
When making an API call, you may pass UpdateFunctionCodeRequest data as a hash:
{
function_name: "FunctionName", # required
zip_file: "data",
s3_bucket: "S3Bucket",
s3_key: "S3Key",
s3_object_version: "S3ObjectVersion",
publish: false,
dry_run: false,
revision_id: "String",
}
Instance Attribute Summary collapse
-
#dry_run ⇒ Boolean
This boolean parameter can be used to test your request to AWS Lambda to update the Lambda function and publish a version as an atomic operation.
-
#function_name ⇒ String
The name of the lambda function.
-
#publish ⇒ Boolean
This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.
-
#revision_id ⇒ String
An optional value you can use to ensure you are updating the latest update of the function version or alias.
-
#s3_bucket ⇒ String
Amazon S3 bucket name where the .zip file containing your deployment package is stored.
-
#s3_key ⇒ String
The Amazon S3 object (the deployment package) key name you want to upload.
-
#s3_object_version ⇒ String
The Amazon S3 object (the deployment package) version you want to upload.
-
#zip_file ⇒ String
The contents of your zip file containing your deployment package.
Instance Attribute Details
#dry_run ⇒ Boolean
This boolean parameter can be used to test your request to AWS Lambda to update the Lambda function and publish a version as an atomic operation. It will do all necessary computation and validation of your code but will not upload it or a publish a version. Each time this operation is invoked, the ‘CodeSha256` hash value of the provided code will also be computed and returned in the response.
2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 |
# File 'lib/aws-sdk-lambda/types.rb', line 2265 class UpdateFunctionCodeRequest < Struct.new( :function_name, :zip_file, :s3_bucket, :s3_key, :s3_object_version, :publish, :dry_run, :revision_id) include Aws::Structure end |
#function_name ⇒ String
The name of the lambda function.
**Name formats**
-
**Function name** - ‘MyFunction`.
-
**Function ARN** - ‘arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
-
**Partial ARN** - ‘123456789012:function:MyFunction`.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 |
# File 'lib/aws-sdk-lambda/types.rb', line 2265 class UpdateFunctionCodeRequest < Struct.new( :function_name, :zip_file, :s3_bucket, :s3_key, :s3_object_version, :publish, :dry_run, :revision_id) include Aws::Structure end |
#publish ⇒ Boolean
This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.
2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 |
# File 'lib/aws-sdk-lambda/types.rb', line 2265 class UpdateFunctionCodeRequest < Struct.new( :function_name, :zip_file, :s3_bucket, :s3_key, :s3_object_version, :publish, :dry_run, :revision_id) include Aws::Structure end |
#revision_id ⇒ String
An optional value you can use to ensure you are updating the latest update of the function version or alias. If the ‘RevisionID` you pass doesn’t match the latest ‘RevisionId` of the function or alias, it will fail with an error message, advising you to retrieve the latest function version or alias `RevisionID` using either using using either GetFunction or GetAlias.
2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 |
# File 'lib/aws-sdk-lambda/types.rb', line 2265 class UpdateFunctionCodeRequest < Struct.new( :function_name, :zip_file, :s3_bucket, :s3_key, :s3_object_version, :publish, :dry_run, :revision_id) include Aws::Structure end |
#s3_bucket ⇒ String
Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS Region where you are creating the Lambda function.
2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 |
# File 'lib/aws-sdk-lambda/types.rb', line 2265 class UpdateFunctionCodeRequest < Struct.new( :function_name, :zip_file, :s3_bucket, :s3_key, :s3_object_version, :publish, :dry_run, :revision_id) include Aws::Structure end |
#s3_key ⇒ String
The Amazon S3 object (the deployment package) key name you want to upload.
2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 |
# File 'lib/aws-sdk-lambda/types.rb', line 2265 class UpdateFunctionCodeRequest < Struct.new( :function_name, :zip_file, :s3_bucket, :s3_key, :s3_object_version, :publish, :dry_run, :revision_id) include Aws::Structure end |
#s3_object_version ⇒ String
The Amazon S3 object (the deployment package) version you want to upload.
2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 |
# File 'lib/aws-sdk-lambda/types.rb', line 2265 class UpdateFunctionCodeRequest < Struct.new( :function_name, :zip_file, :s3_bucket, :s3_key, :s3_object_version, :publish, :dry_run, :revision_id) include Aws::Structure end |
#zip_file ⇒ String
The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, see [Execution Permissions].
[1]: docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html
2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 |
# File 'lib/aws-sdk-lambda/types.rb', line 2265 class UpdateFunctionCodeRequest < Struct.new( :function_name, :zip_file, :s3_bucket, :s3_key, :s3_object_version, :publish, :dry_run, :revision_id) include Aws::Structure end |