Class: Aws::Lambda::Types::CreateAliasRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Lambda::Types::CreateAliasRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-lambda/types.rb
Overview
When making an API call, you may pass CreateAliasRequest data as a hash:
{
function_name: "FunctionName", # required
name: "Alias", # required
function_version: "Version", # required
description: "Description",
routing_config: {
additional_version_weights: {
"AdditionalVersion" => 1.0,
},
},
}
Instance Attribute Summary collapse
-
#description ⇒ String
A description of the alias.
-
#function_name ⇒ String
The name of the lambda function.
-
#function_version ⇒ String
The function version that the alias invokes.
-
#name ⇒ String
The name of the alias.
-
#routing_config ⇒ Types::AliasRoutingConfiguration
The [routing configuration] of the alias.
Instance Attribute Details
#description ⇒ String
A description of the alias.
390 391 392 393 394 395 396 397 |
# File 'lib/aws-sdk-lambda/types.rb', line 390 class CreateAliasRequest < Struct.new( :function_name, :name, :function_version, :description, :routing_config) 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.
390 391 392 393 394 395 396 397 |
# File 'lib/aws-sdk-lambda/types.rb', line 390 class CreateAliasRequest < Struct.new( :function_name, :name, :function_version, :description, :routing_config) include Aws::Structure end |
#function_version ⇒ String
The function version that the alias invokes.
390 391 392 393 394 395 396 397 |
# File 'lib/aws-sdk-lambda/types.rb', line 390 class CreateAliasRequest < Struct.new( :function_name, :name, :function_version, :description, :routing_config) include Aws::Structure end |
#name ⇒ String
The name of the alias.
390 391 392 393 394 395 396 397 |
# File 'lib/aws-sdk-lambda/types.rb', line 390 class CreateAliasRequest < Struct.new( :function_name, :name, :function_version, :description, :routing_config) include Aws::Structure end |
#routing_config ⇒ Types::AliasRoutingConfiguration
The [routing configuration] of the alias.
[1]: docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html
390 391 392 393 394 395 396 397 |
# File 'lib/aws-sdk-lambda/types.rb', line 390 class CreateAliasRequest < Struct.new( :function_name, :name, :function_version, :description, :routing_config) include Aws::Structure end |