@aws-sdk/client-s3files 3.1026.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 (155) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +328 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +477 -0
  7. package/dist-cjs/models/S3FilesServiceException.js +12 -0
  8. package/dist-cjs/models/errors.js +98 -0
  9. package/dist-cjs/runtimeConfig.browser.js +38 -0
  10. package/dist-cjs/runtimeConfig.js +54 -0
  11. package/dist-cjs/runtimeConfig.native.js +15 -0
  12. package/dist-cjs/runtimeConfig.shared.js +44 -0
  13. package/dist-cjs/schemas/schemas_0.js +507 -0
  14. package/dist-es/S3Files.js +59 -0
  15. package/dist-es/S3FilesClient.js +50 -0
  16. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  17. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  18. package/dist-es/commands/CreateAccessPointCommand.js +16 -0
  19. package/dist-es/commands/CreateFileSystemCommand.js +16 -0
  20. package/dist-es/commands/CreateMountTargetCommand.js +16 -0
  21. package/dist-es/commands/DeleteAccessPointCommand.js +16 -0
  22. package/dist-es/commands/DeleteFileSystemCommand.js +16 -0
  23. package/dist-es/commands/DeleteFileSystemPolicyCommand.js +16 -0
  24. package/dist-es/commands/DeleteMountTargetCommand.js +16 -0
  25. package/dist-es/commands/GetAccessPointCommand.js +16 -0
  26. package/dist-es/commands/GetFileSystemCommand.js +16 -0
  27. package/dist-es/commands/GetFileSystemPolicyCommand.js +16 -0
  28. package/dist-es/commands/GetMountTargetCommand.js +16 -0
  29. package/dist-es/commands/GetSynchronizationConfigurationCommand.js +16 -0
  30. package/dist-es/commands/ListAccessPointsCommand.js +16 -0
  31. package/dist-es/commands/ListFileSystemsCommand.js +16 -0
  32. package/dist-es/commands/ListMountTargetsCommand.js +16 -0
  33. package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
  34. package/dist-es/commands/PutFileSystemPolicyCommand.js +16 -0
  35. package/dist-es/commands/PutSynchronizationConfigurationCommand.js +16 -0
  36. package/dist-es/commands/TagResourceCommand.js +16 -0
  37. package/dist-es/commands/UntagResourceCommand.js +16 -0
  38. package/dist-es/commands/UpdateMountTargetCommand.js +16 -0
  39. package/dist-es/commands/index.js +21 -0
  40. package/dist-es/endpoint/EndpointParameters.js +11 -0
  41. package/dist-es/endpoint/endpointResolver.js +14 -0
  42. package/dist-es/endpoint/ruleset.js +4 -0
  43. package/dist-es/extensionConfiguration.js +1 -0
  44. package/dist-es/index.js +9 -0
  45. package/dist-es/models/S3FilesServiceException.js +8 -0
  46. package/dist-es/models/enums.js +17 -0
  47. package/dist-es/models/errors.js +89 -0
  48. package/dist-es/models/models_0.js +1 -0
  49. package/dist-es/pagination/Interfaces.js +1 -0
  50. package/dist-es/pagination/ListAccessPointsPaginator.js +4 -0
  51. package/dist-es/pagination/ListFileSystemsPaginator.js +4 -0
  52. package/dist-es/pagination/ListMountTargetsPaginator.js +4 -0
  53. package/dist-es/pagination/ListTagsForResourcePaginator.js +4 -0
  54. package/dist-es/pagination/index.js +5 -0
  55. package/dist-es/runtimeConfig.browser.js +33 -0
  56. package/dist-es/runtimeConfig.js +49 -0
  57. package/dist-es/runtimeConfig.native.js +11 -0
  58. package/dist-es/runtimeConfig.shared.js +40 -0
  59. package/dist-es/runtimeExtensions.js +9 -0
  60. package/dist-es/schemas/schemas_0.js +503 -0
  61. package/dist-types/S3Files.d.ts +187 -0
  62. package/dist-types/S3FilesClient.d.ts +208 -0
  63. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  64. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  65. package/dist-types/commands/CreateAccessPointCommand.d.ts +141 -0
  66. package/dist-types/commands/CreateFileSystemCommand.d.ts +120 -0
  67. package/dist-types/commands/CreateMountTargetCommand.d.ts +112 -0
  68. package/dist-types/commands/DeleteAccessPointCommand.d.ts +87 -0
  69. package/dist-types/commands/DeleteFileSystemCommand.d.ts +88 -0
  70. package/dist-types/commands/DeleteFileSystemPolicyCommand.d.ts +84 -0
  71. package/dist-types/commands/DeleteMountTargetCommand.d.ts +87 -0
  72. package/dist-types/commands/GetAccessPointCommand.d.ts +113 -0
  73. package/dist-types/commands/GetFileSystemCommand.d.ts +103 -0
  74. package/dist-types/commands/GetFileSystemPolicyCommand.d.ts +87 -0
  75. package/dist-types/commands/GetMountTargetCommand.d.ts +99 -0
  76. package/dist-types/commands/GetSynchronizationConfigurationCommand.d.ts +98 -0
  77. package/dist-types/commands/ListAccessPointsCommand.d.ts +113 -0
  78. package/dist-types/commands/ListFileSystemsCommand.d.ts +98 -0
  79. package/dist-types/commands/ListMountTargetsCommand.d.ts +104 -0
  80. package/dist-types/commands/ListTagsForResourceCommand.d.ts +94 -0
  81. package/dist-types/commands/PutFileSystemPolicyCommand.d.ts +85 -0
  82. package/dist-types/commands/PutSynchronizationConfigurationCommand.d.ts +100 -0
  83. package/dist-types/commands/TagResourceCommand.d.ts +90 -0
  84. package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
  85. package/dist-types/commands/UpdateMountTargetCommand.d.ts +102 -0
  86. package/dist-types/commands/index.d.ts +21 -0
  87. package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
  88. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  89. package/dist-types/endpoint/ruleset.d.ts +2 -0
  90. package/dist-types/extensionConfiguration.d.ts +9 -0
  91. package/dist-types/index.d.ts +17 -0
  92. package/dist-types/models/S3FilesServiceException.d.ts +14 -0
  93. package/dist-types/models/enums.d.ts +41 -0
  94. package/dist-types/models/errors.d.ts +114 -0
  95. package/dist-types/models/models_0.d.ts +1185 -0
  96. package/dist-types/pagination/Interfaces.d.ts +8 -0
  97. package/dist-types/pagination/ListAccessPointsPaginator.d.ts +7 -0
  98. package/dist-types/pagination/ListFileSystemsPaginator.d.ts +7 -0
  99. package/dist-types/pagination/ListMountTargetsPaginator.d.ts +7 -0
  100. package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +7 -0
  101. package/dist-types/pagination/index.d.ts +5 -0
  102. package/dist-types/runtimeConfig.browser.d.ts +55 -0
  103. package/dist-types/runtimeConfig.d.ts +55 -0
  104. package/dist-types/runtimeConfig.native.d.ts +54 -0
  105. package/dist-types/runtimeConfig.shared.d.ts +27 -0
  106. package/dist-types/runtimeExtensions.d.ts +17 -0
  107. package/dist-types/schemas/schemas_0.d.ts +81 -0
  108. package/dist-types/ts3.4/S3Files.d.ts +396 -0
  109. package/dist-types/ts3.4/S3FilesClient.d.ts +244 -0
  110. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  111. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  112. package/dist-types/ts3.4/commands/CreateAccessPointCommand.d.ts +51 -0
  113. package/dist-types/ts3.4/commands/CreateFileSystemCommand.d.ts +50 -0
  114. package/dist-types/ts3.4/commands/CreateMountTargetCommand.d.ts +51 -0
  115. package/dist-types/ts3.4/commands/DeleteAccessPointCommand.d.ts +46 -0
  116. package/dist-types/ts3.4/commands/DeleteFileSystemCommand.d.ts +45 -0
  117. package/dist-types/ts3.4/commands/DeleteFileSystemPolicyCommand.d.ts +46 -0
  118. package/dist-types/ts3.4/commands/DeleteMountTargetCommand.d.ts +46 -0
  119. package/dist-types/ts3.4/commands/GetAccessPointCommand.d.ts +50 -0
  120. package/dist-types/ts3.4/commands/GetFileSystemCommand.d.ts +50 -0
  121. package/dist-types/ts3.4/commands/GetFileSystemPolicyCommand.d.ts +51 -0
  122. package/dist-types/ts3.4/commands/GetMountTargetCommand.d.ts +50 -0
  123. package/dist-types/ts3.4/commands/GetSynchronizationConfigurationCommand.d.ts +51 -0
  124. package/dist-types/ts3.4/commands/ListAccessPointsCommand.d.ts +50 -0
  125. package/dist-types/ts3.4/commands/ListFileSystemsCommand.d.ts +50 -0
  126. package/dist-types/ts3.4/commands/ListMountTargetsCommand.d.ts +50 -0
  127. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  128. package/dist-types/ts3.4/commands/PutFileSystemPolicyCommand.d.ts +51 -0
  129. package/dist-types/ts3.4/commands/PutSynchronizationConfigurationCommand.d.ts +51 -0
  130. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +45 -0
  131. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +45 -0
  132. package/dist-types/ts3.4/commands/UpdateMountTargetCommand.d.ts +51 -0
  133. package/dist-types/ts3.4/commands/index.d.ts +21 -0
  134. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  135. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  136. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  137. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  138. package/dist-types/ts3.4/index.d.ts +12 -0
  139. package/dist-types/ts3.4/models/S3FilesServiceException.d.ts +9 -0
  140. package/dist-types/ts3.4/models/enums.d.ts +21 -0
  141. package/dist-types/ts3.4/models/errors.d.ts +50 -0
  142. package/dist-types/ts3.4/models/models_0.d.ts +279 -0
  143. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  144. package/dist-types/ts3.4/pagination/ListAccessPointsPaginator.d.ts +11 -0
  145. package/dist-types/ts3.4/pagination/ListFileSystemsPaginator.d.ts +11 -0
  146. package/dist-types/ts3.4/pagination/ListMountTargetsPaginator.d.ts +11 -0
  147. package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +11 -0
  148. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  149. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
  150. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  151. package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
  152. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
  153. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  154. package/dist-types/ts3.4/schemas/schemas_0.d.ts +80 -0
  155. package/package.json +100 -0
