{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- Derived from AWS service descriptions, licensed under Apache 2.0.
-- |
-- Module : Amazonka.RedshiftData.BatchExecuteStatement
-- Copyright : (c) 2013-2023 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Runs one or more SQL statements, which can be data manipulation language
-- (DML) or data definition language (DDL). Depending on the authorization
-- method, use one of the following combinations of request parameters:
--
-- - Secrets Manager - when connecting to a cluster, specify the Amazon
-- Resource Name (ARN) of the secret, the database name, and the
-- cluster identifier that matches the cluster in the secret. When
-- connecting to a serverless workgroup, specify the Amazon Resource
-- Name (ARN) of the secret and the database name.
--
-- - Temporary credentials - when connecting to a cluster, specify the
-- cluster identifier, the database name, and the database user name.
-- Also, permission to call the @redshift:GetClusterCredentials@
-- operation is required. When connecting to a serverless workgroup,
-- specify the workgroup name and database name. Also, permission to
-- call the @redshift-serverless:GetCredentials@ operation is required.
--
-- For more information about the Amazon Redshift Data API and CLI usage
-- examples, see
--