Class: Aws::Lambda::Types::UpdateAliasRequest

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

Overview

Note:

When making an API call, you may pass UpdateAliasRequest data as a hash:

{
  function_name: "FunctionName", # required
  name: "Alias", # required
  function_version: "Version",
  description: "Description",
  routing_config: {
    additional_version_weights: {
      "AdditionalVersion" => 1.0,
    },
  },
  revision_id: "String",
}

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString

You can change the description of the alias using this parameter.

Returns:

  • (String)


2106
2107
2108
2109
2110
2111
2112
2113
2114
# File 'lib/aws-sdk-lambda/types.rb', line 2106

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

#function_nameString

The function name for which the alias is created. 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)


2106
2107
2108
2109
2110
2111
2112
2113
2114
# File 'lib/aws-sdk-lambda/types.rb', line 2106

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

#function_versionString

Using this parameter you can change the Lambda function version to which the alias points.

Returns:

  • (String)


2106
2107
2108
2109
2110
2111
2112
2113
2114
# File 'lib/aws-sdk-lambda/types.rb', line 2106

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

#nameString

The alias name.

Returns:

  • (String)


2106
2107
2108
2109
2110
2111
2112
2113
2114
# File 'lib/aws-sdk-lambda/types.rb', line 2106

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

#revision_idString

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 or .

Returns:

  • (String)


2106
2107
2108
2109
2110
2111
2112
2113
2114
# File 'lib/aws-sdk-lambda/types.rb', line 2106

class UpdateAliasRequest < Struct.new(
  :function_name,
  :name,
  :function_version,
  :description,
  :routing_config,
  :revision_id)
  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.



2106
2107
2108
2109
2110
2111
2112
2113
2114
# File 'lib/aws-sdk-lambda/types.rb', line 2106

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