@aws-sdk/client-s3outposts 3.315.0 → 3.316.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/dist-cjs/S3Outposts.js
CHANGED
|
@@ -1,82 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.S3Outposts = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateEndpointCommand_1 = require("./commands/CreateEndpointCommand");
|
|
5
6
|
const DeleteEndpointCommand_1 = require("./commands/DeleteEndpointCommand");
|
|
6
7
|
const ListEndpointsCommand_1 = require("./commands/ListEndpointsCommand");
|
|
7
8
|
const ListOutpostsWithS3Command_1 = require("./commands/ListOutpostsWithS3Command");
|
|
8
9
|
const ListSharedEndpointsCommand_1 = require("./commands/ListSharedEndpointsCommand");
|
|
9
10
|
const S3OutpostsClient_1 = require("./S3OutpostsClient");
|
|
11
|
+
const commands = {
|
|
12
|
+
CreateEndpointCommand: CreateEndpointCommand_1.CreateEndpointCommand,
|
|
13
|
+
DeleteEndpointCommand: DeleteEndpointCommand_1.DeleteEndpointCommand,
|
|
14
|
+
ListEndpointsCommand: ListEndpointsCommand_1.ListEndpointsCommand,
|
|
15
|
+
ListOutpostsWithS3Command: ListOutpostsWithS3Command_1.ListOutpostsWithS3Command,
|
|
16
|
+
ListSharedEndpointsCommand: ListSharedEndpointsCommand_1.ListSharedEndpointsCommand,
|
|
17
|
+
};
|
|
10
18
|
class S3Outposts extends S3OutpostsClient_1.S3OutpostsClient {
|
|
11
|
-
createEndpoint(args, optionsOrCb, cb) {
|
|
12
|
-
const command = new CreateEndpointCommand_1.CreateEndpointCommand(args);
|
|
13
|
-
if (typeof optionsOrCb === "function") {
|
|
14
|
-
this.send(command, optionsOrCb);
|
|
15
|
-
}
|
|
16
|
-
else if (typeof cb === "function") {
|
|
17
|
-
if (typeof optionsOrCb !== "object")
|
|
18
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
19
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return this.send(command, optionsOrCb);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
deleteEndpoint(args, optionsOrCb, cb) {
|
|
26
|
-
const command = new DeleteEndpointCommand_1.DeleteEndpointCommand(args);
|
|
27
|
-
if (typeof optionsOrCb === "function") {
|
|
28
|
-
this.send(command, optionsOrCb);
|
|
29
|
-
}
|
|
30
|
-
else if (typeof cb === "function") {
|
|
31
|
-
if (typeof optionsOrCb !== "object")
|
|
32
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
33
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
return this.send(command, optionsOrCb);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
listEndpoints(args, optionsOrCb, cb) {
|
|
40
|
-
const command = new ListEndpointsCommand_1.ListEndpointsCommand(args);
|
|
41
|
-
if (typeof optionsOrCb === "function") {
|
|
42
|
-
this.send(command, optionsOrCb);
|
|
43
|
-
}
|
|
44
|
-
else if (typeof cb === "function") {
|
|
45
|
-
if (typeof optionsOrCb !== "object")
|
|
46
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
47
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
return this.send(command, optionsOrCb);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
listOutpostsWithS3(args, optionsOrCb, cb) {
|
|
54
|
-
const command = new ListOutpostsWithS3Command_1.ListOutpostsWithS3Command(args);
|
|
55
|
-
if (typeof optionsOrCb === "function") {
|
|
56
|
-
this.send(command, optionsOrCb);
|
|
57
|
-
}
|
|
58
|
-
else if (typeof cb === "function") {
|
|
59
|
-
if (typeof optionsOrCb !== "object")
|
|
60
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
61
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
return this.send(command, optionsOrCb);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
listSharedEndpoints(args, optionsOrCb, cb) {
|
|
68
|
-
const command = new ListSharedEndpointsCommand_1.ListSharedEndpointsCommand(args);
|
|
69
|
-
if (typeof optionsOrCb === "function") {
|
|
70
|
-
this.send(command, optionsOrCb);
|
|
71
|
-
}
|
|
72
|
-
else if (typeof cb === "function") {
|
|
73
|
-
if (typeof optionsOrCb !== "object")
|
|
74
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
75
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return this.send(command, optionsOrCb);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
19
|
}
|
|
82
20
|
exports.S3Outposts = S3Outposts;
|
|
21
|
+
(0, smithy_client_1.createAggregatedClient)(commands, S3Outposts);
|
package/dist-es/S3Outposts.js
CHANGED
|
@@ -1,78 +1,17 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateEndpointCommand, } from "./commands/CreateEndpointCommand";
|
|
2
3
|
import { DeleteEndpointCommand, } from "./commands/DeleteEndpointCommand";
|
|
3
4
|
import { ListEndpointsCommand, } from "./commands/ListEndpointsCommand";
|
|
4
5
|
import { ListOutpostsWithS3Command, } from "./commands/ListOutpostsWithS3Command";
|
|
5
6
|
import { ListSharedEndpointsCommand, } from "./commands/ListSharedEndpointsCommand";
|
|
6
7
|
import { S3OutpostsClient } from "./S3OutpostsClient";
|
|
8
|
+
const commands = {
|
|
9
|
+
CreateEndpointCommand,
|
|
10
|
+
DeleteEndpointCommand,
|
|
11
|
+
ListEndpointsCommand,
|
|
12
|
+
ListOutpostsWithS3Command,
|
|
13
|
+
ListSharedEndpointsCommand,
|
|
14
|
+
};
|
|
7
15
|
export class S3Outposts extends S3OutpostsClient {
|
|
8
|
-
createEndpoint(args, optionsOrCb, cb) {
|
|
9
|
-
const command = new CreateEndpointCommand(args);
|
|
10
|
-
if (typeof optionsOrCb === "function") {
|
|
11
|
-
this.send(command, optionsOrCb);
|
|
12
|
-
}
|
|
13
|
-
else if (typeof cb === "function") {
|
|
14
|
-
if (typeof optionsOrCb !== "object")
|
|
15
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
16
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
return this.send(command, optionsOrCb);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
deleteEndpoint(args, optionsOrCb, cb) {
|
|
23
|
-
const command = new DeleteEndpointCommand(args);
|
|
24
|
-
if (typeof optionsOrCb === "function") {
|
|
25
|
-
this.send(command, optionsOrCb);
|
|
26
|
-
}
|
|
27
|
-
else if (typeof cb === "function") {
|
|
28
|
-
if (typeof optionsOrCb !== "object")
|
|
29
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
30
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
return this.send(command, optionsOrCb);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
listEndpoints(args, optionsOrCb, cb) {
|
|
37
|
-
const command = new ListEndpointsCommand(args);
|
|
38
|
-
if (typeof optionsOrCb === "function") {
|
|
39
|
-
this.send(command, optionsOrCb);
|
|
40
|
-
}
|
|
41
|
-
else if (typeof cb === "function") {
|
|
42
|
-
if (typeof optionsOrCb !== "object")
|
|
43
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
44
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
return this.send(command, optionsOrCb);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
listOutpostsWithS3(args, optionsOrCb, cb) {
|
|
51
|
-
const command = new ListOutpostsWithS3Command(args);
|
|
52
|
-
if (typeof optionsOrCb === "function") {
|
|
53
|
-
this.send(command, optionsOrCb);
|
|
54
|
-
}
|
|
55
|
-
else if (typeof cb === "function") {
|
|
56
|
-
if (typeof optionsOrCb !== "object")
|
|
57
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
58
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
return this.send(command, optionsOrCb);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
listSharedEndpoints(args, optionsOrCb, cb) {
|
|
65
|
-
const command = new ListSharedEndpointsCommand(args);
|
|
66
|
-
if (typeof optionsOrCb === "function") {
|
|
67
|
-
this.send(command, optionsOrCb);
|
|
68
|
-
}
|
|
69
|
-
else if (typeof cb === "function") {
|
|
70
|
-
if (typeof optionsOrCb !== "object")
|
|
71
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
72
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
return this.send(command, optionsOrCb);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
16
|
}
|
|
17
|
+
createAggregatedClient(commands, S3Outposts);
|
|
@@ -5,106 +5,41 @@ import { ListEndpointsCommandInput, ListEndpointsCommandOutput } from "./command
|
|
|
5
5
|
import { ListOutpostsWithS3CommandInput, ListOutpostsWithS3CommandOutput } from "./commands/ListOutpostsWithS3Command";
|
|
6
6
|
import { ListSharedEndpointsCommandInput, ListSharedEndpointsCommandOutput } from "./commands/ListSharedEndpointsCommand";
|
|
7
7
|
import { S3OutpostsClient } from "./S3OutpostsClient";
|
|
8
|
-
|
|
9
|
-
* @public
|
|
10
|
-
* <p>Amazon S3 on Outposts provides access to S3 on Outposts operations.</p>
|
|
11
|
-
*/
|
|
12
|
-
export declare class S3Outposts extends S3OutpostsClient {
|
|
8
|
+
export interface S3Outposts {
|
|
13
9
|
/**
|
|
14
|
-
* @
|
|
15
|
-
* <p>Creates an endpoint and associates it with the specified Outpost.</p>
|
|
16
|
-
* <note>
|
|
17
|
-
* <p>It can take up to 5 minutes for this action to finish.</p>
|
|
18
|
-
* </note>
|
|
19
|
-
* <p></p>
|
|
20
|
-
* <p>Related actions include:</p>
|
|
21
|
-
* <ul>
|
|
22
|
-
* <li>
|
|
23
|
-
* <p>
|
|
24
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
|
|
25
|
-
* </p>
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>
|
|
29
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_ListEndpoints.html">ListEndpoints</a>
|
|
30
|
-
* </p>
|
|
31
|
-
* </li>
|
|
32
|
-
* </ul>
|
|
10
|
+
* @see {@link CreateEndpointCommand}
|
|
33
11
|
*/
|
|
34
12
|
createEndpoint(args: CreateEndpointCommandInput, options?: __HttpHandlerOptions): Promise<CreateEndpointCommandOutput>;
|
|
35
13
|
createEndpoint(args: CreateEndpointCommandInput, cb: (err: any, data?: CreateEndpointCommandOutput) => void): void;
|
|
36
14
|
createEndpoint(args: CreateEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEndpointCommandOutput) => void): void;
|
|
37
15
|
/**
|
|
38
|
-
* @
|
|
39
|
-
* <p>Deletes an endpoint.</p>
|
|
40
|
-
* <note>
|
|
41
|
-
* <p>It can take up to 5 minutes for this action to finish.</p>
|
|
42
|
-
* </note>
|
|
43
|
-
* <p></p>
|
|
44
|
-
* <p>Related actions include:</p>
|
|
45
|
-
* <ul>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>
|
|
48
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
|
|
49
|
-
* </p>
|
|
50
|
-
* </li>
|
|
51
|
-
* <li>
|
|
52
|
-
* <p>
|
|
53
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_ListEndpoints.html">ListEndpoints</a>
|
|
54
|
-
* </p>
|
|
55
|
-
* </li>
|
|
56
|
-
* </ul>
|
|
16
|
+
* @see {@link DeleteEndpointCommand}
|
|
57
17
|
*/
|
|
58
18
|
deleteEndpoint(args: DeleteEndpointCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEndpointCommandOutput>;
|
|
59
19
|
deleteEndpoint(args: DeleteEndpointCommandInput, cb: (err: any, data?: DeleteEndpointCommandOutput) => void): void;
|
|
60
20
|
deleteEndpoint(args: DeleteEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEndpointCommandOutput) => void): void;
|
|
61
21
|
/**
|
|
62
|
-
* @
|
|
63
|
-
* <p>Lists endpoints associated with the specified Outpost. </p>
|
|
64
|
-
* <p>Related actions include:</p>
|
|
65
|
-
* <ul>
|
|
66
|
-
* <li>
|
|
67
|
-
* <p>
|
|
68
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
|
|
69
|
-
* </p>
|
|
70
|
-
* </li>
|
|
71
|
-
* <li>
|
|
72
|
-
* <p>
|
|
73
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
|
|
74
|
-
* </p>
|
|
75
|
-
* </li>
|
|
76
|
-
* </ul>
|
|
22
|
+
* @see {@link ListEndpointsCommand}
|
|
77
23
|
*/
|
|
78
24
|
listEndpoints(args: ListEndpointsCommandInput, options?: __HttpHandlerOptions): Promise<ListEndpointsCommandOutput>;
|
|
79
25
|
listEndpoints(args: ListEndpointsCommandInput, cb: (err: any, data?: ListEndpointsCommandOutput) => void): void;
|
|
80
26
|
listEndpoints(args: ListEndpointsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEndpointsCommandOutput) => void): void;
|
|
81
27
|
/**
|
|
82
|
-
* @
|
|
83
|
-
* <p>Lists the Outposts with S3 on Outposts capacity for your Amazon Web Services account.
|
|
84
|
-
* Includes S3 on Outposts that you have access to as the Outposts owner, or as a shared user
|
|
85
|
-
* from Resource Access Manager (RAM). </p>
|
|
28
|
+
* @see {@link ListOutpostsWithS3Command}
|
|
86
29
|
*/
|
|
87
30
|
listOutpostsWithS3(args: ListOutpostsWithS3CommandInput, options?: __HttpHandlerOptions): Promise<ListOutpostsWithS3CommandOutput>;
|
|
88
31
|
listOutpostsWithS3(args: ListOutpostsWithS3CommandInput, cb: (err: any, data?: ListOutpostsWithS3CommandOutput) => void): void;
|
|
89
32
|
listOutpostsWithS3(args: ListOutpostsWithS3CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListOutpostsWithS3CommandOutput) => void): void;
|
|
90
33
|
/**
|
|
91
|
-
* @
|
|
92
|
-
* <p>Lists all endpoints associated with an Outpost that has been shared by Amazon Web Services Resource Access Manager (RAM).</p>
|
|
93
|
-
* <p>Related actions include:</p>
|
|
94
|
-
* <ul>
|
|
95
|
-
* <li>
|
|
96
|
-
* <p>
|
|
97
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
|
|
98
|
-
* </p>
|
|
99
|
-
* </li>
|
|
100
|
-
* <li>
|
|
101
|
-
* <p>
|
|
102
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
|
|
103
|
-
* </p>
|
|
104
|
-
* </li>
|
|
105
|
-
* </ul>
|
|
34
|
+
* @see {@link ListSharedEndpointsCommand}
|
|
106
35
|
*/
|
|
107
36
|
listSharedEndpoints(args: ListSharedEndpointsCommandInput, options?: __HttpHandlerOptions): Promise<ListSharedEndpointsCommandOutput>;
|
|
108
37
|
listSharedEndpoints(args: ListSharedEndpointsCommandInput, cb: (err: any, data?: ListSharedEndpointsCommandOutput) => void): void;
|
|
109
38
|
listSharedEndpoints(args: ListSharedEndpointsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSharedEndpointsCommandOutput) => void): void;
|
|
110
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
* <p>Amazon S3 on Outposts provides access to S3 on Outposts operations.</p>
|
|
43
|
+
*/
|
|
44
|
+
export declare class S3Outposts extends S3OutpostsClient implements S3Outposts {
|
|
45
|
+
}
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
ListSharedEndpointsCommandOutput,
|
|
21
21
|
} from "./commands/ListSharedEndpointsCommand";
|
|
22
22
|
import { S3OutpostsClient } from "./S3OutpostsClient";
|
|
23
|
-
export
|
|
23
|
+
export interface S3Outposts {
|
|
24
24
|
createEndpoint(
|
|
25
25
|
args: CreateEndpointCommandInput,
|
|
26
26
|
options?: __HttpHandlerOptions
|
|
@@ -87,3 +87,6 @@ export declare class S3Outposts extends S3OutpostsClient {
|
|
|
87
87
|
cb: (err: any, data?: ListSharedEndpointsCommandOutput) => void
|
|
88
88
|
): void;
|
|
89
89
|
}
|
|
90
|
+
export declare class S3Outposts
|
|
91
|
+
extends S3OutpostsClient
|
|
92
|
+
implements S3Outposts {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3outposts",
|
|
3
3
|
"description": "AWS SDK for JavaScript S3outposts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.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",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|