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
Description of the alias.
-
#function_name ⇒ String
Name of the Lambda function for which you want to create an alias.
-
#function_version ⇒ String
Lambda function version for which you are creating the alias.
-
#name ⇒ String
Name for the alias you are creating.
-
#routing_config ⇒ Types::AliasRoutingConfiguration
Specifies an additional version your alias can point to, allowing you to dictate what percentage of traffic will invoke each version.
Instance Attribute Details
#description ⇒ String
Description of the alias.
340 341 342 343 344 345 346 347 |
# File 'lib/aws-sdk-lambda/types.rb', line 340 class CreateAliasRequest < Struct.new( :function_name, :name, :function_version, :description, :routing_config) include Aws::Structure end |
#function_name ⇒ String
Name of the Lambda function for which you want to create an alias. Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.
340 341 342 343 344 345 346 347 |
# File 'lib/aws-sdk-lambda/types.rb', line 340 class CreateAliasRequest < Struct.new( :function_name, :name, :function_version, :description, :routing_config) include Aws::Structure end |
#function_version ⇒ String
Lambda function version for which you are creating the alias.
340 341 342 343 344 345 346 347 |
# File 'lib/aws-sdk-lambda/types.rb', line 340 class CreateAliasRequest < Struct.new( :function_name, :name, :function_version, :description, :routing_config) include Aws::Structure end |
#name ⇒ String
Name for the alias you are creating.
340 341 342 343 344 345 346 347 |
# File 'lib/aws-sdk-lambda/types.rb', line 340 class CreateAliasRequest < Struct.new( :function_name, :name, :function_version, :description, :routing_config) include Aws::Structure end |
#routing_config ⇒ Types::AliasRoutingConfiguration
Specifies an additional version your alias can point to, allowing you to dictate what percentage of traffic will invoke each version. For more information, see lambda-traffic-shifting-using-aliases.
340 341 342 343 344 345 346 347 |
# File 'lib/aws-sdk-lambda/types.rb', line 340 class CreateAliasRequest < Struct.new( :function_name, :name, :function_version, :description, :routing_config) include Aws::Structure end |