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

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

Overview

Note:

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

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

An object that represents a duration of time.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#unitString

A unit of time.

Returns:

  • (String)


2508
2509
2510
2511
2512
2513
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 2508

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

#valueInteger

A number of time units.

Returns:

  • (Integer)


2508
2509
2510
2511
2512
2513
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 2508

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