@aws-sdk/client-s3outposts 3.34.0 → 3.37.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.
Files changed (130) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/S3Outposts.js +1 -5
  3. package/{dist/cjs → dist-cjs}/S3OutpostsClient.js +8 -17
  4. package/dist-cjs/commands/CreateEndpointCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteEndpointCommand.js +36 -0
  6. package/dist-cjs/commands/ListEndpointsCommand.js +36 -0
  7. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  8. package/{dist/cjs → dist-cjs}/index.js +0 -1
  9. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  10. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -37
  11. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  12. package/{dist/cjs → dist-cjs}/pagination/ListEndpointsPaginator.js +1 -12
  13. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +3 -9
  14. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  15. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  17. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  18. package/{dist/es → dist-es}/S3Outposts.js +1 -2
  19. package/{dist/es → dist-es}/S3OutpostsClient.js +1 -2
  20. package/{dist/es → dist-es}/commands/CreateEndpointCommand.js +2 -3
  21. package/{dist/es → dist-es}/commands/DeleteEndpointCommand.js +2 -3
  22. package/{dist/es → dist-es}/commands/ListEndpointsCommand.js +2 -3
  23. package/{dist/es → dist-es}/endpoints.js +1 -2
  24. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  25. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  26. package/{dist/es → dist-es}/models/models_0.js +0 -1
  27. package/dist-es/pagination/Interfaces.js +1 -0
  28. package/{dist/es → dist-es}/pagination/ListEndpointsPaginator.js +1 -2
  29. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
  30. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  31. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  32. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  33. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  34. package/{dist/types → dist-types}/S3Outposts.d.ts +2 -2
  35. package/{dist/types → dist-types}/S3OutpostsClient.d.ts +4 -4
  36. package/{dist/types → dist-types}/commands/CreateEndpointCommand.d.ts +3 -3
  37. package/{dist/types → dist-types}/commands/DeleteEndpointCommand.d.ts +3 -3
  38. package/{dist/types → dist-types}/commands/ListEndpointsCommand.d.ts +3 -3
  39. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  40. package/{index.ts → dist-types/index.d.ts} +0 -0
  41. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  42. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  43. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  44. package/{dist/types → dist-types}/pagination/ListEndpointsPaginator.d.ts +1 -1
  45. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  46. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  47. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  48. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  49. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  50. package/dist-types/ts3.4/S3Outposts.d.ts +20 -0
  51. package/dist-types/ts3.4/S3OutpostsClient.d.ts +70 -0
  52. package/dist-types/ts3.4/commands/CreateEndpointCommand.d.ts +17 -0
  53. package/dist-types/ts3.4/commands/DeleteEndpointCommand.d.ts +17 -0
  54. package/dist-types/ts3.4/commands/ListEndpointsCommand.d.ts +17 -0
  55. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  56. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  57. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  58. package/dist-types/ts3.4/models/models_0.d.ts +152 -0
  59. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  60. package/{dist/types → dist-types}/ts3.4/pagination/ListEndpointsPaginator.d.ts +1 -1
  61. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  62. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  63. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  64. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  65. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  66. package/package.json +45 -42
  67. package/S3Outposts.ts +0 -179
  68. package/S3OutpostsClient.ts +0 -238
  69. package/commands/CreateEndpointCommand.ts +0 -115
  70. package/commands/DeleteEndpointCommand.ts +0 -115
  71. package/commands/ListEndpointsCommand.ts +0 -113
  72. package/dist/cjs/S3Outposts.js.map +0 -1
  73. package/dist/cjs/S3OutpostsClient.js.map +0 -1
  74. package/dist/cjs/commands/CreateEndpointCommand.js +0 -82
  75. package/dist/cjs/commands/CreateEndpointCommand.js.map +0 -1
  76. package/dist/cjs/commands/DeleteEndpointCommand.js +0 -82
  77. package/dist/cjs/commands/DeleteEndpointCommand.js.map +0 -1
  78. package/dist/cjs/commands/ListEndpointsCommand.js +0 -80
  79. package/dist/cjs/commands/ListEndpointsCommand.js.map +0 -1
  80. package/dist/cjs/endpoints.js.map +0 -1
  81. package/dist/cjs/index.js.map +0 -1
  82. package/dist/cjs/models/index.js.map +0 -1
  83. package/dist/cjs/models/models_0.js.map +0 -1
  84. package/dist/cjs/package.json +0 -91
  85. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  86. package/dist/cjs/pagination/ListEndpointsPaginator.js.map +0 -1
  87. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  88. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  89. package/dist/cjs/runtimeConfig.js.map +0 -1
  90. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  91. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  92. package/dist/es/S3Outposts.js.map +0 -1
  93. package/dist/es/S3OutpostsClient.js.map +0 -1
  94. package/dist/es/commands/CreateEndpointCommand.js.map +0 -1
  95. package/dist/es/commands/DeleteEndpointCommand.js.map +0 -1
  96. package/dist/es/commands/ListEndpointsCommand.js.map +0 -1
  97. package/dist/es/endpoints.js.map +0 -1
  98. package/dist/es/index.js +0 -9
  99. package/dist/es/index.js.map +0 -1
  100. package/dist/es/models/index.js +0 -2
  101. package/dist/es/models/index.js.map +0 -1
  102. package/dist/es/models/models_0.js.map +0 -1
  103. package/dist/es/package.json +0 -91
  104. package/dist/es/pagination/Interfaces.js +0 -2
  105. package/dist/es/pagination/Interfaces.js.map +0 -1
  106. package/dist/es/pagination/ListEndpointsPaginator.js.map +0 -1
  107. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  108. package/dist/es/runtimeConfig.browser.js.map +0 -1
  109. package/dist/es/runtimeConfig.js.map +0 -1
  110. package/dist/es/runtimeConfig.native.js.map +0 -1
  111. package/dist/es/runtimeConfig.shared.js.map +0 -1
  112. package/dist/types/ts3.4/S3Outposts.d.ts +0 -89
  113. package/dist/types/ts3.4/S3OutpostsClient.d.ts +0 -135
  114. package/dist/types/ts3.4/commands/CreateEndpointCommand.d.ts +0 -56
  115. package/dist/types/ts3.4/commands/DeleteEndpointCommand.d.ts +0 -56
  116. package/dist/types/ts3.4/commands/ListEndpointsCommand.d.ts +0 -54
  117. package/dist/types/ts3.4/models/models_0.d.ts +0 -245
  118. package/endpoints.ts +0 -57
  119. package/jest.config.js +0 -4
  120. package/models/models_0.ts +0 -312
  121. package/pagination/Interfaces.ts +0 -7
  122. package/pagination/ListEndpointsPaginator.ts +0 -58
  123. package/protocols/Aws_restJson1.ts +0 -556
  124. package/runtimeConfig.browser.ts +0 -40
  125. package/runtimeConfig.native.ts +0 -16
  126. package/runtimeConfig.shared.ts +0 -16
  127. package/runtimeConfig.ts +0 -45
  128. package/tsconfig.es.json +0 -10
  129. package/tsconfig.json +0 -31
  130. package/tsconfig.types.json +0 -8
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.34.0",
4
+ "version": "3.37.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
@@ -11,54 +11,48 @@
11
11
  "clean": "yarn clean:dist && yarn clean:docs",
