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

Class: Aws::Backup::Types::Condition

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

Overview

Note:

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

{
  condition_type: "STRINGEQUALS", # required, accepts STRINGEQUALS
  condition_key: "ConditionKey", # required
  condition_value: "ConditionValue", # required
}

Contains an array of triplets made up of a condition type (such as StringEquals), a key, and a value. Conditions are used to filter resources in a selection that is assigned to a backup plan.

Instance Attribute Summary collapse

Instance Attribute Details

#condition_keyString

The key in a key-value pair. For example, in "ec2:ResourceTag/Department": "accounting", "ec2:ResourceTag/Department" is the key.

Returns:

  • (String)


665
666
667
668
669
670
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/types.rb', line 665

class Condition < Struct.new(
  :condition_type,
  :condition_key,
  :condition_value)
  include Aws::Structure
end

#condition_typeString

An operation, such as StringEquals, that is applied to a key-value pair used to filter resources in a selection.

Returns:

  • (String)


665
666
667
668
669
670
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/types.rb', line 665

class Condition < Struct.new(
  :condition_type,
  :condition_key,
  :condition_value)
  include Aws::Structure
end

#condition_valueString

The value in a key-value pair. For example, in "ec2:ResourceTag/Department": "accounting", "accounting" is the value.

Returns:

  • (String)


665
666
667
668
669
670
# File 'gems/aws-sdk-backup/lib/aws-sdk-backup/types.rb', line 665

class Condition < Struct.new(
  :condition_type,
  :condition_key,
  :condition_value)
  include Aws::Structure
end