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

A description of the alias.

Returns:

  • (String)


414
415
416
417
418
419
420
421
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 414

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

#function_nameString

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.

Returns:

  • (String)


414
415
416
417
418
419
420
421
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 414

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

#function_versionString

The function version that the alias invokes.

Returns:

  • (String)


414
415
416
417
418
419
420
421
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 414

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

#nameString

The name of the alias.

Returns:

  • (String)


414
415
416
417
418
419
420
421
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 414

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

#routing_configTypes::AliasRoutingConfiguration

The routing configuration of the alias.



414
415
416
417
418
419
420
421
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 414

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