Class: Aws::QLDBSession::Types::SendCommandRequest

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

Overview

Note:

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

{
  session_token: "SessionToken",
  start_session: {
    ledger_name: "LedgerName", # required
  },
  start_transaction: {
  },
  end_session: {
  },
  commit_transaction: {
    transaction_id: "TransactionId", # required
    commit_digest: "data", # required
  },
  abort_transaction: {
  },
  execute_statement: {
    transaction_id: "TransactionId", # required
    statement: "Statement", # required
    parameters: [
      {
        ion_binary: "data",
        ion_text: "IonText",
      },
    ],
  },
  fetch_page: {
    transaction_id: "TransactionId", # required
    next_page_token: "PageToken", # required
  },
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#abort_transactionTypes::AbortTransactionRequest

Command to abort the current transaction.

Returns:

  • (Types::AbortTransactionRequest)


442
443
444
445
446
447
448
449
450
451
452
453
# File 'gems/aws-sdk-qldbsession/lib/aws-sdk-qldbsession/types.rb', line 442

class SendCommandRequest < Struct.new(
  :session_token,
  :start_session,
  :start_transaction,
  :end_session,
  :commit_transaction,
  :abort_transaction,
  :execute_statement,
  :fetch_page)
  SENSITIVE = []
  include Aws::Structure
end

#commit_transactionTypes::CommitTransactionRequest

Command to commit the specified transaction.



442
443
444
445
446
447
448
449
450
451
452
453
# File 'gems/aws-sdk-qldbsession/lib/aws-sdk-qldbsession/types.rb', line 442

class SendCommandRequest < Struct.new(
  :session_token,
  :start_session,
  :start_transaction,
  :end_session,
  :commit_transaction,
  :abort_transaction,
  :execute_statement,
  :fetch_page)
  SENSITIVE = []
  include Aws::Structure
end

#end_sessionTypes::EndSessionRequest

Command to end the current session.

Returns:

  • (Types::EndSessionRequest)


442
443
444
445
446
447
448
449
450
451
452
453
# File 'gems/aws-sdk-qldbsession/lib/aws-sdk-qldbsession/types.rb', line 442

class SendCommandRequest < Struct.new(
  :session_token,
  :start_session,
  :start_transaction,
  :end_session,
  :commit_transaction,
  :abort_transaction,
  :execute_statement,
  :fetch_page)
  SENSITIVE = []
  include Aws::Structure
end

#execute_statementTypes::ExecuteStatementRequest

Command to execute a statement in the specified transaction.



442
443
444
445
446
447
448
449
450
451
452
453
# File 'gems/aws-sdk-qldbsession/lib/aws-sdk-qldbsession/types.rb', line 442

class SendCommandRequest < Struct.new(
  :session_token,
  :start_session,
  :start_transaction,
  :end_session,
  :commit_transaction,
  :abort_transaction,
  :execute_statement,
  :fetch_page)
  SENSITIVE = []
  include Aws::Structure
end

#fetch_pageTypes::FetchPageRequest

Command to fetch a page.



442
443
444
445
446
447
448
449
450
451
452
453
# File 'gems/aws-sdk-qldbsession/lib/aws-sdk-qldbsession/types.rb', line 442

class SendCommandRequest < Struct.new(
  :session_token,
  :start_session,
  :start_transaction,
  :end_session,
  :commit_transaction,
  :abort_transaction,
  :execute_statement,
  :fetch_page)
  SENSITIVE = []
  include Aws::Structure
end

#session_tokenString

Specifies the session token for the current command. A session token is constant throughout the life of the session.

To obtain a session token, run the StartSession command. This SessionToken is required for every subsequent command that is issued during the current session.

Returns:

  • (String)


442
443
444
445
446
447
448
449
450
451
452
453
# File 'gems/aws-sdk-qldbsession/lib/aws-sdk-qldbsession/types.rb', line 442

class SendCommandRequest < Struct.new(
  :session_token,
  :start_session,
  :start_transaction,
  :end_session,
  :commit_transaction,
  :abort_transaction,
  :execute_statement,
  :fetch_page)
  SENSITIVE = []
  include Aws::Structure
end

#start_sessionTypes::StartSessionRequest

Command to start a new session. A session token is obtained as part of the response.



442
443
444
445
446
447
448
449
450
451
452
453
# File 'gems/aws-sdk-qldbsession/lib/aws-sdk-qldbsession/types.rb', line 442

class SendCommandRequest < Struct.new(
  :session_token,
  :start_session,
  :start_transaction,
  :end_session,
  :commit_transaction,
  :abort_transaction,
  :execute_statement,
  :fetch_page)
  SENSITIVE = []
  include Aws::Structure
end

#start_transactionTypes::StartTransactionRequest

Command to start a new transaction.

Returns:

  • (Types::StartTransactionRequest)


442
443
444
445
446
447
448
449
450
451
452
453
# File 'gems/aws-sdk-qldbsession/lib/aws-sdk-qldbsession/types.rb', line 442

class SendCommandRequest < Struct.new(
  :session_token,
  :start_session,
  :start_transaction,
  :end_session,
  :commit_transaction,
  :abort_transaction,
  :execute_statement,
  :fetch_page)
  SENSITIVE = []
  include Aws::Structure
end