@aws-sdk/client-mediastore-data 3.414.0 → 3.421.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 +7 -7
- package/dist-cjs/commands/DeleteObjectCommand.js +5 -0
- package/dist-cjs/commands/DescribeObjectCommand.js +5 -0
- package/dist-cjs/commands/GetObjectCommand.js +5 -0
- package/dist-cjs/commands/ListItemsCommand.js +5 -0
- package/dist-cjs/commands/PutObjectCommand.js +5 -0
- package/dist-es/commands/DeleteObjectCommand.js +5 -0
- package/dist-es/commands/DescribeObjectCommand.js +5 -0
- package/dist-es/commands/GetObjectCommand.js +5 -0
- package/dist-es/commands/ListItemsCommand.js +5 -0
- package/dist-es/commands/PutObjectCommand.js +5 -0
- package/package.json +32 -32
package/README.md
CHANGED
|
@@ -25,16 +25,16 @@ using your favorite package manager:
|
|
|
25
25
|
|
|
26
26
|
The AWS SDK is modulized by clients and commands.
|
|
27
27
|
To send a request, you only need to import the `MediaStoreDataClient` and
|
|
28
|
-
the commands you need, for example `
|
|
28
|
+
the commands you need, for example `ListItemsCommand`:
|
|
29
29
|
|
|
30
30
|
```js
|
|
31
31
|
// ES5 example
|
|
32
|
-
const { MediaStoreDataClient,
|
|
32
|
+
const { MediaStoreDataClient, ListItemsCommand } = require("@aws-sdk/client-mediastore-data");
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
```ts
|
|
36
36
|
// ES6+ example
|
|
37
|
-
import { MediaStoreDataClient,
|
|
37
|
+
import { MediaStoreDataClient, ListItemsCommand } from "@aws-sdk/client-mediastore-data";
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
### Usage
|
|
@@ -53,7 +53,7 @@ const client = new MediaStoreDataClient({ region: "REGION" });
|
|
|
53
53
|
const params = {
|
|
54
54
|
/** input parameters */
|
|
55
55
|
};
|
|
56
|
-
const command = new
|
|
56
|
+
const command = new ListItemsCommand(params);
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
#### Async/await
|
|
@@ -132,7 +132,7 @@ const client = new AWS.MediaStoreData({ region: "REGION" });
|
|
|
132
132
|
|
|
133
133
|
// async/await.
|
|
134
134
|
try {
|
|
135
|
-
const data = await client.
|
|
135
|
+
const data = await client.listItems(params);
|
|
136
136
|
// process data.
|
|
137
137
|
} catch (error) {
|
|
138
138
|
// error handling.
|
|
@@ -140,7 +140,7 @@ try {
|
|
|
140
140
|
|
|
141
141
|
// Promises.
|
|
142
142
|
client
|
|
143
|
-
.
|
|
143
|
+
.listItems(params)
|
|
144
144
|
.then((data) => {
|
|
145
145
|
// process data.
|
|
146
146
|
})
|
|
@@ -149,7 +149,7 @@ client
|
|
|
149
149
|
});
|
|
150
150
|
|
|
151
151
|
// callbacks.
|
|
152
|
-
client.
|
|
152
|
+
client.listItems(params, (err, data) => {
|
|
153
153
|
// process err and data.
|
|
154
154
|
});
|
|
155
155
|
```
|
|
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
8
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
10
|
class DeleteObjectCommand extends smithy_client_1.Command {
|
|
10
11
|
static getEndpointParameterInstructions() {
|
|
@@ -32,6 +33,10 @@ class DeleteObjectCommand extends smithy_client_1.Command {
|
|
|
32
33
|
commandName,
|
|
33
34
|
inputFilterSensitiveLog: (_) => _,
|
|
34
35
|
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "MediaStoreObject_20170901",
|
|
38
|
+
operation: "DeleteObject",
|
|
39
|
+
},
|
|
35
40
|
};
|
|
36
41
|
const { requestHandler } = configuration;
|
|
37
42
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
8
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
10
|
class DescribeObjectCommand extends smithy_client_1.Command {
|
|
10
11
|
static getEndpointParameterInstructions() {
|
|
@@ -32,6 +33,10 @@ class DescribeObjectCommand extends smithy_client_1.Command {
|
|
|
32
33
|
commandName,
|
|
33
34
|
inputFilterSensitiveLog: (_) => _,
|
|
34
35
|
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "MediaStoreObject_20170901",
|
|
38
|
+
operation: "DescribeObject",
|
|
39
|
+
},
|
|
35
40
|
};
|
|
36
41
|
const { requestHandler } = configuration;
|
|
37
42
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
8
9
|
const models_0_1 = require("../models/models_0");
|
|
9
10
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
11
|
class GetObjectCommand extends smithy_client_1.Command {
|
|
@@ -33,6 +34,10 @@ class GetObjectCommand extends smithy_client_1.Command {
|
|
|
33
34
|
commandName,
|
|
34
35
|
inputFilterSensitiveLog: (_) => _,
|
|
35
36
|
outputFilterSensitiveLog: models_0_1.GetObjectResponseFilterSensitiveLog,
|
|
37
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
+
service: "MediaStoreObject_20170901",
|
|
39
|
+
operation: "GetObject",
|
|
40
|
+
},
|
|
36
41
|
};
|
|
37
42
|
const { requestHandler } = configuration;
|
|
38
43
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
8
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
10
|
class ListItemsCommand extends smithy_client_1.Command {
|
|
10
11
|
static getEndpointParameterInstructions() {
|
|
@@ -32,6 +33,10 @@ class ListItemsCommand extends smithy_client_1.Command {
|
|
|
32
33
|
commandName,
|
|
33
34
|
inputFilterSensitiveLog: (_) => _,
|
|
34
35
|
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "MediaStoreObject_20170901",
|
|
38
|
+
operation: "ListItems",
|
|
39
|
+
},
|
|
35
40
|
};
|
|
36
41
|
const { requestHandler } = configuration;
|
|
37
42
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
8
9
|
const models_0_1 = require("../models/models_0");
|
|
9
10
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
11
|
class PutObjectCommand extends smithy_client_1.Command {
|
|
@@ -33,6 +34,10 @@ class PutObjectCommand extends smithy_client_1.Command {
|
|
|
33
34
|
commandName,
|
|
34
35
|
inputFilterSensitiveLog: models_0_1.PutObjectRequestFilterSensitiveLog,
|
|
35
36
|
outputFilterSensitiveLog: (_) => _,
|
|
37
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
+
service: "MediaStoreObject_20170901",
|
|
39
|
+
operation: "PutObject",
|
|
40
|
+
},
|
|
36
41
|
};
|
|
37
42
|
const { requestHandler } = configuration;
|
|
38
43
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
4
5
|
import { de_DeleteObjectCommand, se_DeleteObjectCommand } from "../protocols/Aws_restJson1";
|
|
5
6
|
export { $Command };
|
|
6
7
|
export class DeleteObjectCommand extends $Command {
|
|
@@ -29,6 +30,10 @@ export class DeleteObjectCommand extends $Command {
|
|
|
29
30
|
commandName,
|
|
30
31
|
inputFilterSensitiveLog: (_) => _,
|
|
31
32
|
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "MediaStoreObject_20170901",
|
|
35
|
+
operation: "DeleteObject",
|
|
36
|
+
},
|
|
32
37
|
};
|
|
33
38
|
const { requestHandler } = configuration;
|
|
34
39
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
4
5
|
import { de_DescribeObjectCommand, se_DescribeObjectCommand } from "../protocols/Aws_restJson1";
|
|
5
6
|
export { $Command };
|
|
6
7
|
export class DescribeObjectCommand extends $Command {
|
|
@@ -29,6 +30,10 @@ export class DescribeObjectCommand extends $Command {
|
|
|
29
30
|
commandName,
|
|
30
31
|
inputFilterSensitiveLog: (_) => _,
|
|
31
32
|
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "MediaStoreObject_20170901",
|
|
35
|
+
operation: "DescribeObject",
|
|
36
|
+
},
|
|
32
37
|
};
|
|
33
38
|
const { requestHandler } = configuration;
|
|
34
39
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
4
5
|
import { GetObjectResponseFilterSensitiveLog } from "../models/models_0";
|
|
5
6
|
import { de_GetObjectCommand, se_GetObjectCommand } from "../protocols/Aws_restJson1";
|
|
6
7
|
export { $Command };
|
|
@@ -30,6 +31,10 @@ export class GetObjectCommand extends $Command {
|
|
|
30
31
|
commandName,
|
|
31
32
|
inputFilterSensitiveLog: (_) => _,
|
|
32
33
|
outputFilterSensitiveLog: GetObjectResponseFilterSensitiveLog,
|
|
34
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
+
service: "MediaStoreObject_20170901",
|
|
36
|
+
operation: "GetObject",
|
|
37
|
+
},
|
|
33
38
|
};
|
|
34
39
|
const { requestHandler } = configuration;
|
|
35
40
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
4
5
|
import { de_ListItemsCommand, se_ListItemsCommand } from "../protocols/Aws_restJson1";
|
|
5
6
|
export { $Command };
|
|
6
7
|
export class ListItemsCommand extends $Command {
|
|
@@ -29,6 +30,10 @@ export class ListItemsCommand extends $Command {
|
|
|
29
30
|
commandName,
|
|
30
31
|
inputFilterSensitiveLog: (_) => _,
|
|
31
32
|
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "MediaStoreObject_20170901",
|
|
35
|
+
operation: "ListItems",
|
|
36
|
+
},
|
|
32
37
|
};
|
|
33
38
|
const { requestHandler } = configuration;
|
|
34
39
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
4
5
|
import { PutObjectRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
6
|
import { de_PutObjectCommand, se_PutObjectCommand } from "../protocols/Aws_restJson1";
|
|
6
7
|
export { $Command };
|
|
@@ -30,6 +31,10 @@ export class PutObjectCommand extends $Command {
|
|
|
30
31
|
commandName,
|
|
31
32
|
inputFilterSensitiveLog: PutObjectRequestFilterSensitiveLog,
|
|
32
33
|
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
+
service: "MediaStoreObject_20170901",
|
|
36
|
+
operation: "PutObject",
|
|
37
|
+
},
|
|
33
38
|
};
|
|
34
39
|
const { requestHandler } = configuration;
|
|
35
40
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mediastore-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mediastore Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.421.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -23,40 +23,40 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
26
|
-
"@aws-sdk/client-sts": "3.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-signing": "3.
|
|
32
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
33
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
34
|
-
"@aws-sdk/types": "3.
|
|
35
|
-
"@aws-sdk/util-endpoints": "3.
|
|
36
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
37
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
38
|
-
"@smithy/config-resolver": "^2.0.
|
|
39
|
-
"@smithy/fetch-http-handler": "^2.1.
|
|
40
|
-
"@smithy/hash-node": "^2.0.
|
|
41
|
-
"@smithy/invalid-dependency": "^2.0.
|
|
42
|
-
"@smithy/middleware-content-length": "^2.0.
|
|
43
|
-
"@smithy/middleware-endpoint": "^2.0.
|
|
44
|
-
"@smithy/middleware-retry": "^2.0.
|
|
45
|
-
"@smithy/middleware-serde": "^2.0.
|
|
46
|
-
"@smithy/middleware-stack": "^2.0.
|
|
47
|
-
"@smithy/node-config-provider": "^2.0.
|
|
48
|
-
"@smithy/node-http-handler": "^2.1.
|
|
49
|
-
"@smithy/protocol-http": "^3.0.
|
|
50
|
-
"@smithy/smithy-client": "^2.1.
|
|
51
|
-
"@smithy/types": "^2.3.
|
|
52
|
-
"@smithy/url-parser": "^2.0.
|
|
26
|
+
"@aws-sdk/client-sts": "3.421.0",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.421.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.418.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.418.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.418.0",
|
|
31
|
+
"@aws-sdk/middleware-signing": "3.418.0",
|
|
32
|
+
"@aws-sdk/middleware-user-agent": "3.418.0",
|
|
33
|
+
"@aws-sdk/region-config-resolver": "3.418.0",
|
|
34
|
+
"@aws-sdk/types": "3.418.0",
|
|
35
|
+
"@aws-sdk/util-endpoints": "3.418.0",
|
|
36
|
+
"@aws-sdk/util-user-agent-browser": "3.418.0",
|
|
37
|
+
"@aws-sdk/util-user-agent-node": "3.418.0",
|
|
38
|
+
"@smithy/config-resolver": "^2.0.10",
|
|
39
|
+
"@smithy/fetch-http-handler": "^2.1.5",
|
|
40
|
+
"@smithy/hash-node": "^2.0.9",
|
|
41
|
+
"@smithy/invalid-dependency": "^2.0.9",
|
|
42
|
+
"@smithy/middleware-content-length": "^2.0.11",
|
|
43
|
+
"@smithy/middleware-endpoint": "^2.0.9",
|
|
44
|
+
"@smithy/middleware-retry": "^2.0.12",
|
|
45
|
+
"@smithy/middleware-serde": "^2.0.9",
|
|
46
|
+
"@smithy/middleware-stack": "^2.0.2",
|
|
47
|
+
"@smithy/node-config-provider": "^2.0.12",
|
|
48
|
+
"@smithy/node-http-handler": "^2.1.5",
|
|
49
|
+
"@smithy/protocol-http": "^3.0.5",
|
|
50
|
+
"@smithy/smithy-client": "^2.1.6",
|
|
51
|
+
"@smithy/types": "^2.3.3",
|
|
52
|
+
"@smithy/url-parser": "^2.0.9",
|
|
53
53
|
"@smithy/util-base64": "^2.0.0",
|
|
54
54
|
"@smithy/util-body-length-browser": "^2.0.0",
|
|
55
55
|
"@smithy/util-body-length-node": "^2.1.0",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^2.0.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^2.0.
|
|
58
|
-
"@smithy/util-retry": "^2.0.
|
|
59
|
-
"@smithy/util-stream": "^2.0.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^2.0.10",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^2.0.12",
|
|
58
|
+
"@smithy/util-retry": "^2.0.2",
|
|
59
|
+
"@smithy/util-stream": "^2.0.12",
|
|
60
60
|
"@smithy/util-utf8": "^2.0.0",
|
|
61
61
|
"tslib": "^2.5.0"
|
|
62
62
|
},
|