From 2ca5aea319c1594db34dbce022890ef477deca06 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 21 May 2020 07:23:22 +0200 Subject: Add EBS API. --- Makefile.am | 1 + aws/api/README | 2 +- aws/api/ebs-2019-11-02.normal.json | 359 +++++++++++++++++++++++++++++++++++++ 3 files changed, 361 insertions(+), 1 deletion(-) create mode 100644 aws/api/ebs-2019-11-02.normal.json diff --git a/Makefile.am b/Makefile.am index ae754e1..2ba82f5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -29,6 +29,7 @@ GUILE_SOURCES = \ JSON_SOURCES = \ aws/api/cloudfront-2019-03-26.normal.json \ + aws/api/ebs-2019-11-02.normal.json \ aws/api/ecs-2014-11-13.normal.json \ aws/api/ec2-2016-11-15.normal.json \ aws/api/s3-2006-03-01.normal.json diff --git a/aws/api/README b/aws/api/README index b196848..192adcc 100644 --- a/aws/api/README +++ b/aws/api/README @@ -3,4 +3,4 @@ SDK for JavaScript: https://github.com/aws/aws-sdk-js/tree/master/apis They are covered under the Apache 2.0 license. -The ECS API was taken from v2.680.0. +The ECS and EBS APIs were taken from v2.680.0. diff --git a/aws/api/ebs-2019-11-02.normal.json b/aws/api/ebs-2019-11-02.normal.json new file mode 100644 index 0000000..7fe161f --- /dev/null +++ b/aws/api/ebs-2019-11-02.normal.json @@ -0,0 +1,359 @@ +{ + "version": "2.0", + "metadata": { + "apiVersion": "2019-11-02", + "endpointPrefix": "ebs", + "jsonVersion": "1.1", + "protocol": "rest-json", + "serviceAbbreviation": "Amazon EBS", + "serviceFullName": "Amazon Elastic Block Store", + "serviceId": "EBS", + "signatureVersion": "v4", + "uid": "ebs-2019-11-02" + }, + "operations": { + "GetSnapshotBlock": { + "name": "GetSnapshotBlock", + "http": { + "method": "GET", + "requestUri": "/snapshots/{snapshotId}/blocks/{blockIndex}" + }, + "input": { + "shape": "GetSnapshotBlockRequest" + }, + "output": { + "shape": "GetSnapshotBlockResponse" + }, + "errors": [ + { + "shape": "ValidationException" + }, + { + "shape": "ResourceNotFoundException" + } + ], + "documentation": "

Returns the data in a block in an Amazon Elastic Block Store snapshot.

" + }, + "ListChangedBlocks": { + "name": "ListChangedBlocks", + "http": { + "method": "GET", + "requestUri": "/snapshots/{secondSnapshotId}/changedblocks" + }, + "input": { + "shape": "ListChangedBlocksRequest" + }, + "output": { + "shape": "ListChangedBlocksResponse" + }, + "errors": [ + { + "shape": "ValidationException" + }, + { + "shape": "ResourceNotFoundException" + } + ], + "documentation": "

Returns the block indexes and block tokens for blocks that are different between two Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.

" + }, + "ListSnapshotBlocks": { + "name": "ListSnapshotBlocks", + "http": { + "method": "GET", + "requestUri": "/snapshots/{snapshotId}/blocks" + }, + "input": { + "shape": "ListSnapshotBlocksRequest" + }, + "output": { + "shape": "ListSnapshotBlocksResponse" + }, + "errors": [ + { + "shape": "ValidationException" + }, + { + "shape": "ResourceNotFoundException" + } + ], + "documentation": "

Returns the block indexes and block tokens for blocks in an Amazon Elastic Block Store snapshot.

" + } + }, + "shapes": { + "Block": { + "type": "structure", + "members": { + "BlockIndex": { + "shape": "BlockIndex", + "documentation": "

The block index.

" + }, + "BlockToken": { + "shape": "BlockToken", + "documentation": "

The block token for the block index.

" + } + }, + "documentation": "

A block of data in an Amazon Elastic Block Store snapshot.

