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

Class: Aws::GameLift::Types::AttributeValue

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

Overview

Note:

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

{
  s: "NonZeroAndMaxString",
  n: 1.0,
  sl: ["NonZeroAndMaxString"],
  sdm: {
    "NonZeroAndMaxString" => 1.0,
  },
}

Values for use in Player attribute type:value pairs. This object lets you specify an attribute value using any of the valid data types: string, number, string array or data map. Each AttributeValue object can use only one of the available properties.

Instance Attribute Summary collapse

Instance Attribute Details

#nFloat

For number values, expressed as double.

Returns:

  • (Float)


153
154
155
156
157
158
159
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 153

class AttributeValue < Struct.new(
  :s,
  :n,
  :sl,
  :sdm)
  include Aws::Structure
end

#sString

For single string values. Maximum string length is 100 characters.

Returns:

  • (String)


153
154
155
156
157
158
159
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 153

class AttributeValue < Struct.new(
  :s,
  :n,
  :sl,
  :sdm)
  include Aws::Structure
end

#sdmHash<String,Float>

For a map of up to 10 type:value pairs. Maximum length for each string value is 100 characters.

Returns:

  • (Hash<String,Float>)


153
154
155
156
157
158
159
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 153

class AttributeValue < Struct.new(
  :s,
  :n,
  :sl,
  :sdm)
  include Aws::Structure
end

#slArray<String>

For a list of up to 10 strings. Maximum length for each string is 100 characters. Duplicate values are not recognized; all occurrences of the repeated value after the first of a repeated value are ignored.

Returns:

  • (Array<String>)


153
154
155
156
157
158
159
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 153

class AttributeValue < Struct.new(
  :s,
  :n,
  :sl,
  :sdm)
  include Aws::Structure
end