Class: Aws::AppMesh::Types::Duration

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

Overview

Note:

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

{
  unit: "ms", # accepts ms, s
  value: 1,
}

An object that represents a duration of time.

Instance Attribute Summary collapse

Instance Attribute Details

#unitString

A unit of time.

Returns:

  • (String)


1984
1985
1986
1987
1988
# File 'lib/aws-sdk-appmesh/types.rb', line 1984

class Duration < Struct.new(
  :unit,
  :value)
  include Aws::Structure
end

#valueInteger

A number of time units.

Returns:

  • (Integer)


1984
1985
1986
1987
1988
# File 'lib/aws-sdk-appmesh/types.rb', line 1984

class Duration < Struct.new(
  :unit,
  :value)
  include Aws::Structure
end