Class: Aws::QBusiness::Types::Principal

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

Overview

Note:

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

Provides user and group information used for filtering documents to use for generating Amazon Q Business conversation responses.

Direct Known Subclasses

Group, Unknown, User

Defined Under Namespace

Classes: Group, Unknown, User

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#groupTypes::PrincipalGroup

The group associated with the principal.



5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
# File 'gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/types.rb', line 5086

class Principal < Struct.new(
  :user,
  :group,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class User < Principal; end
  class Group < Principal; end
  class Unknown < Principal; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



5086
5087
5088
# File 'gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/types.rb', line 5086

def unknown
  @unknown
end

#userTypes::PrincipalUser

The user associated with the principal.



5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
# File 'gems/aws-sdk-qbusiness/lib/aws-sdk-qbusiness/types.rb', line 5086

class Principal < Struct.new(
  :user,
  :group,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class User < Principal; end
  class Group < Principal; end
  class Unknown < Principal; end
end