Smaws_Client_RedshiftData.ListSchemasLists 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:
secret-arn of a secret stored in Secrets Manager which has username and password. The specified secret contains credentials to connect to the database you specify. When you are connecting to a cluster, you also supply the database name, If you provide a cluster identifier (dbClusterIdentifier), it must match the cluster identifier stored in the secret. When you are connecting to a serverless workgroup, you also supply the database name.Temporary credentials - when connecting to your data warehouse, choose one of the following options:
arn:iam::123456789012:user:foo has the database user name IAM:foo. Also, permission to call the redshift-serverless:GetCredentials operation is required.arn:iam::123456789012:user:foo has the database user name IAM:foo. Also, permission to call the redshift:GetClusterCredentialsWithIAM operation is required.redshift:GetClusterCredentials operation is required.For more information about the Amazon Redshift Data API and CLI usage examples, see Using the Amazon Redshift Data API in the Amazon Redshift Management Guide.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `DatabaseConnectionException of Types.database_connection_exception
| `InternalServerException of Types.internal_server_exception
| `QueryTimeoutException of Types.query_timeout_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ValidationException of Types.validation_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.list_schemas_request ->
(Types.list_schemas_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `DatabaseConnectionException of Types.database_connection_exception
| `InternalServerException of Types.internal_server_exception
| `QueryTimeoutException of Types.query_timeout_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ValidationException of Types.validation_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.list_schemas_request ->
(Types.list_schemas_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `DatabaseConnectionException of Types.database_connection_exception
| `InternalServerException of Types.internal_server_exception
| `QueryTimeoutException of Types.query_timeout_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `ValidationException of Types.validation_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result