You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing Duration as input to an Aws::Client method, you can use a vanilla Hash:

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

An object that represents a duration of time.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#unit ⇒ String

A unit of time.

Possible values:

  • s
  • ms

Returns:

  • (String) —

    A unit of time.

#value ⇒ Integer

A number of time units.

Returns:

  • (Integer) —

    A number of time units.