aws-sdk 2.1626.0 → 2.1628.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
 - package/apis/dynamodb-2011-12-05.min.json +3 -0
 - package/apis/dynamodb-2012-08-10.min.json +3 -0
 - package/apis/emr-serverless-2021-07-13.min.json +35 -13
 - package/apis/iotfleetwise-2021-06-17.min.json +18 -10
 - package/apis/managedblockchain-2018-09-24.min.json +3 -0
 - package/apis/opsworks-2013-02-18.min.json +3 -0
 - package/clients/dynamodb.d.ts +34 -34
 - package/clients/emrserverless.d.ts +22 -0
 - package/clients/iotfleetwise.d.ts +11 -1
 - package/clients/managedblockchain.d.ts +4 -4
 - package/clients/opsworks.d.ts +117 -117
 - package/dist/aws-sdk-core-react-native.js +3 -2
 - package/dist/aws-sdk-react-native.js +9 -8
 - package/dist/aws-sdk.js +15 -5
 - package/dist/aws-sdk.min.js +39 -39
 - package/lib/core.js +1 -1
 - package/lib/credentials/sso_credentials.js +1 -1
 - package/lib/credentials/token_file_web_identity_credentials.d.ts +2 -2
 - package/lib/dynamodb/document_client.d.ts +10 -10
 - package/lib/metadata_service.d.ts +4 -0
 - package/lib/metadata_service.js +1 -2
 - package/lib/protocol/rest_json.js +2 -1
 - package/package.json +1 -1
 
    
        package/lib/core.js
    CHANGED
    
    
