Class: Aws::DirectoryServiceData::Types::AttributeValue

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

Overview

Note:

AttributeValue is a union - when making an API calls you must set exactly one of the members.

Note:

AttributeValue is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AttributeValue corresponding to the set member.

The data type for an attribute. Each attribute value is described as a name-value pair. The name is the AD schema name, and the value is the data itself. For a list of supported attributes, see Directory Service Data Attributes.

Direct Known Subclasses

Bool, N, S, Ss, Unknown

Defined Under Namespace

Classes: Bool, N, S, Ss, Unknown

Constant Summary collapse

SENSITIVE =
[:bool, :n, :s, :ss]

Instance Attribute Summary collapse

Instance Attribute Details

#boolBoolean

Indicates that the attribute type value is a boolean. For example:

"BOOL": true

Returns:

  • (Boolean)


144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'gems/aws-sdk-directoryservicedata/lib/aws-sdk-directoryservicedata/types.rb', line 144

class AttributeValue < Struct.new(
  :bool,
  :n,
  :s,
  :ss,
  :unknown)
  SENSITIVE = [:bool, :n, :s, :ss]
  include Aws::Structure
  include Aws::Structure::Union

  class Bool < AttributeValue; end
  class N < AttributeValue; end
  class S < AttributeValue; end
  class Ss < AttributeValue; end
  class Unknown < AttributeValue; end
end

#nInteger

Indicates that the attribute type value is a number. For example:

"N": "16"

Returns:

  • (Integer)


144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'gems/aws-sdk-directoryservicedata/lib/aws-sdk-directoryservicedata/types.rb', line 144

class AttributeValue < Struct.new(
  :bool,
  :n,
  :s,
  :ss,
  :unknown)
  SENSITIVE = [:bool, :n, :s, :ss]
  include Aws::Structure
  include Aws::Structure::Union

  class Bool < AttributeValue; end
  class N < AttributeValue; end
  class S < AttributeValue; end
  class Ss < AttributeValue; end
  class Unknown < AttributeValue; end
end

#sString

Indicates that the attribute type value is a string. For example:

"S": "S Group"

Returns:

  • (String)


144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'gems/aws-sdk-directoryservicedata/lib/aws-sdk-directoryservicedata/types.rb', line 144

class AttributeValue < Struct.new(
  :bool,
  :n,
  :s,
  :ss,
  :unknown)
  SENSITIVE = [:bool, :n, :s, :ss]
  include Aws::Structure
  include Aws::Structure::Union

  class Bool < AttributeValue; end
  class N < AttributeValue; end
  class S < AttributeValue; end
  class Ss < AttributeValue; end
  class Unknown < AttributeValue; end
end

#ssArray<String>

Indicates that the attribute type value is a string set. For example:

"SS": ["sample_service_class/host.sample.com:1234/sample_service_name_1", "sample_service_class/host.sample.com:1234/sample_service_name_2"]

Returns:

  • (Array<String>)


144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'gems/aws-sdk-directoryservicedata/lib/aws-sdk-directoryservicedata/types.rb', line 144

class AttributeValue < Struct.new(
  :bool,
  :n,
  :s,
  :ss,
  :unknown)
  SENSITIVE = [:bool, :n, :s, :ss]
  include Aws::Structure
  include Aws::Structure::Union

  class Bool < AttributeValue; end
  class N < AttributeValue; end
  class S < AttributeValue; end
  class Ss < AttributeValue; end
  class Unknown < AttributeValue; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



144
145
146
# File 'gems/aws-sdk-directoryservicedata/lib/aws-sdk-directoryservicedata/types.rb', line 144

def unknown
  @unknown
end