12
12
  "clean:dist": "rimraf ./dist",
13
13
  "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
14
+ "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
15
  "test": "jest --coverage --passWithNoTests"
16
16
  },
17
- "main": "./dist/cjs/index.js",
18
- "types": "./dist/types/index.d.ts",
19
- "module": "./dist/es/index.js",
20
- "browser": {
21
- "./runtimeConfig": "./runtimeConfig.browser"
22
- },
23
- "react-native": {
24
- "./runtimeConfig": "./runtimeConfig.native"
25
- },
17
+ "main": "./dist-cjs/index.js",
18
+ "types": "./dist-types/index.d.ts",
19
+ "module": "./dist-es/index.js",
26
20
  "sideEffects": false,
27
21
  "dependencies": {
28
22
  "@aws-crypto/sha256-browser": "^1.0.0",
29
23
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.34.0",
31
- "@aws-sdk/config-resolver": "3.34.0",
32
- "@aws-sdk/credential-provider-node": "3.34.0",
33
- "@aws-sdk/fetch-http-handler": "3.34.0",
34
- "@aws-sdk/hash-node": "3.34.0",
35
- "@aws-sdk/invalid-dependency": "3.34.0",
36
- "@aws-sdk/middleware-content-length": "3.34.0",
37
- "@aws-sdk/middleware-host-header": "3.34.0",
38
- "@aws-sdk/middleware-logger": "3.34.0",
39
- "@aws-sdk/middleware-retry": "3.34.0",
40
- "@aws-sdk/middleware-serde": "3.34.0",
41
- "@aws-sdk/middleware-signing": "3.34.0",
42
- "@aws-sdk/middleware-stack": "3.34.0",
43
- "@aws-sdk/middleware-user-agent": "3.34.0",
44
- "@aws-sdk/node-config-provider": "3.34.0",
45
- "@aws-sdk/node-http-handler": "3.34.0",
46
- "@aws-sdk/protocol-http": "3.34.0",
47
- "@aws-sdk/smithy-client": "3.34.0",
48
- "@aws-sdk/types": "3.34.0",
49
- "@aws-sdk/url-parser": "3.34.0",
50
- "@aws-sdk/util-base64-browser": "3.34.0",
51
- "@aws-sdk/util-base64-node": "3.34.0",
52
- "@aws-sdk/util-body-length-browser": "3.34.0",
53
- "@aws-sdk/util-body-length-node": "3.34.0",
54
- "@aws-sdk/util-user-agent-browser": "3.34.0",
55
- "@aws-sdk/util-user-agent-node": "3.34.0",
56
- "@aws-sdk/util-utf8-browser": "3.34.0",
57
- "@aws-sdk/util-utf8-node": "3.34.0",
24
+ "@aws-sdk/client-sts": "3.37.0",
25
+ "@aws-sdk/config-resolver": "3.37.0",
26
+ "@aws-sdk/credential-provider-node": "3.37.0",
27
+ "@aws-sdk/fetch-http-handler": "3.37.0",
28
+ "@aws-sdk/hash-node": "3.37.0",
29
+ "@aws-sdk/invalid-dependency": "3.37.0",
30
+ "@aws-sdk/middleware-content-length": "3.37.0",
31
+ "@aws-sdk/middleware-host-header": "3.37.0",
32
+ "@aws-sdk/middleware-logger": "3.37.0",
33
+ "@aws-sdk/middleware-retry": "3.37.0",
34
+ "@aws-sdk/middleware-serde": "3.37.0",
35
+ "@aws-sdk/middleware-signing": "3.37.0",
36
+ "@aws-sdk/middleware-stack": "3.37.0",
37
+ "@aws-sdk/middleware-user-agent": "3.37.0",
38
+ "@aws-sdk/node-config-provider": "3.37.0",
39
+ "@aws-sdk/node-http-handler": "3.37.0",
40
+ "@aws-sdk/protocol-http": "3.37.0",
41
+ "@aws-sdk/smithy-client": "3.37.0",
42
+ "@aws-sdk/types": "3.37.0",
43
+ "@aws-sdk/url-parser": "3.37.0",
44
+ "@aws-sdk/util-base64-browser": "3.37.0",
45
+ "@aws-sdk/util-base64-node": "3.37.0",
46
+ "@aws-sdk/util-body-length-browser": "3.37.0",
47
+ "@aws-sdk/util-body-length-node": "3.37.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.37.0",
49
+ "@aws-sdk/util-user-agent-node": "3.37.0",
50
+ "@aws-sdk/util-utf8-browser": "3.37.0",
51
+ "@aws-sdk/util-utf8-node": "3.37.0",
58
52
  "tslib": "^2.3.0"
59
53
  },