| 
         @@ -176,7 +176,7 @@ AWS.SsoCredentials = AWS.util.inherit(AWS.Credentials, { 
     | 
|
| 
       176 
176 
     | 
    
         
             
                  var ssoTokenProvider = new AWS.SSOTokenProvider({
         
     | 
| 
       177 
177 
     | 
    
         
             
                    profile: profileName,
         
     | 
| 
       178 
178 
     | 
    
         
             
                  });
         
     | 
| 
       179 
     | 
    
         
            -
                  ssoTokenProvider. 
     | 
| 
      
 179 
     | 
    
         
            +
                  ssoTokenProvider.get(function (err) {
         
     | 
| 
       180 
180 
     | 
    
         
             
                    if (err) {
         
     | 
| 
       181 
181 
     | 
    
         
             
                      return callback(err);
         
     | 
| 
       182 
182 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -1,12 +1,12 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import {Credentials} from '../credentials';
         
     | 
| 
       2 
2 
     | 
    
         
             
            import {AWSError} from '../error';
         
     | 
| 
       3 
     | 
    
         
            -
            import { 
     | 
| 
      
 3 
     | 
    
         
            +
            import {ClientConfiguration} from '../../clients/sts';
         
     | 
| 
       4 
4 
     | 
    
         
             
            export class TokenFileWebIdentityCredentials extends Credentials {
         
     | 
| 
       5 
5 
     | 
    
         
             
                /**
         
     | 
| 
       6 
6 
     | 
    
         
             
                 * Creates a new credentials object with optional configuraion.
         
     | 
| 
       7 
7 
     | 
    
         
             
                 * @param {Object} clientConfig - a map of configuration options to pass to the underlying STS client.
         
     | 
| 
       8 
8 
     | 
    
         
             
                 */
         
     | 
| 
       9 
     | 
    
         
            -
                constructor(clientConfig?:  
     | 
| 
      
 9 
     | 
    
         
            +
                constructor(clientConfig?: ClientConfiguration);
         
     | 
| 
       10 
10 
     | 
    
         
             
                /**
         
     | 
| 
       11 
11 
     | 
    
         
             
                 * Refreshes credentials using AWS.STS.assumeRoleWithWebIdentity().
         
     | 
| 
       12 
12 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -730,7 +730,7 @@ export namespace DocumentClient { 
     | 
|
| 
       730 
730 
     | 
    
         
             
                 */
         
     | 
| 
       731 
731 
     | 
    
         
             
                GlobalSecondaryIndexes?: GlobalSecondaryIndexList;
         
     | 
| 
       732 
732 
     | 
    
         
             
                /**
         
     | 
| 
       733 
     | 
    
         
            -
                 * Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.    PROVISIONED - We recommend using PROVISIONED for predictable workloads. PROVISIONED sets the billing mode to Provisioned  
     | 
| 
      
 733 
     | 
    
         
            +
                 * Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.    PROVISIONED - We recommend using PROVISIONED for predictable workloads. PROVISIONED sets the billing mode to Provisioned capacity mode.    PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. PAY_PER_REQUEST sets the billing mode to On-demand capacity mode.   
         
     | 
| 
       734 
734 
     | 
    
         
             
                 */
         
     | 
| 
       735 
735 
     | 
    
         
             
                BillingMode?: BillingMode;
         
     | 
| 
       736 
736 
     | 
    
         
             
                /**
         
     | 
| 
         @@ -879,7 +879,7 @@ export namespace DocumentClient { 
     | 
|
| 
       879 
879 
     | 
    
         
             
                 */
         
     | 
| 
       880 
880 
     | 
    
         
             
                Attributes?: AttributeMap;
         
     | 
| 
       881 
881 
     | 
    
         
             
                /**
         
     | 
| 
       882 
     | 
    
         
            -
                 * The capacity units consumed by the DeleteItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned  
     | 
| 
      
 882 
     | 
    
         
            +
                 * The capacity units consumed by the DeleteItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned capacity mode in the Amazon DynamoDB Developer Guide.
         
     | 
| 
       883 
883 
     | 
    
         
             
                 */
         
     | 
| 
       884 
884 
     | 
    
         
             
                ConsumedCapacity?: ConsumedCapacity;
         
     | 
| 
       885 
885 
     | 
    
         
             
                /**
         
     | 
| 
         @@ -1466,7 +1466,7 @@ export namespace DocumentClient { 
     | 
|
| 
       1466 
1466 
     | 
    
         
             
                 */
         
     | 
| 
       1467 
1467 
     | 
    
         
             
                Item?: AttributeMap;
         
     | 
| 
       1468 
1468 
     | 
    
         
             
                /**
         
     | 
| 
       1469 
     | 
    
         
            -
                 * The capacity units consumed by the GetItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see  
     | 
| 
      
 1469 
     | 
    
         
            +
                 * The capacity units consumed by the GetItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Capacity unit consumption for read operations in the Amazon DynamoDB Developer Guide.
         
     | 
| 
       1470 
1470 
     | 
    
         
             
                 */
         
     | 
| 
       1471 
1471 
     | 
    
         
             
                ConsumedCapacity?: ConsumedCapacity;
         
     | 
| 
       1472 
1472 
     | 
    
         
             
              }
         
     | 
| 
         @@ -2370,7 +2370,7 @@ export namespace DocumentClient { 
     | 
|
| 
       2370 
2370 
     | 
    
         
             
                 */
         
     | 
| 
       2371 
2371 
     | 
    
         
             
                Attributes?: AttributeMap;
         
     | 
| 
       2372 
2372 
     | 
    
         
             
                /**
         
     | 
| 
       2373 
     | 
    
         
            -
                 * The capacity units consumed by the PutItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see  
     | 
| 
      
 2373 
     | 
    
         
            +
                 * The capacity units consumed by the PutItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Capacity unity consumption for write operations in the Amazon DynamoDB Developer Guide.
         
     | 
| 
       2374 
2374 
     | 
    
         
             
                 */
         
     | 
| 
       2375 
2375 
     | 
    
         
             
                ConsumedCapacity?: ConsumedCapacity;
         
     | 
| 
       2376 
2376 
     | 
    
         
             
                /**
         
     | 
| 
         @@ -2493,7 +2493,7 @@ export namespace DocumentClient { 
     | 
|
| 
       2493 
2493 
     | 
    
         
             
                 */
         
     | 
| 
       2494 
2494 
     | 
    
         
             
                LastEvaluatedKey?: Key;
         
     | 
| 
       2495 
2495 
     | 
    
         
             
                /**
         
     | 
| 
       2496 
     | 
    
         
            -
                 * The capacity units consumed by the Query operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see  
     | 
| 
      
 2496 
     | 
    
         
            +
                 * The capacity units consumed by the Query operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Capacity unit consumption for read operations in the Amazon DynamoDB Developer Guide.
         
     | 
| 
       2497 
2497 
     | 
    
         
             
                 */
         
     | 
| 
       2498 
2498 
     | 
    
         
             
                ConsumedCapacity?: ConsumedCapacity;
         
     | 
| 
       2499 
2499 
     | 
    
         
             
              }
         
     | 
| 
         @@ -3002,7 +3002,7 @@ export namespace DocumentClient { 
     | 
|
| 
       3002 
3002 
     | 
    
         
             
                 */
         
     | 
| 
       3003 
3003 
     | 
    
         
             
                LastEvaluatedKey?: Key;
         
     | 
| 
       3004 
3004 
     | 
    
         
             
                /**
         
     | 
| 
       3005 
     | 
    
         
            -
                 * The capacity units consumed by the Scan operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see  
     | 
| 
      
 3005 
     | 
    
         
            +
                 * The capacity units consumed by the Scan operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Capacity unit consumption for read operations in the Amazon DynamoDB Developer Guide.
         
     | 
| 
       3006 
3006 
     | 
    
         
             
                 */
         
     | 
| 
       3007 
3007 
     | 
    
         
             
                ConsumedCapacity?: ConsumedCapacity;
         
     | 
| 
       3008 
3008 
     | 
    
         
             
              }
         
     | 
| 
         @@ -3482,7 +3482,7 @@ export namespace DocumentClient { 
     | 
|
| 
       3482 
3482 
     | 
    
         
             
                 */
         
     | 
| 
       3483 
3483 
     | 
    
         
             
                GlobalTableName: TableName;
         
     | 
| 
       3484 
3484 
     | 
    
         
             
                /**
         
     | 
| 
       3485 
     | 
    
         
            -
                 * The billing mode of the global table. If GlobalTableBillingMode is not specified, the global table defaults to PROVISIONED capacity billing mode.    PROVISIONED - We recommend using PROVISIONED for predictable workloads. PROVISIONED sets the billing mode to Provisioned  
     | 
| 
      
 3485 
     | 
    
         
            +
                 * The billing mode of the global table. If GlobalTableBillingMode is not specified, the global table defaults to PROVISIONED capacity billing mode.    PROVISIONED - We recommend using PROVISIONED for predictable workloads. PROVISIONED sets the billing mode to Provisioned capacity mode.    PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. PAY_PER_REQUEST sets the billing mode to On-demand capacity mode.   
         
     | 
| 
       3486 
3486 
     | 
    
         
             
                 */
         
     | 
| 
       3487 
3487 
     | 
    
         
             
                GlobalTableBillingMode?: BillingMode;
         
     | 
| 
       3488 
3488 
     | 
    
         
             
                /**
         
     | 
| 
         @@ -3569,7 +3569,7 @@ export namespace DocumentClient { 
     | 
|
| 
       3569 
3569 
     | 
    
         
             
                 */
         
     | 
| 
       3570 
3570 
     | 
    
         
             
                Attributes?: AttributeMap;
         
     | 
| 
       3571 
3571 
     | 
    
         
             
                /**
         
     | 
| 
       3572 
     | 
    
         
            -
                 * The capacity units consumed by the UpdateItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see  
     | 
| 
      
 3572 
     | 
    
         
            +
                 * The capacity units consumed by the UpdateItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Capacity unity consumption for write operations in the Amazon DynamoDB Developer Guide.
         
     | 
| 
       3573 
3573 
     | 
    
         
             
                 */
         
     | 
| 
       3574 
3574 
     | 
    
         
             
                ConsumedCapacity?: ConsumedCapacity;
         
     | 
| 
       3575 
3575 
     | 
    
         
             
                /**
         
     | 
| 
         @@ -3651,7 +3651,7 @@ export namespace DocumentClient { 
     | 
|
| 
       3651 
3651 
     | 
    
         
             
                 */
         
     | 
| 
       3652 
3652 
     | 
    
         
             
                TableName: TableArn;
         
     | 
| 
       3653 
3653 
     | 
    
         
             
                /**
         
     | 
| 
       3654 
     | 
    
         
            -
                 * Controls how you are charged for read and write throughput and how you manage capacity. When switching from pay-per-request to provisioned capacity, initial provisioned capacity values must be set. The initial provisioned capacity values are estimated based on the consumed read and write capacity of your table and global secondary indexes over the past 30 minutes.    PROVISIONED - We recommend using PROVISIONED for predictable workloads. PROVISIONED sets the billing mode to Provisioned  
     | 
| 
      
 3654 
     | 
    
         
            +
                 * Controls how you are charged for read and write throughput and how you manage capacity. When switching from pay-per-request to provisioned capacity, initial provisioned capacity values must be set. The initial provisioned capacity values are estimated based on the consumed read and write capacity of your table and global secondary indexes over the past 30 minutes.    PROVISIONED - We recommend using PROVISIONED for predictable workloads. PROVISIONED sets the billing mode to Provisioned capacity mode.    PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. PAY_PER_REQUEST sets the billing mode to On-demand capacity mode.   
         
     | 
| 
       3655 
3655 
     | 
    
         
             
                 */
         
     | 
| 
       3656 
3656 
     | 
    
         
             
                BillingMode?: BillingMode;
         
     | 
| 
       3657 
3657 
     | 
    
         
             
                /**
         
     | 
| 
         @@ -3671,7 +3671,7 @@ export namespace DocumentClient { 
     | 
|
| 
       3671 
3671 
     | 
    
         
             
                 */
         
     | 
| 
       3672 
3672 
     | 
    
         
             
                SSESpecification?: SSESpecification;
         
     | 
| 
       3673 
3673 
     | 
    
         
             
                /**
         
     | 
| 
       3674 
     | 
    
         
            -
                 * A list of replica update actions (create, delete, or update) for the table.   
     | 
| 
      
 3674 
     | 
    
         
            +
                 * A list of replica update actions (create, delete, or update) for the table.  For global tables, this property only applies to global tables using Version 2019.11.21 (Current version).  
         
     | 
| 
       3675 
3675 
     | 
    
         
             
                 */
         
     | 
| 
       3676 
3676 
     | 
    
         
             
                ReplicaUpdates?: ReplicationGroupUpdateList;
         
     | 
| 
       3677 
3677 
     | 
    
         
             
                /**
         
     | 
| 
         @@ -17,6 +17,10 @@ export class MetadataService { 
     | 
|
| 
       17 
17 
     | 
    
         
             
                    options: {method?: string, headers?: {[key: string]: String} },
         
     | 
| 
       18 
18 
     | 
    
         
             
                    callback: (err: AWSError, data: string) => void
         
     | 
| 
       19 
19 
     | 
    
         
             
                ): void;
         
     | 
| 
      
 20 
     | 
    
         
            +
                /**
         
     | 
| 
      
 21 
     | 
    
         
            +
                 * Fetches metadata token used for authenticating against the instance metadata service.
         
     | 
| 
      
 22 
     | 
    
         
            +
                 */
         
     | 
| 
      
 23 
     | 
    
         
            +
                fetchMetadataToken(callback: (err: AWSError, token: string) => void): void;
         
     | 
| 
       20 
24 
     | 
    
         
             
                /**
         
     | 
| 
       21 
25 
     | 
    
         
             
                 * 169.254.169.254
         
     | 
| 
       22 
26 
     | 
    
         
             
                 */
         
     | 
    
        package/lib/metadata_service.js
    CHANGED
    
    | 
         @@ -120,9 +120,8 @@ AWS.MetadataService = inherit({ 
     | 
|
| 
       120 
120 
     | 
    
         
             
              loadCredentialsCallbacks: [],
         
     | 
| 
       121 
121 
     | 
    
         | 
| 
       122 
122 
     | 
    
         
             
              /**
         
     | 
| 
       123 
     | 
    
         
            -
               * Fetches metadata token used for  
     | 
| 
      
 123 
     | 
    
         
            +
               * Fetches metadata token used for authenticating against the instance metadata service.
         
     | 
| 
       124 
124 
     | 
    
         
             
               *
         
     | 
| 
       125 
     | 
    
         
            -
               * @api private
         
     | 
| 
       126 
125 
     | 
    
         
             
               * @callback callback function(err, token)
         
     | 
| 
       127 
126 
     | 
    
         
             
               *   Called when token is loaded from the resource
         
     | 
| 
       128 
127 
     | 
    
         
             
               */
         
     | 
| 
         @@ -1,3 +1,4 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            var AWS = require('../core');
         
     | 
| 
       1 
2 
     | 
    
         
             
            var util = require('../util');
         
     | 
| 
       2 
3 
     | 
    
         
             
            var Rest = require('./rest');
         
     | 
| 
       3 
4 
     | 
    
         
             
            var Json = require('./json');
         
     | 
| 
         @@ -75,7 +76,7 @@ function extractData(resp) { 
     | 
|
| 
       75 
76 
     | 
    
         
             
                var body = resp.httpResponse.body;
         
     | 
| 
       76 
77 
     | 
    
         
             
                if (payloadMember.isEventStream) {
         
     | 
| 
       77 
78 
     | 
    
         
             
                  parser = new JsonParser();
         
     | 
| 
       78 
     | 
    
         
            -
                  resp.data[payload] = util.createEventStream(
         
     | 
| 
      
 79 
     | 
    
         
            +
                  resp.data[rules.payload] = util.createEventStream(
         
     | 
| 
       79 
80 
     | 
    
         
             
                    AWS.HttpClient.streamsApiVersion === 2 ? resp.httpResponse.stream : body,
         
     | 
| 
       80 
81 
     | 
    
         
             
                    parser,
         
     | 
| 
       81 
82 
     | 
    
         
             
                    payloadMember
         
     |