Class: Aws::LambdaWeb::Types::RevisionWeight

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

Overview

Specifies a revision and its traffic weight for an endpoint. You can assign weights to up to two revisions to split traffic for canary or blue-green deployments.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#revision_id ⇒ String

The identifier of the revision.

Returns:

  • (String)


1847
1848
1849
1850
1851
1852
# File 'gems/aws-sdk-lambdaweb/lib/aws-sdk-lambdaweb/types.rb', line 1847

class RevisionWeight < Struct.new(
  :revision_id,
  :weight)
  SENSITIVE = []
  include Aws::Structure
end

#weight ⇒ Integer

The percentage of traffic to route to this revision. Minimum value of 1, maximum value of 100.

Returns:

  • (Integer)


1847
1848
1849
1850
1851
1852
# File 'gems/aws-sdk-lambdaweb/lib/aws-sdk-lambdaweb/types.rb', line 1847

class RevisionWeight < Struct.new(
  :revision_id,
  :weight)
  SENSITIVE = []
  include Aws::Structure
end