" + }, + "BlockData": { + "type": "blob", + "sensitive": true, + "streaming": true + }, + "BlockIndex": { + "type": "integer" + }, + "BlockSize": { + "type": "integer" + }, + "BlockToken": { + "type": "string", + "max": 256, + "pattern": "^[A-Za-z0-9+/=]+$" + }, + "Blocks": { + "type": "list", + "member": { + "shape": "Block" + }, + "sensitive": true + }, + "ChangedBlock": { + "type": "structure", + "members": { + "BlockIndex": { + "shape": "BlockIndex", + "documentation": "

The block index.

" + }, + "FirstBlockToken": { + "shape": "BlockToken", + "documentation": "

The block token for the block index of the FirstSnapshotId specified in the ListChangedBlocks operation. This value is absent if the first snapshot does not have the changed block that is on the second snapshot.

" + }, + "SecondBlockToken": { + "shape": "BlockToken", + "documentation": "

The block token for the block index of the SecondSnapshotId specified in the ListChangedBlocks operation.

" + } + }, + "documentation": "

A block of data in an Amazon Elastic Block Store snapshot that is different from another snapshot of the same volume/snapshot lineage.

", + "sensitive": true + }, + "ChangedBlocks": { + "type": "list", + "member": { + "shape": "ChangedBlock" + } + }, + "Checksum": { + "type": "string", + "max": 64 + }, + "ChecksumAlgorithm": { + "type": "string", + "enum": [ + "SHA256" + ], + "max": 32 + }, + "DataLength": { + "type": "integer" + }, + "GetSnapshotBlockRequest": { + "type": "structure", + "required": [ + "SnapshotId", + "BlockIndex", + "BlockToken" + ], + "members": { + "SnapshotId": { + "shape": "SnapshotId", + "documentation": "

The ID of the snapshot containing the block from which to get data.

", + "location": "uri", + "locationName": "snapshotId" + }, + "BlockIndex": { + "shape": "BlockIndex", + "documentation": "

The block index of the block from which to get data.

Obtain the BlockIndex by running the ListChangedBlocks or ListSnapshotBlocks operations.

", + "location": "uri", + "locationName": "blockIndex" + }, + "BlockToken": { + "shape": "BlockToken", + "documentation": "

The block token of the block from which to get data.

Obtain the BlockToken by running the ListChangedBlocks or ListSnapshotBlocks operations.

", + "location": "querystring", + "locationName": "blockToken" + } + } + }, + "GetSnapshotBlockResponse": { + "type": "structure", + "members": { + "DataLength": { + "shape": "DataLength", + "documentation": "

The size of the data in the block.

", + "location": "header", + "locationName": "x-amz-Data-Length" + }, + "BlockData": { + "shape": "BlockData", + "documentation": "

The data content of the block.

" + }, + "Checksum": { + "shape": "Checksum", + "documentation": "

The checksum generated for the block, which is Base64 encoded.

", + "location": "header", + "locationName": "x-amz-Checksum" + }, + "ChecksumAlgorithm": { + "shape": "ChecksumAlgorithm", + "documentation": "

The algorithm used to generate the checksum for the block, such as SHA256.

", + "location": "header", + "locationName": "x-amz-Checksum-Algorithm" + } + }, + "payload": "BlockData" + }, + "ListChangedBlocksRequest": { + "type": "structure", + "required": [ + "SecondSnapshotId" + ], + "members": { + "FirstSnapshotId": { + "shape": "SnapshotId", + "documentation": "

The ID of the first snapshot to use for the comparison.

The FirstSnapshotID parameter must be specified with a SecondSnapshotId parameter; otherwise, an error occurs.

", + "location": "querystring", + "locationName": "firstSnapshotId" + }, + "SecondSnapshotId": { + "shape": "SnapshotId", + "documentation": "

The ID of the second snapshot to use for the comparison.

The SecondSnapshotId parameter must be specified with a FirstSnapshotID parameter; otherwise, an error occurs.

", + "location": "uri", + "locationName": "secondSnapshotId" + }, + "NextToken": { + "shape": "PageToken", + "documentation": "

The token to request the next page of results.

