@aws-sdk/client-redshift-data 3.936.0 → 3.939.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -5
- package/dist-cjs/index.js +46 -21
- package/dist-es/index.js +1 -0
- package/dist-es/models/enums.js +21 -0
- package/dist-es/models/errors.js +16 -16
- package/dist-es/models/models_0.js +1 -21
- package/dist-es/schemas/schemas_0.js +5 -5
- package/dist-types/RedshiftData.d.ts +1 -5
- package/dist-types/RedshiftDataClient.d.ts +1 -5
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +5 -38
- package/dist-types/commands/CancelStatementCommand.d.ts +4 -4
- package/dist-types/commands/DescribeStatementCommand.d.ts +2 -7
- package/dist-types/commands/DescribeTableCommand.d.ts +4 -38
- package/dist-types/commands/ExecuteStatementCommand.d.ts +5 -38
- package/dist-types/commands/GetStatementResultCommand.d.ts +1 -7
- package/dist-types/commands/GetStatementResultV2Command.d.ts +1 -6
- package/dist-types/commands/ListDatabasesCommand.d.ts +4 -37
- package/dist-types/commands/ListSchemasCommand.d.ts +4 -37
- package/dist-types/commands/ListStatementsCommand.d.ts +4 -10
- package/dist-types/commands/ListTablesCommand.d.ts +4 -38
- package/dist-types/index.d.ts +2 -5
- package/dist-types/models/enums.d.ts +45 -0
- package/dist-types/models/errors.d.ts +22 -22
- package/dist-types/models/models_0.d.ts +52 -202
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +26 -0
- package/dist-types/ts3.4/models/errors.d.ts +9 -9
- package/dist-types/ts3.4/models/models_0.d.ts +8 -29
- package/package.json +2 -2
|
@@ -27,43 +27,7 @@ declare const ListSchemasCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Lists the schemas in a database.
|
|
31
|
-
* A token is returned to page through the schema list.
|
|
32
|
-
* Depending on the authorization method, use one of the
|
|
33
|
-
* following combinations of request parameters: </p>
|
|
34
|
-
* <ul>
|
|
35
|
-
* <li>
|
|
36
|
-
* <p>Secrets Manager - when connecting to a cluster, provide the <code>secret-arn</code> of a secret
|
|
37
|
-
* stored in Secrets Manager which has <code>username</code> and <code>password</code>.
|
|
38
|
-
* The specified secret contains credentials
|
|
39
|
-
* to connect to the <code>database</code> you specify.
|
|
40
|
-
* When you are connecting to a cluster, you also supply the database name,
|
|
41
|
-
* If you provide a cluster identifier (<code>dbClusterIdentifier</code>), it must match the cluster identifier stored in the secret.
|
|
42
|
-
* When you are connecting to a serverless workgroup, you also supply the database name.</p>
|
|
43
|
-
* </li>
|
|
44
|
-
* <li>
|
|
45
|
-
* <p>Temporary credentials - when connecting to your data warehouse, choose one of the following options:</p>
|
|
46
|
-
* <ul>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>When connecting to a serverless workgroup, specify the workgroup name and database name.
|
|
49
|
-
* The database user name is derived from the IAM identity. For example, <code>arn:iam::123456789012:user:foo</code> has the database user name <code>IAM:foo</code>.
|
|
50
|
-
* Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required.</p>
|
|
51
|
-
* </li>
|
|
52
|
-
* <li>
|
|
53
|
-
* <p>When connecting to a cluster as an IAM identity, specify the cluster identifier and the database name.
|
|
54
|
-
* The database user name is derived from the IAM identity. For example, <code>arn:iam::123456789012:user:foo</code> has the database user name <code>IAM:foo</code>.
|
|
55
|
-
* Also, permission to call the <code>redshift:GetClusterCredentialsWithIAM</code> operation is required.</p>
|
|
56
|
-
* </li>
|
|
57
|
-
* <li>
|
|
58
|
-
* <p>When connecting to a cluster as a database user, specify the cluster identifier, the database name, and the database user name.
|
|
59
|
-
* Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.</p>
|
|
60
|
-
* </li>
|
|
61
|
-
* </ul>
|
|
62
|
-
* </li>
|
|
63
|
-
* </ul>
|
|
64
|
-
* <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
|
|
65
|
-
* <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
|
|
66
|
-
* <i>Amazon Redshift Management Guide</i>. </p>
|
|
30
|
+
* <p>Lists the schemas in a database. A token is returned to page through the schema list. Depending on the authorization method, use one of the following combinations of request parameters: </p> <ul> <li> <p>Secrets Manager - when connecting to a cluster, provide the <code>secret-arn</code> of a secret stored in Secrets Manager which has <code>username</code> and <code>password</code>. The specified secret contains credentials to connect to the <code>database</code> you specify. When you are connecting to a cluster, you also supply the database name, If you provide a cluster identifier (<code>dbClusterIdentifier</code>), it must match the cluster identifier stored in the secret. When you are connecting to a serverless workgroup, you also supply the database name.</p> </li> <li> <p>Temporary credentials - when connecting to your data warehouse, choose one of the following options:</p> <ul> <li> <p>When connecting to a serverless workgroup, specify the workgroup name and database name. The database user name is derived from the IAM identity. For example, <code>arn:iam::123456789012:user:foo</code> has the database user name <code>IAM:foo</code>. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required.</p> </li> <li> <p>When connecting to a cluster as an IAM identity, specify the cluster identifier and the database name. The database user name is derived from the IAM identity. For example, <code>arn:iam::123456789012:user:foo</code> has the database user name <code>IAM:foo</code>. Also, permission to call the <code>redshift:GetClusterCredentialsWithIAM</code> operation is required.</p> </li> <li> <p>When connecting to a cluster as a database user, specify the cluster identifier, the database name, and the database user name. Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.</p> </li> </ul> </li> </ul> <p>For more information about the Amazon Redshift Data API and CLI usage examples, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the <i>Amazon Redshift Management Guide</i>. </p>
|
|
67
31
|
* @example
|
|
68
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
69
33
|
* ```javascript
|
|
@@ -109,6 +73,9 @@ declare const ListSchemasCommand_base: {
|
|
|
109
73
|
* @throws {@link QueryTimeoutException} (client fault)
|
|
110
74
|
* <p>The Amazon Redshift Data API operation failed due to timeout.</p>
|
|
111
75
|
*
|
|
76
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
77
|
+
* <p>The Amazon Redshift Data API operation failed due to a missing resource. </p>
|
|
78
|
+
*
|
|
112
79
|
* @throws {@link ValidationException} (client fault)
|
|
113
80
|
* <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
|
|
114
81
|
*
|
|
@@ -27,16 +27,7 @@ declare const ListStatementsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>List of SQL statements. By default, only finished statements are shown.
|
|
31
|
-
* A token is returned to page through the statement list. </p>
|
|
32
|
-
* <p>When you use identity-enhanced role sessions to list statements, you must provide either the
|
|
33
|
-
* <code>cluster-identifier</code> or <code>workgroup-name</code> parameter. This ensures that the IdC user
|
|
34
|
-
* can only access the Amazon Redshift IdC applications they are assigned. For more information, see
|
|
35
|
-
* <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/trustedidentitypropagation-overview.html">
|
|
36
|
-
* Trusted identity propagation overview</a>.</p>
|
|
37
|
-
* <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
|
|
38
|
-
* <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
|
|
39
|
-
* <i>Amazon Redshift Management Guide</i>. </p>
|
|
30
|
+
* <p>List of SQL statements. By default, only finished statements are shown. A token is returned to page through the statement list. </p> <p>When you use identity-enhanced role sessions to list statements, you must provide either the <code>cluster-identifier</code> or <code>workgroup-name</code> parameter. This ensures that the IdC user can only access the Amazon Redshift IdC applications they are assigned. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/trustedidentitypropagation-overview.html"> Trusted identity propagation overview</a>.</p> <p>For more information about the Amazon Redshift Data API and CLI usage examples, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the <i>Amazon Redshift Management Guide</i>. </p>
|
|
40
31
|
* @example
|
|
41
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
42
33
|
* ```javascript
|
|
@@ -95,6 +86,9 @@ declare const ListStatementsCommand_base: {
|
|
|
95
86
|
* @throws {@link InternalServerException} (server fault)
|
|
96
87
|
* <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
|
|
97
88
|
*
|
|
89
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
90
|
+
* <p>The Amazon Redshift Data API operation failed due to a missing resource. </p>
|
|
91
|
+
*
|
|
98
92
|
* @throws {@link ValidationException} (client fault)
|
|
99
93
|
* <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
|
|
100
94
|
*
|
|
@@ -27,44 +27,7 @@ declare const ListTablesCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>List the tables in a database. If neither <code>SchemaPattern</code> nor <code>TablePattern</code> are specified, then
|
|
31
|
-
* all tables in the database are returned.
|
|
32
|
-
* A token is returned to page through the table list.
|
|
33
|
-
* Depending on the authorization method, use one of the
|
|
34
|
-
* following combinations of request parameters: </p>
|
|
35
|
-
* <ul>
|
|
36
|
-
* <li>
|
|
37
|
-
* <p>Secrets Manager - when connecting to a cluster, provide the <code>secret-arn</code> of a secret
|
|
38
|
-
* stored in Secrets Manager which has <code>username</code> and <code>password</code>.
|
|
39
|
-
* The specified secret contains credentials
|
|
40
|
-
* to connect to the <code>database</code> you specify.
|
|
41
|
-
* When you are connecting to a cluster, you also supply the database name,
|
|
42
|
-
* If you provide a cluster identifier (<code>dbClusterIdentifier</code>), it must match the cluster identifier stored in the secret.
|
|
43
|
-
* When you are connecting to a serverless workgroup, you also supply the database name.</p>
|
|
44
|
-
* </li>
|
|
45
|
-
* <li>
|
|
46
|
-
* <p>Temporary credentials - when connecting to your data warehouse, choose one of the following options:</p>
|
|
47
|
-
* <ul>
|
|
48
|
-
* <li>
|
|
49
|
-
* <p>When connecting to a serverless workgroup, specify the workgroup name and database name.
|
|
50
|
-
* The database user name is derived from the IAM identity. For example, <code>arn:iam::123456789012:user:foo</code> has the database user name <code>IAM:foo</code>.
|
|
51
|
-
* Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required.</p>
|
|
52
|
-
* </li>
|
|
53
|
-
* <li>
|
|
54
|
-
* <p>When connecting to a cluster as an IAM identity, specify the cluster identifier and the database name.
|
|
55
|
-
* The database user name is derived from the IAM identity. For example, <code>arn:iam::123456789012:user:foo</code> has the database user name <code>IAM:foo</code>.
|
|
56
|
-
* Also, permission to call the <code>redshift:GetClusterCredentialsWithIAM</code> operation is required.</p>
|
|
57
|
-
* </li>
|
|
58
|
-
* <li>
|
|
59
|
-
* <p>When connecting to a cluster as a database user, specify the cluster identifier, the database name, and the database user name.
|
|
60
|
-
* Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.</p>
|
|
61
|
-
* </li>
|
|
62
|
-
* </ul>
|
|
63
|
-
* </li>
|
|
64
|
-
* </ul>
|
|
65
|
-
* <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
|
|
66
|
-
* <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
|
|
67
|
-
* <i>Amazon Redshift Management Guide</i>. </p>
|
|
30
|
+
* <p>List the tables in a database. If neither <code>SchemaPattern</code> nor <code>TablePattern</code> are specified, then all tables in the database are returned. A token is returned to page through the table list. Depending on the authorization method, use one of the following combinations of request parameters: </p> <ul> <li> <p>Secrets Manager - when connecting to a cluster, provide the <code>secret-arn</code> of a secret stored in Secrets Manager which has <code>username</code> and <code>password</code>. The specified secret contains credentials to connect to the <code>database</code> you specify. When you are connecting to a cluster, you also supply the database name, If you provide a cluster identifier (<code>dbClusterIdentifier</code>), it must match the cluster identifier stored in the secret. When you are connecting to a serverless workgroup, you also supply the database name.</p> </li> <li> <p>Temporary credentials - when connecting to your data warehouse, choose one of the following options:</p> <ul> <li> <p>When connecting to a serverless workgroup, specify the workgroup name and database name. The database user name is derived from the IAM identity. For example, <code>arn:iam::123456789012:user:foo</code> has the database user name <code>IAM:foo</code>. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required.</p> </li> <li> <p>When connecting to a cluster as an IAM identity, specify the cluster identifier and the database name. The database user name is derived from the IAM identity. For example, <code>arn:iam::123456789012:user:foo</code> has the database user name <code>IAM:foo</code>. Also, permission to call the <code>redshift:GetClusterCredentialsWithIAM</code> operation is required.</p> </li> <li> <p>When connecting to a cluster as a database user, specify the cluster identifier, the database name, and the database user name. Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.</p> </li> </ul> </li> </ul> <p>For more information about the Amazon Redshift Data API and CLI usage examples, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the <i>Amazon Redshift Management Guide</i>. </p>
|
|
68
31
|
* @example
|
|
69
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
70
33
|
* ```javascript
|
|
@@ -115,6 +78,9 @@ declare const ListTablesCommand_base: {
|
|
|
115
78
|
* @throws {@link QueryTimeoutException} (client fault)
|
|
116
79
|
* <p>The Amazon Redshift Data API operation failed due to timeout.</p>
|
|
117
80
|
*
|
|
81
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
82
|
+
* <p>The Amazon Redshift Data API operation failed due to a missing resource. </p>
|
|
83
|
+
*
|
|
118
84
|
* @throws {@link ValidationException} (client fault)
|
|
119
85
|
* <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
|
|
120
86
|
*
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* <p>You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You
|
|
3
|
-
* can run SQL statements, which are committed if the statement succeeds. </p>
|
|
4
|
-
* <p>For more information about the Amazon Redshift Data API and CLI usage examples, see
|
|
5
|
-
* <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
|
|
6
|
-
* <i>Amazon Redshift Management Guide</i>. </p>
|
|
2
|
+
* <p>You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You can run SQL statements, which are committed if the statement succeeds. </p> <p>For more information about the Amazon Redshift Data API and CLI usage examples, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the <i>Amazon Redshift Management Guide</i>. </p>
|
|
7
3
|
*
|
|
8
4
|
* @packageDocumentation
|
|
9
5
|
*/
|
|
@@ -14,6 +10,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
|
|
|
14
10
|
export type { RedshiftDataExtensionConfiguration } from "./extensionConfiguration";
|
|
15
11
|
export * from "./commands";
|
|
16
12
|
export * from "./pagination";
|
|
13
|
+
export * from "./models/enums";
|
|
17
14
|
export * from "./models/errors";
|
|
18
15
|
export type * from "./models/models_0";
|
|
19
16
|
export { RedshiftDataServiceException } from "./models/RedshiftDataServiceException";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const ResultFormatString: {
|
|
6
|
+
readonly CSV: "CSV";
|
|
7
|
+
readonly JSON: "JSON";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type ResultFormatString = (typeof ResultFormatString)[keyof typeof ResultFormatString];
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
* @enum
|
|
16
|
+
*/
|
|
17
|
+
export declare const StatusString: {
|
|
18
|
+
readonly ABORTED: "ABORTED";
|
|
19
|
+
readonly ALL: "ALL";
|
|
20
|
+
readonly FAILED: "FAILED";
|
|
21
|
+
readonly FINISHED: "FINISHED";
|
|
22
|
+
readonly PICKED: "PICKED";
|
|
23
|
+
readonly STARTED: "STARTED";
|
|
24
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export type StatusString = (typeof StatusString)[keyof typeof StatusString];
|
|
30
|
+
/**
|
|
31
|
+
* @public
|
|
32
|
+
* @enum
|
|
33
|
+
*/
|
|
34
|
+
export declare const StatementStatusString: {
|
|
35
|
+
readonly ABORTED: "ABORTED";
|
|
36
|
+
readonly FAILED: "FAILED";
|
|
37
|
+
readonly FINISHED: "FINISHED";
|
|
38
|
+
readonly PICKED: "PICKED";
|
|
39
|
+
readonly STARTED: "STARTED";
|
|
40
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
export type StatementStatusString = (typeof StatementStatusString)[keyof typeof StatementStatusString];
|
|
@@ -61,6 +61,28 @@ export declare class InternalServerException extends __BaseException {
|
|
|
61
61
|
*/
|
|
62
62
|
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* <p>The Amazon Redshift Data API operation failed due to a missing resource. </p>
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
69
|
+
readonly name: "ResourceNotFoundException";
|
|
70
|
+
readonly $fault: "client";
|
|
71
|
+
/**
|
|
72
|
+
* <p>The exception message.</p>
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
Message: string | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* <p>Resource identifier associated with the exception.</p>
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
ResourceId: string | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
85
|
+
}
|
|
64
86
|
/**
|
|
65
87
|
* <p>The Amazon Redshift Data API operation failed due to invalid input. </p>
|
|
66
88
|
* @public
|
|
@@ -91,28 +113,6 @@ export declare class DatabaseConnectionException extends __BaseException {
|
|
|
91
113
|
*/
|
|
92
114
|
constructor(opts: __ExceptionOptionType<DatabaseConnectionException, __BaseException>);
|
|
93
115
|
}
|
|
94
|
-
/**
|
|
95
|
-
* <p>The Amazon Redshift Data API operation failed due to a missing resource. </p>
|
|
96
|
-
* @public
|
|
97
|
-
*/
|
|
98
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
99
|
-
readonly name: "ResourceNotFoundException";
|
|
100
|
-
readonly $fault: "client";
|
|
101
|
-
/**
|
|
102
|
-
* <p>The exception message.</p>
|
|
103
|
-
* @public
|
|
104
|
-
*/
|
|
105
|
-
Message: string | undefined;
|
|
106
|
-
/**
|
|
107
|
-
* <p>Resource identifier associated with the exception.</p>
|
|
108
|
-
* @public
|
|
109
|
-
*/
|
|
110
|
-
ResourceId: string | undefined;
|
|
111
|
-
/**
|
|
112
|
-
* @internal
|
|
113
|
-
*/
|
|
114
|
-
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
115
|
-
}
|
|
116
116
|
/**
|
|
117
117
|
* <p>The Amazon Redshift Data API operation failed due to timeout.</p>
|
|
118
118
|
* @public
|