@aws-sdk/client-simpledbv2 3.1007.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 (98) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +231 -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 +252 -0
  7. package/dist-cjs/models/SimpleDBv2ServiceException.js +12 -0
  8. package/dist-cjs/models/errors.js +95 -0
  9. package/dist-cjs/runtimeConfig.browser.js +38 -0
  10. package/dist-cjs/runtimeConfig.js +53 -0
  11. package/dist-cjs/runtimeConfig.native.js +15 -0
  12. package/dist-cjs/runtimeConfig.shared.js +43 -0
  13. package/dist-cjs/schemas/schemas_0.js +146 -0
  14. package/dist-es/SimpleDBv2.js +21 -0
  15. package/dist-es/SimpleDBv2Client.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/GetExportCommand.js +16 -0
  19. package/dist-es/commands/ListExportsCommand.js +16 -0
  20. package/dist-es/commands/StartDomainExportCommand.js +16 -0
  21. package/dist-es/commands/index.js +3 -0
  22. package/dist-es/endpoint/EndpointParameters.js +13 -0
  23. package/dist-es/endpoint/endpointResolver.js +14 -0
  24. package/dist-es/endpoint/ruleset.js +4 -0
  25. package/dist-es/extensionConfiguration.js +1 -0
  26. package/dist-es/index.js +10 -0
  27. package/dist-es/models/SimpleDBv2ServiceException.js +8 -0
  28. package/dist-es/models/enums.js +10 -0
  29. package/dist-es/models/errors.js +85 -0
  30. package/dist-es/models/models_0.js +1 -0
  31. package/dist-es/pagination/Interfaces.js +1 -0
  32. package/dist-es/pagination/ListExportsPaginator.js +4 -0
  33. package/dist-es/pagination/index.js +2 -0
  34. package/dist-es/runtimeConfig.browser.js +33 -0
  35. package/dist-es/runtimeConfig.js +48 -0
  36. package/dist-es/runtimeConfig.native.js +11 -0
  37. package/dist-es/runtimeConfig.shared.js +39 -0
  38. package/dist-es/runtimeExtensions.js +9 -0
  39. package/dist-es/schemas/schemas_0.js +143 -0
  40. package/dist-es/waiters/index.js +1 -0
  41. package/dist-es/waiters/waitForExportSucceeded.js +40 -0
  42. package/dist-types/SimpleDBv2.d.ts +55 -0
  43. package/dist-types/SimpleDBv2Client.d.ts +199 -0
  44. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  45. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  46. package/dist-types/commands/GetExportCommand.d.ts +115 -0
  47. package/dist-types/commands/ListExportsCommand.d.ts +113 -0
  48. package/dist-types/commands/StartDomainExportCommand.d.ts +115 -0
  49. package/dist-types/commands/index.d.ts +3 -0
  50. package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
  51. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  52. package/dist-types/endpoint/ruleset.d.ts +2 -0
  53. package/dist-types/extensionConfiguration.d.ts +9 -0
  54. package/dist-types/index.d.ts +27 -0
  55. package/dist-types/models/SimpleDBv2ServiceException.d.ts +14 -0
  56. package/dist-types/models/enums.d.ts +26 -0
  57. package/dist-types/models/errors.d.ts +86 -0
  58. package/dist-types/models/models_0.d.ts +227 -0
  59. package/dist-types/pagination/Interfaces.d.ts +8 -0
  60. package/dist-types/pagination/ListExportsPaginator.d.ts +7 -0
  61. package/dist-types/pagination/index.d.ts +2 -0
  62. package/dist-types/runtimeConfig.browser.d.ts +55 -0
  63. package/dist-types/runtimeConfig.d.ts +55 -0
  64. package/dist-types/runtimeConfig.native.d.ts +54 -0
  65. package/dist-types/runtimeConfig.shared.d.ts +27 -0
  66. package/dist-types/runtimeExtensions.d.ts +17 -0
  67. package/dist-types/schemas/schemas_0.d.ts +26 -0
  68. package/dist-types/ts3.4/SimpleDBv2.d.ts +81 -0
  69. package/dist-types/ts3.4/SimpleDBv2Client.d.ts +137 -0
  70. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  71. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  72. package/dist-types/ts3.4/commands/GetExportCommand.d.ts +47 -0
  73. package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +47 -0
  74. package/dist-types/ts3.4/commands/StartDomainExportCommand.d.ts +51 -0
  75. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  76. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  77. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  78. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  79. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  80. package/dist-types/ts3.4/index.d.ts +13 -0
  81. package/dist-types/ts3.4/models/SimpleDBv2ServiceException.d.ts +9 -0
  82. package/dist-types/ts3.4/models/enums.d.ts +13 -0
  83. package/dist-types/ts3.4/models/errors.d.ts +52 -0
  84. package/dist-types/ts3.4/models/models_0.d.ts +50 -0
  85. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  86. package/dist-types/ts3.4/pagination/ListExportsPaginator.d.ts +11 -0
  87. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  88. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
  89. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  90. package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
  91. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
  92. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  93. package/dist-types/ts3.4/schemas/schemas_0.d.ts +25 -0
  94. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  95. package/dist-types/ts3.4/waiters/waitForExportSucceeded.d.ts +11 -0
  96. package/dist-types/waiters/index.d.ts +1 -0
  97. package/dist-types/waiters/waitForExportSucceeded.d.ts +14 -0
  98. package/package.json +101 -0
