Class: Aws::ServiceDiscovery::Types::ServiceFilter

Inherits:
Struct
  • Object
show all
Includes:
Aws::Structure
Defined in:
lib/aws-sdk-servicediscovery/types.rb

Overview

Note:

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

{
  name: "NAMESPACE_ID", # required, accepts NAMESPACE_ID
  values: ["FilterValue"], # required
  condition: "EQ", # accepts EQ, IN, BETWEEN
}

A complex type that lets you specify the namespaces that you want to list services for.

Instance Attribute Summary collapse

Instance Attribute Details

#conditionString

The operator that you want to use to determine whether a service is returned by ‘ListServices`. Valid values for `Condition` include the following:

  • ‘EQ`: When you specify `EQ`, specify one namespace ID for `Values`. `EQ` is the default condition and can be omitted.

  • ‘IN`: When you specify `IN`, specify a list of the IDs for the namespaces that you want `ListServices` to return a list of services for.

  • ‘BETWEEN`: Not applicable.

Returns:

  • (String)


2452
2453
2454
2455
2456
2457
# File 'lib/aws-sdk-servicediscovery/types.rb', line 2452

class ServiceFilter < Struct.new(
  :name,
  :values,
  :condition)
  include Aws::Structure
end

#nameString

Specify ‘NAMESPACE_ID`.

Returns:

  • (String)


2452
2453
2454
2455
2456
2457
# File 'lib/aws-sdk-servicediscovery/types.rb', line 2452

class ServiceFilter < Struct.new(
  :name,
  :values,
  :condition)
  include Aws::Structure
end

#valuesArray<String>

The values that are applicable to the value that you specify for ‘Condition` to filter the list of services.

Returns:

  • (Array<String>)


2452
2453
2454
2455
2456
2457
# File 'lib/aws-sdk-servicediscovery/types.rb', line 2452

class ServiceFilter < Struct.new(
  :name,
  :values,
  :condition)
  include Aws::Structure
end