You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Lambda::Types::CreateAliasRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb

Overview

Note:

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

Instance Attribute Details

#descriptionString

Description of the alias.

Returns:

  • (String)


325
326
327
328
329
330
331
332
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 325

class CreateAliasRequest < Struct.new(
  :function_name,
  :name,
  :function_version,
  :description,
  :routing_config)
  include Aws::Structure
end

#function_nameString

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.

Returns:

  • (String)


325
326
327
328
329
330
331
332
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 325

class CreateAliasRequest < Struct.new(
  :function_name,
  :name,
  :function_version,
  :description,
  :routing_config)
  include Aws::Structure
end

#function_versionString

Lambda function version for which you are creating the alias.

Returns:

  • (String)


325
326
327
328
329
330
331
332
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 325

class CreateAliasRequest < Struct.new(
  :function_name,
  :name,
  :function_version,
  :description,
  :routing_config)
  include Aws::Structure
end

#nameString

Name for the alias you are creating.

Returns:

  • (String)


325
326
327
328
329
330
331
332
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 325

class CreateAliasRequest < Struct.new(
  :function_name,
  :name,
  :function_version,
  :description,
  :routing_config)
  include Aws::Structure
end

#routing_configTypes::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.



325
326
327
328
329
330
331
332
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 325

class CreateAliasRequest < Struct.new(
  :function_name,
  :name,
  :function_version,
  :description,
  :routing_config)
  include Aws::Structure
end