Class: Aws::SSMIncidents::Types::Condition

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

Overview

Note:

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

A conditional statement with which to compare a value, after a timestamp, before a timestamp, or equal to a string or integer. If multiple conditions are specified, the conditionals become an ANDed statement. If multiple values are specified for a conditional, the values are ORd.

Direct Known Subclasses

After, Before, Equals, Unknown

Defined Under Namespace

Classes: After, Before, Equals, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#afterTime

After the specified timestamp.

Returns:

  • (Time)


298
299
300
301
302
303
304
305
306
307
308
309
310
311
# File 'gems/aws-sdk-ssmincidents/lib/aws-sdk-ssmincidents/types.rb', line 298

class Condition < Struct.new(
  :after,
  :before,
  :equals,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class After < Condition; end
  class Before < Condition; end
  class Equals < Condition; end
  class Unknown < Condition; end
end

#beforeTime

Before the specified timestamp

Returns:

  • (Time)


298
299
300
301
302
303
304
305
306
307
308
309
310
311
# File 'gems/aws-sdk-ssmincidents/lib/aws-sdk-ssmincidents/types.rb', line 298

class Condition < Struct.new(
  :after,
  :before,
  :equals,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class After < Condition; end
  class Before < Condition; end
  class Equals < Condition; end
  class Unknown < Condition; end
end

#equalsTypes::AttributeValueList

The value is equal to the provided string or integer.



298
299
300
301
302
303
304
305
306
307
308
309
310
311
# File 'gems/aws-sdk-ssmincidents/lib/aws-sdk-ssmincidents/types.rb', line 298

class Condition < Struct.new(
  :after,
  :before,
  :equals,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class After < Condition; end
  class Before < Condition; end
  class Equals < Condition; end
  class Unknown < Condition; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



298
299
300
# File 'gems/aws-sdk-ssmincidents/lib/aws-sdk-ssmincidents/types.rb', line 298

def unknown
  @unknown
end