Class: Aws::BedrockAgentCore::Types::UserIdentifier

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

Overview

Note:

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

The OAuth2.0 token or user ID that was used to generate the workload access token used for initiating the user authorization flow to retrieve OAuth2.0 tokens.

Direct Known Subclasses

Unknown, UserId, UserToken

Defined Under Namespace

Classes: Unknown, UserId, UserToken

Constant Summary collapse

SENSITIVE =
[:user_token]

Instance Attribute Summary collapse

Instance Attribute Details

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



2981
2982
2983
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2981

def unknown
  @unknown
end

#user_idString

The ID of the user for whom you have retrieved a workload access token for

Returns:

  • (String)


2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2981

class UserIdentifier < Struct.new(
  :user_token,
  :user_id,
  :unknown)
  SENSITIVE = [:user_token]
  include Aws::Structure
  include Aws::Structure::Union

  class UserToken < UserIdentifier; end
  class UserId < UserIdentifier; end
  class Unknown < UserIdentifier; end
end

#user_tokenString

The OAuth2.0 token issued by the user’s identity provider

Returns:

  • (String)


2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 2981

class UserIdentifier < Struct.new(
  :user_token,
  :user_id,
  :unknown)
  SENSITIVE = [:user_token]
  include Aws::Structure
  include Aws::Structure::Union

  class UserToken < UserIdentifier; end
  class UserId < UserIdentifier; end
  class Unknown < UserIdentifier; end
end