60
54
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.34.0",
55
+ "@aws-sdk/client-documentation-generator": "3.37.0",
62
56
  "@types/node": "^12.7.5",
63
57
  "downlevel-dts": "0.7.0",
64
58
  "jest": "^26.1.0",
@@ -72,16 +66,25 @@
72
66
  },
73
67
  "typesVersions": {
74
68
  "<4.0": {
75
- "dist/types/*": [
76
- "dist/types/ts3.4/*"
69
+ "dist-types/*": [
70
+ "dist-types/ts3.4/*"
77
71
  ]
78
72
  }
79
73
  },
74
+ "files": [
75
+ "dist-*"
76
+ ],
80
77
  "author": {
81
78
  "name": "AWS SDK for JavaScript Team",
82
79
  "url": "https://aws.amazon.com/javascript/"
83
80
  },
84
81
  "license": "Apache-2.0",
82
+ "browser": {
83
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
84
+ },
85
+ "react-native": {
86
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
87
+ },
85
88
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3outposts",
86
89
  "repository": {
87
90
  "type": "git",
package/S3Outposts.ts DELETED
@@ -1,179 +0,0 @@
1
- import { S3OutpostsClient } from "./S3OutpostsClient";
2
- import {
3
- CreateEndpointCommand,
4
- CreateEndpointCommandInput,
5
- CreateEndpointCommandOutput,
6
- } from "./commands/CreateEndpointCommand";
7
- import {
8
- DeleteEndpointCommand,
9
- DeleteEndpointCommandInput,
10
- DeleteEndpointCommandOutput,
11
- } from "./commands/DeleteEndpointCommand";
12
- import {
13
- ListEndpointsCommand,
14
- ListEndpointsCommandInput,
15
- ListEndpointsCommandOutput,
16
- } from "./commands/ListEndpointsCommand";
17
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
18
-
19
- /**
20
- * <p>Amazon S3 on Outposts provides access to S3 on Outposts operations.</p>
21
- */
22
- export class S3Outposts extends S3OutpostsClient {
23
- /**
24
- * <p>Amazon S3 on Outposts Access Points simplify managing data access at scale for shared datasets in S3 on Outposts.
25
- * S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your
26
- * virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html">
27
- * Accessing S3 on Outposts using VPC only access points</a>.</p>
28
- * <p>This action creates an endpoint and associates it with the specified Outposts.</p>
29
- * <note>
30
- * <p>It can take up to 5 minutes for this action to complete.</p>
31
- * </note>
32
- * <p></p>
33
- * <p>Related actions include:</p>
34
- * <ul>
35
- * <li>
36
- * <p>
37
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
38
- * </p>
39
- * </li>
40
- * <li>
41
- * <p>
42
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_ListEndpoints.html">ListEndpoints</a>
43
- * </p>
44
- * </li>
45
- * </ul>
46
- */
47
- public createEndpoint(
48
- args: CreateEndpointCommandInput,
49
- options?: __HttpHandlerOptions
50
- ): Promise<CreateEndpointCommandOutput>;
51
- public createEndpoint(
52
- args: CreateEndpointCommandInput,
53
- cb: (err: any, data?: CreateEndpointCommandOutput) => void
54
- ): void;
55
- public createEndpoint(
56
- args: CreateEndpointCommandInput,
57
- options: __HttpHandlerOptions,
58
- cb: (err: any, data?: CreateEndpointCommandOutput) => void
59
- ): void;
60
- public createEndpoint(
61
- args: CreateEndpointCommandInput,
62
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateEndpointCommandOutput) => void),
63
- cb?: (err: any, data?: CreateEndpointCommandOutput) => void
64
- ): Promise<CreateEndpointCommandOutput> | void {
65
- const command = new CreateEndpointCommand(args);
66
- if (typeof optionsOrCb === "function") {
67
- this.send(command, optionsOrCb);
68
- } else if (typeof cb === "function") {
69
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
70
- this.send(command, optionsOrCb || {}, cb);
71
- } else {
72
- return this.send(command, optionsOrCb);
73
- }
74
- }
75
-
76
- /**
77
- * <p>Amazon S3 on Outposts Access Points simplify managing data access at scale for shared datasets in S3 on Outposts.
78
- * S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your
79
- * virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html">
80
- * Accessing S3 on Outposts using VPC only access points</a>.</p>
81
- * <p>This action deletes an endpoint.</p>
82
- * <note>
83
- * <p>It can take up to 5 minutes for this action to complete.</p>
84
- * </note>
85
- * <p></p>
86
- * <p>Related actions include:</p>
87
- * <ul>
88
- * <li>
89
- * <p>
90
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
91
- * </p>
92
- * </li>
93
- * <li>
94
- * <p>
95
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_ListEndpoints.html">ListEndpoints</a>
96
- * </p>
97
- * </li>
98
- * </ul>
99
- */
100
- public deleteEndpoint(
101
- args: DeleteEndpointCommandInput,
102
- options?: __HttpHandlerOptions
103
- ): Promise<DeleteEndpointCommandOutput>;
104
- public deleteEndpoint(
105
- args: DeleteEndpointCommandInput,
106
- cb: (err: any, data?: DeleteEndpointCommandOutput) => void
107
- ): void;
108
- public deleteEndpoint(
109
- args: DeleteEndpointCommandInput,
110
- options: __HttpHandlerOptions,
111
- cb: (err: any, data?: DeleteEndpointCommandOutput) => void
112
- ): void;
113
- public deleteEndpoint(
114
- args: DeleteEndpointCommandInput,
115
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteEndpointCommandOutput) => void),
116
- cb?: (err: any, data?: DeleteEndpointCommandOutput) => void
117
- ): Promise<DeleteEndpointCommandOutput> | void {
118
- const command = new DeleteEndpointCommand(args);
119
- if (typeof optionsOrCb === "function") {
120
- this.send(command, optionsOrCb);
121
- } else if (typeof cb === "function") {
122
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
123
- this.send(command, optionsOrCb || {}, cb);
124
- } else {
125
- return this.send(command, optionsOrCb);
126
- }
127
- }
128
-
129
- /**
130
- * <p>Amazon S3 on Outposts Access Points simplify managing data access at scale for shared datasets in S3 on Outposts.
131
- * S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your
132
- * virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html">
133
- * Accessing S3 on Outposts using VPC only access points</a>.</p>
134
- * <p>This action lists endpoints associated with the Outposts.
135
- * </p>
136
- * <p></p>
137
- * <p>Related actions include:</p>
138
- * <ul>
139
- * <li>
140
- * <p>
141
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_CreateEndpoint.html">CreateEndpoint</a>
142
- * </p>
143
- * </li>
144
- * <li>
145
- * <p>
146
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
147
- * </p>
148
- * </li>
149
- * </ul>
150
- */
151
- public listEndpoints(
152
- args: ListEndpointsCommandInput,
153
- options?: __HttpHandlerOptions
154
- ): Promise<ListEndpointsCommandOutput>;
155
- public listEndpoints(
156
- args: ListEndpointsCommandInput,
157
- cb: (err: any, data?: ListEndpointsCommandOutput) => void
158
- ): void;
159
- public listEndpoints(
160
- args: ListEndpointsCommandInput,
161
- options: __HttpHandlerOptions,
162
- cb: (err: any, data?: ListEndpointsCommandOutput) => void
163
- ): void;
164
- public listEndpoints(
165
- args: ListEndpointsCommandInput,
166
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListEndpointsCommandOutput) => void),
167
- cb?: (err: any, data?: ListEndpointsCommandOutput) => void
168
- ): Promise<ListEndpointsCommandOutput> | void {
169
- const command = new ListEndpointsCommand(args);
170
- if (typeof optionsOrCb === "function") {
171
- this.send(command, optionsOrCb);
172
- } else if (typeof cb === "function") {
173
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
174
- this.send(command, optionsOrCb || {}, cb);
175
- } else {
176
- return this.send(command, optionsOrCb);
177
- }
178
- }
179
- }
@@ -1,238 +0,0 @@
1
- import { CreateEndpointCommandInput, CreateEndpointCommandOutput } from "./commands/CreateEndpointCommand";
2
- import { DeleteEndpointCommandInput, DeleteEndpointCommandOutput } from "./commands/DeleteEndpointCommand";
3
- import { ListEndpointsCommandInput, ListEndpointsCommandOutput } from "./commands/ListEndpointsCommand";
4
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
5
- import {
6
- EndpointsInputConfig,
7
- EndpointsResolvedConfig,
8
- RegionInputConfig,
9
- RegionResolvedConfig,
10
- resolveEndpointsConfig,
11
- resolveRegionConfig,
12
- } from "@aws-sdk/config-resolver";
13
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
14
- import {
15
- HostHeaderInputConfig,
16
- HostHeaderResolvedConfig,
17
- getHostHeaderPlugin,
18
- resolveHostHeaderConfig,
19
- } from "@aws-sdk/middleware-host-header";
20
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
21
- import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
22
- import {
23
- AwsAuthInputConfig,
24
- AwsAuthResolvedConfig,
25
- getAwsAuthPlugin,
26
- resolveAwsAuthConfig,
27
- } from "@aws-sdk/middleware-signing";
28
- import {
29
- UserAgentInputConfig,
30
- UserAgentResolvedConfig,
31
- getUserAgentPlugin,
32
- resolveUserAgentConfig,
33
- } from "@aws-sdk/middleware-user-agent";
34
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
35
- import {
36
- Client as __Client,
37
- SmithyConfiguration as __SmithyConfiguration,
38
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
39
- } from "@aws-sdk/smithy-client";
40
- import {
41
- Provider,
42
- RegionInfoProvider,
43
- Credentials as __Credentials,
44
- Decoder as __Decoder,
45
- Encoder as __Encoder,
46
- Hash as __Hash,
47
- HashConstructor as __HashConstructor,
48
- HttpHandlerOptions as __HttpHandlerOptions,
49
- Logger as __Logger,
50
- Provider as __Provider,
51
- StreamCollector as __StreamCollector,
52
- UrlParser as __UrlParser,
53
- UserAgent as __UserAgent,
54
- } from "@aws-sdk/types";
55
-
56
- export type ServiceInputTypes = CreateEndpointCommandInput | DeleteEndpointCommandInput | ListEndpointsCommandInput;
57
-
58
- export type ServiceOutputTypes = CreateEndpointCommandOutput | DeleteEndpointCommandOutput | ListEndpointsCommandOutput;
59
-
60
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
61
- /**
62
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
63
- */
64
- requestHandler?: __HttpHandler;
65
-
66
- /**
67
- * A constructor for a class implementing the {@link __Hash} interface
68
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
69
- * @internal
70
- */
71
- sha256?: __HashConstructor;
72
-
73
- /**
74
- * The function that will be used to convert strings into HTTP endpoints.
75
- * @internal
76
- */
77
- urlParser?: __UrlParser;
78
-
79
- /**
80
- * A function that can calculate the length of a request body.
81
- * @internal
82
- */
83
- bodyLengthChecker?: (body: any) => number | undefined;
84
-
85
- /**
86
- * A function that converts a stream into an array of bytes.
87
- * @internal
88
- */
89
- streamCollector?: __StreamCollector;
90
-
91
- /**
92
- * The function that will be used to convert a base64-encoded string to a byte array.
93
- * @internal
94
- */
95
- base64Decoder?: __Decoder;
96
-
97
- /**
98
- * The function that will be used to convert binary data to a base64-encoded string.
99
- * @internal
100
- */
101
- base64Encoder?: __Encoder;
102
-
103
- /**
104
- * The function that will be used to convert a UTF8-encoded string to a byte array.
105
- * @internal
106
- */
107
- utf8Decoder?: __Decoder;
108
-
109
- /**
110
- * The function that will be used to convert binary data to a UTF-8 encoded string.
111
- * @internal
112
- */
113
- utf8Encoder?: __Encoder;
114
-
115
- /**
116
- * The runtime environment.
117
- * @internal
118
- */
119
- runtime?: string;
120
-
121
- /**
122
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
123
- * trait of an operation.
124
- */
125
- disableHostPrefix?: boolean;
126
-
127
- /**
128
- * Value for how many times a request will be made at most in case of retry.
129
- */
130
- maxAttempts?: number | __Provider<number>;
131
-
132
- /**
133
- * Specifies which retry algorithm to use.
134
- */
135
- retryMode?: string | __Provider<string>;
136
-
137
- /**
138
- * Optional logger for logging debug/info/warn/error.
139
- */
140
- logger?: __Logger;
141
-
142
- /**
143
- * Unique service identifier.
144
- * @internal
145
- */
146
- serviceId?: string;
147
-
148
- /**
149
- * The AWS region to which this client will send requests
150
- */
151
- region?: string | __Provider<string>;
152
-
153
- /**
154
- * Default credentials provider; Not available in browser runtime.
155
- * @internal
156
- */
157
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
158
-
159
- /**
160
- * Fetch related hostname, signing name or signing region with given region.
161
- * @internal
162
- */
163
- regionInfoProvider?: RegionInfoProvider;
164
-
165
- /**
166
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
167
- * @internal
168
- */
169
- defaultUserAgentProvider?: Provider<__UserAgent>;
170
- }
171
-
172
- type S3OutpostsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
173
- ClientDefaults &
174
- RegionInputConfig &
175
- EndpointsInputConfig &
176
- RetryInputConfig &
177
- HostHeaderInputConfig &
178
- AwsAuthInputConfig &
179
- UserAgentInputConfig;
180
- /**
181
- * The configuration interface of S3OutpostsClient class constructor that set the region, credentials and other options.
182
- */
183
- export interface S3OutpostsClientConfig extends S3OutpostsClientConfigType {}
184
-
185
- type S3OutpostsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
186
- Required<ClientDefaults> &
187
- RegionResolvedConfig &
188
- EndpointsResolvedConfig &
189
- RetryResolvedConfig &
190
- HostHeaderResolvedConfig &
191
- AwsAuthResolvedConfig &
192
- UserAgentResolvedConfig;
193
- /**
194
- * The resolved configuration interface of S3OutpostsClient class. This is resolved and normalized from the {@link S3OutpostsClientConfig | constructor configuration interface}.
195
- */
196
- export interface S3OutpostsClientResolvedConfig extends S3OutpostsClientResolvedConfigType {}
197
-
198
- /**
199
- * <p>Amazon S3 on Outposts provides access to S3 on Outposts operations.</p>
200
- */
201
- export class S3OutpostsClient extends __Client<
202
- __HttpHandlerOptions,
203
- ServiceInputTypes,
204
- ServiceOutputTypes,
205
- S3OutpostsClientResolvedConfig
206
- > {
207
- /**
208
- * The resolved configuration of S3OutpostsClient class. This is resolved and normalized from the {@link S3OutpostsClientConfig | constructor configuration interface}.
209
- */
210
- readonly config: S3OutpostsClientResolvedConfig;
211
-
212
- constructor(configuration: S3OutpostsClientConfig) {
213
- let _config_0 = __getRuntimeConfig(configuration);
214
- let _config_1 = resolveRegionConfig(_config_0);
215
- let _config_2 = resolveEndpointsConfig(_config_1);
216
- let _config_3 = resolveRetryConfig(_config_2);
217
- let _config_4 = resolveHostHeaderConfig(_config_3);
218
- let _config_5 = resolveAwsAuthConfig(_config_4);
219
- let _config_6 = resolveUserAgentConfig(_config_5);
220
- super(_config_6);
221
- this.config = _config_6;
222
- this.middlewareStack.use(getRetryPlugin(this.config));
223
- this.middlewareStack.use(getContentLengthPlugin(this.config));
224
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
225
- this.middlewareStack.use(getLoggerPlugin(this.config));
226
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
227
- this.middlewareStack.use(getUserAgentPlugin(this.config));
228
- }
229
-
230
- /**
231
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
232
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
233
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
234
- */
235
- destroy(): void {
236
- super.destroy();
237
- }
238
- }
@@ -1,115 +0,0 @@
1
- import { S3OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3OutpostsClient";
2
- import { CreateEndpointRequest, CreateEndpointResult } from "../models/models_0";
3
- import {
4
- deserializeAws_restJson1CreateEndpointCommand,
5
- serializeAws_restJson1CreateEndpointCommand,
6
- } from "../protocols/Aws_restJson1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface CreateEndpointCommandInput extends CreateEndpointRequest {}
21
- export interface CreateEndpointCommandOutput extends CreateEndpointResult, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Amazon S3 on Outposts Access Points simplify managing data access at scale for shared datasets in S3 on Outposts.
25
- * S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your
26
- * virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html">
27
- * Accessing S3 on Outposts using VPC only access points</a>.</p>
28
- * <p>This action creates an endpoint and associates it with the specified Outposts.</p>
29
- * <note>
30
- * <p>It can take up to 5 minutes for this action to complete.</p>
31
- * </note>
32
- * <p></p>
33
- * <p>Related actions include:</p>
34
- * <ul>
35
- * <li>
36
- * <p>
37
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_DeleteEndpoint.html">DeleteEndpoint</a>
38
- * </p>
39
- * </li>
40
- * <li>
41
- * <p>
42
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_ListEndpoints.html">ListEndpoints</a>
43
- * </p>
44
- * </li>
45
- * </ul>
46
- * @example
47
- * Use a bare-bones client and the command you need to make an API call.
48
- * ```javascript
49
- * import { S3OutpostsClient, CreateEndpointCommand } from "@aws-sdk/client-s3outposts"; // ES Modules import
50
- * // const { S3OutpostsClient, CreateEndpointCommand } = require("@aws-sdk/client-s3outposts"); // CommonJS import
51
- * const client = new S3OutpostsClient(config);
52
- * const command = new CreateEndpointCommand(input);
53
- * const response = await client.send(command);
54
- * ```
55
- *
56
- * @see {@link CreateEndpointCommandInput} for command's `input` shape.
57
- * @see {@link CreateEndpointCommandOutput} for command's `response` shape.
58
- * @see {@link S3OutpostsClientResolvedConfig | config} for command's `input` shape.
59
- *
60
- */
61
- export class CreateEndpointCommand extends $Command<
62
- CreateEndpointCommandInput,
63
- CreateEndpointCommandOutput,
64
- S3OutpostsClientResolvedConfig
65
- > {
66
- // Start section: command_properties
67
- // End section: command_properties
68
-
69
- constructor(readonly input: CreateEndpointCommandInput) {
70
- // Start section: command_constructor
71
- super();
72
- // End section: command_constructor
73
- }
74
-
75
- /**
76
- * @internal
77
- */
78
- resolveMiddleware(
79
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
80
- configuration: S3OutpostsClientResolvedConfig,
81
- options?: __HttpHandlerOptions
82
- ): Handler<CreateEndpointCommandInput, CreateEndpointCommandOutput> {
83
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
84
-
85
- const stack = clientStack.concat(this.middlewareStack);
86
-
87
- const { logger } = configuration;
88
- const clientName = "S3OutpostsClient";
89
- const commandName = "CreateEndpointCommand";
90
- const handlerExecutionContext: HandlerExecutionContext = {
91
- logger,
92
- clientName,
93
- commandName,
94
- inputFilterSensitiveLog: CreateEndpointRequest.filterSensitiveLog,
95
- outputFilterSensitiveLog: CreateEndpointResult.filterSensitiveLog,
96
- };
97
- const { requestHandler } = configuration;
98
- return stack.resolve(
99
- (request: FinalizeHandlerArguments<any>) =>
100
- requestHandler.handle(request.request as __HttpRequest, options || {}),
101
- handlerExecutionContext
102
- );
103
- }
104
-
105
- private serialize(input: CreateEndpointCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
106
- return serializeAws_restJson1CreateEndpointCommand(input, context);
107
- }
108
-
109
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateEndpointCommandOutput> {
110
- return deserializeAws_restJson1CreateEndpointCommand(output, context);
111
- }
112
-
113
- // Start section: command_body_extra
114
- // End section: command_body_extra
115
- }