@@ -0,0 +1,143 @@
1
+ const _CE = "ConflictException";
2
+ const _ES = "ExportSummary";
3
+ const _ESx = "ExportSummaries";
4
+ const _GE = "GetExport";
5
+ const _GER = "GetExportRequest";
6
+ const _GERe = "GetExportResponse";
7
+ const _INTE = "InvalidNextTokenException";
8
+ const _IPCE = "InvalidParameterCombinationException";
9
+ const _IPVE = "InvalidParameterValueException";
10
+ const _LE = "ListExports";
11
+ const _LER = "ListExportsRequest";
12
+ const _LERi = "ListExportsResponse";
13
+ const _NELE = "NumberExportsLimitExceeded";
14
+ const _NSDE = "NoSuchDomainException";
15
+ const _NSEE = "NoSuchExportException";
16
+ const _SDE = "StartDomainExport";
17
+ const _SDER = "StartDomainExportRequest";
18
+ const _SDERt = "StartDomainExportResponse";
19
+ const _c = "client";
20
+ const _cT = "clientToken";
21
+ const _dN = "domainName";
22
+ const _e = "error";
23
+ const _eA = "exportArn";
24
+ const _eDCT = "exportDataCutoffTime";
25
+ const _eM = "exportManifest";
26
+ const _eS = "exportStatus";
27
+ const _eSx = "exportSummaries";
28
+ const _fC = "failureCode";
29
+ const _fM = "failureMessage";
30
+ const _h = "http";
31
+ const _hE = "httpError";
32
+ const _iC = "itemsCount";
33
+ const _m = "message";
34
+ const _mR = "maxResults";
35
+ const _nT = "nextToken";
36
+ const _rA = "requestedAt";
37
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.simpledbv2";
38
+ const _sB = "s3Bucket";
39
+ const _sBO = "s3BucketOwner";
40
+ const _sKP = "s3KeyPrefix";
41
+ const _sSA = "s3SseAlgorithm";
42
+ const _sSKKI = "s3SseKmsKeyId";
43
+ const n0 = "com.amazonaws.simpledbv2";
44
+ import { TypeRegistry } from "@smithy/core/schema";
45
+ import { ConflictException, InvalidNextTokenException, InvalidParameterCombinationException, InvalidParameterValueException, NoSuchDomainException, NoSuchExportException, NumberExportsLimitExceeded, } from "../models/errors";
46
+ import { SimpleDBv2ServiceException } from "../models/SimpleDBv2ServiceException";
47
+ const _s_registry = TypeRegistry.for(_s);
48
+ export var SimpleDBv2ServiceException$ = [-3, _s, "SimpleDBv2ServiceException", 0, [], []];
49
+ _s_registry.registerError(SimpleDBv2ServiceException$, SimpleDBv2ServiceException);
50
+ const n0_registry = TypeRegistry.for(n0);
51
+ export var ConflictException$ = [-3, n0, _CE,
52
+ { [_e]: _c, [_hE]: 400 },
53
+ [_m],
54
+ [0], 1
55
+ ];
56
+ n0_registry.registerError(ConflictException$, ConflictException);
57
+ export var InvalidNextTokenException$ = [-3, n0, _INTE,
58
+ { [_e]: _c, [_hE]: 400 },
59
+ [_m],
60
+ [0], 1
61
+ ];
62
+ n0_registry.registerError(InvalidNextTokenException$, InvalidNextTokenException);
63
+ export var InvalidParameterCombinationException$ = [-3, n0, _IPCE,
64
+ { [_e]: _c, [_hE]: 400 },
65
+ [_m],
66
+ [0], 1
67
+ ];
68
+ n0_registry.registerError(InvalidParameterCombinationException$, InvalidParameterCombinationException);
69
+ export var InvalidParameterValueException$ = [-3, n0, _IPVE,
70
+ { [_e]: _c, [_hE]: 400 },
71
+ [_m],
72
+ [0], 1
73
+ ];
74
+ n0_registry.registerError(InvalidParameterValueException$, InvalidParameterValueException);
75
+ export var NoSuchDomainException$ = [-3, n0, _NSDE,
76
+ { [_e]: _c, [_hE]: 400 },
77
+ [_m],
78
+ [0], 1
79
+ ];
80
+ n0_registry.registerError(NoSuchDomainException$, NoSuchDomainException);
81
+ export var NoSuchExportException$ = [-3, n0, _NSEE,
82
+ { [_e]: _c, [_hE]: 400 },
83
+ [_m],
84
+ [0], 1
85
+ ];
86
+ n0_registry.registerError(NoSuchExportException$, NoSuchExportException);
87
+ export var NumberExportsLimitExceeded$ = [-3, n0, _NELE,
88
+ { [_e]: _c, [_hE]: 409 },
89
+ [_m],
90
+ [0], 1
91
+ ];
92
+ n0_registry.registerError(NumberExportsLimitExceeded$, NumberExportsLimitExceeded);
93
+ export const errorTypeRegistries = [
94
+ _s_registry,
95
+ n0_registry,
96
+ ];
97
+ export var ExportSummary$ = [3, n0, _ES,
98
+ 0,
99
+ [_eA, _eS, _rA, _dN],
100
+ [0, 0, 4, 0], 4
101
+ ];
102
+ export var GetExportRequest$ = [3, n0, _GER,
103
+ 0,
104
+ [_eA],
105
+ [0], 1
106
+ ];
107
+ export var GetExportResponse$ = [3, n0, _GERe,
108
+ 0,
109
+ [_eA, _cT, _eS, _dN, _rA, _sB, _sKP, _sSA, _sSKKI, _sBO, _fC, _fM, _eM, _iC, _eDCT],
110
+ [0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 1, 4], 6
111
+ ];
112
+ export var ListExportsRequest$ = [3, n0, _LER,
113
+ 0,
114
+ [_dN, _mR, _nT],
115
+ [0, 1, 0]
116
+ ];
117
+ export var ListExportsResponse$ = [3, n0, _LERi,
118
+ 0,
119
+ [_eSx, _nT],
120
+ [() => ExportSummaries, 0], 1
121
+ ];
122
+ export var StartDomainExportRequest$ = [3, n0, _SDER,
123
+ 0,
124
+ [_dN, _sB, _cT, _sKP, _sSA, _sSKKI, _sBO],
125
+ [0, 0, [0, 4], 0, 0, 0, 0], 2
126
+ ];
127
+ export var StartDomainExportResponse$ = [3, n0, _SDERt,
128
+ 0,
129
+ [_cT, _eA, _rA],
130
+ [0, 0, 4], 3
131
+ ];
132
+ var ExportSummaries = [1, n0, _ESx,
133
+ 0, () => ExportSummary$
134
+ ];
135
+ export var GetExport$ = [9, n0, _GE,
136
+ { [_h]: ["POST", "/v2/GetExport", 200] }, () => GetExportRequest$, () => GetExportResponse$
137
+ ];
138
+ export var ListExports$ = [9, n0, _LE,
139
+ { [_h]: ["POST", "/v2/ListExports", 200] }, () => ListExportsRequest$, () => ListExportsResponse$
140
+ ];
141
+ export var StartDomainExport$ = [9, n0, _SDE,
142
+ { [_h]: ["POST", "/v2/StartDomainExport", 200] }, () => StartDomainExportRequest$, () => StartDomainExportResponse$
143
+ ];
@@ -0,0 +1 @@
1
+ export * from "./waitForExportSucceeded";
@@ -0,0 +1,40 @@
1
+ import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
2
+ import { GetExportCommand } from "../commands/GetExportCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new GetExportCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.exportStatus;
11
+ };
12
+ if (returnComparator() === "SUCCEEDED") {
13
+ return { state: WaiterState.SUCCESS, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ try {
18
+ const returnComparator = () => {
19
+ return result.exportStatus;
20
+ };
21
+ if (returnComparator() === "FAILED") {
22
+ return { state: WaiterState.FAILURE, reason };
23
+ }
24
+ }
25
+ catch (e) { }
26
+ }
27
+ catch (exception) {
28
+ reason = exception;
29
+ }
30
+ return { state: WaiterState.RETRY, reason };
31
+ };
32
+ export const waitForExportSucceeded = async (params, input) => {
33
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
34
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
35
+ };
36
+ export const waitUntilExportSucceeded = async (params, input) => {
37
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
38
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
39
+ return checkExceptions(result);
40
+ };
@@ -0,0 +1,55 @@
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
2
+ import type { WaiterResult } from "@smithy/util-waiter";
3
+ import { GetExportCommandInput, GetExportCommandOutput } from "./commands/GetExportCommand";
4
+ import { ListExportsCommandInput, ListExportsCommandOutput } from "./commands/ListExportsCommand";
5
+ import { StartDomainExportCommandInput, StartDomainExportCommandOutput } from "./commands/StartDomainExportCommand";
6
+ import { SimpleDBv2Client } from "./SimpleDBv2Client";
7
+ export interface SimpleDBv2 {
8
+ /**
9
+ * @see {@link GetExportCommand}
10
+ */
11
+ getExport(args: GetExportCommandInput, options?: __HttpHandlerOptions): Promise<GetExportCommandOutput>;
12
+ getExport(args: GetExportCommandInput, cb: (err: any, data?: GetExportCommandOutput) => void): void;
13
+ getExport(args: GetExportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetExportCommandOutput) => void): void;
14
+ /**
15
+ * @see {@link ListExportsCommand}
16
+ */
17
+ listExports(): Promise<ListExportsCommandOutput>;
18
+ listExports(args: ListExportsCommandInput, options?: __HttpHandlerOptions): Promise<ListExportsCommandOutput>;
19
+ listExports(args: ListExportsCommandInput, cb: (err: any, data?: ListExportsCommandOutput) => void): void;
20
+ listExports(args: ListExportsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListExportsCommandOutput) => void): void;
21
+ /**
22
+ * @see {@link StartDomainExportCommand}
23
+ */
24
+ startDomainExport(args: StartDomainExportCommandInput, options?: __HttpHandlerOptions): Promise<StartDomainExportCommandOutput>;
25
+ startDomainExport(args: StartDomainExportCommandInput, cb: (err: any, data?: StartDomainExportCommandOutput) => void): void;
26
+ startDomainExport(args: StartDomainExportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDomainExportCommandOutput) => void): void;
27
+ /**
28
+ * @see {@link ListExportsCommand}
29
+ * @param args - command input.
30
+ * @param paginationConfig - optional pagination config.
31
+ * @returns AsyncIterable of {@link ListExportsCommandOutput}.
32
+ */
33
+ paginateListExports(args?: ListExportsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListExportsCommandOutput>;
34
+ /**
35
+ * @see {@link GetExportCommand}
36
+ * @param args - command input.
37
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
38
+ */
39
+ waitUntilExportSucceeded(args: GetExportCommandInput, waiterConfig: number | Omit<WaiterConfiguration<SimpleDBv2>, "client">): Promise<WaiterResult>;
40
+ }
41
+ /**
42
+ * Amazon SimpleDB is a web service providing the core database functions of data indexing and
43
+ * querying in the cloud. By offloading the time and effort associated with building and operating a web-scale
44
+ * database, SimpleDB provides developers the freedom to focus on application development.
45
+ *
46
+ * A traditional, clustered relational database requires a sizable upfront capital outlay, is complex to design,
47
+ * and often requires extensive and repetitive database administration. Amazon SimpleDB is dramatically simpler,
48
+ * requiring no schema, automatically indexing your data and providing a simple API for storage and access.
49
+ * This approach eliminates the administrative burden of data modeling, index maintenance, and performance tuning.
50
+ * Developers gain access to this functionality within Amazon's proven computing environment, are able to scale
51
+ * instantly, and pay only for what they use.
52
+ * @public
53
+ */
54
+ export declare class SimpleDBv2 extends SimpleDBv2Client implements SimpleDBv2 {
55
+ }
@@ -0,0 +1,199 @@
1
+ import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
3
+ import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/config-resolver";
4
+ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
+ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
6
+ import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
+ import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
8
+ import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type Decoder as __Decoder, type Encoder as __Encoder, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
+ import { GetExportCommandInput, GetExportCommandOutput } from "./commands/GetExportCommand";
11
+ import { ListExportsCommandInput, ListExportsCommandOutput } from "./commands/ListExportsCommand";
12
+ import { StartDomainExportCommandInput, StartDomainExportCommandOutput } from "./commands/StartDomainExportCommand";
13
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
14
+ import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
15
+ export { __Client };
16
+ /**
17
+ * @public
18
+ */
19
+ export type ServiceInputTypes = GetExportCommandInput | ListExportsCommandInput | StartDomainExportCommandInput;
20
+ /**
21
+ * @public
22
+ */
23
+ export type ServiceOutputTypes = GetExportCommandOutput | ListExportsCommandOutput | StartDomainExportCommandOutput;
24
+ /**
25
+ * @public
26
+ */
27
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
28
+ /**
29
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
30
+ */
31
+ requestHandler?: __HttpHandlerUserInput;
32
+ /**
33
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
34
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
35
+ * @internal
36
+ */
37
+ sha256?: __ChecksumConstructor | __HashConstructor;
38
+ /**
39
+ * The function that will be used to convert strings into HTTP endpoints.
40
+ * @internal
41
+ */
42
+ urlParser?: __UrlParser;
43
+ /**
44
+ * A function that can calculate the length of a request body.
45
+ * @internal
46
+ */
47
+ bodyLengthChecker?: __BodyLengthCalculator;
48
+ /**
49
+ * A function that converts a stream into an array of bytes.
50
+ * @internal
51
+ */
52
+ streamCollector?: __StreamCollector;
53
+ /**
54
+ * The function that will be used to convert a base64-encoded string to a byte array.
55
+ * @internal
56
+ */
57
+ base64Decoder?: __Decoder;
58
+ /**
59
+ * The function that will be used to convert binary data to a base64-encoded string.
60
+ * @internal
61
+ */
62
+ base64Encoder?: __Encoder;
63
+ /**
64
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
65
+ * @internal
66
+ */
67
+ utf8Decoder?: __Decoder;
68
+ /**
69
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
70
+ * @internal
71
+ */
72
+ utf8Encoder?: __Encoder;
73
+ /**
74
+ * The runtime environment.
75
+ * @internal
76
+ */
77
+ runtime?: string;
78
+ /**
79
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
80
+ * trait of an operation.
81
+ */
82
+ disableHostPrefix?: boolean;
83
+ /**
84
+ * Unique service identifier.
85
+ * @internal
86
+ */
87
+ serviceId?: string;
88
+ /**
89
+ * Enables IPv6/IPv4 dualstack endpoint.
90
+ */
91
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
92
+ /**
93
+ * Enables FIPS compatible endpoints.
94
+ */
95
+ useFipsEndpoint?: boolean | __Provider<boolean>;
96
+ /**
97
+ * The AWS region to which this client will send requests
98
+ */
99
+ region?: string | __Provider<string>;
100
+ /**
101
+ * Setting a client profile is similar to setting a value for the
102
+ * AWS_PROFILE environment variable. Setting a profile on a client
103
+ * in code only affects the single client instance, unlike AWS_PROFILE.
104
+ *
105
+ * When set, and only for environments where an AWS configuration
106
+ * file exists, fields configurable by this file will be retrieved
107
+ * from the specified profile within that file.
108
+ * Conflicting code configuration and environment variables will
109
+ * still have higher priority.
110
+ *
111
+ * For client credential resolution that involves checking the AWS
112
+ * configuration file, the client's profile (this value) will be
113
+ * used unless a different profile is set in the credential
114
+ * provider options.
115
+ *
116
+ */
117
+ profile?: string;
118
+ /**
119
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
120
+ * @internal
121
+ */
122
+ defaultUserAgentProvider?: Provider<__UserAgent>;
123
+ /**
124
+ * Default credentials provider; Not available in browser runtime.
125
+ * @deprecated
126
+ * @internal
127
+ */
128
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
129
+ /**
130
+ * Value for how many times a request will be made at most in case of retry.
131
+ */
132
+ maxAttempts?: number | __Provider<number>;
133
+ /**
134
+ * Specifies which retry algorithm to use.
135
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
136
+ *
137
+ */
138
+ retryMode?: string | __Provider<string>;
139
+ /**
140
+ * Optional logger for logging debug/info/warn/error.
141
+ */
142
+ logger?: __Logger;
143
+ /**
144
+ * Optional extensions
145
+ */
146
+ extensions?: RuntimeExtension[];
147
+ /**
148
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
149
+ */
150
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
151
+ }
152
+ /**
153
+ * @public
154
+ */
155
+ export type SimpleDBv2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
156
+ /**
157
+ * @public
158
+ *
159
+ * The configuration interface of SimpleDBv2Client class constructor that set the region, credentials and other options.
160
+ */
161
+ export interface SimpleDBv2ClientConfig extends SimpleDBv2ClientConfigType {
162
+ }
163
+ /**
164
+ * @public
165
+ */
166
+ export type SimpleDBv2ClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
167
+ /**
168
+ * @public
169
+ *
170
+ * The resolved configuration interface of SimpleDBv2Client class. This is resolved and normalized from the {@link SimpleDBv2ClientConfig | constructor configuration interface}.
171
+ */
172
+ export interface SimpleDBv2ClientResolvedConfig extends SimpleDBv2ClientResolvedConfigType {
173
+ }
174
+ /**
175
+ * Amazon SimpleDB is a web service providing the core database functions of data indexing and
176
+ * querying in the cloud. By offloading the time and effort associated with building and operating a web-scale
177
+ * database, SimpleDB provides developers the freedom to focus on application development.
178
+ *
179
+ * A traditional, clustered relational database requires a sizable upfront capital outlay, is complex to design,
180
+ * and often requires extensive and repetitive database administration. Amazon SimpleDB is dramatically simpler,
181
+ * requiring no schema, automatically indexing your data and providing a simple API for storage and access.
182
+ * This approach eliminates the administrative burden of data modeling, index maintenance, and performance tuning.
183
+ * Developers gain access to this functionality within Amazon's proven computing environment, are able to scale
184
+ * instantly, and pay only for what they use.
185
+ * @public
186
+ */
187
+ export declare class SimpleDBv2Client extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SimpleDBv2ClientResolvedConfig> {
188
+ /**
189
+ * The resolved configuration of SimpleDBv2Client class. This is resolved and normalized from the {@link SimpleDBv2ClientConfig | constructor configuration interface}.
190
+ */
191
+ readonly config: SimpleDBv2ClientResolvedConfig;
192
+ constructor(...[configuration]: __CheckOptionalClientConfig<SimpleDBv2ClientConfig>);
193
+ /**
194
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
195
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
196
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
197
+ */
198
+ destroy(): void;
199
+ }
@@ -0,0 +1,29 @@
1
+ import { type HttpAuthScheme, AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import type { SimpleDBv2HttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: SimpleDBv2HttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): SimpleDBv2HttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: SimpleDBv2HttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,75 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
+ import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
+ import { type SimpleDBv2ClientResolvedConfig } from "../SimpleDBv2Client";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface SimpleDBv2HttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface SimpleDBv2HttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<SimpleDBv2ClientResolvedConfig, HandlerExecutionContext, SimpleDBv2HttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultSimpleDBv2HttpAuthSchemeParametersProvider: (config: SimpleDBv2ClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<SimpleDBv2HttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface SimpleDBv2HttpAuthSchemeProvider extends HttpAuthSchemeProvider<SimpleDBv2HttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultSimpleDBv2HttpAuthSchemeProvider: SimpleDBv2HttpAuthSchemeProvider;
28
+ /**
29
+ * @public
30
+ */
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
+ /**
33
+ * A comma-separated list of case-sensitive auth scheme names.
34
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
35
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
36
+ * @public
37
+ */
38
+ authSchemePreference?: string[] | Provider<string[]>;
39
+ /**
40
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
41
+ * @internal
42
+ */
43
+ httpAuthSchemes?: HttpAuthScheme[];
44
+ /**
45
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
46
+ * @internal
47
+ */
48
+ httpAuthSchemeProvider?: SimpleDBv2HttpAuthSchemeProvider;
49
+ }
50
+ /**
51
+ * @internal
52
+ */
53
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
54
+ /**
55
+ * A comma-separated list of case-sensitive auth scheme names.
56
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
57
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
58
+ * @public
59
+ */
60
+ readonly authSchemePreference: Provider<string[]>;
61
+ /**
62
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
63
+ * @internal
64
+ */
65
+ readonly httpAuthSchemes: HttpAuthScheme[];
66
+ /**
67
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
68
+ * @internal
69
+ */
70
+ readonly httpAuthSchemeProvider: SimpleDBv2HttpAuthSchemeProvider;
71
+ }
72
+ /**
73
+ * @internal
74
+ */
75
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
@@ -0,0 +1,115 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { GetExportRequest, GetExportResponse } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, SimpleDBv2ClientResolvedConfig } from "../SimpleDBv2Client";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetExportCommand}.
14
+ */
15
+ export interface GetExportCommandInput extends GetExportRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetExportCommand}.
21
+ */
22
+ export interface GetExportCommandOutput extends GetExportResponse, __MetadataBearer {
23
+ }
24
+ declare const GetExportCommand_base: {
25
+ new (input: GetExportCommandInput): import("@smithy/smithy-client").CommandImpl<GetExportCommandInput, GetExportCommandOutput, SimpleDBv2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetExportCommandInput): import("@smithy/smithy-client").CommandImpl<GetExportCommandInput, GetExportCommandOutput, SimpleDBv2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Returns information for an existing domain export.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SimpleDBv2Client, GetExportCommand } from "@aws-sdk/client-simpledbv2"; // ES Modules import
35
+ * // const { SimpleDBv2Client, GetExportCommand } = require("@aws-sdk/client-simpledbv2"); // CommonJS import
36
+ * // import type { SimpleDBv2ClientConfig } from "@aws-sdk/client-simpledbv2";
37
+ * const config = {}; // type is SimpleDBv2ClientConfig
38
+ * const client = new SimpleDBv2Client(config);
39
+ * const input = { // GetExportRequest
40
+ * exportArn: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new GetExportCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // GetExportResponse
45
+ * // exportArn: "STRING_VALUE", // required
46
+ * // clientToken: "STRING_VALUE", // required
47
+ * // exportStatus: "PENDING" || "IN_PROGRESS" || "SUCCEEDED" || "FAILED", // required
48
+ * // domainName: "STRING_VALUE", // required
49
+ * // requestedAt: new Date("TIMESTAMP"), // required
50
+ * // s3Bucket: "STRING_VALUE", // required
51
+ * // s3KeyPrefix: "STRING_VALUE",
52
+ * // s3SseAlgorithm: "AES256" || "KMS",
53
+ * // s3SseKmsKeyId: "STRING_VALUE",
54
+ * // s3BucketOwner: "STRING_VALUE",
55
+ * // failureCode: "STRING_VALUE",
56
+ * // failureMessage: "STRING_VALUE",
57
+ * // exportManifest: "STRING_VALUE",
58
+ * // itemsCount: Number("long"),
59
+ * // exportDataCutoffTime: new Date("TIMESTAMP"),
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param GetExportCommandInput - {@link GetExportCommandInput}
65
+ * @returns {@link GetExportCommandOutput}
66
+ * @see {@link GetExportCommandInput} for command's `input` shape.
67
+ * @see {@link GetExportCommandOutput} for command's `response` shape.
68
+ * @see {@link SimpleDBv2ClientResolvedConfig | config} for SimpleDBv2Client's `config` shape.
69
+ *
70
+ * @throws {@link InvalidParameterValueException} (client fault)
71
+ * The specified parameter value is not valid.
72
+ *
73
+ * @throws {@link NoSuchExportException} (client fault)
74
+ * Export with specified ARN does not exist.
75
+ *
76
+ * @throws {@link SimpleDBv2ServiceException}
77
+ * <p>Base exception class for all service exceptions from SimpleDBv2 service.</p>
78
+ *
79
+ *
80
+ * @example Get export details
81
+ * ```javascript
82
+ * //
83
+ * const input = {
84
+ * exportArn: "arn:aws:sdb:us-east-1:123456789012:export/abc123"
85
+ * };
86
+ * const command = new GetExportCommand(input);
87
+ * const response = await client.send(command);
88
+ * /* response is
89
+ * {
90
+ * clientToken: "abc123-def456-ghi789",
91
+ * domainName: "my-domain",
92
+ * exportArn: "arn:aws:sdb:us-east-1:123456789012:export/abc123",
93
+ * exportDataCutoffTime: 1234567895,
94
+ * exportStatus: "SUCCEEDED",
95
+ * requestedAt: 1234567890,
96
+ * s3Bucket: "my-export-bucket"
97
+ * }
98
+ * *\/
99
+ * ```
100
+ *
101
+ * @public
102
+ */
103
+ export declare class GetExportCommand extends GetExportCommand_base {
104
+ /** @internal type navigation helper, not in runtime. */
105
+ protected static __types: {
106
+ api: {
107
+ input: GetExportRequest;
108
+ output: GetExportResponse;
109
+ };
110
+ sdk: {
111
+ input: GetExportCommandInput;
112
+ output: GetExportCommandOutput;
113
+ };
114
+ };
115
+ }