Class: Aws::BedrockAgentCoreControl::Types::Condition

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

Overview

Note:

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

Note:

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

A condition that determines when a gateway rule applies. Conditions can match on principals, request paths, or the requested model.

Defined Under Namespace

Classes: MatchModels, MatchPaths, MatchPrincipals, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#match_models ⇒ Types::MatchModels

A condition that matches on the model requested in an inference request.

Returns:



1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/types.rb', line 1788

class Condition < Struct.new(
  :match_principals,
  :match_paths,
  :match_models,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class MatchPrincipals < Condition; end
  class MatchPaths < Condition; end
  class MatchModels < Condition; end
  class Unknown < Condition; end
end

#match_paths ⇒ Types::MatchPaths

A condition that matches on the request path.

Returns:



1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/types.rb', line 1788

class Condition < Struct.new(
  :match_principals,
  :match_paths,
  :match_models,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class MatchPrincipals < Condition; end
  class MatchPaths < Condition; end
  class MatchModels < Condition; end
  class Unknown < Condition; end
end

#match_principals ⇒ Types::MatchPrincipals

A condition that matches on the identity of the caller making the request.



1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/types.rb', line 1788

class Condition < Struct.new(
  :match_principals,
  :match_paths,
  :match_models,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class MatchPrincipals < Condition; end
  class MatchPaths < Condition; end
  class MatchModels < Condition; end
  class Unknown < Condition; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



1788
1789
1790
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/types.rb', line 1788

def unknown
  @unknown
end