@aws-sdk/client-s3outposts 3.35.0 → 3.38.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/CHANGELOG.md +47 -0
- package/dist-cjs/S3Outposts.js +0 -4
- package/dist-cjs/S3OutpostsClient.js +0 -9
- package/dist-cjs/commands/CreateEndpointCommand.js +0 -46
- package/dist-cjs/commands/DeleteEndpointCommand.js +0 -46
- package/dist-cjs/commands/ListEndpointsCommand.js +0 -44
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -8
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -37
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListEndpointsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/S3Outposts.js +0 -1
- package/dist-es/S3OutpostsClient.js +0 -1
- package/dist-es/commands/CreateEndpointCommand.js +0 -1
- package/dist-es/commands/DeleteEndpointCommand.js +0 -1
- package/dist-es/commands/ListEndpointsCommand.js +0 -1
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -8
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListEndpointsPaginator.js +0 -1
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +4 -7
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/S3Outposts.d.ts +4 -73
- package/dist-types/ts3.4/S3OutpostsClient.d.ts +24 -89
- package/dist-types/ts3.4/commands/CreateEndpointCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/DeleteEndpointCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/ListEndpointsCommand.d.ts +2 -39
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/index.d.ts +4 -7
- package/dist-types/ts3.4/models/models_0.d.ts +43 -136
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/S3Outposts.js.map +0 -1
- package/dist-cjs/S3OutpostsClient.js.map +0 -1
- package/dist-cjs/commands/CreateEndpointCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteEndpointCommand.js.map +0 -1
- package/dist-cjs/commands/ListEndpointsCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListEndpointsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/S3Outposts.js.map +0 -1
- package/dist-es/S3OutpostsClient.js.map +0 -1
- package/dist-es/commands/CreateEndpointCommand.js.map +0 -1
- package/dist-es/commands/DeleteEndpointCommand.js.map +0 -1
- package/dist-es/commands/ListEndpointsCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListEndpointsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/S3Outposts.ts +0 -180
- package/src/S3OutpostsClient.ts +0 -239
- package/src/commands/CreateEndpointCommand.ts +0 -116
- package/src/commands/DeleteEndpointCommand.ts +0 -116
- package/src/commands/ListEndpointsCommand.ts +0 -114
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -8
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -312
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListEndpointsPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -557
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { DeleteEndpointRequest } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1DeleteEndpointCommand,
|
|
17
|
-
serializeAws_restJson1DeleteEndpointCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { S3OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3OutpostsClient";
|
|
20
|
-
|
|
21
|
-
export interface DeleteEndpointCommandInput extends DeleteEndpointRequest {}
|
|
22
|
-
export interface DeleteEndpointCommandOutput extends __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Amazon S3 on Outposts Access Points simplify managing data access at scale for shared datasets in S3 on Outposts.
|
|
26
|
-
* S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your
|
|
27
|
-
* virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html">
|
|
28
|
-
* Accessing S3 on Outposts using VPC only access points</a>.</p>
|
|
29
|
-
* <p>This action deletes an endpoint.</p>
|
|
30
|
-
* <note>
|
|
31
|
-
* <p>It can take up to 5 minutes for this action to complete.</p>
|
|
32
|
-
* </note>
|
|
33
|
-
* <p></p>
|
|
34
|
-
* <p>Related actions include:</p>
|
|
35
|
-
* <ul>
|
|
36
|
-
* <li>
|
|
37
|
-
* <p>
|
|
38
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
|
|
39
|
-
* </p>
|
|
40
|
-
* </li>
|
|
41
|
-
* <li>
|
|
42
|
-
* <p>
|
|
43
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_ListEndpoints.html">ListEndpoints</a>
|
|
44
|
-
* </p>
|
|
45
|
-
* </li>
|
|
46
|
-
* </ul>
|
|
47
|
-
* @example
|
|
48
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
49
|
-
* ```javascript
|
|
50
|
-
* import { S3OutpostsClient, DeleteEndpointCommand } from "@aws-sdk/client-s3outposts"; // ES Modules import
|
|
51
|
-
* // const { S3OutpostsClient, DeleteEndpointCommand } = require("@aws-sdk/client-s3outposts"); // CommonJS import
|
|
52
|
-
* const client = new S3OutpostsClient(config);
|
|
53
|
-
* const command = new DeleteEndpointCommand(input);
|
|
54
|
-
* const response = await client.send(command);
|
|
55
|
-
* ```
|
|
56
|
-
*
|
|
57
|
-
* @see {@link DeleteEndpointCommandInput} for command's `input` shape.
|
|
58
|
-
* @see {@link DeleteEndpointCommandOutput} for command's `response` shape.
|
|
59
|
-
* @see {@link S3OutpostsClientResolvedConfig | config} for command's `input` shape.
|
|
60
|
-
*
|
|
61
|
-
*/
|
|
62
|
-
export class DeleteEndpointCommand extends $Command<
|
|
63
|
-
DeleteEndpointCommandInput,
|
|
64
|
-
DeleteEndpointCommandOutput,
|
|
65
|
-
S3OutpostsClientResolvedConfig
|
|
66
|
-
> {
|
|
67
|
-
// Start section: command_properties
|
|
68
|
-
// End section: command_properties
|
|
69
|
-
|
|
70
|
-
constructor(readonly input: DeleteEndpointCommandInput) {
|
|
71
|
-
// Start section: command_constructor
|
|
72
|
-
super();
|
|
73
|
-
// End section: command_constructor
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
*/
|
|
79
|
-
resolveMiddleware(
|
|
80
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
81
|
-
configuration: S3OutpostsClientResolvedConfig,
|
|
82
|
-
options?: __HttpHandlerOptions
|
|
83
|
-
): Handler<DeleteEndpointCommandInput, DeleteEndpointCommandOutput> {
|
|
84
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
85
|
-
|
|
86
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
87
|
-
|
|
88
|
-
const { logger } = configuration;
|
|
89
|
-
const clientName = "S3OutpostsClient";
|
|
90
|
-
const commandName = "DeleteEndpointCommand";
|
|
91
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
92
|
-
logger,
|
|
93
|
-
clientName,
|
|
94
|
-
commandName,
|
|
95
|
-
inputFilterSensitiveLog: DeleteEndpointRequest.filterSensitiveLog,
|
|
96
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
97
|
-
};
|
|
98
|
-
const { requestHandler } = configuration;
|
|
99
|
-
return stack.resolve(
|
|
100
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
101
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
102
|
-
handlerExecutionContext
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
private serialize(input: DeleteEndpointCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
107
|
-
return serializeAws_restJson1DeleteEndpointCommand(input, context);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteEndpointCommandOutput> {
|
|
111
|
-
return deserializeAws_restJson1DeleteEndpointCommand(output, context);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// Start section: command_body_extra
|
|
115
|
-
// End section: command_body_extra
|
|
116
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ListEndpointsRequest, ListEndpointsResult } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1ListEndpointsCommand,
|
|
17
|
-
serializeAws_restJson1ListEndpointsCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { S3OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3OutpostsClient";
|
|
20
|
-
|
|
21
|
-
export interface ListEndpointsCommandInput extends ListEndpointsRequest {}
|
|
22
|
-
export interface ListEndpointsCommandOutput extends ListEndpointsResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Amazon S3 on Outposts Access Points simplify managing data access at scale for shared datasets in S3 on Outposts.
|
|
26
|
-
* S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your
|
|
27
|
-
* virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html">
|
|
28
|
-
* Accessing S3 on Outposts using VPC only access points</a>.</p>
|
|
29
|
-
* <p>This action lists endpoints associated with the Outposts.
|
|
30
|
-
* </p>
|
|
31
|
-
* <p></p>
|
|
32
|
-
* <p>Related actions include:</p>
|
|
33
|
-
* <ul>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>
|
|
36
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
|
|
37
|
-
* </p>
|
|
38
|
-
* </li>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>
|
|
41
|
-
* <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
|
|
42
|
-
* </p>
|
|
43
|
-
* </li>
|
|
44
|
-
* </ul>
|
|
45
|
-
* @example
|
|
46
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
47
|
-
* ```javascript
|
|
48
|
-
* import { S3OutpostsClient, ListEndpointsCommand } from "@aws-sdk/client-s3outposts"; // ES Modules import
|
|
49
|
-
* // const { S3OutpostsClient, ListEndpointsCommand } = require("@aws-sdk/client-s3outposts"); // CommonJS import
|
|
50
|
-
* const client = new S3OutpostsClient(config);
|
|
51
|
-
* const command = new ListEndpointsCommand(input);
|
|
52
|
-
* const response = await client.send(command);
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* @see {@link ListEndpointsCommandInput} for command's `input` shape.
|
|
56
|
-
* @see {@link ListEndpointsCommandOutput} for command's `response` shape.
|
|
57
|
-
* @see {@link S3OutpostsClientResolvedConfig | config} for command's `input` shape.
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
export class ListEndpointsCommand extends $Command<
|
|
61
|
-
ListEndpointsCommandInput,
|
|
62
|
-
ListEndpointsCommandOutput,
|
|
63
|
-
S3OutpostsClientResolvedConfig
|
|
64
|
-
> {
|
|
65
|
-
// Start section: command_properties
|
|
66
|
-
// End section: command_properties
|
|
67
|
-
|
|
68
|
-
constructor(readonly input: ListEndpointsCommandInput) {
|
|
69
|
-
// Start section: command_constructor
|
|
70
|
-
super();
|
|
71
|
-
// End section: command_constructor
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
*/
|
|
77
|
-
resolveMiddleware(
|
|
78
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
79
|
-
configuration: S3OutpostsClientResolvedConfig,
|
|
80
|
-
options?: __HttpHandlerOptions
|
|
81
|
-
): Handler<ListEndpointsCommandInput, ListEndpointsCommandOutput> {
|
|
82
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
83
|
-
|
|
84
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
85
|
-
|
|
86
|
-
const { logger } = configuration;
|
|
87
|
-
const clientName = "S3OutpostsClient";
|
|
88
|
-
const commandName = "ListEndpointsCommand";
|
|
89
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
90
|
-
logger,
|
|
91
|
-
clientName,
|
|
92
|
-
commandName,
|
|
93
|
-
inputFilterSensitiveLog: ListEndpointsRequest.filterSensitiveLog,
|
|
94
|
-
outputFilterSensitiveLog: ListEndpointsResult.filterSensitiveLog,
|
|
95
|
-
};
|
|
96
|
-
const { requestHandler } = configuration;
|
|
97
|
-
return stack.resolve(
|
|
98
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
99
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
100
|
-
handlerExecutionContext
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
private serialize(input: ListEndpointsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
105
|
-
return serializeAws_restJson1ListEndpointsCommand(input, context);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListEndpointsCommandOutput> {
|
|
109
|
-
return deserializeAws_restJson1ListEndpointsCommand(output, context);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// Start section: command_body_extra
|
|
113
|
-
// End section: command_body_extra
|
|
114
|
-
}
|
package/src/endpoints.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
|
|
2
|
-
import { RegionInfoProvider } from "@aws-sdk/types";
|
|
3
|
-
|
|
4
|
-
const regionHash: RegionHash = {};
|
|
5
|
-
|
|
6
|
-
const partitionHash: PartitionHash = {
|
|
7
|
-
aws: {
|
|
8
|
-
regions: [
|
|
9
|
-
"af-south-1",
|
|
10
|
-
"ap-east-1",
|
|
11
|
-
"ap-northeast-1",
|
|
12
|
-
"ap-northeast-2",
|
|
13
|
-
"ap-northeast-3",
|
|
14
|
-
"ap-south-1",
|
|
15
|
-
"ap-southeast-1",
|
|
16
|
-
"ap-southeast-2",
|
|
17
|
-
"ca-central-1",
|
|
18
|
-
"eu-central-1",
|
|
19
|
-
"eu-north-1",
|
|
20
|
-
"eu-south-1",
|
|
21
|
-
"eu-west-1",
|
|
22
|
-
"eu-west-2",
|
|
23
|
-
"eu-west-3",
|
|
24
|
-
"me-south-1",
|
|
25
|
-
"sa-east-1",
|
|
26
|
-
"us-east-1",
|
|
27
|
-
"us-east-2",
|
|
28
|
-
"us-west-1",
|
|
29
|
-
"us-west-2",
|
|
30
|
-
],
|
|
31
|
-
hostname: "s3-outposts.{region}.amazonaws.com",
|
|
32
|
-
},
|
|
33
|
-
"aws-cn": {
|
|
34
|
-
regions: ["cn-north-1", "cn-northwest-1"],
|
|
35
|
-
hostname: "s3-outposts.{region}.amazonaws.com.cn",
|
|
36
|
-
},
|
|
37
|
-
"aws-iso": {
|
|
38
|
-
regions: ["us-iso-east-1"],
|
|
39
|
-
hostname: "s3-outposts.{region}.c2s.ic.gov",
|
|
40
|
-
},
|
|
41
|
-
"aws-iso-b": {
|
|
42
|
-
regions: ["us-isob-east-1"],
|
|
43
|
-
hostname: "s3-outposts.{region}.sc2s.sgov.gov",
|
|
44
|
-
},
|
|
45
|
-
"aws-us-gov": {
|
|
46
|
-
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
47
|
-
hostname: "s3-outposts.{region}.amazonaws.com",
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
|
|
52
|
-
getRegionInfo(region, {
|
|
53
|
-
...options,
|
|
54
|
-
signingService: "s3-outposts",
|
|
55
|
-
regionHash,
|
|
56
|
-
partitionHash,
|
|
57
|
-
});
|
package/src/index.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./S3OutpostsClient";
|
|
2
|
-
export * from "./S3Outposts";
|
|
3
|
-
export * from "./commands/CreateEndpointCommand";
|
|
4
|
-
export * from "./commands/DeleteEndpointCommand";
|
|
5
|
-
export * from "./commands/ListEndpointsCommand";
|
|
6
|
-
export * from "./pagination/ListEndpointsPaginator";
|
|
7
|
-
export * from "./pagination/Interfaces";
|
|
8
|
-
export * from "./models/index";
|
package/src/models/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
package/src/models/models_0.ts
DELETED
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* <p>Access was denied for this action.</p>
|
|
5
|
-
*/
|
|
6
|
-
export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
|
|
7
|
-
name: "AccessDeniedException";
|
|
8
|
-
$fault: "client";
|
|
9
|
-
Message?: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export namespace AccessDeniedException {
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
export const filterSensitiveLog = (obj: AccessDeniedException): any => ({
|
|
17
|
-
...obj,
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* <p>There was a conflict with this action, and it could not be completed.</p>
|
|
23
|
-
*/
|
|
24
|
-
export interface ConflictException extends __SmithyException, $MetadataBearer {
|
|
25
|
-
name: "ConflictException";
|
|
26
|
-
$fault: "client";
|
|
27
|
-
Message?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export namespace ConflictException {
|
|
31
|
-
/**
|
|
32
|
-
* @internal
|
|
33
|
-
*/
|
|
34
|
-
export const filterSensitiveLog = (obj: ConflictException): any => ({
|
|
35
|
-
...obj,
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export enum EndpointAccessType {
|
|
40
|
-
CUSTOMER_OWNED_IP = "CustomerOwnedIp",
|
|
41
|
-
PRIVATE = "Private",
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface CreateEndpointRequest {
|
|
45
|
-
/**
|
|
46
|
-
* <p>The ID of the AWS Outposts. </p>
|
|
47
|
-
*/
|
|
48
|
-
OutpostId: string | undefined;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* <p>The ID of the subnet in the selected VPC. The endpoint subnet
|
|
52
|
-
* must belong to the Outpost that has the Amazon S3 on Outposts provisioned.</p>
|
|
53
|
-
*/
|
|
54
|
-
SubnetId: string | undefined;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* <p>The ID of the security group to use with the endpoint.</p>
|
|
58
|
-
*/
|
|
59
|
-
SecurityGroupId: string | undefined;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* <p>The type of access for the on-premise network connectivity for the
|
|
63
|
-
* Outpost endpoint. To access the endpoint from an on-premises network, you must
|
|
64
|
-
* specify the access type and provide the customer owned IPv4 pool.</p>
|
|
65
|
-
*/
|
|
66
|
-
AccessType?: EndpointAccessType | string;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* <p>The ID of the customer-owned IPv4 pool for the endpoint.
|
|
70
|
-
* IP addresses will be allocated from this pool for the endpoint.</p>
|
|
71
|
-
*/
|
|
72
|
-
CustomerOwnedIpv4Pool?: string;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export namespace CreateEndpointRequest {
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
*/
|
|
79
|
-
export const filterSensitiveLog = (obj: CreateEndpointRequest): any => ({
|
|
80
|
-
...obj,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export interface CreateEndpointResult {
|
|
85
|
-
/**
|
|
86
|
-
* <p>The Amazon Resource Name (ARN) of the endpoint.</p>
|
|
87
|
-
*/
|
|
88
|
-
EndpointArn?: string;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export namespace CreateEndpointResult {
|
|
92
|
-
/**
|
|
93
|
-
* @internal
|
|
94
|
-
*/
|
|
95
|
-
export const filterSensitiveLog = (obj: CreateEndpointResult): any => ({
|
|
96
|
-
...obj,
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* <p>There was an exception with the internal server.</p>
|
|
102
|
-
*/
|
|
103
|
-
export interface InternalServerException extends __SmithyException, $MetadataBearer {
|
|
104
|
-
name: "InternalServerException";
|
|
105
|
-
$fault: "server";
|
|
106
|
-
Message?: string;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export namespace InternalServerException {
|
|
110
|
-
/**
|
|
111
|
-
* @internal
|
|
112
|
-
*/
|
|
113
|
-
export const filterSensitiveLog = (obj: InternalServerException): any => ({
|
|
114
|
-
...obj,
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* <p>The requested resource was not found.</p>
|
|
120
|
-
*/
|
|
121
|
-
export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
|
|
122
|
-
name: "ResourceNotFoundException";
|
|
123
|
-
$fault: "client";
|
|
124
|
-
Message?: string;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export namespace ResourceNotFoundException {
|
|
128
|
-
/**
|
|
129
|
-
* @internal
|
|
130
|
-
*/
|
|
131
|
-
export const filterSensitiveLog = (obj: ResourceNotFoundException): any => ({
|
|
132
|
-
...obj,
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* <p>There was an exception validating this data.</p>
|
|
138
|
-
*/
|
|
139
|
-
export interface ValidationException extends __SmithyException, $MetadataBearer {
|
|
140
|
-
name: "ValidationException";
|
|
141
|
-
$fault: "client";
|
|
142
|
-
Message?: string;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export namespace ValidationException {
|
|
146
|
-
/**
|
|
147
|
-
* @internal
|
|
148
|
-
*/
|
|
149
|
-
export const filterSensitiveLog = (obj: ValidationException): any => ({
|
|
150
|
-
...obj,
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export interface DeleteEndpointRequest {
|
|
155
|
-
/**
|
|
156
|
-
* <p>The ID of the endpoint.</p>
|
|
157
|
-
*/
|
|
158
|
-
EndpointId: string | undefined;
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* <p>The ID of the AWS Outposts. </p>
|
|
162
|
-
*/
|
|
163
|
-
OutpostId: string | undefined;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export namespace DeleteEndpointRequest {
|
|
167
|
-
/**
|
|
168
|
-
* @internal
|
|
169
|
-
*/
|
|
170
|
-
export const filterSensitiveLog = (obj: DeleteEndpointRequest): any => ({
|
|
171
|
-
...obj,
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* <p>The container for the network interface.</p>
|
|
177
|
-
*/
|
|
178
|
-
export interface NetworkInterface {
|
|
179
|
-
/**
|
|
180
|
-
* <p>The ID for the network interface.</p>
|
|
181
|
-
*/
|
|
182
|
-
NetworkInterfaceId?: string;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export namespace NetworkInterface {
|
|
186
|
-
/**
|
|
187
|
-
* @internal
|
|
188
|
-
*/
|
|
189
|
-
export const filterSensitiveLog = (obj: NetworkInterface): any => ({
|
|
190
|
-
...obj,
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export enum EndpointStatus {
|
|
195
|
-
AVAILABLE = "Available",
|
|
196
|
-
DELETING = "Deleting",
|
|
197
|
-
PENDING = "Pending",
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* <p>Amazon S3 on Outposts Access Points simplify managing data access at scale for shared datasets in S3 on Outposts.
|
|
202
|
-
* S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your
|
|
203
|
-
* virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html">
|
|
204
|
-
* Accessing S3 on Outposts using VPC only access points</a>.</p>
|
|
205
|
-
*/
|
|
206
|
-
export interface Endpoint {
|
|
207
|
-
/**
|
|
208
|
-
* <p>The Amazon Resource Name (ARN) of the endpoint.</p>
|
|
209
|
-
*/
|
|
210
|
-
EndpointArn?: string;
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* <p>The ID of the AWS Outposts.</p>
|
|
214
|
-
*/
|
|
215
|
-
OutpostsId?: string;
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* <p>The VPC CIDR committed by this endpoint.</p>
|
|
219
|
-
*/
|
|
220
|
-
CidrBlock?: string;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* <p>The status of the endpoint.</p>
|
|
224
|
-
*/
|
|
225
|
-
Status?: EndpointStatus | string;
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* <p>The time the endpoint was created.</p>
|
|
229
|
-
*/
|
|
230
|
-
CreationTime?: Date;
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* <p>The network interface of the endpoint.</p>
|
|
234
|
-
*/
|
|
235
|
-
NetworkInterfaces?: NetworkInterface[];
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* <p>The ID of the VPC used for the endpoint.</p>
|
|
239
|
-
*/
|
|
240
|
-
VpcId?: string;
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* <p>The ID of the subnet used for the endpoint.</p>
|
|
244
|
-
*/
|
|
245
|
-
SubnetId?: string;
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* <p>The ID of the security group used for the endpoint.</p>
|
|
249
|
-
*/
|
|
250
|
-
SecurityGroupId?: string;
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* <p></p>
|
|
254
|
-
*/
|
|
255
|
-
AccessType?: EndpointAccessType | string;
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* <p>The ID of the customer-owned IPv4 pool used for the endpoint.</p>
|
|
259
|
-
*/
|
|
260
|
-
CustomerOwnedIpv4Pool?: string;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
export namespace Endpoint {
|
|
264
|
-
/**
|
|
265
|
-
* @internal
|
|
266
|
-
*/
|
|
267
|
-
export const filterSensitiveLog = (obj: Endpoint): any => ({
|
|
268
|
-
...obj,
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
export interface ListEndpointsRequest {
|
|
273
|
-
/**
|
|
274
|
-
* <p>The next endpoint requested in the list.</p>
|
|
275
|
-
*/
|
|
276
|
-
NextToken?: string;
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* <p>The max number of endpoints that can be returned on the request.</p>
|
|
280
|
-
*/
|
|
281
|
-
MaxResults?: number;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
export namespace ListEndpointsRequest {
|
|
285
|
-
/**
|
|
286
|
-
* @internal
|
|
287
|
-
*/
|
|
288
|
-
export const filterSensitiveLog = (obj: ListEndpointsRequest): any => ({
|
|
289
|
-
...obj,
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
export interface ListEndpointsResult {
|
|
294
|
-
/**
|
|
295
|
-
* <p>Returns an array of endpoints associated with AWS Outposts.</p>
|
|
296
|
-
*/
|
|
297
|
-
Endpoints?: Endpoint[];
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* <p>The next endpoint returned in the list.</p>
|
|
301
|
-
*/
|
|
302
|
-
NextToken?: string;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
export namespace ListEndpointsResult {
|
|
306
|
-
/**
|
|
307
|
-
* @internal
|
|
308
|
-
*/
|
|
309
|
-
export const filterSensitiveLog = (obj: ListEndpointsResult): any => ({
|
|
310
|
-
...obj,
|
|
311
|
-
});
|
|
312
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { S3Outposts } from "../S3Outposts";
|
|
4
|
-
import { S3OutpostsClient } from "../S3OutpostsClient";
|
|
5
|
-
|
|
6
|
-
export interface S3OutpostsPaginationConfiguration extends PaginationConfiguration {
|
|
7
|
-
client: S3Outposts | S3OutpostsClient;
|
|
8
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListEndpointsCommand,
|
|
5
|
-
ListEndpointsCommandInput,
|
|
6
|
-
ListEndpointsCommandOutput,
|
|
7
|
-
} from "../commands/ListEndpointsCommand";
|
|
8
|
-
import { S3Outposts } from "../S3Outposts";
|
|
9
|
-
import { S3OutpostsClient } from "../S3OutpostsClient";
|
|
10
|
-
import { S3OutpostsPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: S3OutpostsClient,
|
|
17
|
-
input: ListEndpointsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListEndpointsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListEndpointsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: S3Outposts,
|
|
28
|
-
input: ListEndpointsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListEndpointsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listEndpoints(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListEndpoints(
|
|
35
|
-
config: S3OutpostsPaginationConfiguration,
|
|
36
|
-
input: ListEndpointsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListEndpointsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListEndpointsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof S3Outposts) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof S3OutpostsClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected S3Outposts | S3OutpostsClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|