openapi: 3.0.0 info: version: 2019-07-11 x-release: v4 title: Amazon QLDB Session description: The transactional data APIs for Amazon QLDB x-logo: url: https://twitter.com/awscloud/profile_image?size=original backgroundColor: "#FFFFFF" termsOfService: https://aws.amazon.com/service-terms/ contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: https://github.com/mermade/aws2openapi x-twitter: PermittedSoc license: name: Apache 2.0 License url: http://www.apache.org/licenses/ x-providerName: amazonaws.com x-serviceName: qldb-session x-origin: - contentType: application/json url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/qldb-session-2019-07-11.normal.json converter: url: https://github.com/mermade/aws2openapi version: 1.0.0 x-apisguru-direct: true x-apiClientRegistration: url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct x-apisguru-categories: - cloud x-preferred: true externalDocs: description: Amazon Web Services documentation url: https://docs.aws.amazon.com/qldb/ security: - hmac: [] paths: /#X-Amz-Target=QLDBSession.SendCommand: post: operationId: SendCommand description: Sends a command to an Amazon QLDB ledger. responses: "200": description: Success content: application/json: schema: $ref: "#/components/schemas/SendCommandResult" "480": description: BadRequestException content: application/json: schema: $ref: "#/components/schemas/BadRequestException" "481": description: InvalidSessionException content: application/json: schema: $ref: "#/components/schemas/InvalidSessionException" "482": description: OccConflictException content: application/json: schema: $ref: "#/components/schemas/OccConflictException" "483": description: RateExceededException content: application/json: schema: $ref: "#/components/schemas/RateExceededException" "484": description: LimitExceededException content: application/json: schema: $ref: "#/components/schemas/LimitExceededException" parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - QLDBSession.SendCommand requestBody: content: application/json: schema: $ref: "#/components/schemas/SendCommandRequest" required: true parameters: - $ref: "#/components/parameters/X-Amz-Content-Sha256" - $ref: "#/components/parameters/X-Amz-Date" - $ref: "#/components/parameters/X-Amz-Algorithm" - $ref: "#/components/parameters/X-Amz-Credential" - $ref: "#/components/parameters/X-Amz-Security-Token" - $ref: "#/components/parameters/X-Amz-Signature" - $ref: "#/components/parameters/X-Amz-SignedHeaders" servers: - url: http://session.qldb.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-south-1 - sa-east-1 default: us-east-1 description: The QLDB Session multi-region endpoint - url: https://session.qldb.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-south-1 - sa-east-1 default: us-east-1 description: The QLDB Session multi-region endpoint - url: http://session.qldb.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The QLDB Session endpoint for China (Beijing) and China (Ningxia) - url: https://session.qldb.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The QLDB Session endpoint for China (Beijing) and China (Ningxia) components: parameters: X-Amz-Content-Sha256: name: X-Amz-Content-Sha256 in: header required: false schema: type: string X-Amz-Date: name: X-Amz-Date in: header required: false schema: type: string X-Amz-Algorithm: name: X-Amz-Algorithm in: header required: false schema: type: string X-Amz-Credential: name: X-Amz-Credential in: header required: false schema: type: string X-Amz-Security-Token: name: X-Amz-Security-Token in: header required: false schema: type: string X-Amz-Signature: name: X-Amz-Signature in: header required: false schema: type: string X-Amz-SignedHeaders: name: X-Amz-SignedHeaders in: header required: false schema: type: string securitySchemes: hmac: type: apiKey name: Authorization in: header description: Amazon Signature authorization v4 x-amazon-apigateway-authtype: awsSigv4 schemas: SendCommandResult: type: object properties: StartSession: $ref: "#/components/schemas/StartSessionResult" StartTransaction: $ref: "#/components/schemas/StartTransactionResult" EndSession: $ref: "#/components/schemas/EndSessionResult" CommitTransaction: $ref: "#/components/schemas/CommitTransactionResult" AbortTransaction: $ref: "#/components/schemas/AbortTransactionResult" ExecuteStatement: $ref: "#/components/schemas/ExecuteStatementResult" FetchPage: $ref: "#/components/schemas/FetchPageResult" SendCommandRequest: type: object properties: SessionToken: $ref: "#/components/schemas/SessionToken" StartSession: $ref: "#/components/schemas/StartSessionRequest" StartTransaction: $ref: "#/components/schemas/StartTransactionRequest" EndSession: $ref: "#/components/schemas/EndSessionRequest" CommitTransaction: $ref: "#/components/schemas/CommitTransactionRequest" AbortTransaction: $ref: "#/components/schemas/AbortTransactionRequest" ExecuteStatement: $ref: "#/components/schemas/ExecuteStatementRequest" FetchPage: $ref: "#/components/schemas/FetchPageRequest" BadRequestException: {} InvalidSessionException: {} OccConflictException: {} RateExceededException: {} LimitExceededException: {} AbortTransactionRequest: type: object properties: {} description: Contains the details of the transaction to abort. AbortTransactionResult: type: object properties: {} description: Contains the details of the aborted transaction. CommitDigest: type: string TransactionId: type: string pattern: ^[A-Za-z-0-9]+$ minLength: 22 maxLength: 22 CommitTransactionRequest: type: object required: - TransactionId - CommitDigest properties: TransactionId: $ref: "#/components/schemas/TransactionId" CommitDigest: $ref: "#/components/schemas/CommitDigest" description: Contains the details of the transaction to commit. CommitTransactionResult: type: object properties: TransactionId: $ref: "#/components/schemas/TransactionId" CommitDigest: $ref: "#/components/schemas/CommitDigest" description: Contains the details of the committed transaction. EndSessionRequest: type: object properties: {} description: Specifies a request to end the session. EndSessionResult: type: object properties: {} description: Contains the details of the ended session. Statement: type: string minLength: 1 maxLength: 100000 StatementParameters: type: array items: $ref: "#/components/schemas/ValueHolder" ExecuteStatementRequest: type: object required: - TransactionId - Statement properties: TransactionId: $ref: "#/components/schemas/TransactionId" Statement: $ref: "#/components/schemas/Statement" Parameters: $ref: "#/components/schemas/StatementParameters" description: Specifies a request to execute a statement. Page: type: object properties: Values: $ref: "#/components/schemas/ValueHolders" NextPageToken: $ref: "#/components/schemas/PageToken" description: Contains details of the fetched page. ExecuteStatementResult: type: object properties: FirstPage: $ref: "#/components/schemas/Page" description: Contains the details of the executed statement. PageToken: type: string pattern: ^[A-Za-z-0-9+/=]+$ minLength: 4 maxLength: 1024 FetchPageRequest: type: object required: - TransactionId - NextPageToken properties: TransactionId: $ref: "#/components/schemas/TransactionId" NextPageToken: $ref: "#/components/schemas/PageToken" description: Specifies the details of the page to be fetched. FetchPageResult: type: object properties: Page: $ref: "#/components/schemas/Page" description: Contains the page that was fetched. IonBinary: type: string minLength: 1 maxLength: 131072 IonText: type: string minLength: 1 maxLength: 1048576 LedgerName: type: string pattern: (?!^.*--)(?!^[0-9]+$)(?!^-)(?!.*-$)^[A-Za-z0-9-]+$ minLength: 1 maxLength: 32 ValueHolders: type: array items: $ref: "#/components/schemas/ValueHolder" SessionToken: type: string pattern: ^[A-Za-z-0-9+/=]+$ minLength: 4 maxLength: 1024 StartSessionRequest: type: object required: - LedgerName properties: LedgerName: $ref: "#/components/schemas/LedgerName" description: Specifies a request to start a a new session. StartTransactionRequest: type: object properties: {} description: Specifies a request to start a transaction. StartSessionResult: type: object properties: SessionToken: $ref: "#/components/schemas/SessionToken" description: Contains the details of the started session. StartTransactionResult: type: object properties: TransactionId: $ref: "#/components/schemas/TransactionId" description: Contains the details of the started transaction. ValueHolder: type: object properties: IonBinary: $ref: "#/components/schemas/IonBinary" IonText: $ref: "#/components/schemas/IonText" description: A structure that can contains values in multiple encoding formats.