", + "location": "querystring", + "locationName": "pageToken" + }, + "MaxResults": { + "shape": "MaxResults", + "documentation": "

The number of results to return.

", + "location": "querystring", + "locationName": "maxResults" + }, + "StartingBlockIndex": { + "shape": "BlockIndex", + "documentation": "

The block index from which the comparison should start.

The list in the response will start from this block index or the next valid block index in the snapshots.

", + "location": "querystring", + "locationName": "startingBlockIndex" + } + } + }, + "ListChangedBlocksResponse": { + "type": "structure", + "members": { + "ChangedBlocks": { + "shape": "ChangedBlocks", + "documentation": "

An array of objects containing information about the changed blocks.

" + }, + "ExpiryTime": { + "shape": "TimeStamp", + "documentation": "

The time when the BlockToken expires.

" + }, + "VolumeSize": { + "shape": "VolumeSize", + "documentation": "

The size of the volume in GB.

" + }, + "BlockSize": { + "shape": "BlockSize", + "documentation": "

The size of the block.

" + }, + "NextToken": { + "shape": "PageToken", + "documentation": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

" + } + } + }, + "ListSnapshotBlocksRequest": { + "type": "structure", + "required": [ + "SnapshotId" + ], + "members": { + "SnapshotId": { + "shape": "SnapshotId", + "documentation": "

The ID of the snapshot from which to get block indexes and block tokens.

", + "location": "uri", + "locationName": "snapshotId" + }, + "NextToken": { + "shape": "PageToken", + "documentation": "

The token to request the next page of results.

", + "location": "querystring", + "locationName": "pageToken" + }, + "MaxResults": { + "shape": "MaxResults", + "documentation": "

The number of results to return.

", + "location": "querystring", + "locationName": "maxResults" + }, + "StartingBlockIndex": { + "shape": "BlockIndex", + "documentation": "

The block index from which the list should start. The list in the response will start from this block index or the next valid block index in the snapshot.

", + "location": "querystring", + "locationName": "startingBlockIndex" + } + } + }, + "ListSnapshotBlocksResponse": { + "type": "structure", + "members": { + "Blocks": { + "shape": "Blocks", + "documentation": "

An array of objects containing information about the blocks.

" + }, + "ExpiryTime": { + "shape": "TimeStamp", + "documentation": "

The time when the BlockToken expires.

" + }, + "VolumeSize": { + "shape": "VolumeSize", + "documentation": "

The size of the volume in GB.

" + }, + "BlockSize": { + "shape": "BlockSize", + "documentation": "

The size of the block.

" + }, + "NextToken": { + "shape": "PageToken", + "documentation": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

" + } + } + }, + "MaxResults": { + "type": "integer", + "max": 10000, + "min": 100 + }, + "PageToken": { + "type": "string", + "max": 256, + "pattern": "^[A-Za-z0-9+/=]+$" + }, + "SnapshotId": { + "type": "string", + "max": 64, + "min": 1, + "pattern": "^snap-[0-9a-f]+$" + }, + "TimeStamp": { + "type": "timestamp" + }, + "VolumeSize": { + "type": "long" + } + }, + "documentation": "

You can use the Amazon Elastic Block Store (EBS) direct APIs to directly read the data on your EBS snapshots, and identify the difference between two snapshots. You can view the details of blocks in an EBS snapshot, compare the block difference between two snapshots, and directly access the data in a snapshot. If you’re an independent software vendor (ISV) who offers backup services for EBS, the EBS direct APIs make it easier and more cost-effective to track incremental changes on your EBS volumes via EBS snapshots. This can be done without having to create new volumes from EBS snapshots.

This API reference provides detailed information about the actions, data types, parameters, and errors of the EBS direct APIs. For more information about the elements that make up the EBS direct APIs, and examples of how to use them effectively, see Accessing the Contents of an EBS Snapshot in the Amazon Elastic Compute Cloud User Guide. For more information about the supported AWS Regions, endpoints, and service quotas for the EBS direct APIs, see Amazon Elastic Block Store Endpoints and Quotas in the AWS General Reference.

" +} \ No newline at end of file -- cgit v1.2.3