@@ -0,0 +1,38 @@
1
+ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
+ let _credentials = runtimeConfig.credentials;
5
+ return {
6
+ setHttpAuthScheme(httpAuthScheme) {
7
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
8
+ if (index === -1) {
9
+ _httpAuthSchemes.push(httpAuthScheme);
10
+ }
11
+ else {
12
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
13
+ }
14
+ },
15
+ httpAuthSchemes() {
16
+ return _httpAuthSchemes;
17
+ },
18
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
19
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
20
+ },
21
+ httpAuthSchemeProvider() {
22
+ return _httpAuthSchemeProvider;
23
+ },
24
+ setCredentials(credentials) {
25
+ _credentials = credentials;
26
+ },
27
+ credentials() {
28
+ return _credentials;
29
+ },
30
+ };
31
+ };
32
+ export const resolveHttpAuthRuntimeConfig = (config) => {
33
+ return {
34
+ httpAuthSchemes: config.httpAuthSchemes(),
35
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
36
+ credentials: config.credentials(),
37
+ };
38
+ };
@@ -0,0 +1,40 @@
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
+ export const defaultS3FilesHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
+ return {
5
+ operation: getSmithyContext(context).operation,
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
9
+ };
10
+ };
11
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
12
+ return {
13
+ schemeId: "aws.auth#sigv4",
14
+ signingProperties: {
15
+ name: "s3files",
16
+ region: authParameters.region,
17
+ },
18
+ propertiesExtractor: (config, context) => ({
19
+ signingProperties: {
20
+ config,
21
+ context,
22
+ },
23
+ }),
24
+ };
25
+ }
26
+ export const defaultS3FilesHttpAuthSchemeProvider = (authParameters) => {
27
+ const options = [];
28
+ switch (authParameters.operation) {
29
+ default: {
30
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
31
+ }
32
+ }
33
+ return options;
34
+ };
35
+ export const resolveHttpAuthSchemeConfig = (config) => {
36
+ const config_0 = resolveAwsSdkSigV4Config(config);
37
+ return Object.assign(config_0, {
38
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
39
+ });
40
+ };
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateAccessPoint$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class CreateAccessPointCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "CreateAccessPoint", {})
13
+ .n("S3FilesClient", "CreateAccessPointCommand")
14
+ .sc(CreateAccessPoint$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateFileSystem$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class CreateFileSystemCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "CreateFileSystem", {})
13
+ .n("S3FilesClient", "CreateFileSystemCommand")
14
+ .sc(CreateFileSystem$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateMountTarget$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class CreateMountTargetCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "CreateMountTarget", {})
13
+ .n("S3FilesClient", "CreateMountTargetCommand")
14
+ .sc(CreateMountTarget$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteAccessPoint$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeleteAccessPointCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "DeleteAccessPoint", {})
13
+ .n("S3FilesClient", "DeleteAccessPointCommand")
14
+ .sc(DeleteAccessPoint$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteFileSystem$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeleteFileSystemCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "DeleteFileSystem", {})
13
+ .n("S3FilesClient", "DeleteFileSystemCommand")
14
+ .sc(DeleteFileSystem$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteFileSystemPolicy$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeleteFileSystemPolicyCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "DeleteFileSystemPolicy", {})
13
+ .n("S3FilesClient", "DeleteFileSystemPolicyCommand")
14
+ .sc(DeleteFileSystemPolicy$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteMountTarget$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeleteMountTargetCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "DeleteMountTarget", {})
13
+ .n("S3FilesClient", "DeleteMountTargetCommand")
14
+ .sc(DeleteMountTarget$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetAccessPoint$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetAccessPointCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "GetAccessPoint", {})
13
+ .n("S3FilesClient", "GetAccessPointCommand")
14
+ .sc(GetAccessPoint$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetFileSystem$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetFileSystemCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "GetFileSystem", {})
13
+ .n("S3FilesClient", "GetFileSystemCommand")
14
+ .sc(GetFileSystem$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetFileSystemPolicy$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetFileSystemPolicyCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "GetFileSystemPolicy", {})
13
+ .n("S3FilesClient", "GetFileSystemPolicyCommand")
14
+ .sc(GetFileSystemPolicy$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetMountTarget$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetMountTargetCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "GetMountTarget", {})
13
+ .n("S3FilesClient", "GetMountTargetCommand")
14
+ .sc(GetMountTarget$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetSynchronizationConfiguration$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetSynchronizationConfigurationCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "GetSynchronizationConfiguration", {})
13
+ .n("S3FilesClient", "GetSynchronizationConfigurationCommand")
14
+ .sc(GetSynchronizationConfiguration$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListAccessPoints$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListAccessPointsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "ListAccessPoints", {})
13
+ .n("S3FilesClient", "ListAccessPointsCommand")
14
+ .sc(ListAccessPoints$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListFileSystems$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListFileSystemsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "ListFileSystems", {})
13
+ .n("S3FilesClient", "ListFileSystemsCommand")
14
+ .sc(ListFileSystems$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListMountTargets$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListMountTargetsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "ListMountTargets", {})
13
+ .n("S3FilesClient", "ListMountTargetsCommand")
14
+ .sc(ListMountTargets$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListTagsForResource$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListTagsForResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "ListTagsForResource", {})
13
+ .n("S3FilesClient", "ListTagsForResourceCommand")
14
+ .sc(ListTagsForResource$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { PutFileSystemPolicy$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class PutFileSystemPolicyCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "PutFileSystemPolicy", {})
13
+ .n("S3FilesClient", "PutFileSystemPolicyCommand")
14
+ .sc(PutFileSystemPolicy$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { PutSynchronizationConfiguration$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class PutSynchronizationConfigurationCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "PutSynchronizationConfiguration", {})
13
+ .n("S3FilesClient", "PutSynchronizationConfigurationCommand")
14
+ .sc(PutSynchronizationConfiguration$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { TagResource$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class TagResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "TagResource", {})
13
+ .n("S3FilesClient", "TagResourceCommand")
14
+ .sc(TagResource$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UntagResource$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UntagResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "UntagResource", {})
13
+ .n("S3FilesClient", "UntagResourceCommand")
14
+ .sc(UntagResource$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateMountTarget$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateMountTargetCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("S3Files", "UpdateMountTarget", {})
13
+ .n("S3FilesClient", "UpdateMountTargetCommand")
14
+ .sc(UpdateMountTarget$)
15
+ .build() {
16
+ }
@@ -0,0 +1,21 @@
1
+ export * from "./CreateAccessPointCommand";
2
+ export * from "./CreateFileSystemCommand";
3
+ export * from "./CreateMountTargetCommand";
4
+ export * from "./DeleteAccessPointCommand";
5
+ export * from "./DeleteFileSystemCommand";
6
+ export * from "./DeleteFileSystemPolicyCommand";
7
+ export * from "./DeleteMountTargetCommand";
8
+ export * from "./GetAccessPointCommand";
9
+ export * from "./GetFileSystemCommand";
10
+ export * from "./GetFileSystemPolicyCommand";
11
+ export * from "./GetMountTargetCommand";
12
+ export * from "./GetSynchronizationConfigurationCommand";
13
+ export * from "./ListAccessPointsCommand";
14
+ export * from "./ListFileSystemsCommand";
15
+ export * from "./ListMountTargetsCommand";
16
+ export * from "./ListTagsForResourceCommand";
17
+ export * from "./PutFileSystemPolicyCommand";
18
+ export * from "./PutSynchronizationConfigurationCommand";
19
+ export * from "./TagResourceCommand";
20
+ export * from "./UntagResourceCommand";
21
+ export * from "./UpdateMountTargetCommand";
@@ -0,0 +1,11 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return Object.assign(options, {
3
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
4
+ defaultSigningName: "s3files",
5
+ });
6
+ };
7
+ export const commonParams = {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ };
@@ -0,0 +1,14 @@
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
+ import { ruleSet } from "./ruleset";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseFIPS"],
7
+ });
8
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
10
+ endpointParams: endpointParams,
11
+ logger: context.logger,
12
+ }));
13
+ };
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
@@ -0,0 +1,4 @@
1
+ const l = "ref";
2
+ const a = true, b = false, c = "isSet", d = "error", e = "endpoint", f = "tree", g = { "required": false, "type": "string" }, h = { [l]: "Endpoint" }, i = {}, j = [{ "fn": "booleanEquals", "argv": [{ [l]: "UseFIPS" }, true] }], k = [{ [l]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { UseFIPS: { required: a, default: b, type: "boolean" }, Endpoint: g, Region: g }, rules: [{ conditions: [{ fn: c, argv: [h] }], rules: [{ conditions: j, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { endpoint: { url: h, properties: i, headers: i }, type: e }], type: f }, { rules: [{ conditions: [{ fn: c, argv: k }], rules: [{ conditions: [{ fn: "aws.partition", argv: k, assign: "PartitionResult" }], rules: [{ conditions: j, endpoint: { url: "https://s3files-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }, { endpoint: { url: "https://s3files.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
+ export const ruleSet = _data;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ export * from "./S3FilesClient";
2
+ export * from "./S3Files";
3
+ export * from "./commands";
4
+ export * from "./schemas/schemas_0";
5
+ export * from "./pagination";
6
+ export * from "./models/enums";
7
+ export * from "./models/errors";
8
+ export * from "./models/models_0";
9
+ export { S3FilesServiceException } from "./models/S3FilesServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
2
+ export { __ServiceException };
3
+ export class S3FilesServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, S3FilesServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1,17 @@
1
+ export const LifeCycleState = {
2
+ available: "available",
3
+ creating: "creating",
4
+ deleted: "deleted",
5
+ deleting: "deleting",
6
+ error: "error",
7
+ updating: "updating",
8
+ };
9
+ export const IpAddressType = {
10
+ DUAL_STACK: "DUAL_STACK",
11
+ IPV4_ONLY: "IPV4_ONLY",
12
+ IPV6_ONLY: "IPV6_ONLY",
13
+ };
14
+ export const ImportTrigger = {
15
+ ON_DIRECTORY_FIRST_ACCESS: "ON_DIRECTORY_FIRST_ACCESS",
16
+ ON_FILE_ACCESS: "ON_FILE_ACCESS",
17
+ };
@@ -0,0 +1,89 @@
1
+ import { S3FilesServiceException as __BaseException } from "./S3FilesServiceException";
2
+ export class ConflictException extends __BaseException {
3
+ name = "ConflictException";
4
+ $fault = "client";
5
+ errorCode;
6
+ resourceId;
7
+ resourceType;
8
+ constructor(opts) {
9
+ super({
10
+ name: "ConflictException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, ConflictException.prototype);
15
+ this.errorCode = opts.errorCode;
16
+ this.resourceId = opts.resourceId;
17
+ this.resourceType = opts.resourceType;
18
+ }
19
+ }
20
+ export class InternalServerException extends __BaseException {
21
+ name = "InternalServerException";
22
+ $fault = "server";
23
+ errorCode;
24
+ constructor(opts) {
25
+ super({
26
+ name: "InternalServerException",
27
+ $fault: "server",
28
+ ...opts,
29
+ });
30
+ Object.setPrototypeOf(this, InternalServerException.prototype);
31
+ this.errorCode = opts.errorCode;
32
+ }
33
+ }
34
+ export class ResourceNotFoundException extends __BaseException {
35
+ name = "ResourceNotFoundException";
36
+ $fault = "client";
37
+ errorCode;
38
+ constructor(opts) {
39
+ super({
40
+ name: "ResourceNotFoundException",
41
+ $fault: "client",
42
+ ...opts,
43
+ });
44
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
45
+ this.errorCode = opts.errorCode;
46
+ }
47
+ }
48
+ export class ServiceQuotaExceededException extends __BaseException {
49
+ name = "ServiceQuotaExceededException";
50
+ $fault = "client";
51
+ errorCode;
52
+ constructor(opts) {
53
+ super({
54
+ name: "ServiceQuotaExceededException",
55
+ $fault: "client",
56
+ ...opts,
57
+ });
58
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
59
+ this.errorCode = opts.errorCode;
60
+ }
61
+ }
62
+ export class ThrottlingException extends __BaseException {
63
+ name = "ThrottlingException";
64
+ $fault = "client";
65
+ errorCode;
66
+ constructor(opts) {
67
+ super({
68
+ name: "ThrottlingException",
69
+ $fault: "client",
70
+ ...opts,
71
+ });
72
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
73
+ this.errorCode = opts.errorCode;
74
+ }
75
+ }
76
+ export class ValidationException extends __BaseException {
77
+ name = "ValidationException";
78
+ $fault = "client";
79
+ errorCode;
80
+ constructor(opts) {
81
+ super({
82
+ name: "ValidationException",
83
+ $fault: "client",
84
+ ...opts,
85
+ });
86
+ Object.setPrototypeOf(this, ValidationException.prototype);
87
+ this.errorCode = opts.errorCode;
88
+ }
89
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListAccessPointsCommand, } from "../commands/ListAccessPointsCommand";
3
+ import { S3FilesClient } from "../S3FilesClient";
4
+ export const paginateListAccessPoints = createPaginator(S3FilesClient, ListAccessPointsCommand, "nextToken", "nextToken", "maxResults");